diff options
author | Dave Borowitz <dborowitz@google.com> | 2018-04-21 12:04:24 -0400 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2018-04-27 12:25:45 -0400 |
commit | 11f0c64df9322dce2701d084e5fc040ae176d3f1 (patch) | |
tree | 801ca85ce70f56ca37bbd785d160f616bfddd6c0 /proto | |
parent | 49c1c16097d37488cb94baf98e443186a904954c (diff) |
Custom serializers for ChangeKindCache, including protobuf
Change-Id: I7f2e56f78fd346170922c366c57465d6dfb136ef
Diffstat (limited to 'proto')
-rw-r--r-- | proto/BUILD | 10 | ||||
-rw-r--r-- | proto/cache.proto | 27 |
2 files changed, 37 insertions, 0 deletions
diff --git a/proto/BUILD b/proto/BUILD new file mode 100644 index 0000000000..4528dcb2e4 --- /dev/null +++ b/proto/BUILD @@ -0,0 +1,10 @@ +proto_library( + name = "cache_proto", + srcs = ["cache.proto"], +) + +java_proto_library( + name = "cache_java_proto", + visibility = ["//visibility:public"], + deps = [":cache_proto"], +) diff --git a/proto/cache.proto b/proto/cache.proto new file mode 100644 index 0000000000..4a84ab1f5f --- /dev/null +++ b/proto/cache.proto @@ -0,0 +1,27 @@ +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package gerrit.cache; + +option java_package = "com.google.gerrit.server.cache.proto"; + +// Serialized form of com.google.gerrit.server.change.CHangeKindCacheImpl.Key. +// Next ID: 4 +message ChangeKindKeyProto { + bytes prior = 1; + bytes next = 2; + string strategy_name = 3; +} |