This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch tag-indexed-only
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git

commit 53c7abf2ab77d467cd03cd820a1c65367b2299d1
Author: Gao Hongtao <[email protected]>
AuthorDate: Thu Oct 6 10:24:03 2022 +0000

    Add indexed_only flag to tag spec
    
    Signed-off-by: Gao Hongtao <[email protected]>
---
 api/proto/banyandb/database/v1/schema.pb.go        | 373 +++++++++++----------
 .../banyandb/database/v1/schema.pb.validate.go     |   2 +
 api/proto/banyandb/database/v1/schema.proto        |   4 +
 .../openapi/banyandb/database/v1/rpc.swagger.json  |   4 +
 banyand/measure/measure_write.go                   |  20 +-
 banyand/stream/stream_write.go                     |  20 +-
 docs/api-reference.md                              |   1 +
 pkg/pb/v1/metadata.go                              |   2 +-
 pkg/pb/v1/write.go                                 |  28 +-
 pkg/test/stream/testdata/stream.json               |   3 +-
 test/cases/stream/input/indexed_only.yaml          |  31 ++
 test/cases/stream/stream.go                        |   1 +
 test/cases/stream/want/indexed_only.yaml           |  51 +++
 13 files changed, 322 insertions(+), 218 deletions(-)

diff --git a/api/proto/banyandb/database/v1/schema.pb.go 
b/api/proto/banyandb/database/v1/schema.pb.go
index b5ef0c9..e4e5740 100644
--- a/api/proto/banyandb/database/v1/schema.pb.go
+++ b/api/proto/banyandb/database/v1/schema.pb.go
@@ -464,6 +464,10 @@ type TagSpec struct {
 
        Name string  `protobuf:"bytes,1,opt,name=name,proto3" 
json:"name,omitempty"`
        Type TagType 
`protobuf:"varint,2,opt,name=type,proto3,enum=banyandb.database.v1.TagType" 
json:"type,omitempty"`
+       // indexed_only indicates whether the tag is stored
+       // True: It's indexed only, but not stored
+       // False: it's stored and indexed
+       IndexedOnly bool 
`protobuf:"varint,3,opt,name=indexed_only,json=indexedOnly,proto3" 
json:"indexed_only,omitempty"`
 }
 
 func (x *TagSpec) Reset() {
@@ -512,6 +516,13 @@ func (x *TagSpec) GetType() TagType {
        return TagType_TAG_TYPE_UNSPECIFIED
 }
 
+func (x *TagSpec) GetIndexedOnly() bool {
+       if x != nil {
+               return x.IndexedOnly
+       }
+       return false
+}
+
 // Stream intends to store streaming data, for example, traces or logs
 type Stream struct {
        state         protoimpl.MessageState
@@ -1191,195 +1202,197 @@ var file_banyandb_database_v1_schema_proto_rawDesc = 
[]byte{
        0x31, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 
0x0b, 0x32, 0x1d, 0x2e,
        0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 
0x61, 0x62, 0x61, 0x73,
        0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x53, 0x70, 0x65, 0x63, 
0x52, 0x04, 0x74, 0x61,
-       0x67, 0x73, 0x22, 0x50, 0x0a, 0x07, 0x54, 0x61, 0x67, 0x53, 0x70, 0x65, 
0x63, 0x12, 0x12, 0x0a,
+       0x67, 0x73, 0x22, 0x73, 0x0a, 0x07, 0x54, 0x61, 0x67, 0x53, 0x70, 0x65, 
0x63, 0x12, 0x12, 0x0a,
        0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 
0x04, 0x6e, 0x61, 0x6d,
        0x65, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 
0x01, 0x28, 0x0e, 0x32,
        0x1d, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 
0x61, 0x74, 0x61, 0x62,
        0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x79, 
0x70, 0x65, 0x52, 0x04,
-       0x74, 0x79, 0x70, 0x65, 0x22, 0xfb, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72, 
0x65, 0x61, 0x6d, 0x12,
-       0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 
0x01, 0x20, 0x01, 0x28,
-       0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 
0x2e, 0x63, 0x6f, 0x6d,
-       0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 
0x61, 0x74, 0x61, 0x52,
-       0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 
0x0c, 0x74, 0x61, 0x67,
-       0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 
0x03, 0x28, 0x0b, 0x32,
-       0x23, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 
0x61, 0x74, 0x61, 0x62,
-       0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x46, 0x61, 
0x6d, 0x69, 0x6c, 0x79,
-       0x53, 0x70, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x61, 0x67, 0x46, 0x61, 0x6d, 
0x69, 0x6c, 0x69, 0x65,
-       0x73, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 
0x03, 0x20, 0x01, 0x28,
-       0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 
0x2e, 0x64, 0x61, 0x74,
-       0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 
0x69, 0x74, 0x79, 0x52,
-       0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 
0x70, 0x64, 0x61, 0x74,
-       0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 
0x1a, 0x2e, 0x67, 0x6f,
-       0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 
0x66, 0x2e, 0x54, 0x69,
-       0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 
0x61, 0x74, 0x65, 0x64,
-       0x41, 0x74, 0x22, 0x25, 0x0a, 0x06, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 
0x12, 0x1b, 0x0a, 0x09,
-       0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 
0x03, 0x28, 0x09, 0x52,
-       0x08, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x86, 0x02, 
0x0a, 0x09, 0x46, 0x69,
-       0x65, 0x6c, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 
0x61, 0x6d, 0x65, 0x18,
-       0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 
0x3e, 0x0a, 0x0a, 0x66,
-       0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 
0x01, 0x28, 0x0e, 0x32,
-       0x1f, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 
0x61, 0x74, 0x61, 0x62,
-       0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 
0x54, 0x79, 0x70, 0x65,
-       0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 
0x4d, 0x0a, 0x0f, 0x65,
-       0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x68, 
0x6f, 0x64, 0x18, 0x03,
-       0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 
0x6e, 0x64, 0x62, 0x2e,
-       0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 
0x45, 0x6e, 0x63, 0x6f,
-       0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 
0x65, 0x6e, 0x63, 0x6f,
-       0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x56, 
0x0a, 0x12, 0x63, 0x6f,
-       0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 
0x74, 0x68, 0x6f, 0x64,
-       0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x61, 0x6e, 
0x79, 0x61, 0x6e, 0x64,
-       0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 
0x31, 0x2e, 0x43, 0x6f,
-       0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 
0x68, 0x6f, 0x64, 0x52,
-       0x11, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 
0x4d, 0x65, 0x74, 0x68,
-       0x6f, 0x64, 0x22, 0xd1, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x61, 0x73, 0x75, 
0x72, 0x65, 0x12, 0x38,
-       0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 
0x20, 0x01, 0x28, 0x0b,
-       0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 
0x63, 0x6f, 0x6d, 0x6d,
-       0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 
0x74, 0x61, 0x52, 0x08,
-       0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0c, 
0x74, 0x61, 0x67, 0x5f,
-       0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 
0x28, 0x0b, 0x32, 0x23,
-       0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 
0x74, 0x61, 0x62, 0x61,
-       0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x46, 0x61, 0x6d, 
0x69, 0x6c, 0x79, 0x53,
-       0x70, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x61, 0x67, 0x46, 0x61, 0x6d, 0x69, 
0x6c, 0x69, 0x65, 0x73,
-       0x12, 0x37, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 
0x20, 0x03, 0x28, 0x0b,
-       0x32, 0x1f, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 
0x64, 0x61, 0x74, 0x61,
-       0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 
0x64, 0x53, 0x70, 0x65,
-       0x63, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x34, 0x0a, 
0x06, 0x65, 0x6e, 0x74,
-       0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 
0x62, 0x61, 0x6e, 0x79,
-       0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 
0x65, 0x2e, 0x76, 0x31,
-       0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74, 
0x69, 0x74, 0x79, 0x12,
-       0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 
0x05, 0x20, 0x01, 0x28,
-       0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 
0x39, 0x0a, 0x0a, 0x75,
-       0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 
0x01, 0x28, 0x0b, 0x32,
-       0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 
0x74, 0x6f, 0x62, 0x75,
-       0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 
0x09, 0x75, 0x70, 0x64,
-       0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xbc, 0x03, 0x0a, 0x0f, 0x54, 
0x6f, 0x70, 0x4e, 0x41,
-       0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 
0x0a, 0x08, 0x6d, 0x65,
-       0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 
0x32, 0x1c, 0x2e, 0x62,
-       0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 
0x6f, 0x6e, 0x2e, 0x76,
-       0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 
0x6d, 0x65, 0x74, 0x61,
-       0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 
0x63, 0x65, 0x5f, 0x6d,
-       0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 
0x32, 0x1c, 0x2e, 0x62,
-       0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 
0x6f, 0x6e, 0x2e, 0x76,
-       0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 
0x73, 0x6f, 0x75, 0x72,
-       0x63, 0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x1d, 0x0a, 
0x0a, 0x66, 0x69, 0x65,
-       0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 
0x09, 0x52, 0x09, 0x66,
-       0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x10, 
0x66, 0x69, 0x65, 0x6c,
-       0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x6f, 0x72, 0x74, 
0x18, 0x04, 0x20, 0x01,
-       0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 
0x62, 0x2e, 0x6d, 0x6f,
-       0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 
0x0e, 0x66, 0x69, 0x65,
-       0x6c, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x6f, 0x72, 0x74, 0x12, 
0x2b, 0x0a, 0x12, 0x67,
-       0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x5f, 
0x6e, 0x61, 0x6d, 0x65,
-       0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x67, 0x72, 0x6f, 
0x75, 0x70, 0x42, 0x79,
-       0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x08, 
0x63, 0x72, 0x69, 0x74,
-       0x65, 0x72, 0x69, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 
0x2e, 0x62, 0x61, 0x6e,
-       0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 
0x76, 0x31, 0x2e, 0x43,
-       0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, 0x08, 0x63, 0x72, 0x69, 
0x74, 0x65, 0x72, 0x69,
-       0x61, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 
0x73, 0x5f, 0x6e, 0x75,
-       0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 
0x63, 0x6f, 0x75, 0x6e,
-       0x74, 0x65, 0x72, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x39, 
0x0a, 0x0a, 0x75, 0x70,
-       0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 
0x28, 0x0b, 0x32, 0x1a,
+       0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x64, 0x65, 
0x78, 0x65, 0x64, 0x5f,
+       0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 
0x69, 0x6e, 0x64, 0x65,
+       0x78, 0x65, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xfb, 0x01, 0x0a, 0x06, 
0x53, 0x74, 0x72, 0x65,
+       0x61, 0x6d, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 
0x74, 0x61, 0x18, 0x01,
+       0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 
0x6e, 0x64, 0x62, 0x2e,
+       0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 
0x74, 0x61, 0x64, 0x61,
+       0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 
0x12, 0x46, 0x0a, 0x0c,
+       0x74, 0x61, 0x67, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 
0x18, 0x02, 0x20, 0x03,
+       0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 
0x62, 0x2e, 0x64, 0x61,
+       0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 
0x67, 0x46, 0x61, 0x6d,
+       0x69, 0x6c, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x61, 0x67, 
0x46, 0x61, 0x6d, 0x69,
+       0x6c, 0x69, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 
0x74, 0x79, 0x18, 0x03,
+       0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 
0x6e, 0x64, 0x62, 0x2e,
+       0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 
0x45, 0x6e, 0x74, 0x69,
+       0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x39, 
0x0a, 0x0a, 0x75, 0x70,
+       0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 
0x28, 0x0b, 0x32, 0x1a,
        0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 
0x6f, 0x62, 0x75, 0x66,
        0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 
0x75, 0x70, 0x64, 0x61,
-       0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xd2, 0x04, 0x0a, 0x09, 0x49, 0x6e, 
0x64, 0x65, 0x78, 0x52,
-       0x75, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 
0x61, 0x74, 0x61, 0x18,
-       0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 
0x61, 0x6e, 0x64, 0x62,
-       0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 
0x65, 0x74, 0x61, 0x64,
-       0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 0x12, 0x12, 0x0a,
-       0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 
0x04, 0x74, 0x61, 0x67,
-       0x73, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 
0x01, 0x28, 0x0e, 0x32,
-       0x24, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 
0x61, 0x74, 0x61, 0x62,
-       0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 
0x52, 0x75, 0x6c, 0x65,
-       0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 
0x44, 0x0a, 0x08, 0x6c,
-       0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 
0x0e, 0x32, 0x28, 0x2e,
-       0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 
0x61, 0x62, 0x61, 0x73,
-       0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x75, 
0x6c, 0x65, 0x2e, 0x4c,
-       0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 
0x61, 0x74, 0x69, 0x6f,
-       0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 
0x5f, 0x61, 0x74, 0x18,
-       0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 
0x6c, 0x65, 0x2e, 0x70,
-       0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 
0x73, 0x74, 0x61, 0x6d,
-       0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 
0x12, 0x44, 0x0a, 0x08,
-       0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 
0x28, 0x0e, 0x32, 0x28,
-       0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 
0x74, 0x61, 0x62, 0x61,
-       0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 
0x75, 0x6c, 0x65, 0x2e,
-       0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e, 
0x61, 0x6c, 0x79, 0x7a,
-       0x65, 0x72, 0x22, 0x3e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 
0x0a, 0x10, 0x54, 0x59,
-       0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 
0x45, 0x44, 0x10, 0x00,
-       0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x45, 
0x45, 0x10, 0x01, 0x12,
-       0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x45, 
0x52, 0x54, 0x45, 0x44,
-       0x10, 0x02, 0x22, 0x4e, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 
0x6f, 0x6e, 0x12, 0x18,
-       0x0a, 0x14, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 
0x4e, 0x53, 0x50, 0x45,
-       0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 
0x4c, 0x4f, 0x43, 0x41,
-       0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x52, 0x49, 0x45, 0x53, 0x10, 
0x01, 0x12, 0x13, 0x0a,
-       0x0f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x47, 0x4c, 
0x4f, 0x42, 0x41, 0x4c,
-       0x10, 0x02, 0x22, 0x66, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 
0x65, 0x72, 0x12, 0x18,
-       0x0a, 0x14, 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x5a, 0x45, 0x52, 0x5f, 0x55, 
0x4e, 0x53, 0x50, 0x45,
-       0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 
0x41, 0x4e, 0x41, 0x4c,
-       0x59, 0x5a, 0x45, 0x52, 0x5f, 0x4b, 0x45, 0x59, 0x57, 0x4f, 0x52, 0x44, 
0x10, 0x01, 0x12, 0x15,
-       0x0a, 0x11, 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x5a, 0x45, 0x52, 0x5f, 0x53, 
0x54, 0x41, 0x4e, 0x44,
-       0x41, 0x52, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x4e, 0x41, 
0x4c, 0x59, 0x5a, 0x45,
-       0x52, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x54, 
0x0a, 0x07, 0x53, 0x75,
-       0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x61, 0x74, 
0x61, 0x6c, 0x6f, 0x67,
-       0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x6e, 
0x79, 0x61, 0x6e, 0x64,
-       0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 
0x43, 0x61, 0x74, 0x61,
-       0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 
0x12, 0x12, 0x0a, 0x04,
-       0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 
0x6e, 0x61, 0x6d, 0x65,
-       0x22, 0xc6, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x75, 
0x6c, 0x65, 0x42, 0x69,
-       0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 
0x61, 0x64, 0x61, 0x74,
-       0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 
0x6e, 0x79, 0x61, 0x6e,
-       0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 
0x2e, 0x4d, 0x65, 0x74,
-       0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 
0x61, 0x74, 0x61, 0x12,
-       0x14, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 
0x28, 0x09, 0x52, 0x05,
-       0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x75, 0x62, 
0x6a, 0x65, 0x63, 0x74,
-       0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6e, 
0x79, 0x61, 0x6e, 0x64,
-       0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 
0x31, 0x2e, 0x53, 0x75,
-       0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 
0x63, 0x74, 0x12, 0x35,
-       0x0a, 0x08, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x18, 0x04, 
0x20, 0x01, 0x28, 0x0b,
-       0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 
0x6f, 0x74, 0x6f, 0x62,
-       0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 
0x52, 0x07, 0x62, 0x65,
-       0x67, 0x69, 0x6e, 0x41, 0x74, 0x12, 0x37, 0x0a, 0x09, 0x65, 0x78, 0x70, 
0x69, 0x72, 0x65, 0x5f,
-       0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 
0x6f, 0x6f, 0x67, 0x6c,
-       0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 
0x69, 0x6d, 0x65, 0x73,
-       0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 
0x41, 0x74, 0x12, 0x39,
+       0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x25, 0x0a, 0x06, 0x45, 0x6e, 0x74, 
0x69, 0x74, 0x79, 0x12,
+       0x1b, 0x0a, 0x09, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 
0x18, 0x01, 0x20, 0x03,
+       0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 
0x22, 0x86, 0x02, 0x0a,
+       0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 
0x0a, 0x04, 0x6e, 0x61,
+       0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 
0x6d, 0x65, 0x12, 0x3e,
+       0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 
0x18, 0x02, 0x20, 0x01,
+       0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 
0x62, 0x2e, 0x64, 0x61,
+       0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 
0x65, 0x6c, 0x64, 0x54,
+       0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 
0x70, 0x65, 0x12, 0x4d,
+       0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 
0x65, 0x74, 0x68, 0x6f,
+       0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x61, 
0x6e, 0x79, 0x61, 0x6e,
+       0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 
0x76, 0x31, 0x2e, 0x45,
+       0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 
0x64, 0x52, 0x0e, 0x65,
+       0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 
0x64, 0x12, 0x56, 0x0a,
+       0x12, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 
0x5f, 0x6d, 0x65, 0x74,
+       0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 
0x62, 0x61, 0x6e, 0x79,
+       0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 
0x65, 0x2e, 0x76, 0x31,
+       0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 
0x4d, 0x65, 0x74, 0x68,
+       0x6f, 0x64, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 
0x69, 0x6f, 0x6e, 0x4d,
+       0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0xd1, 0x02, 0x0a, 0x07, 0x4d, 0x65, 
0x61, 0x73, 0x75, 0x72,
+       0x65, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 0x18, 0x01, 0x20,
+       0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 
0x64, 0x62, 0x2e, 0x63,
+       0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 
0x61, 0x64, 0x61, 0x74,
+       0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 
0x46, 0x0a, 0x0c, 0x74,
+       0x61, 0x67, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x18, 
0x02, 0x20, 0x03, 0x28,
+       0x0b, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 
0x2e, 0x64, 0x61, 0x74,
+       0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 
0x46, 0x61, 0x6d, 0x69,
+       0x6c, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x61, 0x67, 0x46, 
0x61, 0x6d, 0x69, 0x6c,
+       0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 
0x73, 0x18, 0x03, 0x20,
+       0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 
0x64, 0x62, 0x2e, 0x64,
+       0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 
0x69, 0x65, 0x6c, 0x64,
+       0x53, 0x70, 0x65, 0x63, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 
0x12, 0x34, 0x0a, 0x06,
+       0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 
0x32, 0x1c, 0x2e, 0x62,
+       0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 
0x62, 0x61, 0x73, 0x65,
+       0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 
0x65, 0x6e, 0x74, 0x69,
+       0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 
0x61, 0x6c, 0x18, 0x05,
+       0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 
0x61, 0x6c, 0x12, 0x39,
        0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 
0x18, 0x06, 0x20, 0x01,
        0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 
0x70, 0x72, 0x6f, 0x74,
        0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 
0x6d, 0x70, 0x52, 0x09,
-       0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x2a, 0xa8, 0x01, 
0x0a, 0x07, 0x54, 0x61,
-       0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x41, 0x47, 
0x5f, 0x54, 0x59, 0x50,
-       0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 
0x44, 0x10, 0x00, 0x12,
-       0x13, 0x0a, 0x0f, 0x54, 0x41, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 
0x53, 0x54, 0x52, 0x49,
-       0x4e, 0x47, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x47, 0x5f, 
0x54, 0x59, 0x50, 0x45,
-       0x5f, 0x49, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x41, 
0x47, 0x5f, 0x54, 0x59,
-       0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x52, 
0x52, 0x41, 0x59, 0x10,
-       0x03, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x47, 0x5f, 0x54, 0x59, 0x50, 
0x45, 0x5f, 0x49, 0x4e,
-       0x54, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x04, 0x12, 0x18, 0x0a, 
0x14, 0x54, 0x41, 0x47,
-       0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x42, 
0x49, 0x4e, 0x41, 0x52,
-       0x59, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x41, 0x47, 0x5f, 0x54, 
0x59, 0x50, 0x45, 0x5f,
-       0x49, 0x44, 0x10, 0x06, 0x2a, 0x6e, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 
0x64, 0x54, 0x79, 0x70,
-       0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 
0x59, 0x50, 0x45, 0x5f,
-       0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 
0x00, 0x12, 0x15, 0x0a,
-       0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 
0x53, 0x54, 0x52, 0x49,
-       0x4e, 0x47, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 
0x44, 0x5f, 0x54, 0x59,
-       0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 
0x46, 0x49, 0x45, 0x4c,
-       0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 
0x42, 0x49, 0x4e, 0x41,
-       0x52, 0x59, 0x10, 0x03, 0x2a, 0x4e, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x6f, 
0x64, 0x69, 0x6e, 0x67,
-       0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x4e, 
0x43, 0x4f, 0x44, 0x49,
-       0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 
0x53, 0x50, 0x45, 0x43,
-       0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x45, 
0x4e, 0x43, 0x4f, 0x44,
-       0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x47, 
0x4f, 0x52, 0x49, 0x4c,
-       0x4c, 0x41, 0x10, 0x01, 0x2a, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 
0x72, 0x65, 0x73, 0x73,
-       0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x22, 0x0a, 
0x1e, 0x43, 0x4f, 0x4d,
-       0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x45, 0x54, 
0x48, 0x4f, 0x44, 0x5f,
-       0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 
0x00, 0x12, 0x1b, 0x0a,
-       0x17, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 
0x5f, 0x4d, 0x45, 0x54,
-       0x48, 0x4f, 0x44, 0x5f, 0x5a, 0x53, 0x54, 0x44, 0x10, 0x01, 0x42, 0x72, 
0x0a, 0x2a, 0x6f, 0x72,
-       0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x73, 0x6b, 0x79, 
0x77, 0x61, 0x6c, 0x6b,
-       0x69, 0x6e, 0x67, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 
0x2e, 0x64, 0x61, 0x74,
-       0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 
0x74, 0x68, 0x75, 0x62,
-       0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2f, 
0x73, 0x6b, 0x79, 0x77,
-       0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2d, 0x62, 0x61, 0x6e, 0x79, 0x61, 
0x6e, 0x64, 0x62, 0x2f,
-       0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 
0x6e, 0x79, 0x61, 0x6e,
-       0x64, 0x62, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2f, 
0x76, 0x31, 0x62, 0x06,
-       0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+       0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xbc, 0x03, 
0x0a, 0x0f, 0x54, 0x6f,
+       0x70, 0x4e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 
0x6e, 0x12, 0x38, 0x0a,
+       0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 
0x01, 0x28, 0x0b, 0x32,
+       0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 
0x6f, 0x6d, 0x6d, 0x6f,
+       0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 0x52, 0x08, 0x6d,
+       0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x0e, 0x73, 
0x6f, 0x75, 0x72, 0x63,
+       0x65, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 
0x01, 0x28, 0x0b, 0x32,
+       0x1c, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 
0x6f, 0x6d, 0x6d, 0x6f,
+       0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 0x52, 0x0d, 0x73,
+       0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 
0x12, 0x1d, 0x0a, 0x0a,
+       0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 
0x20, 0x01, 0x28, 0x09,
+       0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 
0x41, 0x0a, 0x10, 0x66,
+       0x69, 0x65, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 
0x6f, 0x72, 0x74, 0x18,
+       0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6e, 0x79, 
0x61, 0x6e, 0x64, 0x62,
+       0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 
0x72, 0x74, 0x52, 0x0e,
+       0x66, 0x69, 0x65, 0x6c, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x6f, 
0x72, 0x74, 0x12, 0x2b,
+       0x0a, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x79, 0x5f, 0x74, 
0x61, 0x67, 0x5f, 0x6e,
+       0x61, 0x6d, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 
0x67, 0x72, 0x6f, 0x75,
+       0x70, 0x42, 0x79, 0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 
0x37, 0x0a, 0x08, 0x63,
+       0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 
0x0b, 0x32, 0x1b, 0x2e,
+       0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x6d, 0x6f, 0x64, 
0x65, 0x6c, 0x2e, 0x76,
+       0x31, 0x2e, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, 0x08, 
0x63, 0x72, 0x69, 0x74,
+       0x65, 0x72, 0x69, 0x61, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x75, 0x6e, 
0x74, 0x65, 0x72, 0x73,
+       0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 
0x05, 0x52, 0x0e, 0x63,
+       0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 
0x72, 0x12, 0x39, 0x0a,
+       0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 
0x08, 0x20, 0x01, 0x28,
+       0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 
0x72, 0x6f, 0x74, 0x6f,
+       0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 
0x70, 0x52, 0x09, 0x75,
+       0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xd2, 0x04, 0x0a, 
0x09, 0x49, 0x6e, 0x64,
+       0x65, 0x78, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 
0x74, 0x61, 0x64, 0x61,
+       0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 
0x61, 0x6e, 0x79, 0x61,
+       0x6e, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 
0x31, 0x2e, 0x4d, 0x65,
+       0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 
0x64, 0x61, 0x74, 0x61,
+       0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 
0x28, 0x09, 0x52, 0x04,
+       0x74, 0x61, 0x67, 0x73, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 
0x18, 0x03, 0x20, 0x01,
+       0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 
0x62, 0x2e, 0x64, 0x61,
+       0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 
0x64, 0x65, 0x78, 0x52,
+       0x75, 0x6c, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 
0x70, 0x65, 0x12, 0x44,
+       0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 
0x20, 0x01, 0x28, 0x0e,
+       0x32, 0x28, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 
0x64, 0x61, 0x74, 0x61,
+       0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 
0x78, 0x52, 0x75, 0x6c,
+       0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 
0x6c, 0x6f, 0x63, 0x61,
+       0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 
0x74, 0x65, 0x64, 0x5f,
+       0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 
0x6f, 0x6f, 0x67, 0x6c,
+       0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 
0x69, 0x6d, 0x65, 0x73,
+       0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 
0x64, 0x41, 0x74, 0x12,
+       0x44, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 
0x06, 0x20, 0x01, 0x28,
+       0x0e, 0x32, 0x28, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 0x6e, 0x64, 0x62, 
0x2e, 0x64, 0x61, 0x74,
+       0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 
0x65, 0x78, 0x52, 0x75,
+       0x6c, 0x65, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 
0x08, 0x61, 0x6e, 0x61,
+       0x6c, 0x79, 0x7a, 0x65, 0x72, 0x22, 0x3e, 0x0a, 0x04, 0x54, 0x79, 0x70, 
0x65, 0x12, 0x14, 0x0a,
+       0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 
0x49, 0x46, 0x49, 0x45,
+       0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 
0x54, 0x52, 0x45, 0x45,
+       0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 
0x4e, 0x56, 0x45, 0x52,
+       0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x4e, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 
0x61, 0x74, 0x69, 0x6f,
+       0x6e, 0x12, 0x18, 0x0a, 0x14, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 
0x4e, 0x5f, 0x55, 0x4e,
+       0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 
0x13, 0x0a, 0x0f, 0x4c,
+       0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x52, 0x49, 
0x45, 0x53, 0x10, 0x01,
+       0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 
0x5f, 0x47, 0x4c, 0x4f,
+       0x42, 0x41, 0x4c, 0x10, 0x02, 0x22, 0x66, 0x0a, 0x08, 0x41, 0x6e, 0x61, 
0x6c, 0x79, 0x7a, 0x65,
+       0x72, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x5a, 0x45, 
0x52, 0x5f, 0x55, 0x4e,
+       0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 
0x14, 0x0a, 0x10, 0x41,
+       0x4e, 0x41, 0x4c, 0x59, 0x5a, 0x45, 0x52, 0x5f, 0x4b, 0x45, 0x59, 0x57, 
0x4f, 0x52, 0x44, 0x10,
+       0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x5a, 0x45, 
0x52, 0x5f, 0x53, 0x54,
+       0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 
0x41, 0x4e, 0x41, 0x4c,
+       0x59, 0x5a, 0x45, 0x52, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 
0x03, 0x22, 0x54, 0x0a,
+       0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x35, 0x0a, 0x07, 
0x63, 0x61, 0x74, 0x61,
+       0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 
0x62, 0x61, 0x6e, 0x79,
+       0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 
0x76, 0x31, 0x2e, 0x43,
+       0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 
0x6c, 0x6f, 0x67, 0x12,
+       0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 
0x09, 0x52, 0x04, 0x6e,
+       0x61, 0x6d, 0x65, 0x22, 0xc6, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x64, 0x65, 
0x78, 0x52, 0x75, 0x6c,
+       0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x38, 0x0a, 0x08, 
0x6d, 0x65, 0x74, 0x61,
+       0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 
0x2e, 0x62, 0x61, 0x6e,
+       0x79, 0x61, 0x6e, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 
0x2e, 0x76, 0x31, 0x2e,
+       0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 
0x74, 0x61, 0x64, 0x61,
+       0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 
0x02, 0x20, 0x03, 0x28,
+       0x09, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x07, 
0x73, 0x75, 0x62, 0x6a,
+       0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 
0x62, 0x61, 0x6e, 0x79,
+       0x61, 0x6e, 0x64, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 
0x65, 0x2e, 0x76, 0x31,
+       0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x73, 0x75, 
0x62, 0x6a, 0x65, 0x63,
+       0x74, 0x12, 0x35, 0x0a, 0x08, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x5f, 0x61, 
0x74, 0x18, 0x04, 0x20,
+       0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 
0x2e, 0x70, 0x72, 0x6f,
+       0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 
0x61, 0x6d, 0x70, 0x52,
+       0x07, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x41, 0x74, 0x12, 0x37, 0x0a, 0x09, 
0x65, 0x78, 0x70, 0x69,
+       0x72, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 
0x1a, 0x2e, 0x67, 0x6f,
+       0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 
0x66, 0x2e, 0x54, 0x69,
+       0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x65, 0x78, 0x70, 
0x69, 0x72, 0x65, 0x41,
+       0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 
0x5f, 0x61, 0x74, 0x18,
+       0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 
0x6c, 0x65, 0x2e, 0x70,
+       0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 
0x73, 0x74, 0x61, 0x6d,
+       0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 
0x2a, 0xa8, 0x01, 0x0a,
+       0x07, 0x54, 0x61, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 
0x54, 0x41, 0x47, 0x5f,
+       0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 
0x46, 0x49, 0x45, 0x44,
+       0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x41, 0x47, 0x5f, 0x54, 0x59, 
0x50, 0x45, 0x5f, 0x53,
+       0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 
0x41, 0x47, 0x5f, 0x54,
+       0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x19, 0x0a, 
0x15, 0x54, 0x41, 0x47,
+       0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 
0x5f, 0x41, 0x52, 0x52,
+       0x41, 0x59, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x47, 0x5f, 
0x54, 0x59, 0x50, 0x45,
+       0x5f, 0x49, 0x4e, 0x54, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x04, 
0x12, 0x18, 0x0a, 0x14,
+       0x54, 0x41, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 
0x41, 0x5f, 0x42, 0x49,
+       0x4e, 0x41, 0x52, 0x59, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x41, 
0x47, 0x5f, 0x54, 0x59,
+       0x50, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x06, 0x2a, 0x6e, 0x0a, 0x09, 0x46, 
0x69, 0x65, 0x6c, 0x64,
+       0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, 0x4c, 
0x44, 0x5f, 0x54, 0x59,
+       0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 
0x45, 0x44, 0x10, 0x00,
+       0x12, 0x15, 0x0a, 0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 
0x50, 0x45, 0x5f, 0x53,
+       0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x46, 
0x49, 0x45, 0x4c, 0x44,
+       0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x10, 0x02, 0x12, 
0x1a, 0x0a, 0x16, 0x46,
+       0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 
0x54, 0x41, 0x5f, 0x42,
+       0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x03, 0x2a, 0x4e, 0x0a, 0x0e, 0x45, 
0x6e, 0x63, 0x6f, 0x64,
+       0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 
0x1b, 0x45, 0x4e, 0x43,
+       0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 
0x5f, 0x55, 0x4e, 0x53,
+       0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 
0x0a, 0x17, 0x45, 0x4e,
+       0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 
0x44, 0x5f, 0x47, 0x4f,
+       0x52, 0x49, 0x4c, 0x4c, 0x41, 0x10, 0x01, 0x2a, 0x54, 0x0a, 0x11, 0x43, 
0x6f, 0x6d, 0x70, 0x72,
+       0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 
0x12, 0x22, 0x0a, 0x1e,
+       0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 
0x4d, 0x45, 0x54, 0x48,
+       0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 
0x45, 0x44, 0x10, 0x00,
+       0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 
0x49, 0x4f, 0x4e, 0x5f,
+       0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x5a, 0x53, 0x54, 0x44, 0x10, 
0x01, 0x42, 0x72, 0x0a,
+       0x2a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 
0x73, 0x6b, 0x79, 0x77,
+       0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x61, 0x6e, 0x79, 0x61, 
0x6e, 0x64, 0x62, 0x2e,
+       0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x5a, 
0x44, 0x67, 0x69, 0x74,
+       0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x61, 0x63, 
0x68, 0x65, 0x2f, 0x73,
+       0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2d, 0x62, 0x61, 
0x6e, 0x79, 0x61, 0x6e,
+       0x64, 0x62, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 
0x2f, 0x62, 0x61, 0x6e,
+       0x79, 0x61, 0x6e, 0x64, 0x62, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 
0x73, 0x65, 0x2f, 0x76,
+       0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
diff --git a/api/proto/banyandb/database/v1/schema.pb.validate.go 
b/api/proto/banyandb/database/v1/schema.pb.validate.go
index 6aa1f09..a65fb5a 100644
--- a/api/proto/banyandb/database/v1/schema.pb.validate.go
+++ b/api/proto/banyandb/database/v1/schema.pb.validate.go
@@ -196,6 +196,8 @@ func (m *TagSpec) validate(all bool) error {
 
        // no validation rules for Type
 
+       // no validation rules for IndexedOnly
+
        if len(errors) > 0 {
                return TagSpecMultiError(errors)
        }
diff --git a/api/proto/banyandb/database/v1/schema.proto 
b/api/proto/banyandb/database/v1/schema.proto
index 4751434..3fa94d3 100644
--- a/api/proto/banyandb/database/v1/schema.proto
+++ b/api/proto/banyandb/database/v1/schema.proto
@@ -45,6 +45,10 @@ message TagFamilySpec {
 message TagSpec {
     string name = 1;
     TagType type = 2;
+    // indexed_only indicates whether the tag is stored
+    // True: It's indexed only, but not stored 
+    // False: it's stored and indexed
+    bool indexed_only = 3;
 }
 
 // Stream intends to store streaming data, for example, traces or logs
diff --git a/api/proto/openapi/banyandb/database/v1/rpc.swagger.json 
b/api/proto/openapi/banyandb/database/v1/rpc.swagger.json
index b8a1f95..4a5cbd3 100644
--- a/api/proto/openapi/banyandb/database/v1/rpc.swagger.json
+++ b/api/proto/openapi/banyandb/database/v1/rpc.swagger.json
@@ -2079,6 +2079,10 @@
         },
         "type": {
           "$ref": "#/definitions/v1TagType"
+        },
+        "indexedOnly": {
+          "type": "boolean",
+          "title": "indexed_only indicates whether the tag is stored\nTrue: 
It's indexed only, but not stored \nFalse: it's stored and indexed"
         }
       }
     },
diff --git a/banyand/measure/measure_write.go b/banyand/measure/measure_write.go
index bb14e0b..22001cd 100644
--- a/banyand/measure/measure_write.go
+++ b/banyand/measure/measure_write.go
@@ -21,7 +21,6 @@ import (
        "bytes"
 
        "github.com/pkg/errors"
-       "google.golang.org/protobuf/proto"
 
        "github.com/apache/skywalking-banyandb/api/common"
        databasev1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/database/v1"
@@ -91,25 +90,12 @@ func (s *measure) write(shardID common.ShardID, 
seriesHashKey []byte, value *mea
        writeFn := func() (tsdb.Writer, error) {
                builder := wp.WriterBuilder().Time(t)
                for fi, family := range value.GetTagFamilies() {
-                       familySpec := sm.GetTagFamilies()[fi]
-                       if len(family.GetTags()) > len(familySpec.GetTags()) {
-                               return nil, errors.Wrap(ErrMalformedElement, 
"tag number is more than expected")
-                       }
-                       for ti, tag := range family.GetTags() {
-                               tagSpec := familySpec.GetTags()[ti]
-                               tType, isNull := pbv1.TagValueTypeConv(tag)
-                               if isNull {
-                                       continue
-                               }
-                               if tType != tagSpec.GetType() {
-                                       return nil, 
errors.Wrapf(ErrMalformedElement, "tag %s type is unexpected", 
tagSpec.GetName())
-                               }
-                       }
-                       bb, errMarshal := proto.Marshal(family)
+                       spec := sm.GetTagFamilies()[fi]
+                       bb, errMarshal := pbv1.EncodeFamily(spec, family)
                        if errMarshal != nil {
                                return nil, errMarshal
                        }
-                       
builder.Family(familyIdentity(sm.GetTagFamilies()[fi].GetName(), TagFlag), bb)
+                       builder.Family(familyIdentity(spec.GetName(), TagFlag), 
bb)
                }
                if len(value.GetFields()) > len(sm.GetFields()) {
                        return nil, errors.Wrap(ErrMalformedElement, "fields 
number is more than expected")
diff --git a/banyand/stream/stream_write.go b/banyand/stream/stream_write.go
index 0d685be..5dac816 100644
--- a/banyand/stream/stream_write.go
+++ b/banyand/stream/stream_write.go
@@ -21,7 +21,6 @@ import (
        "github.com/pkg/errors"
        "github.com/prometheus/client_golang/prometheus"
        "github.com/prometheus/client_golang/prometheus/promauto"
-       "google.golang.org/protobuf/proto"
 
        "github.com/apache/skywalking-banyandb/api/common"
        streamv1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/stream/v1"
@@ -99,25 +98,12 @@ func (s *stream) write(shardID common.ShardID, 
seriesHashKey []byte, value *stre
                builder := wp.WriterBuilder().Time(t)
                size := 0
                for fi, family := range value.GetTagFamilies() {
-                       familySpec := sm.GetTagFamilies()[fi]
-                       if len(family.GetTags()) > len(familySpec.GetTags()) {
-                               return nil, errors.Wrap(ErrMalformedElement, 
"tag number is more than expected")
-                       }
-                       for ti, tag := range family.GetTags() {
-                               tagSpec := familySpec.GetTags()[ti]
-                               tType, isNull := pbv1.TagValueTypeConv(tag)
-                               if isNull {
-                                       continue
-                               }
-                               if tType != tagSpec.GetType() {
-                                       return nil, 
errors.Wrapf(ErrMalformedElement, "tag %s type is unexpected", 
tagSpec.GetName())
-                               }
-                       }
-                       bb, errMarshal := proto.Marshal(family)
+                       spec := sm.GetTagFamilies()[fi]
+                       bb, errMarshal := pbv1.EncodeFamily(spec, family)
                        if errMarshal != nil {
                                return nil, errMarshal
                        }
-                       
builder.Family(tsdb.Hash([]byte(sm.GetTagFamilies()[fi].GetName())), bb)
+                       builder.Family(tsdb.Hash([]byte(spec.GetName())), bb)
                        size += len(bb)
                }
                builder.Val([]byte(value.GetElementId()))
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 409876d..f781426 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -994,6 +994,7 @@ Subject defines which stream or measure would generate 
indices
 | ----- | ---- | ----- | ----------- |
 | name | [string](#string) |  |  |
 | type | [TagType](#banyandb-database-v1-TagType) |  |  |
+| indexed_only | [bool](#bool) |  | indexed_only indicates whether the tag is 
stored True: It&#39;s indexed only, but not stored False: it&#39;s stored and 
indexed |
 
 
 
diff --git a/pkg/pb/v1/metadata.go b/pkg/pb/v1/metadata.go
index 27c6773..3af667d 100644
--- a/pkg/pb/v1/metadata.go
+++ b/pkg/pb/v1/metadata.go
@@ -26,7 +26,7 @@ import (
        "github.com/apache/skywalking-banyandb/banyand/tsdb"
 )
 
-var ErrInvalidUnit = errors.New("Invalid interval rule's unit")
+var ErrInvalidUnit = errors.New("invalid interval rule's unit")
 
 func FindTagByName(families []*database_v1.TagFamilySpec, tagName string) 
(int, int, *database_v1.TagSpec) {
        for fi, family := range families {
diff --git a/pkg/pb/v1/write.go b/pkg/pb/v1/write.go
index fa5dd3c..834c44c 100644
--- a/pkg/pb/v1/write.go
+++ b/pkg/pb/v1/write.go
@@ -22,9 +22,11 @@ import (
        "time"
 
        "github.com/pkg/errors"
+       "google.golang.org/protobuf/proto"
        "google.golang.org/protobuf/types/known/timestamppb"
 
        commonv1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/common/v1"
+       databasev1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/database/v1"
        measurev1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/measure/v1"
        modelv1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/model/v1"
        streamv1 
"github.com/apache/skywalking-banyandb/api/proto/banyandb/stream/v1"
@@ -33,11 +35,13 @@ import (
 
 type ID string
 
-var strDelimiter = []byte("\n")
-
 var (
+       strDelimiter = []byte("\n")
+       NullTag      = &modelv1.TagValue{Value: &modelv1.TagValue_Null{}}
+
        ErrUnsupportedTagForIndexField = errors.New("the tag type(for example, 
null) can not be as the index field value")
        ErrNullValue                   = errors.New("the tag value is null")
+       ErrMalformedElement            = errors.New("element is malformed")
 )
 
 func MarshalIndexFieldValue(tagValue *modelv1.TagValue) ([]byte, error) {
@@ -335,3 +339,23 @@ func getField(field interface{}) *modelv1.FieldValue {
        }
        return nil
 }
+
+func EncodeFamily(familySpec *databasev1.TagFamilySpec, family 
*modelv1.TagFamilyForWrite) ([]byte, error) {
+       if len(family.GetTags()) > len(familySpec.GetTags()) {
+               return nil, errors.Wrap(ErrMalformedElement, "tag number is 
more than expected")
+       }
+       data := &modelv1.TagFamilyForWrite{}
+       for ti, tag := range family.GetTags() {
+               tagSpec := familySpec.GetTags()[ti]
+               tType, isNull := TagValueTypeConv(tag)
+               if !isNull && tType != tagSpec.GetType() {
+                       return nil, errors.Wrapf(ErrMalformedElement, "tag %s 
type is unexpected", tagSpec.GetName())
+               }
+               if tagSpec.IndexedOnly {
+                       data.Tags = append(data.Tags, NullTag)
+               } else {
+                       data.Tags = append(data.Tags, tag)
+               }
+       }
+       return proto.Marshal(data)
+}
diff --git a/pkg/test/stream/testdata/stream.json 
b/pkg/test/stream/testdata/stream.json
index 6a3f303..bb996a0 100644
--- a/pkg/test/stream/testdata/stream.json
+++ b/pkg/test/stream/testdata/stream.json
@@ -30,7 +30,8 @@
         },
         {
           "name": "service_instance_id",
-          "type": "TAG_TYPE_STRING"
+          "type": "TAG_TYPE_STRING",
+          "indexed_only": true
         },
         {
           "name": "endpoint_id",
diff --git a/test/cases/stream/input/indexed_only.yaml 
b/test/cases/stream/input/indexed_only.yaml
new file mode 100644
index 0000000..894b42d
--- /dev/null
+++ b/test/cases/stream/input/indexed_only.yaml
@@ -0,0 +1,31 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you 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.
+
+metadata:
+  group: "default"
+  name: "sw"
+projection:
+  tagFamilies:
+  - name: "searchable"
+    tags: ["trace_id", "service_instance_id"]
+criteria:
+  condition:
+    name: "service_instance_id"
+    op: "BINARY_OP_EQ"
+    value:
+      str:
+        value: "10.0.0.1_id"
\ No newline at end of file
diff --git a/test/cases/stream/stream.go b/test/cases/stream/stream.go
index b532d45..46d6817 100644
--- a/test/cases/stream/stream.go
+++ b/test/cases/stream/stream.go
@@ -114,6 +114,7 @@ var _ = g.DescribeTable("Scanning Streams", func(args 
helpers.Args) {
        g.Entry("logical expression", helpers.Args{Input: "logical", Duration: 
1 * time.Hour}),
        g.Entry("having", helpers.Args{Input: "having", Duration: 1 * 
time.Hour}),
        g.Entry("full text searching", helpers.Args{Input: "search", Duration: 
1 * time.Hour}),
+       g.Entry("indexed only tags", helpers.Args{Input: "indexed_only", 
Duration: 1 * time.Hour}),
 )
 
 //go:embed testdata/*.json
diff --git a/test/cases/stream/want/indexed_only.yaml 
b/test/cases/stream/want/indexed_only.yaml
new file mode 100644
index 0000000..b0ac9cf
--- /dev/null
+++ b/test/cases/stream/want/indexed_only.yaml
@@ -0,0 +1,51 @@
+# Licensed to Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright
+# ownership. Apache Software Foundation (ASF) licenses this file to you 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.
+
+elements:
+  - elementId: "0"
+    tagFamilies:
+    - name: searchable
+      tags:
+      - key: trace_id
+        value:
+          str:
+            value: "1"
+      - key: service_instance_id
+        value:
+          "null": null
+  - elementId: "2"
+    tagFamilies:
+    - name: searchable
+      tags:
+      - key: trace_id
+        value:
+          str:
+            value: "3"
+      - key: service_instance_id
+        value:
+          "null": null
+  - elementId: "4"
+    tagFamilies:
+    - name: searchable
+      tags:
+      - key: trace_id
+        value:
+          str:
+            value: "5"
+      - key: service_instance_id
+        value:
+          "null": null
\ No newline at end of file

Reply via email to