From 96df725236cc22df394f6ee606b5a9032f7480cb Mon Sep 17 00:00:00 2001 From: Cosmin Damian <17934949+cdamian@users.noreply.github.com> Date: Wed, 23 Nov 2022 20:32:35 +0100 Subject: [PATCH] Proto add full package name to import (#98) * proto: Add full package name to go package * make: Add protoc linter * make: Add help target * proto: Update go import path * example: Update example proto and fix tests * flatten: Remove lookup for outdated proto fields --- Makefile | 27 +- README.md | 8 +- examples/documents/example.pb.go | 3952 +++++++++++++++++++----------- examples/documents/example.proto | 2 +- go.mod | 3 +- go.sum | 11 +- proofs/flatten.go | 58 +- proofs/proto/proof.pb.go | 519 ++-- proofs/proto/proof.proto | 2 +- proofs/proto/salt.pb.go | 185 +- proofs/proto/salt.proto | 2 +- prototool.yaml | 12 - 12 files changed, 3030 insertions(+), 1751 deletions(-) delete mode 100644 prototool.yaml diff --git a/Makefile b/Makefile index f007701..ef1f728 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,24 @@ -lint-check: ## runs linters on go code - @gometalinter --disable-all --enable=golint --enable=goimports --enable=vet --enable=nakedret \ - --enable=staticcheck --vendor --skip=resources --skip=testingutils --skip=protobufs --deadline=1m ./...; +.PHONY: help install_protoc_deps proto-lint proto + +help: ## Show this help message. + @echo 'usage: make [target] ...' + @echo + @echo 'targets:' + @egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' + +install-protoc-deps: ## Installs all protobuf dependencies + @go install github.com/ckaznocha/protoc-gen-lint@0.2.4 + @go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0 + +proto-lint: ## Lint protos + @protoc --lint_out=. proofs/proto/*.proto + +proto: ## Compile protos + @protoc -Iproofs/proto \ + --go_out=paths=source_relative:proofs/proto \ + proofs/proto/*.proto + +proto-example: + @protoc -I./ \ + --go_out=paths=source_relative:. \ + examples/documents/example.proto \ No newline at end of file diff --git a/README.md b/README.md index bc25876..c9d3299 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,10 @@ See below code sample (`examples/simple.go`) for a usage example. For detailed u ## Development ### Building protobuf messages -If the protobuf messages are ever changed, the recommended procedure is to build them using prototools. Use -prototools version 1.3.0 and execute the command `prototol generate` to udpate both the example and the proofs -messages. +If the protobuf messages are ever changed, the recommended procedure is to build them via the targets provided in the [Makefile](Makefile). + +`make install_protoc_deps` to install the `protoc` deps. + +`make proto` to compile the proto fies. diff --git a/examples/documents/example.pb.go b/examples/documents/example.pb.go index 6c1b851..698e6c0 100644 --- a/examples/documents/example.pb.go +++ b/examples/documents/example.pb.go @@ -1,26 +1,26 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 // source: examples/documents/example.proto package documentspb import ( - fmt "fmt" - proto1 "github.com/centrifuge/precise-proofs/proofs/proto" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" + proto "github.com/centrifuge/precise-proofs/proofs/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Enum int32 @@ -29,1239 +29,1406 @@ const ( Enum_type_two Enum = 1 ) -var Enum_name = map[int32]string{ - 0: "type_one", - 1: "type_two", -} +// Enum value maps for Enum. +var ( + Enum_name = map[int32]string{ + 0: "type_one", + 1: "type_two", + } + Enum_value = map[string]int32{ + "type_one": 0, + "type_two": 1, + } +) -var Enum_value = map[string]int32{ - "type_one": 0, - "type_two": 1, +func (x Enum) Enum() *Enum { + p := new(Enum) + *p = x + return p } func (x Enum) String() string { - return proto.EnumName(Enum_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Enum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{0} +func (Enum) Descriptor() protoreflect.EnumDescriptor { + return file_examples_documents_example_proto_enumTypes[0].Descriptor() } -type ExampleDocument struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - Value1 int64 `protobuf:"varint,3,opt,name=value1,proto3" json:"value1,omitempty"` - Value2 int64 `protobuf:"varint,4,opt,name=value2,proto3" json:"value2,omitempty"` - ValueBytes1 []byte `protobuf:"bytes,5,opt,name=value_bytes1,json=valueBytes1,proto3" json:"value_bytes1,omitempty"` - ValueCamelCased []byte `protobuf:"bytes,6,opt,name=ValueCamelCased,proto3" json:"ValueCamelCased,omitempty"` - ValueNotIgnored []byte `protobuf:"bytes,7,opt,name=value_not_ignored,json=valueNotIgnored,proto3" json:"value_not_ignored,omitempty"` - ValueIgnored []byte `protobuf:"bytes,8,opt,name=value_ignored,json=valueIgnored,proto3" json:"value_ignored,omitempty"` - ValueNotHashed []byte `protobuf:"bytes,9,opt,name=value_not_hashed,json=valueNotHashed,proto3" json:"value_not_hashed,omitempty"` - EnumType Enum `protobuf:"varint,10,opt,name=enum_type,json=enumType,proto3,enum=documents.Enum" json:"enum_type,omitempty"` - ValueBool bool `protobuf:"varint,12,opt,name=valueBool,proto3" json:"valueBool,omitempty"` - Name *Name `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` - PaddingA string `protobuf:"bytes,14,opt,name=paddingA,proto3" json:"paddingA,omitempty"` - PaddingB []byte `protobuf:"bytes,15,opt,name=paddingB,proto3" json:"paddingB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,11,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExampleDocument) Reset() { *m = ExampleDocument{} } -func (m *ExampleDocument) String() string { return proto.CompactTextString(m) } -func (*ExampleDocument) ProtoMessage() {} -func (*ExampleDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{0} +func (Enum) Type() protoreflect.EnumType { + return &file_examples_documents_example_proto_enumTypes[0] } -func (m *ExampleDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExampleDocument.Unmarshal(m, b) +func (x Enum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *ExampleDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExampleDocument.Marshal(b, m, deterministic) + +// Deprecated: Use Enum.Descriptor instead. +func (Enum) EnumDescriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{0} } -func (m *ExampleDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExampleDocument.Merge(m, src) + +type ExampleDocument struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + Value1 int64 `protobuf:"varint,3,opt,name=value1,proto3" json:"value1,omitempty"` + Value2 int64 `protobuf:"varint,4,opt,name=value2,proto3" json:"value2,omitempty"` + ValueBytes1 []byte `protobuf:"bytes,5,opt,name=value_bytes1,json=valueBytes1,proto3" json:"value_bytes1,omitempty"` + ValueCamelCased []byte `protobuf:"bytes,6,opt,name=ValueCamelCased,proto3" json:"ValueCamelCased,omitempty"` + ValueNotIgnored []byte `protobuf:"bytes,7,opt,name=value_not_ignored,json=valueNotIgnored,proto3" json:"value_not_ignored,omitempty"` + ValueIgnored []byte `protobuf:"bytes,8,opt,name=value_ignored,json=valueIgnored,proto3" json:"value_ignored,omitempty"` + ValueNotHashed []byte `protobuf:"bytes,9,opt,name=value_not_hashed,json=valueNotHashed,proto3" json:"value_not_hashed,omitempty"` + EnumType Enum `protobuf:"varint,10,opt,name=enum_type,json=enumType,proto3,enum=documents.Enum" json:"enum_type,omitempty"` + ValueBool bool `protobuf:"varint,12,opt,name=valueBool,proto3" json:"valueBool,omitempty"` + Name *Name `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` + PaddingA string `protobuf:"bytes,14,opt,name=paddingA,proto3" json:"paddingA,omitempty"` + PaddingB []byte `protobuf:"bytes,15,opt,name=paddingB,proto3" json:"paddingB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,11,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *ExampleDocument) XXX_Size() int { - return xxx_messageInfo_ExampleDocument.Size(m) + +func (x *ExampleDocument) Reset() { + *x = ExampleDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExampleDocument) XXX_DiscardUnknown() { - xxx_messageInfo_ExampleDocument.DiscardUnknown(m) + +func (x *ExampleDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ExampleDocument proto.InternalMessageInfo +func (*ExampleDocument) ProtoMessage() {} -func (m *ExampleDocument) GetValueA() string { - if m != nil { - return m.ValueA +func (x *ExampleDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleDocument.ProtoReflect.Descriptor instead. +func (*ExampleDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{0} +} + +func (x *ExampleDocument) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *ExampleDocument) GetValueB() string { - if m != nil { - return m.ValueB +func (x *ExampleDocument) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *ExampleDocument) GetValue1() int64 { - if m != nil { - return m.Value1 +func (x *ExampleDocument) GetValue1() int64 { + if x != nil { + return x.Value1 } return 0 } -func (m *ExampleDocument) GetValue2() int64 { - if m != nil { - return m.Value2 +func (x *ExampleDocument) GetValue2() int64 { + if x != nil { + return x.Value2 } return 0 } -func (m *ExampleDocument) GetValueBytes1() []byte { - if m != nil { - return m.ValueBytes1 +func (x *ExampleDocument) GetValueBytes1() []byte { + if x != nil { + return x.ValueBytes1 } return nil } -func (m *ExampleDocument) GetValueCamelCased() []byte { - if m != nil { - return m.ValueCamelCased +func (x *ExampleDocument) GetValueCamelCased() []byte { + if x != nil { + return x.ValueCamelCased } return nil } -func (m *ExampleDocument) GetValueNotIgnored() []byte { - if m != nil { - return m.ValueNotIgnored +func (x *ExampleDocument) GetValueNotIgnored() []byte { + if x != nil { + return x.ValueNotIgnored } return nil } -func (m *ExampleDocument) GetValueIgnored() []byte { - if m != nil { - return m.ValueIgnored +func (x *ExampleDocument) GetValueIgnored() []byte { + if x != nil { + return x.ValueIgnored } return nil } -func (m *ExampleDocument) GetValueNotHashed() []byte { - if m != nil { - return m.ValueNotHashed +func (x *ExampleDocument) GetValueNotHashed() []byte { + if x != nil { + return x.ValueNotHashed } return nil } -func (m *ExampleDocument) GetEnumType() Enum { - if m != nil { - return m.EnumType +func (x *ExampleDocument) GetEnumType() Enum { + if x != nil { + return x.EnumType } return Enum_type_one } -func (m *ExampleDocument) GetValueBool() bool { - if m != nil { - return m.ValueBool +func (x *ExampleDocument) GetValueBool() bool { + if x != nil { + return x.ValueBool } return false } -func (m *ExampleDocument) GetName() *Name { - if m != nil { - return m.Name +func (x *ExampleDocument) GetName() *Name { + if x != nil { + return x.Name } return nil } -func (m *ExampleDocument) GetPaddingA() string { - if m != nil { - return m.PaddingA +func (x *ExampleDocument) GetPaddingA() string { + if x != nil { + return x.PaddingA } return "" } -func (m *ExampleDocument) GetPaddingB() []byte { - if m != nil { - return m.PaddingB +func (x *ExampleDocument) GetPaddingB() []byte { + if x != nil { + return x.PaddingB } return nil } -func (m *ExampleDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *ExampleDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type AllFieldTypes struct { - StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` - TimeStampValue *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time_stamp_value,json=timeStampValue,proto3" json:"time_stamp_value,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AllFieldTypes) Reset() { *m = AllFieldTypes{} } -func (m *AllFieldTypes) String() string { return proto.CompactTextString(m) } -func (*AllFieldTypes) ProtoMessage() {} -func (*AllFieldTypes) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{1} + StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` + TimeStampValue *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time_stamp_value,json=timeStampValue,proto3" json:"time_stamp_value,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *AllFieldTypes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AllFieldTypes.Unmarshal(m, b) -} -func (m *AllFieldTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AllFieldTypes.Marshal(b, m, deterministic) -} -func (m *AllFieldTypes) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllFieldTypes.Merge(m, src) +func (x *AllFieldTypes) Reset() { + *x = AllFieldTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AllFieldTypes) XXX_Size() int { - return xxx_messageInfo_AllFieldTypes.Size(m) + +func (x *AllFieldTypes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AllFieldTypes) XXX_DiscardUnknown() { - xxx_messageInfo_AllFieldTypes.DiscardUnknown(m) + +func (*AllFieldTypes) ProtoMessage() {} + +func (x *AllFieldTypes) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AllFieldTypes proto.InternalMessageInfo +// Deprecated: Use AllFieldTypes.ProtoReflect.Descriptor instead. +func (*AllFieldTypes) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{1} +} -func (m *AllFieldTypes) GetStringValue() string { - if m != nil { - return m.StringValue +func (x *AllFieldTypes) GetStringValue() string { + if x != nil { + return x.StringValue } return "" } -func (m *AllFieldTypes) GetTimeStampValue() *timestamp.Timestamp { - if m != nil { - return m.TimeStampValue +func (x *AllFieldTypes) GetTimeStampValue() *timestamppb.Timestamp { + if x != nil { + return x.TimeStampValue } return nil } -func (m *AllFieldTypes) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *AllFieldTypes) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type AllFieldTypesSalts struct { - StringValue []byte `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` - TimeStampValue []byte `protobuf:"bytes,2,opt,name=time_stamp_value,json=timeStampValue,proto3" json:"time_stamp_value,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AllFieldTypesSalts) Reset() { *m = AllFieldTypesSalts{} } -func (m *AllFieldTypesSalts) String() string { return proto.CompactTextString(m) } -func (*AllFieldTypesSalts) ProtoMessage() {} -func (*AllFieldTypesSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{2} + StringValue []byte `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` + TimeStampValue []byte `protobuf:"bytes,2,opt,name=time_stamp_value,json=timeStampValue,proto3" json:"time_stamp_value,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *AllFieldTypesSalts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AllFieldTypesSalts.Unmarshal(m, b) -} -func (m *AllFieldTypesSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AllFieldTypesSalts.Marshal(b, m, deterministic) -} -func (m *AllFieldTypesSalts) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllFieldTypesSalts.Merge(m, src) +func (x *AllFieldTypesSalts) Reset() { + *x = AllFieldTypesSalts{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AllFieldTypesSalts) XXX_Size() int { - return xxx_messageInfo_AllFieldTypesSalts.Size(m) + +func (x *AllFieldTypesSalts) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AllFieldTypesSalts) XXX_DiscardUnknown() { - xxx_messageInfo_AllFieldTypesSalts.DiscardUnknown(m) + +func (*AllFieldTypesSalts) ProtoMessage() {} + +func (x *AllFieldTypesSalts) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AllFieldTypesSalts proto.InternalMessageInfo +// Deprecated: Use AllFieldTypesSalts.ProtoReflect.Descriptor instead. +func (*AllFieldTypesSalts) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{2} +} -func (m *AllFieldTypesSalts) GetStringValue() []byte { - if m != nil { - return m.StringValue +func (x *AllFieldTypesSalts) GetStringValue() []byte { + if x != nil { + return x.StringValue } return nil } -func (m *AllFieldTypesSalts) GetTimeStampValue() []byte { - if m != nil { - return m.TimeStampValue +func (x *AllFieldTypesSalts) GetTimeStampValue() []byte { + if x != nil { + return x.TimeStampValue } return nil } -func (m *AllFieldTypesSalts) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *AllFieldTypesSalts) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type SimpleItem struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleItem) Reset() { *m = SimpleItem{} } -func (m *SimpleItem) String() string { return proto.CompactTextString(m) } -func (*SimpleItem) ProtoMessage() {} -func (*SimpleItem) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{3} + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` } -func (m *SimpleItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleItem.Unmarshal(m, b) -} -func (m *SimpleItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleItem.Marshal(b, m, deterministic) -} -func (m *SimpleItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleItem.Merge(m, src) +func (x *SimpleItem) Reset() { + *x = SimpleItem{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleItem) XXX_Size() int { - return xxx_messageInfo_SimpleItem.Size(m) + +func (x *SimpleItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleItem) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleItem.DiscardUnknown(m) + +func (*SimpleItem) ProtoMessage() {} + +func (x *SimpleItem) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleItem proto.InternalMessageInfo +// Deprecated: Use SimpleItem.ProtoReflect.Descriptor instead. +func (*SimpleItem) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{3} +} -func (m *SimpleItem) GetValueA() string { - if m != nil { - return m.ValueA +func (x *SimpleItem) GetValueA() string { + if x != nil { + return x.ValueA } return "" } type RepeatedItem struct { - ValueA []*SimpleItem `protobuf:"bytes,1,rep,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RepeatedItem) Reset() { *m = RepeatedItem{} } -func (m *RepeatedItem) String() string { return proto.CompactTextString(m) } -func (*RepeatedItem) ProtoMessage() {} -func (*RepeatedItem) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{4} + ValueA []*SimpleItem `protobuf:"bytes,1,rep,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *RepeatedItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepeatedItem.Unmarshal(m, b) -} -func (m *RepeatedItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepeatedItem.Marshal(b, m, deterministic) -} -func (m *RepeatedItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepeatedItem.Merge(m, src) +func (x *RepeatedItem) Reset() { + *x = RepeatedItem{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepeatedItem) XXX_Size() int { - return xxx_messageInfo_RepeatedItem.Size(m) + +func (x *RepeatedItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepeatedItem) XXX_DiscardUnknown() { - xxx_messageInfo_RepeatedItem.DiscardUnknown(m) + +func (*RepeatedItem) ProtoMessage() {} + +func (x *RepeatedItem) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepeatedItem proto.InternalMessageInfo +// Deprecated: Use RepeatedItem.ProtoReflect.Descriptor instead. +func (*RepeatedItem) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{4} +} -func (m *RepeatedItem) GetValueA() []*SimpleItem { - if m != nil { - return m.ValueA +func (x *RepeatedItem) GetValueA() []*SimpleItem { + if x != nil { + return x.ValueA } return nil } -func (m *RepeatedItem) GetValueB() string { - if m != nil { - return m.ValueB +func (x *RepeatedItem) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *RepeatedItem) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *RepeatedItem) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type SimpleMap struct { - Value map[int32]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleMap) Reset() { *m = SimpleMap{} } -func (m *SimpleMap) String() string { return proto.CompactTextString(m) } -func (*SimpleMap) ProtoMessage() {} -func (*SimpleMap) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{5} + Value map[int32]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *SimpleMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleMap.Unmarshal(m, b) -} -func (m *SimpleMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleMap.Marshal(b, m, deterministic) -} -func (m *SimpleMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleMap.Merge(m, src) +func (x *SimpleMap) Reset() { + *x = SimpleMap{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleMap) XXX_Size() int { - return xxx_messageInfo_SimpleMap.Size(m) + +func (x *SimpleMap) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleMap) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleMap.DiscardUnknown(m) + +func (*SimpleMap) ProtoMessage() {} + +func (x *SimpleMap) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleMap proto.InternalMessageInfo +// Deprecated: Use SimpleMap.ProtoReflect.Descriptor instead. +func (*SimpleMap) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{5} +} -func (m *SimpleMap) GetValue() map[int32]string { - if m != nil { - return m.Value +func (x *SimpleMap) GetValue() map[int32]string { + if x != nil { + return x.Value } return nil } type SimpleStringMap struct { - Value map[string]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleStringMap) Reset() { *m = SimpleStringMap{} } -func (m *SimpleStringMap) String() string { return proto.CompactTextString(m) } -func (*SimpleStringMap) ProtoMessage() {} -func (*SimpleStringMap) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{6} + Value map[string]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *SimpleStringMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleStringMap.Unmarshal(m, b) -} -func (m *SimpleStringMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleStringMap.Marshal(b, m, deterministic) -} -func (m *SimpleStringMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleStringMap.Merge(m, src) +func (x *SimpleStringMap) Reset() { + *x = SimpleStringMap{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleStringMap) XXX_Size() int { - return xxx_messageInfo_SimpleStringMap.Size(m) + +func (x *SimpleStringMap) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleStringMap) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleStringMap.DiscardUnknown(m) + +func (*SimpleStringMap) ProtoMessage() {} + +func (x *SimpleStringMap) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleStringMap proto.InternalMessageInfo +// Deprecated: Use SimpleStringMap.ProtoReflect.Descriptor instead. +func (*SimpleStringMap) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{6} +} -func (m *SimpleStringMap) GetValue() map[string]string { - if m != nil { - return m.Value +func (x *SimpleStringMap) GetValue() map[string]string { + if x != nil { + return x.Value } return nil } -func (m *SimpleStringMap) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *SimpleStringMap) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type NestedMap struct { - Value map[int32]*SimpleMap `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NestedMap) Reset() { *m = NestedMap{} } -func (m *NestedMap) String() string { return proto.CompactTextString(m) } -func (*NestedMap) ProtoMessage() {} -func (*NestedMap) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{7} + Value map[int32]*SimpleMap `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *NestedMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NestedMap.Unmarshal(m, b) -} -func (m *NestedMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NestedMap.Marshal(b, m, deterministic) -} -func (m *NestedMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_NestedMap.Merge(m, src) +func (x *NestedMap) Reset() { + *x = NestedMap{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NestedMap) XXX_Size() int { - return xxx_messageInfo_NestedMap.Size(m) + +func (x *NestedMap) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NestedMap) XXX_DiscardUnknown() { - xxx_messageInfo_NestedMap.DiscardUnknown(m) + +func (*NestedMap) ProtoMessage() {} + +func (x *NestedMap) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NestedMap proto.InternalMessageInfo +// Deprecated: Use NestedMap.ProtoReflect.Descriptor instead. +func (*NestedMap) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{7} +} -func (m *NestedMap) GetValue() map[int32]*SimpleMap { - if m != nil { - return m.Value +func (x *NestedMap) GetValue() map[int32]*SimpleMap { + if x != nil { + return x.Value } return nil } -func (m *NestedMap) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *NestedMap) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type SimpleEntry struct { - EntryKey string `protobuf:"bytes,1,opt,name=entry_key,json=entryKey,proto3" json:"entry_key,omitempty"` - EntryValue string `protobuf:"bytes,2,opt,name=entry_value,json=entryValue,proto3" json:"entry_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleEntry) Reset() { *m = SimpleEntry{} } -func (m *SimpleEntry) String() string { return proto.CompactTextString(m) } -func (*SimpleEntry) ProtoMessage() {} -func (*SimpleEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{8} + EntryKey string `protobuf:"bytes,1,opt,name=entry_key,json=entryKey,proto3" json:"entry_key,omitempty"` + EntryValue string `protobuf:"bytes,2,opt,name=entry_value,json=entryValue,proto3" json:"entry_value,omitempty"` } -func (m *SimpleEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleEntry.Unmarshal(m, b) -} -func (m *SimpleEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleEntry.Marshal(b, m, deterministic) -} -func (m *SimpleEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleEntry.Merge(m, src) +func (x *SimpleEntry) Reset() { + *x = SimpleEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleEntry) XXX_Size() int { - return xxx_messageInfo_SimpleEntry.Size(m) + +func (x *SimpleEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleEntry) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleEntry.DiscardUnknown(m) + +func (*SimpleEntry) ProtoMessage() {} + +func (x *SimpleEntry) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleEntry proto.InternalMessageInfo +// Deprecated: Use SimpleEntry.ProtoReflect.Descriptor instead. +func (*SimpleEntry) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{8} +} -func (m *SimpleEntry) GetEntryKey() string { - if m != nil { - return m.EntryKey +func (x *SimpleEntry) GetEntryKey() string { + if x != nil { + return x.EntryKey } return "" } -func (m *SimpleEntry) GetEntryValue() string { - if m != nil { - return m.EntryValue +func (x *SimpleEntry) GetEntryValue() string { + if x != nil { + return x.EntryValue } return "" } type SimpleEntries struct { - Entries []*SimpleEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleEntries) Reset() { *m = SimpleEntries{} } -func (m *SimpleEntries) String() string { return proto.CompactTextString(m) } -func (*SimpleEntries) ProtoMessage() {} -func (*SimpleEntries) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{9} + Entries []*SimpleEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *SimpleEntries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleEntries.Unmarshal(m, b) -} -func (m *SimpleEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleEntries.Marshal(b, m, deterministic) -} -func (m *SimpleEntries) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleEntries.Merge(m, src) +func (x *SimpleEntries) Reset() { + *x = SimpleEntries{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleEntries) XXX_Size() int { - return xxx_messageInfo_SimpleEntries.Size(m) + +func (x *SimpleEntries) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleEntries) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleEntries.DiscardUnknown(m) + +func (*SimpleEntries) ProtoMessage() {} + +func (x *SimpleEntries) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleEntries proto.InternalMessageInfo +// Deprecated: Use SimpleEntries.ProtoReflect.Descriptor instead. +func (*SimpleEntries) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{9} +} -func (m *SimpleEntries) GetEntries() []*SimpleEntry { - if m != nil { - return m.Entries +func (x *SimpleEntries) GetEntries() []*SimpleEntry { + if x != nil { + return x.Entries } return nil } -func (m *SimpleEntries) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *SimpleEntries) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type Entry struct { - EntryKey string `protobuf:"bytes,1,opt,name=entry_key,json=entryKey,proto3" json:"entry_key,omitempty"` - ValueA string `protobuf:"bytes,2,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB []byte `protobuf:"bytes,3,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC int64 `protobuf:"varint,4,opt,name=valueC,proto3" json:"valueC,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Entry) Reset() { *m = Entry{} } -func (m *Entry) String() string { return proto.CompactTextString(m) } -func (*Entry) ProtoMessage() {} -func (*Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{10} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Entry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Entry.Unmarshal(m, b) -} -func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Entry.Marshal(b, m, deterministic) + EntryKey string `protobuf:"bytes,1,opt,name=entry_key,json=entryKey,proto3" json:"entry_key,omitempty"` + ValueA string `protobuf:"bytes,2,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB []byte `protobuf:"bytes,3,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC int64 `protobuf:"varint,4,opt,name=valueC,proto3" json:"valueC,omitempty"` } -func (m *Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_Entry.Merge(m, src) + +func (x *Entry) Reset() { + *x = Entry{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Entry) XXX_Size() int { - return xxx_messageInfo_Entry.Size(m) + +func (x *Entry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Entry) XXX_DiscardUnknown() { - xxx_messageInfo_Entry.DiscardUnknown(m) + +func (*Entry) ProtoMessage() {} + +func (x *Entry) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Entry proto.InternalMessageInfo +// Deprecated: Use Entry.ProtoReflect.Descriptor instead. +func (*Entry) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{10} +} -func (m *Entry) GetEntryKey() string { - if m != nil { - return m.EntryKey +func (x *Entry) GetEntryKey() string { + if x != nil { + return x.EntryKey } return "" } -func (m *Entry) GetValueA() string { - if m != nil { - return m.ValueA +func (x *Entry) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *Entry) GetValueB() []byte { - if m != nil { - return m.ValueB +func (x *Entry) GetValueB() []byte { + if x != nil { + return x.ValueB } return nil } -func (m *Entry) GetValueC() int64 { - if m != nil { - return m.ValueC +func (x *Entry) GetValueC() int64 { + if x != nil { + return x.ValueC } return 0 } type Entries struct { - Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Entries) Reset() { *m = Entries{} } -func (m *Entries) String() string { return proto.CompactTextString(m) } -func (*Entries) ProtoMessage() {} -func (*Entries) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{11} + Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *Entries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Entries.Unmarshal(m, b) -} -func (m *Entries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Entries.Marshal(b, m, deterministic) -} -func (m *Entries) XXX_Merge(src proto.Message) { - xxx_messageInfo_Entries.Merge(m, src) +func (x *Entries) Reset() { + *x = Entries{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Entries) XXX_Size() int { - return xxx_messageInfo_Entries.Size(m) + +func (x *Entries) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Entries) XXX_DiscardUnknown() { - xxx_messageInfo_Entries.DiscardUnknown(m) + +func (*Entries) ProtoMessage() {} + +func (x *Entries) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Entries proto.InternalMessageInfo +// Deprecated: Use Entries.ProtoReflect.Descriptor instead. +func (*Entries) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{11} +} -func (m *Entries) GetEntries() []*Entry { - if m != nil { - return m.Entries +func (x *Entries) GetEntries() []*Entry { + if x != nil { + return x.Entries } return nil } -func (m *Entries) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *Entries) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type BytesKeyEntry struct { - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BytesKeyEntry) Reset() { *m = BytesKeyEntry{} } -func (m *BytesKeyEntry) String() string { return proto.CompactTextString(m) } -func (*BytesKeyEntry) ProtoMessage() {} -func (*BytesKeyEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{12} + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *BytesKeyEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BytesKeyEntry.Unmarshal(m, b) -} -func (m *BytesKeyEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BytesKeyEntry.Marshal(b, m, deterministic) -} -func (m *BytesKeyEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_BytesKeyEntry.Merge(m, src) +func (x *BytesKeyEntry) Reset() { + *x = BytesKeyEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BytesKeyEntry) XXX_Size() int { - return xxx_messageInfo_BytesKeyEntry.Size(m) + +func (x *BytesKeyEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BytesKeyEntry) XXX_DiscardUnknown() { - xxx_messageInfo_BytesKeyEntry.DiscardUnknown(m) + +func (*BytesKeyEntry) ProtoMessage() {} + +func (x *BytesKeyEntry) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BytesKeyEntry proto.InternalMessageInfo +// Deprecated: Use BytesKeyEntry.ProtoReflect.Descriptor instead. +func (*BytesKeyEntry) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{12} +} -func (m *BytesKeyEntry) GetAddress() []byte { - if m != nil { - return m.Address +func (x *BytesKeyEntry) GetAddress() []byte { + if x != nil { + return x.Address } return nil } -func (m *BytesKeyEntry) GetValue() string { - if m != nil { - return m.Value +func (x *BytesKeyEntry) GetValue() string { + if x != nil { + return x.Value } return "" } type BytesKeyEntries struct { - Entries []*BytesKeyEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BytesKeyEntries) Reset() { *m = BytesKeyEntries{} } -func (m *BytesKeyEntries) String() string { return proto.CompactTextString(m) } -func (*BytesKeyEntries) ProtoMessage() {} -func (*BytesKeyEntries) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{13} + Entries []*BytesKeyEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *BytesKeyEntries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BytesKeyEntries.Unmarshal(m, b) -} -func (m *BytesKeyEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BytesKeyEntries.Marshal(b, m, deterministic) -} -func (m *BytesKeyEntries) XXX_Merge(src proto.Message) { - xxx_messageInfo_BytesKeyEntries.Merge(m, src) +func (x *BytesKeyEntries) Reset() { + *x = BytesKeyEntries{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BytesKeyEntries) XXX_Size() int { - return xxx_messageInfo_BytesKeyEntries.Size(m) + +func (x *BytesKeyEntries) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BytesKeyEntries) XXX_DiscardUnknown() { - xxx_messageInfo_BytesKeyEntries.DiscardUnknown(m) + +func (*BytesKeyEntries) ProtoMessage() {} + +func (x *BytesKeyEntries) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BytesKeyEntries proto.InternalMessageInfo +// Deprecated: Use BytesKeyEntries.ProtoReflect.Descriptor instead. +func (*BytesKeyEntries) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{13} +} -func (m *BytesKeyEntries) GetEntries() []*BytesKeyEntry { - if m != nil { - return m.Entries +func (x *BytesKeyEntries) GetEntries() []*BytesKeyEntry { + if x != nil { + return x.Entries } return nil } -func (m *BytesKeyEntries) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *BytesKeyEntries) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type TwoLevelRepeatedDocument struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB []*RepeatedItem `protobuf:"bytes,2,rep,name=valueB,proto3" json:"valueB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TwoLevelRepeatedDocument) Reset() { *m = TwoLevelRepeatedDocument{} } -func (m *TwoLevelRepeatedDocument) String() string { return proto.CompactTextString(m) } -func (*TwoLevelRepeatedDocument) ProtoMessage() {} -func (*TwoLevelRepeatedDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{14} + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB []*RepeatedItem `protobuf:"bytes,2,rep,name=valueB,proto3" json:"valueB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *TwoLevelRepeatedDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TwoLevelRepeatedDocument.Unmarshal(m, b) -} -func (m *TwoLevelRepeatedDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TwoLevelRepeatedDocument.Marshal(b, m, deterministic) -} -func (m *TwoLevelRepeatedDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TwoLevelRepeatedDocument.Merge(m, src) +func (x *TwoLevelRepeatedDocument) Reset() { + *x = TwoLevelRepeatedDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TwoLevelRepeatedDocument) XXX_Size() int { - return xxx_messageInfo_TwoLevelRepeatedDocument.Size(m) + +func (x *TwoLevelRepeatedDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TwoLevelRepeatedDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TwoLevelRepeatedDocument.DiscardUnknown(m) + +func (*TwoLevelRepeatedDocument) ProtoMessage() {} + +func (x *TwoLevelRepeatedDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TwoLevelRepeatedDocument proto.InternalMessageInfo +// Deprecated: Use TwoLevelRepeatedDocument.ProtoReflect.Descriptor instead. +func (*TwoLevelRepeatedDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{14} +} -func (m *TwoLevelRepeatedDocument) GetValueA() string { - if m != nil { - return m.ValueA +func (x *TwoLevelRepeatedDocument) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *TwoLevelRepeatedDocument) GetValueB() []*RepeatedItem { - if m != nil { - return m.ValueB +func (x *TwoLevelRepeatedDocument) GetValueB() []*RepeatedItem { + if x != nil { + return x.ValueB } return nil } -func (m *TwoLevelRepeatedDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *TwoLevelRepeatedDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type SimpleRepeatedDocument struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC []string `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,4,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SimpleRepeatedDocument) Reset() { *m = SimpleRepeatedDocument{} } -func (m *SimpleRepeatedDocument) String() string { return proto.CompactTextString(m) } -func (*SimpleRepeatedDocument) ProtoMessage() {} -func (*SimpleRepeatedDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{15} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleRepeatedDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleRepeatedDocument.Unmarshal(m, b) + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC []string `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,4,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *SimpleRepeatedDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleRepeatedDocument.Marshal(b, m, deterministic) -} -func (m *SimpleRepeatedDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleRepeatedDocument.Merge(m, src) + +func (x *SimpleRepeatedDocument) Reset() { + *x = SimpleRepeatedDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleRepeatedDocument) XXX_Size() int { - return xxx_messageInfo_SimpleRepeatedDocument.Size(m) + +func (x *SimpleRepeatedDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleRepeatedDocument) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleRepeatedDocument.DiscardUnknown(m) + +func (*SimpleRepeatedDocument) ProtoMessage() {} + +func (x *SimpleRepeatedDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleRepeatedDocument proto.InternalMessageInfo +// Deprecated: Use SimpleRepeatedDocument.ProtoReflect.Descriptor instead. +func (*SimpleRepeatedDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{15} +} -func (m *SimpleRepeatedDocument) GetValueA() string { - if m != nil { - return m.ValueA +func (x *SimpleRepeatedDocument) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *SimpleRepeatedDocument) GetValueB() string { - if m != nil { - return m.ValueB +func (x *SimpleRepeatedDocument) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *SimpleRepeatedDocument) GetValueC() []string { - if m != nil { - return m.ValueC +func (x *SimpleRepeatedDocument) GetValueC() []string { + if x != nil { + return x.ValueC } return nil } -func (m *SimpleRepeatedDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *SimpleRepeatedDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type SimpleMapDocument struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC map[string]string `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ValueD map[int32]string `protobuf:"bytes,4,rep,name=valueD,proto3" json:"valueD,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Salts []*proto1.Salt `protobuf:"bytes,5,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SimpleMapDocument) Reset() { *m = SimpleMapDocument{} } -func (m *SimpleMapDocument) String() string { return proto.CompactTextString(m) } -func (*SimpleMapDocument) ProtoMessage() {} -func (*SimpleMapDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{16} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleMapDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleMapDocument.Unmarshal(m, b) -} -func (m *SimpleMapDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleMapDocument.Marshal(b, m, deterministic) + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC map[string]string `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ValueD map[int32]string `protobuf:"bytes,4,rep,name=valueD,proto3" json:"valueD,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Salts []*proto.Salt `protobuf:"bytes,5,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *SimpleMapDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleMapDocument.Merge(m, src) + +func (x *SimpleMapDocument) Reset() { + *x = SimpleMapDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleMapDocument) XXX_Size() int { - return xxx_messageInfo_SimpleMapDocument.Size(m) + +func (x *SimpleMapDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleMapDocument) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleMapDocument.DiscardUnknown(m) + +func (*SimpleMapDocument) ProtoMessage() {} + +func (x *SimpleMapDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleMapDocument proto.InternalMessageInfo +// Deprecated: Use SimpleMapDocument.ProtoReflect.Descriptor instead. +func (*SimpleMapDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{16} +} -func (m *SimpleMapDocument) GetValueA() string { - if m != nil { - return m.ValueA +func (x *SimpleMapDocument) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *SimpleMapDocument) GetValueB() string { - if m != nil { - return m.ValueB +func (x *SimpleMapDocument) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *SimpleMapDocument) GetValueC() map[string]string { - if m != nil { - return m.ValueC +func (x *SimpleMapDocument) GetValueC() map[string]string { + if x != nil { + return x.ValueC } return nil } -func (m *SimpleMapDocument) GetValueD() map[int32]string { - if m != nil { - return m.ValueD +func (x *SimpleMapDocument) GetValueD() map[int32]string { + if x != nil { + return x.ValueD } return nil } -func (m *SimpleMapDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *SimpleMapDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type TwoLevelItem struct { - ValueA *SimpleItem `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TwoLevelItem) Reset() { *m = TwoLevelItem{} } -func (m *TwoLevelItem) String() string { return proto.CompactTextString(m) } -func (*TwoLevelItem) ProtoMessage() {} -func (*TwoLevelItem) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{17} + ValueA *SimpleItem `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *TwoLevelItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TwoLevelItem.Unmarshal(m, b) -} -func (m *TwoLevelItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TwoLevelItem.Marshal(b, m, deterministic) -} -func (m *TwoLevelItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_TwoLevelItem.Merge(m, src) +func (x *TwoLevelItem) Reset() { + *x = TwoLevelItem{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TwoLevelItem) XXX_Size() int { - return xxx_messageInfo_TwoLevelItem.Size(m) + +func (x *TwoLevelItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TwoLevelItem) XXX_DiscardUnknown() { - xxx_messageInfo_TwoLevelItem.DiscardUnknown(m) + +func (*TwoLevelItem) ProtoMessage() {} + +func (x *TwoLevelItem) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TwoLevelItem proto.InternalMessageInfo +// Deprecated: Use TwoLevelItem.ProtoReflect.Descriptor instead. +func (*TwoLevelItem) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{17} +} -func (m *TwoLevelItem) GetValueA() *SimpleItem { - if m != nil { - return m.ValueA +func (x *TwoLevelItem) GetValueA() *SimpleItem { + if x != nil { + return x.ValueA } return nil } -func (m *TwoLevelItem) GetValueB() string { - if m != nil { - return m.ValueB +func (x *TwoLevelItem) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *TwoLevelItem) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *TwoLevelItem) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type NestedRepeatedDocument struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC []*SimpleItem `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty"` - ValueD *TwoLevelItem `protobuf:"bytes,4,opt,name=valueD,proto3" json:"valueD,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,5,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NestedRepeatedDocument) Reset() { *m = NestedRepeatedDocument{} } -func (m *NestedRepeatedDocument) String() string { return proto.CompactTextString(m) } -func (*NestedRepeatedDocument) ProtoMessage() {} -func (*NestedRepeatedDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{18} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NestedRepeatedDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NestedRepeatedDocument.Unmarshal(m, b) + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB string `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC []*SimpleItem `protobuf:"bytes,3,rep,name=valueC,proto3" json:"valueC,omitempty"` + ValueD *TwoLevelItem `protobuf:"bytes,4,opt,name=valueD,proto3" json:"valueD,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,5,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *NestedRepeatedDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NestedRepeatedDocument.Marshal(b, m, deterministic) -} -func (m *NestedRepeatedDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_NestedRepeatedDocument.Merge(m, src) + +func (x *NestedRepeatedDocument) Reset() { + *x = NestedRepeatedDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NestedRepeatedDocument) XXX_Size() int { - return xxx_messageInfo_NestedRepeatedDocument.Size(m) + +func (x *NestedRepeatedDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NestedRepeatedDocument) XXX_DiscardUnknown() { - xxx_messageInfo_NestedRepeatedDocument.DiscardUnknown(m) + +func (*NestedRepeatedDocument) ProtoMessage() {} + +func (x *NestedRepeatedDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NestedRepeatedDocument proto.InternalMessageInfo +// Deprecated: Use NestedRepeatedDocument.ProtoReflect.Descriptor instead. +func (*NestedRepeatedDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{18} +} -func (m *NestedRepeatedDocument) GetValueA() string { - if m != nil { - return m.ValueA +func (x *NestedRepeatedDocument) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *NestedRepeatedDocument) GetValueB() string { - if m != nil { - return m.ValueB +func (x *NestedRepeatedDocument) GetValueB() string { + if x != nil { + return x.ValueB } return "" } -func (m *NestedRepeatedDocument) GetValueC() []*SimpleItem { - if m != nil { - return m.ValueC +func (x *NestedRepeatedDocument) GetValueC() []*SimpleItem { + if x != nil { + return x.ValueC } return nil } -func (m *NestedRepeatedDocument) GetValueD() *TwoLevelItem { - if m != nil { - return m.ValueD +func (x *NestedRepeatedDocument) GetValueD() *TwoLevelItem { + if x != nil { + return x.ValueD } return nil } -func (m *NestedRepeatedDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *NestedRepeatedDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type InvalidHashedFieldDocument struct { - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *InvalidHashedFieldDocument) Reset() { *m = InvalidHashedFieldDocument{} } -func (m *InvalidHashedFieldDocument) String() string { return proto.CompactTextString(m) } -func (*InvalidHashedFieldDocument) ProtoMessage() {} -func (*InvalidHashedFieldDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{19} + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,2,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *InvalidHashedFieldDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidHashedFieldDocument.Unmarshal(m, b) -} -func (m *InvalidHashedFieldDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidHashedFieldDocument.Marshal(b, m, deterministic) -} -func (m *InvalidHashedFieldDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidHashedFieldDocument.Merge(m, src) +func (x *InvalidHashedFieldDocument) Reset() { + *x = InvalidHashedFieldDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InvalidHashedFieldDocument) XXX_Size() int { - return xxx_messageInfo_InvalidHashedFieldDocument.Size(m) + +func (x *InvalidHashedFieldDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InvalidHashedFieldDocument) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidHashedFieldDocument.DiscardUnknown(m) + +func (*InvalidHashedFieldDocument) ProtoMessage() {} + +func (x *InvalidHashedFieldDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InvalidHashedFieldDocument proto.InternalMessageInfo +// Deprecated: Use InvalidHashedFieldDocument.ProtoReflect.Descriptor instead. +func (*InvalidHashedFieldDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{19} +} -func (m *InvalidHashedFieldDocument) GetValue() string { - if m != nil { - return m.Value +func (x *InvalidHashedFieldDocument) GetValue() string { + if x != nil { + return x.Value } return "" } -func (m *InvalidHashedFieldDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *InvalidHashedFieldDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type OneofSample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ValueA int32 `protobuf:"varint,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - // Types that are valid to be assigned to OneofBlock: + // Types that are assignable to OneofBlock: // *OneofSample_ValueB // *OneofSample_ValueC // *OneofSample_ValueD - OneofBlock isOneofSample_OneofBlock `protobuf_oneof:"oneofBlock"` - ValueE int32 `protobuf:"varint,5,opt,name=valueE,proto3" json:"valueE,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,6,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OneofSample) Reset() { *m = OneofSample{} } -func (m *OneofSample) String() string { return proto.CompactTextString(m) } -func (*OneofSample) ProtoMessage() {} -func (*OneofSample) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{20} -} - -func (m *OneofSample) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OneofSample.Unmarshal(m, b) -} -func (m *OneofSample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OneofSample.Marshal(b, m, deterministic) -} -func (m *OneofSample) XXX_Merge(src proto.Message) { - xxx_messageInfo_OneofSample.Merge(m, src) -} -func (m *OneofSample) XXX_Size() int { - return xxx_messageInfo_OneofSample.Size(m) -} -func (m *OneofSample) XXX_DiscardUnknown() { - xxx_messageInfo_OneofSample.DiscardUnknown(m) -} - -var xxx_messageInfo_OneofSample proto.InternalMessageInfo - -func (m *OneofSample) GetValueA() int32 { - if m != nil { - return m.ValueA - } - return 0 + OneofBlock isOneofSample_OneofBlock `protobuf_oneof:"oneofBlock"` + ValueE int32 `protobuf:"varint,5,opt,name=valueE,proto3" json:"valueE,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,6,rep,name=salts,proto3" json:"salts,omitempty"` } -type isOneofSample_OneofBlock interface { - isOneofSample_OneofBlock() +func (x *OneofSample) Reset() { + *x = OneofSample{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type OneofSample_ValueB struct { - ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3,oneof"` +func (x *OneofSample) String() string { + return protoimpl.X.MessageStringOf(x) } -type OneofSample_ValueC struct { - ValueC string `protobuf:"bytes,3,opt,name=valueC,proto3,oneof"` -} +func (*OneofSample) ProtoMessage() {} -type OneofSample_ValueD struct { - ValueD *SimpleItem `protobuf:"bytes,4,opt,name=valueD,proto3,oneof"` +func (x *OneofSample) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*OneofSample_ValueB) isOneofSample_OneofBlock() {} - -func (*OneofSample_ValueC) isOneofSample_OneofBlock() {} +// Deprecated: Use OneofSample.ProtoReflect.Descriptor instead. +func (*OneofSample) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{20} +} -func (*OneofSample_ValueD) isOneofSample_OneofBlock() {} +func (x *OneofSample) GetValueA() int32 { + if x != nil { + return x.ValueA + } + return 0 +} func (m *OneofSample) GetOneofBlock() isOneofSample_OneofBlock { if m != nil { @@ -1270,1034 +1437,1903 @@ func (m *OneofSample) GetOneofBlock() isOneofSample_OneofBlock { return nil } -func (m *OneofSample) GetValueB() int32 { - if x, ok := m.GetOneofBlock().(*OneofSample_ValueB); ok { +func (x *OneofSample) GetValueB() int32 { + if x, ok := x.GetOneofBlock().(*OneofSample_ValueB); ok { return x.ValueB } return 0 } -func (m *OneofSample) GetValueC() string { - if x, ok := m.GetOneofBlock().(*OneofSample_ValueC); ok { +func (x *OneofSample) GetValueC() string { + if x, ok := x.GetOneofBlock().(*OneofSample_ValueC); ok { return x.ValueC } return "" } -func (m *OneofSample) GetValueD() *SimpleItem { - if x, ok := m.GetOneofBlock().(*OneofSample_ValueD); ok { +func (x *OneofSample) GetValueD() *SimpleItem { + if x, ok := x.GetOneofBlock().(*OneofSample_ValueD); ok { return x.ValueD } return nil } -func (m *OneofSample) GetValueE() int32 { - if m != nil { - return m.ValueE +func (x *OneofSample) GetValueE() int32 { + if x != nil { + return x.ValueE } return 0 } -func (m *OneofSample) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *OneofSample) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*OneofSample) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*OneofSample_ValueB)(nil), - (*OneofSample_ValueC)(nil), - (*OneofSample_ValueD)(nil), - } +type isOneofSample_OneofBlock interface { + isOneofSample_OneofBlock() } -type LongDocument struct { - Value0 int64 `protobuf:"varint,16,opt,name=value0,proto3" json:"value0,omitempty"` - Value1 int64 `protobuf:"varint,1,opt,name=value1,proto3" json:"value1,omitempty"` - Value2 int64 `protobuf:"varint,2,opt,name=value2,proto3" json:"value2,omitempty"` - Value3 int64 `protobuf:"varint,3,opt,name=value3,proto3" json:"value3,omitempty"` - Value4 int64 `protobuf:"varint,4,opt,name=value4,proto3" json:"value4,omitempty"` - Value5 int64 `protobuf:"varint,5,opt,name=value5,proto3" json:"value5,omitempty"` - Value6 int64 `protobuf:"varint,6,opt,name=value6,proto3" json:"value6,omitempty"` - Value7 int64 `protobuf:"varint,7,opt,name=value7,proto3" json:"value7,omitempty"` - Value8 int64 `protobuf:"varint,8,opt,name=value8,proto3" json:"value8,omitempty"` - Value9 int64 `protobuf:"varint,9,opt,name=value9,proto3" json:"value9,omitempty"` - ValueA int64 `protobuf:"varint,10,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB int64 `protobuf:"varint,11,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC int64 `protobuf:"varint,12,opt,name=valueC,proto3" json:"valueC,omitempty"` - ValueD int64 `protobuf:"varint,13,opt,name=valueD,proto3" json:"valueD,omitempty"` - ValueE int64 `protobuf:"varint,14,opt,name=valueE,proto3" json:"valueE,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,15,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LongDocument) Reset() { *m = LongDocument{} } -func (m *LongDocument) String() string { return proto.CompactTextString(m) } -func (*LongDocument) ProtoMessage() {} -func (*LongDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{21} +type OneofSample_ValueB struct { + ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3,oneof"` } -func (m *LongDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LongDocument.Unmarshal(m, b) +type OneofSample_ValueC struct { + ValueC string `protobuf:"bytes,3,opt,name=valueC,proto3,oneof"` +} + +type OneofSample_ValueD struct { + ValueD *SimpleItem `protobuf:"bytes,4,opt,name=valueD,proto3,oneof"` } -func (m *LongDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LongDocument.Marshal(b, m, deterministic) + +func (*OneofSample_ValueB) isOneofSample_OneofBlock() {} + +func (*OneofSample_ValueC) isOneofSample_OneofBlock() {} + +func (*OneofSample_ValueD) isOneofSample_OneofBlock() {} + +type LongDocument struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value0 int64 `protobuf:"varint,16,opt,name=value0,proto3" json:"value0,omitempty"` + Value1 int64 `protobuf:"varint,1,opt,name=value1,proto3" json:"value1,omitempty"` + Value2 int64 `protobuf:"varint,2,opt,name=value2,proto3" json:"value2,omitempty"` + Value3 int64 `protobuf:"varint,3,opt,name=value3,proto3" json:"value3,omitempty"` + Value4 int64 `protobuf:"varint,4,opt,name=value4,proto3" json:"value4,omitempty"` + Value5 int64 `protobuf:"varint,5,opt,name=value5,proto3" json:"value5,omitempty"` + Value6 int64 `protobuf:"varint,6,opt,name=value6,proto3" json:"value6,omitempty"` + Value7 int64 `protobuf:"varint,7,opt,name=value7,proto3" json:"value7,omitempty"` + Value8 int64 `protobuf:"varint,8,opt,name=value8,proto3" json:"value8,omitempty"` + Value9 int64 `protobuf:"varint,9,opt,name=value9,proto3" json:"value9,omitempty"` + ValueA int64 `protobuf:"varint,10,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB int64 `protobuf:"varint,11,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC int64 `protobuf:"varint,12,opt,name=valueC,proto3" json:"valueC,omitempty"` + ValueD int64 `protobuf:"varint,13,opt,name=valueD,proto3" json:"valueD,omitempty"` + ValueE int64 `protobuf:"varint,14,opt,name=valueE,proto3" json:"valueE,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,15,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *LongDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_LongDocument.Merge(m, src) + +func (x *LongDocument) Reset() { + *x = LongDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LongDocument) XXX_Size() int { - return xxx_messageInfo_LongDocument.Size(m) + +func (x *LongDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LongDocument) XXX_DiscardUnknown() { - xxx_messageInfo_LongDocument.DiscardUnknown(m) + +func (*LongDocument) ProtoMessage() {} + +func (x *LongDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LongDocument proto.InternalMessageInfo +// Deprecated: Use LongDocument.ProtoReflect.Descriptor instead. +func (*LongDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{21} +} -func (m *LongDocument) GetValue0() int64 { - if m != nil { - return m.Value0 +func (x *LongDocument) GetValue0() int64 { + if x != nil { + return x.Value0 } return 0 } -func (m *LongDocument) GetValue1() int64 { - if m != nil { - return m.Value1 +func (x *LongDocument) GetValue1() int64 { + if x != nil { + return x.Value1 } return 0 } -func (m *LongDocument) GetValue2() int64 { - if m != nil { - return m.Value2 +func (x *LongDocument) GetValue2() int64 { + if x != nil { + return x.Value2 } return 0 } -func (m *LongDocument) GetValue3() int64 { - if m != nil { - return m.Value3 +func (x *LongDocument) GetValue3() int64 { + if x != nil { + return x.Value3 } return 0 } -func (m *LongDocument) GetValue4() int64 { - if m != nil { - return m.Value4 +func (x *LongDocument) GetValue4() int64 { + if x != nil { + return x.Value4 } return 0 } -func (m *LongDocument) GetValue5() int64 { - if m != nil { - return m.Value5 +func (x *LongDocument) GetValue5() int64 { + if x != nil { + return x.Value5 } return 0 } -func (m *LongDocument) GetValue6() int64 { - if m != nil { - return m.Value6 +func (x *LongDocument) GetValue6() int64 { + if x != nil { + return x.Value6 } return 0 } -func (m *LongDocument) GetValue7() int64 { - if m != nil { - return m.Value7 +func (x *LongDocument) GetValue7() int64 { + if x != nil { + return x.Value7 } return 0 } -func (m *LongDocument) GetValue8() int64 { - if m != nil { - return m.Value8 +func (x *LongDocument) GetValue8() int64 { + if x != nil { + return x.Value8 } return 0 } -func (m *LongDocument) GetValue9() int64 { - if m != nil { - return m.Value9 +func (x *LongDocument) GetValue9() int64 { + if x != nil { + return x.Value9 } return 0 } -func (m *LongDocument) GetValueA() int64 { - if m != nil { - return m.ValueA +func (x *LongDocument) GetValueA() int64 { + if x != nil { + return x.ValueA } return 0 } -func (m *LongDocument) GetValueB() int64 { - if m != nil { - return m.ValueB +func (x *LongDocument) GetValueB() int64 { + if x != nil { + return x.ValueB } return 0 } -func (m *LongDocument) GetValueC() int64 { - if m != nil { - return m.ValueC +func (x *LongDocument) GetValueC() int64 { + if x != nil { + return x.ValueC } return 0 } -func (m *LongDocument) GetValueD() int64 { - if m != nil { - return m.ValueD +func (x *LongDocument) GetValueD() int64 { + if x != nil { + return x.ValueD } return 0 } -func (m *LongDocument) GetValueE() int64 { - if m != nil { - return m.ValueE +func (x *LongDocument) GetValueE() int64 { + if x != nil { + return x.ValueE } return 0 } -func (m *LongDocument) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *LongDocument) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type Integers struct { - ValueA int32 `protobuf:"varint,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB int64 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - ValueC uint32 `protobuf:"varint,3,opt,name=valueC,proto3" json:"valueC,omitempty"` - ValueD uint64 `protobuf:"varint,4,opt,name=valueD,proto3" json:"valueD,omitempty"` - ValueE int32 `protobuf:"zigzag32,5,opt,name=valueE,proto3" json:"valueE,omitempty"` - ValueF int64 `protobuf:"zigzag64,6,opt,name=valueF,proto3" json:"valueF,omitempty"` - ValueG uint32 `protobuf:"fixed32,7,opt,name=valueG,proto3" json:"valueG,omitempty"` - ValueH uint64 `protobuf:"fixed64,8,opt,name=valueH,proto3" json:"valueH,omitempty"` - ValueI int32 `protobuf:"fixed32,9,opt,name=valueI,proto3" json:"valueI,omitempty"` - ValueJ int64 `protobuf:"fixed64,10,opt,name=valueJ,proto3" json:"valueJ,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,11,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Integers) Reset() { *m = Integers{} } -func (m *Integers) String() string { return proto.CompactTextString(m) } -func (*Integers) ProtoMessage() {} -func (*Integers) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{22} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Integers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Integers.Unmarshal(m, b) + ValueA int32 `protobuf:"varint,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB int64 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + ValueC uint32 `protobuf:"varint,3,opt,name=valueC,proto3" json:"valueC,omitempty"` + ValueD uint64 `protobuf:"varint,4,opt,name=valueD,proto3" json:"valueD,omitempty"` + ValueE int32 `protobuf:"zigzag32,5,opt,name=valueE,proto3" json:"valueE,omitempty"` + ValueF int64 `protobuf:"zigzag64,6,opt,name=valueF,proto3" json:"valueF,omitempty"` + ValueG uint32 `protobuf:"fixed32,7,opt,name=valueG,proto3" json:"valueG,omitempty"` + ValueH uint64 `protobuf:"fixed64,8,opt,name=valueH,proto3" json:"valueH,omitempty"` + ValueI int32 `protobuf:"fixed32,9,opt,name=valueI,proto3" json:"valueI,omitempty"` + ValueJ int64 `protobuf:"fixed64,10,opt,name=valueJ,proto3" json:"valueJ,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,11,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *Integers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Integers.Marshal(b, m, deterministic) -} -func (m *Integers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Integers.Merge(m, src) + +func (x *Integers) Reset() { + *x = Integers{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Integers) XXX_Size() int { - return xxx_messageInfo_Integers.Size(m) + +func (x *Integers) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Integers) XXX_DiscardUnknown() { - xxx_messageInfo_Integers.DiscardUnknown(m) + +func (*Integers) ProtoMessage() {} + +func (x *Integers) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Integers proto.InternalMessageInfo +// Deprecated: Use Integers.ProtoReflect.Descriptor instead. +func (*Integers) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{22} +} -func (m *Integers) GetValueA() int32 { - if m != nil { - return m.ValueA +func (x *Integers) GetValueA() int32 { + if x != nil { + return x.ValueA } return 0 } -func (m *Integers) GetValueB() int64 { - if m != nil { - return m.ValueB +func (x *Integers) GetValueB() int64 { + if x != nil { + return x.ValueB } return 0 } -func (m *Integers) GetValueC() uint32 { - if m != nil { - return m.ValueC +func (x *Integers) GetValueC() uint32 { + if x != nil { + return x.ValueC } return 0 } -func (m *Integers) GetValueD() uint64 { - if m != nil { - return m.ValueD +func (x *Integers) GetValueD() uint64 { + if x != nil { + return x.ValueD } return 0 } -func (m *Integers) GetValueE() int32 { - if m != nil { - return m.ValueE +func (x *Integers) GetValueE() int32 { + if x != nil { + return x.ValueE } return 0 } -func (m *Integers) GetValueF() int64 { - if m != nil { - return m.ValueF +func (x *Integers) GetValueF() int64 { + if x != nil { + return x.ValueF } return 0 } -func (m *Integers) GetValueG() uint32 { - if m != nil { - return m.ValueG +func (x *Integers) GetValueG() uint32 { + if x != nil { + return x.ValueG } return 0 } -func (m *Integers) GetValueH() uint64 { - if m != nil { - return m.ValueH +func (x *Integers) GetValueH() uint64 { + if x != nil { + return x.ValueH } return 0 } -func (m *Integers) GetValueI() int32 { - if m != nil { - return m.ValueI +func (x *Integers) GetValueI() int32 { + if x != nil { + return x.ValueI } return 0 } -func (m *Integers) GetValueJ() int64 { - if m != nil { - return m.ValueJ +func (x *Integers) GetValueJ() int64 { + if x != nil { + return x.ValueJ } return 0 } -func (m *Integers) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *Integers) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type ContainSalts struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ContainSalts) Reset() { *m = ContainSalts{} } -func (m *ContainSalts) String() string { return proto.CompactTextString(m) } -func (*ContainSalts) ProtoMessage() {} -func (*ContainSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{23} + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *ContainSalts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContainSalts.Unmarshal(m, b) -} -func (m *ContainSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContainSalts.Marshal(b, m, deterministic) -} -func (m *ContainSalts) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainSalts.Merge(m, src) +func (x *ContainSalts) Reset() { + *x = ContainSalts{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContainSalts) XXX_Size() int { - return xxx_messageInfo_ContainSalts.Size(m) + +func (x *ContainSalts) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContainSalts) XXX_DiscardUnknown() { - xxx_messageInfo_ContainSalts.DiscardUnknown(m) + +func (*ContainSalts) ProtoMessage() {} + +func (x *ContainSalts) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ContainSalts proto.InternalMessageInfo +// Deprecated: Use ContainSalts.ProtoReflect.Descriptor instead. +func (*ContainSalts) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{23} +} -func (m *ContainSalts) GetValueA() string { - if m != nil { - return m.ValueA +func (x *ContainSalts) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *ContainSalts) GetValueB() int32 { - if m != nil { - return m.ValueB +func (x *ContainSalts) GetValueB() int32 { + if x != nil { + return x.ValueB } return 0 } -func (m *ContainSalts) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *ContainSalts) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type ExampleWithoutSalts struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExampleWithoutSalts) Reset() { *m = ExampleWithoutSalts{} } -func (m *ExampleWithoutSalts) String() string { return proto.CompactTextString(m) } -func (*ExampleWithoutSalts) ProtoMessage() {} -func (*ExampleWithoutSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{24} + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB int32 `protobuf:"varint,2,opt,name=valueB,proto3" json:"valueB,omitempty"` } -func (m *ExampleWithoutSalts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExampleWithoutSalts.Unmarshal(m, b) -} -func (m *ExampleWithoutSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExampleWithoutSalts.Marshal(b, m, deterministic) -} -func (m *ExampleWithoutSalts) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExampleWithoutSalts.Merge(m, src) +func (x *ExampleWithoutSalts) Reset() { + *x = ExampleWithoutSalts{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExampleWithoutSalts) XXX_Size() int { - return xxx_messageInfo_ExampleWithoutSalts.Size(m) + +func (x *ExampleWithoutSalts) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExampleWithoutSalts) XXX_DiscardUnknown() { - xxx_messageInfo_ExampleWithoutSalts.DiscardUnknown(m) + +func (*ExampleWithoutSalts) ProtoMessage() {} + +func (x *ExampleWithoutSalts) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExampleWithoutSalts proto.InternalMessageInfo +// Deprecated: Use ExampleWithoutSalts.ProtoReflect.Descriptor instead. +func (*ExampleWithoutSalts) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{24} +} -func (m *ExampleWithoutSalts) GetValueA() string { - if m != nil { - return m.ValueA +func (x *ExampleWithoutSalts) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *ExampleWithoutSalts) GetValueB() int32 { - if m != nil { - return m.ValueB +func (x *ExampleWithoutSalts) GetValueB() int32 { + if x != nil { + return x.ValueB } return 0 } type Name struct { - First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"` - Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Name) Reset() { *m = Name{} } -func (m *Name) String() string { return proto.CompactTextString(m) } -func (*Name) ProtoMessage() {} -func (*Name) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{25} + First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"` + Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` } -func (m *Name) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Name.Unmarshal(m, b) -} -func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Name.Marshal(b, m, deterministic) -} -func (m *Name) XXX_Merge(src proto.Message) { - xxx_messageInfo_Name.Merge(m, src) +func (x *Name) Reset() { + *x = Name{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Name) XXX_Size() int { - return xxx_messageInfo_Name.Size(m) + +func (x *Name) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Name) XXX_DiscardUnknown() { - xxx_messageInfo_Name.DiscardUnknown(m) + +func (*Name) ProtoMessage() {} + +func (x *Name) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Name proto.InternalMessageInfo +// Deprecated: Use Name.ProtoReflect.Descriptor instead. +func (*Name) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{25} +} -func (m *Name) GetFirst() string { - if m != nil { - return m.First +func (x *Name) GetFirst() string { + if x != nil { + return x.First } return "" } -func (m *Name) GetLast() string { - if m != nil { - return m.Last +func (x *Name) GetLast() string { + if x != nil { + return x.Last } return "" } type PhoneNumber struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Countrycode string `protobuf:"bytes,2,opt,name=countrycode,proto3" json:"countrycode,omitempty"` - Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PhoneNumber) Reset() { *m = PhoneNumber{} } -func (m *PhoneNumber) String() string { return proto.CompactTextString(m) } -func (*PhoneNumber) ProtoMessage() {} -func (*PhoneNumber) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{26} + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Countrycode string `protobuf:"bytes,2,opt,name=countrycode,proto3" json:"countrycode,omitempty"` + Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` } -func (m *PhoneNumber) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneNumber.Unmarshal(m, b) -} -func (m *PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneNumber.Marshal(b, m, deterministic) -} -func (m *PhoneNumber) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneNumber.Merge(m, src) +func (x *PhoneNumber) Reset() { + *x = PhoneNumber{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PhoneNumber) XXX_Size() int { - return xxx_messageInfo_PhoneNumber.Size(m) + +func (x *PhoneNumber) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PhoneNumber) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneNumber.DiscardUnknown(m) + +func (*PhoneNumber) ProtoMessage() {} + +func (x *PhoneNumber) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PhoneNumber proto.InternalMessageInfo +// Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead. +func (*PhoneNumber) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{26} +} -func (m *PhoneNumber) GetType() string { - if m != nil { - return m.Type +func (x *PhoneNumber) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *PhoneNumber) GetCountrycode() string { - if m != nil { - return m.Countrycode +func (x *PhoneNumber) GetCountrycode() string { + if x != nil { + return x.Countrycode } return "" } -func (m *PhoneNumber) GetNumber() string { - if m != nil { - return m.Number +func (x *PhoneNumber) GetNumber() string { + if x != nil { + return x.Number } return "" } type ExampleNested struct { - HashedValue []byte `protobuf:"bytes,1,opt,name=hashed_value,json=hashedValue,proto3" json:"hashed_value,omitempty"` - Name *Name `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExampleNested) Reset() { *m = ExampleNested{} } -func (m *ExampleNested) String() string { return proto.CompactTextString(m) } -func (*ExampleNested) ProtoMessage() {} -func (*ExampleNested) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{27} + HashedValue []byte `protobuf:"bytes,1,opt,name=hashed_value,json=hashedValue,proto3" json:"hashed_value,omitempty"` + Name *Name `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *ExampleNested) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExampleNested.Unmarshal(m, b) -} -func (m *ExampleNested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExampleNested.Marshal(b, m, deterministic) -} -func (m *ExampleNested) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExampleNested.Merge(m, src) +func (x *ExampleNested) Reset() { + *x = ExampleNested{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExampleNested) XXX_Size() int { - return xxx_messageInfo_ExampleNested.Size(m) + +func (x *ExampleNested) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExampleNested) XXX_DiscardUnknown() { - xxx_messageInfo_ExampleNested.DiscardUnknown(m) + +func (*ExampleNested) ProtoMessage() {} + +func (x *ExampleNested) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExampleNested proto.InternalMessageInfo +// Deprecated: Use ExampleNested.ProtoReflect.Descriptor instead. +func (*ExampleNested) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{27} +} -func (m *ExampleNested) GetHashedValue() []byte { - if m != nil { - return m.HashedValue +func (x *ExampleNested) GetHashedValue() []byte { + if x != nil { + return x.HashedValue } return nil } -func (m *ExampleNested) GetName() *Name { - if m != nil { - return m.Name +func (x *ExampleNested) GetName() *Name { + if x != nil { + return x.Name } return nil } type AppendFieldDocument struct { - Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Names []*Name `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` - PhoneNumbers []*PhoneNumber `protobuf:"bytes,3,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AppendFieldDocument) Reset() { *m = AppendFieldDocument{} } -func (m *AppendFieldDocument) String() string { return proto.CompactTextString(m) } -func (*AppendFieldDocument) ProtoMessage() {} -func (*AppendFieldDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{28} + Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Names []*Name `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` + PhoneNumbers []*PhoneNumber `protobuf:"bytes,3,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` } -func (m *AppendFieldDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AppendFieldDocument.Unmarshal(m, b) -} -func (m *AppendFieldDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AppendFieldDocument.Marshal(b, m, deterministic) -} -func (m *AppendFieldDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppendFieldDocument.Merge(m, src) +func (x *AppendFieldDocument) Reset() { + *x = AppendFieldDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppendFieldDocument) XXX_Size() int { - return xxx_messageInfo_AppendFieldDocument.Size(m) + +func (x *AppendFieldDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppendFieldDocument) XXX_DiscardUnknown() { - xxx_messageInfo_AppendFieldDocument.DiscardUnknown(m) + +func (*AppendFieldDocument) ProtoMessage() {} + +func (x *AppendFieldDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AppendFieldDocument proto.InternalMessageInfo +// Deprecated: Use AppendFieldDocument.ProtoReflect.Descriptor instead. +func (*AppendFieldDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{28} +} -func (m *AppendFieldDocument) GetName() *Name { - if m != nil { - return m.Name +func (x *AppendFieldDocument) GetName() *Name { + if x != nil { + return x.Name } return nil } -func (m *AppendFieldDocument) GetNames() []*Name { - if m != nil { - return m.Names +func (x *AppendFieldDocument) GetNames() []*Name { + if x != nil { + return x.Names } return nil } -func (m *AppendFieldDocument) GetPhoneNumbers() []*PhoneNumber { - if m != nil { - return m.PhoneNumbers +func (x *AppendFieldDocument) GetPhoneNumbers() []*PhoneNumber { + if x != nil { + return x.PhoneNumbers } return nil } type UnsupportedAppendDocument struct { - Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Nested *ExampleNested `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UnsupportedAppendDocument) Reset() { *m = UnsupportedAppendDocument{} } -func (m *UnsupportedAppendDocument) String() string { return proto.CompactTextString(m) } -func (*UnsupportedAppendDocument) ProtoMessage() {} -func (*UnsupportedAppendDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{29} + Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Nested *ExampleNested `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"` } -func (m *UnsupportedAppendDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnsupportedAppendDocument.Unmarshal(m, b) -} -func (m *UnsupportedAppendDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnsupportedAppendDocument.Marshal(b, m, deterministic) -} -func (m *UnsupportedAppendDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnsupportedAppendDocument.Merge(m, src) +func (x *UnsupportedAppendDocument) Reset() { + *x = UnsupportedAppendDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UnsupportedAppendDocument) XXX_Size() int { - return xxx_messageInfo_UnsupportedAppendDocument.Size(m) + +func (x *UnsupportedAppendDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UnsupportedAppendDocument) XXX_DiscardUnknown() { - xxx_messageInfo_UnsupportedAppendDocument.DiscardUnknown(m) + +func (*UnsupportedAppendDocument) ProtoMessage() {} + +func (x *UnsupportedAppendDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UnsupportedAppendDocument proto.InternalMessageInfo +// Deprecated: Use UnsupportedAppendDocument.ProtoReflect.Descriptor instead. +func (*UnsupportedAppendDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{29} +} -func (m *UnsupportedAppendDocument) GetName() *Name { - if m != nil { - return m.Name +func (x *UnsupportedAppendDocument) GetName() *Name { + if x != nil { + return x.Name } return nil } -func (m *UnsupportedAppendDocument) GetNested() *ExampleNested { - if m != nil { - return m.Nested +func (x *UnsupportedAppendDocument) GetNested() *ExampleNested { + if x != nil { + return x.Nested } return nil } type NoSaltDocument struct { - ValueNoSalt string `protobuf:"bytes,1,opt,name=valueNoSalt,proto3" json:"valueNoSalt,omitempty"` - ValueSalt string `protobuf:"bytes,2,opt,name=valueSalt,proto3" json:"valueSalt,omitempty"` - Name *Name `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NoSaltDocument) Reset() { *m = NoSaltDocument{} } -func (m *NoSaltDocument) String() string { return proto.CompactTextString(m) } -func (*NoSaltDocument) ProtoMessage() {} -func (*NoSaltDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{30} + ValueNoSalt string `protobuf:"bytes,1,opt,name=valueNoSalt,proto3" json:"valueNoSalt,omitempty"` + ValueSalt string `protobuf:"bytes,2,opt,name=valueSalt,proto3" json:"valueSalt,omitempty"` + Name *Name `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` } -func (m *NoSaltDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NoSaltDocument.Unmarshal(m, b) -} -func (m *NoSaltDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NoSaltDocument.Marshal(b, m, deterministic) -} -func (m *NoSaltDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoSaltDocument.Merge(m, src) +func (x *NoSaltDocument) Reset() { + *x = NoSaltDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NoSaltDocument) XXX_Size() int { - return xxx_messageInfo_NoSaltDocument.Size(m) + +func (x *NoSaltDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NoSaltDocument) XXX_DiscardUnknown() { - xxx_messageInfo_NoSaltDocument.DiscardUnknown(m) + +func (*NoSaltDocument) ProtoMessage() {} + +func (x *NoSaltDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NoSaltDocument proto.InternalMessageInfo +// Deprecated: Use NoSaltDocument.ProtoReflect.Descriptor instead. +func (*NoSaltDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{30} +} -func (m *NoSaltDocument) GetValueNoSalt() string { - if m != nil { - return m.ValueNoSalt +func (x *NoSaltDocument) GetValueNoSalt() string { + if x != nil { + return x.ValueNoSalt } return "" } -func (m *NoSaltDocument) GetValueSalt() string { - if m != nil { - return m.ValueSalt +func (x *NoSaltDocument) GetValueSalt() string { + if x != nil { + return x.ValueSalt } return "" } -func (m *NoSaltDocument) GetName() *Name { - if m != nil { - return m.Name +func (x *NoSaltDocument) GetName() *Name { + if x != nil { + return x.Name } return nil } type ExampleWithPaddingField struct { - ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` - ValueB []byte `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` - Salts []*proto1.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExampleWithPaddingField) Reset() { *m = ExampleWithPaddingField{} } -func (m *ExampleWithPaddingField) String() string { return proto.CompactTextString(m) } -func (*ExampleWithPaddingField) ProtoMessage() {} -func (*ExampleWithPaddingField) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{31} + ValueA string `protobuf:"bytes,1,opt,name=valueA,proto3" json:"valueA,omitempty"` + ValueB []byte `protobuf:"bytes,2,opt,name=valueB,proto3" json:"valueB,omitempty"` + Salts []*proto.Salt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` } -func (m *ExampleWithPaddingField) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExampleWithPaddingField.Unmarshal(m, b) -} -func (m *ExampleWithPaddingField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExampleWithPaddingField.Marshal(b, m, deterministic) -} -func (m *ExampleWithPaddingField) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExampleWithPaddingField.Merge(m, src) +func (x *ExampleWithPaddingField) Reset() { + *x = ExampleWithPaddingField{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExampleWithPaddingField) XXX_Size() int { - return xxx_messageInfo_ExampleWithPaddingField.Size(m) + +func (x *ExampleWithPaddingField) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExampleWithPaddingField) XXX_DiscardUnknown() { - xxx_messageInfo_ExampleWithPaddingField.DiscardUnknown(m) + +func (*ExampleWithPaddingField) ProtoMessage() {} + +func (x *ExampleWithPaddingField) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExampleWithPaddingField proto.InternalMessageInfo +// Deprecated: Use ExampleWithPaddingField.ProtoReflect.Descriptor instead. +func (*ExampleWithPaddingField) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{31} +} -func (m *ExampleWithPaddingField) GetValueA() string { - if m != nil { - return m.ValueA +func (x *ExampleWithPaddingField) GetValueA() string { + if x != nil { + return x.ValueA } return "" } -func (m *ExampleWithPaddingField) GetValueB() []byte { - if m != nil { - return m.ValueB +func (x *ExampleWithPaddingField) GetValueB() []byte { + if x != nil { + return x.ValueB } return nil } -func (m *ExampleWithPaddingField) GetSalts() []*proto1.Salt { - if m != nil { - return m.Salts +func (x *ExampleWithPaddingField) GetSalts() []*proto.Salt { + if x != nil { + return x.Salts } return nil } type NamePadded struct { - First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"` - Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` - Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NamePadded) Reset() { *m = NamePadded{} } -func (m *NamePadded) String() string { return proto.CompactTextString(m) } -func (*NamePadded) ProtoMessage() {} -func (*NamePadded) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{32} + First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"` + Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` + Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` } -func (m *NamePadded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamePadded.Unmarshal(m, b) -} -func (m *NamePadded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamePadded.Marshal(b, m, deterministic) -} -func (m *NamePadded) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamePadded.Merge(m, src) +func (x *NamePadded) Reset() { + *x = NamePadded{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NamePadded) XXX_Size() int { - return xxx_messageInfo_NamePadded.Size(m) + +func (x *NamePadded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NamePadded) XXX_DiscardUnknown() { - xxx_messageInfo_NamePadded.DiscardUnknown(m) + +func (*NamePadded) ProtoMessage() {} + +func (x *NamePadded) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NamePadded proto.InternalMessageInfo +// Deprecated: Use NamePadded.ProtoReflect.Descriptor instead. +func (*NamePadded) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{32} +} -func (m *NamePadded) GetFirst() string { - if m != nil { - return m.First +func (x *NamePadded) GetFirst() string { + if x != nil { + return x.First } return "" } -func (m *NamePadded) GetLast() string { - if m != nil { - return m.Last +func (x *NamePadded) GetLast() string { + if x != nil { + return x.Last } return "" } -func (m *NamePadded) GetAge() int32 { - if m != nil { - return m.Age +func (x *NamePadded) GetAge() int32 { + if x != nil { + return x.Age } return 0 } type AppendFieldPaddingDocument struct { - Names []*NamePadded `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AppendFieldPaddingDocument) Reset() { *m = AppendFieldPaddingDocument{} } -func (m *AppendFieldPaddingDocument) String() string { return proto.CompactTextString(m) } -func (*AppendFieldPaddingDocument) ProtoMessage() {} -func (*AppendFieldPaddingDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_bbdf1f37afed577e, []int{33} + Names []*NamePadded `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` } -func (m *AppendFieldPaddingDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AppendFieldPaddingDocument.Unmarshal(m, b) -} -func (m *AppendFieldPaddingDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AppendFieldPaddingDocument.Marshal(b, m, deterministic) -} -func (m *AppendFieldPaddingDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppendFieldPaddingDocument.Merge(m, src) +func (x *AppendFieldPaddingDocument) Reset() { + *x = AppendFieldPaddingDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_examples_documents_example_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppendFieldPaddingDocument) XXX_Size() int { - return xxx_messageInfo_AppendFieldPaddingDocument.Size(m) + +func (x *AppendFieldPaddingDocument) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppendFieldPaddingDocument) XXX_DiscardUnknown() { - xxx_messageInfo_AppendFieldPaddingDocument.DiscardUnknown(m) + +func (*AppendFieldPaddingDocument) ProtoMessage() {} + +func (x *AppendFieldPaddingDocument) ProtoReflect() protoreflect.Message { + mi := &file_examples_documents_example_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AppendFieldPaddingDocument proto.InternalMessageInfo +// Deprecated: Use AppendFieldPaddingDocument.ProtoReflect.Descriptor instead. +func (*AppendFieldPaddingDocument) Descriptor() ([]byte, []int) { + return file_examples_documents_example_proto_rawDescGZIP(), []int{33} +} -func (m *AppendFieldPaddingDocument) GetNames() []*NamePadded { - if m != nil { - return m.Names +func (x *AppendFieldPaddingDocument) GetNames() []*NamePadded { + if x != nil { + return x.Names } return nil } -func init() { - proto.RegisterEnum("documents.Enum", Enum_name, Enum_value) - proto.RegisterType((*ExampleDocument)(nil), "documents.ExampleDocument") - proto.RegisterType((*AllFieldTypes)(nil), "documents.AllFieldTypes") - proto.RegisterType((*AllFieldTypesSalts)(nil), "documents.AllFieldTypesSalts") - proto.RegisterType((*SimpleItem)(nil), "documents.SimpleItem") - proto.RegisterType((*RepeatedItem)(nil), "documents.RepeatedItem") - proto.RegisterType((*SimpleMap)(nil), "documents.SimpleMap") - proto.RegisterMapType((map[int32]string)(nil), "documents.SimpleMap.ValueEntry") - proto.RegisterType((*SimpleStringMap)(nil), "documents.SimpleStringMap") - proto.RegisterMapType((map[string]string)(nil), "documents.SimpleStringMap.ValueEntry") - proto.RegisterType((*NestedMap)(nil), "documents.NestedMap") - proto.RegisterMapType((map[int32]*SimpleMap)(nil), "documents.NestedMap.ValueEntry") - proto.RegisterType((*SimpleEntry)(nil), "documents.SimpleEntry") - proto.RegisterType((*SimpleEntries)(nil), "documents.SimpleEntries") - proto.RegisterType((*Entry)(nil), "documents.Entry") - proto.RegisterType((*Entries)(nil), "documents.Entries") - proto.RegisterType((*BytesKeyEntry)(nil), "documents.BytesKeyEntry") - proto.RegisterType((*BytesKeyEntries)(nil), "documents.BytesKeyEntries") - proto.RegisterType((*TwoLevelRepeatedDocument)(nil), "documents.TwoLevelRepeatedDocument") - proto.RegisterType((*SimpleRepeatedDocument)(nil), "documents.SimpleRepeatedDocument") - proto.RegisterType((*SimpleMapDocument)(nil), "documents.SimpleMapDocument") - proto.RegisterMapType((map[string]string)(nil), "documents.SimpleMapDocument.ValueCEntry") - proto.RegisterMapType((map[int32]string)(nil), "documents.SimpleMapDocument.ValueDEntry") - proto.RegisterType((*TwoLevelItem)(nil), "documents.TwoLevelItem") - proto.RegisterType((*NestedRepeatedDocument)(nil), "documents.NestedRepeatedDocument") - proto.RegisterType((*InvalidHashedFieldDocument)(nil), "documents.InvalidHashedFieldDocument") - proto.RegisterType((*OneofSample)(nil), "documents.oneofSample") - proto.RegisterType((*LongDocument)(nil), "documents.LongDocument") - proto.RegisterType((*Integers)(nil), "documents.Integers") - proto.RegisterType((*ContainSalts)(nil), "documents.ContainSalts") - proto.RegisterType((*ExampleWithoutSalts)(nil), "documents.ExampleWithoutSalts") - proto.RegisterType((*Name)(nil), "documents.Name") - proto.RegisterType((*PhoneNumber)(nil), "documents.PhoneNumber") - proto.RegisterType((*ExampleNested)(nil), "documents.ExampleNested") - proto.RegisterType((*AppendFieldDocument)(nil), "documents.AppendFieldDocument") - proto.RegisterType((*UnsupportedAppendDocument)(nil), "documents.UnsupportedAppendDocument") - proto.RegisterType((*NoSaltDocument)(nil), "documents.NoSaltDocument") - proto.RegisterType((*ExampleWithPaddingField)(nil), "documents.ExampleWithPaddingField") - proto.RegisterType((*NamePadded)(nil), "documents.NamePadded") - proto.RegisterType((*AppendFieldPaddingDocument)(nil), "documents.AppendFieldPaddingDocument") -} - -func init() { proto.RegisterFile("examples/documents/example.proto", fileDescriptor_bbdf1f37afed577e) } - -var fileDescriptor_bbdf1f37afed577e = []byte{ - // 1662 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, - 0x16, 0x0e, 0xf5, 0xb0, 0xad, 0x43, 0xca, 0x92, 0x99, 0x5c, 0x87, 0x71, 0xee, 0x45, 0x14, 0xde, - 0x16, 0x15, 0x8c, 0x44, 0x8e, 0x95, 0x97, 0xd3, 0x4d, 0x6a, 0x3d, 0x12, 0x3b, 0x0f, 0xc3, 0xa0, - 0xd3, 0x14, 0x68, 0xd1, 0x0a, 0xb4, 0x39, 0x96, 0x85, 0x50, 0x1c, 0x42, 0xa4, 0x92, 0xaa, 0xcd, - 0xa2, 0x40, 0x5b, 0xf4, 0x3f, 0x14, 0x45, 0xd1, 0x65, 0x97, 0x01, 0x0a, 0x74, 0xd1, 0x55, 0xbd, - 0xcb, 0xa2, 0xcb, 0xfe, 0x88, 0xfe, 0x81, 0xec, 0x8b, 0x99, 0xe1, 0x0c, 0x87, 0x96, 0x58, 0xcb, - 0x6e, 0xbb, 0x92, 0xf8, 0xcd, 0x99, 0x33, 0xdf, 0x79, 0xcc, 0x99, 0x39, 0x03, 0x15, 0xf4, 0xa9, - 0xdd, 0xf7, 0x5d, 0x14, 0xac, 0x38, 0x78, 0x6f, 0xd8, 0x47, 0x5e, 0x18, 0xac, 0x44, 0x50, 0xcd, - 0x1f, 0xe0, 0x10, 0xeb, 0x05, 0x31, 0xb0, 0x74, 0xa9, 0x8b, 0x71, 0xd7, 0x45, 0x2b, 0x74, 0x60, - 0x77, 0xb8, 0xbf, 0x12, 0xf6, 0xfa, 0x28, 0x08, 0xed, 0xbe, 0xcf, 0x64, 0x97, 0x0c, 0x7f, 0x80, - 0xf1, 0x7e, 0xc0, 0x04, 0x56, 0xe8, 0x47, 0x34, 0x72, 0x3e, 0x31, 0x12, 0xd8, 0x6e, 0xc8, 0x06, - 0xcc, 0x57, 0x39, 0x28, 0xb5, 0xd9, 0x82, 0xad, 0x68, 0x21, 0x7d, 0x11, 0x66, 0x9e, 0xdb, 0xee, - 0x10, 0xad, 0x1b, 0x4a, 0x45, 0xa9, 0x16, 0xac, 0xe8, 0x4b, 0xe0, 0x0d, 0x23, 0x23, 0xe1, 0x0d, - 0x81, 0xaf, 0x1a, 0xd9, 0x8a, 0x52, 0xcd, 0x46, 0xf8, 0xaa, 0xc0, 0xeb, 0x46, 0x4e, 0xc2, 0xeb, - 0xfa, 0x65, 0xd0, 0xe8, 0xbf, 0xce, 0xee, 0x28, 0x44, 0xc1, 0xaa, 0x91, 0xaf, 0x28, 0x55, 0xcd, - 0x52, 0x99, 0x36, 0x0a, 0xe9, 0x55, 0x28, 0x3d, 0x25, 0x9f, 0x4d, 0xbb, 0x8f, 0xdc, 0xa6, 0x1d, - 0x20, 0xc7, 0x98, 0xa1, 0x52, 0x47, 0x61, 0x7d, 0x15, 0x16, 0x98, 0x32, 0x0f, 0x87, 0x9d, 0x5e, - 0xd7, 0xc3, 0x03, 0xe4, 0x18, 0xb3, 0x44, 0xb6, 0x91, 0xff, 0xe1, 0xf0, 0x0d, 0x9c, 0xb1, 0x4a, - 0x74, 0x7c, 0x0b, 0x87, 0x9b, 0x6c, 0x54, 0x5f, 0x86, 0x22, 0x9b, 0xc2, 0xc5, 0xe7, 0x62, 0x71, - 0xc5, 0x62, 0xdc, 0xb8, 0xec, 0x0a, 0x94, 0x63, 0xf5, 0x07, 0x76, 0x70, 0x80, 0x1c, 0xa3, 0xc0, - 0xc4, 0x7f, 0xa4, 0xe2, 0xf3, 0x5c, 0xfb, 0x06, 0x1d, 0xd4, 0xaf, 0x40, 0x01, 0x79, 0xc3, 0x7e, - 0x27, 0x1c, 0xf9, 0xc8, 0x80, 0x8a, 0x52, 0x9d, 0xaf, 0x97, 0x6a, 0x22, 0x86, 0xb5, 0xb6, 0x37, - 0xec, 0x5b, 0x73, 0x44, 0xe2, 0xc9, 0xc8, 0x47, 0xfa, 0x7f, 0xa1, 0xc0, 0xcc, 0xc6, 0xd8, 0x35, - 0xb4, 0x8a, 0x52, 0x9d, 0xb3, 0x62, 0x40, 0x5f, 0x86, 0x9c, 0x67, 0xf7, 0x91, 0x51, 0xac, 0x28, - 0x55, 0x35, 0xa1, 0x66, 0xcb, 0xee, 0xa3, 0x46, 0xfe, 0x57, 0xca, 0x80, 0xca, 0xe8, 0x97, 0x61, - 0xce, 0xb7, 0x1d, 0xa7, 0xe7, 0x75, 0xd7, 0x8d, 0x79, 0x12, 0x9e, 0x46, 0xfe, 0xd5, 0xe1, 0x1b, - 0xa8, 0x58, 0x02, 0x96, 0x44, 0x1a, 0x46, 0x89, 0xd9, 0x90, 0x14, 0x69, 0xe8, 0x26, 0xe4, 0x49, - 0x72, 0x04, 0x86, 0x5a, 0xc9, 0x56, 0xd5, 0xba, 0x56, 0x63, 0x79, 0x53, 0xdb, 0xb1, 0xdd, 0xd0, - 0x62, 0x43, 0xe6, 0x77, 0x0a, 0x14, 0xd7, 0x5d, 0xf7, 0x5e, 0x0f, 0xb9, 0x0e, 0x31, 0x22, 0x20, - 0x01, 0x0d, 0xc2, 0x41, 0xcf, 0xeb, 0x76, 0x28, 0xf7, 0x28, 0x6d, 0x54, 0x86, 0xd1, 0x80, 0xe9, - 0x2d, 0x28, 0x93, 0x6c, 0xed, 0xd0, 0x74, 0x8d, 0xc4, 0x32, 0xd4, 0xac, 0xa5, 0x1a, 0x4b, 0xeb, - 0x1a, 0x4f, 0xeb, 0xda, 0x13, 0x9e, 0xd6, 0xd6, 0x3c, 0x99, 0xb3, 0x43, 0xfe, 0x32, 0x2d, 0x82, - 0x5e, 0x36, 0x9d, 0xde, 0xd7, 0x0a, 0xe8, 0x09, 0x7a, 0x64, 0x70, 0x32, 0x47, 0x2d, 0xc9, 0xb1, - 0x9a, 0xc2, 0x51, 0x3b, 0x15, 0x8f, 0xb7, 0x00, 0x76, 0x7a, 0x64, 0x5f, 0x6d, 0x86, 0xa8, 0x9f, - 0xb6, 0xa7, 0xcc, 0x11, 0x68, 0x16, 0xf2, 0x91, 0x1d, 0x22, 0x87, 0xca, 0x5d, 0x95, 0xe4, 0x88, - 0xea, 0xff, 0x48, 0x41, 0x8f, 0xd5, 0x1d, 0xbb, 0x25, 0xa7, 0x21, 0xf8, 0x12, 0x0a, 0x4c, 0xe3, - 0x63, 0xdb, 0xd7, 0x6f, 0x42, 0x9e, 0xfb, 0x85, 0x4c, 0xb8, 0x34, 0xb6, 0xec, 0x63, 0xdb, 0xaf, - 0x51, 0xe3, 0xdb, 0x5e, 0x38, 0x18, 0x59, 0x4c, 0x7a, 0x69, 0x0d, 0x20, 0x06, 0xf5, 0x32, 0x64, - 0x9f, 0xa1, 0x11, 0xb5, 0x30, 0x6f, 0x91, 0xbf, 0xfa, 0x39, 0xae, 0x96, 0xd1, 0x63, 0x1f, 0xef, - 0x66, 0xd6, 0x14, 0xf3, 0x27, 0x05, 0x4a, 0x4c, 0xf3, 0x0e, 0x0d, 0x01, 0x21, 0xd1, 0x48, 0x92, - 0x78, 0x7b, 0x8c, 0x84, 0x10, 0x95, 0xa8, 0xf0, 0x24, 0x66, 0x53, 0x63, 0xcb, 0x33, 0xa9, 0x96, - 0xa7, 0xb3, 0x2e, 0x1c, 0xc7, 0xfa, 0x67, 0x05, 0x0a, 0x5b, 0x28, 0x08, 0x91, 0x73, 0x8c, 0xd3, - 0x84, 0xd0, 0xb8, 0xd3, 0xa6, 0xa2, 0xb8, 0x75, 0x8c, 0x63, 0x97, 0x65, 0x8a, 0x6a, 0xfd, 0xdc, - 0xa4, 0x78, 0xc9, 0xc4, 0x1f, 0x82, 0xca, 0x70, 0xa6, 0xf0, 0x22, 0xa9, 0x52, 0xe1, 0x60, 0xd4, - 0x89, 0x2d, 0x9f, 0xa3, 0xc0, 0x43, 0x34, 0xd2, 0x2f, 0x81, 0xca, 0x06, 0x65, 0x27, 0x00, 0x85, - 0x28, 0x27, 0xf3, 0x33, 0x28, 0xc6, 0xca, 0x7a, 0x28, 0xd0, 0xdb, 0x30, 0x8b, 0xd8, 0xdf, 0xc8, - 0x15, 0x8b, 0x63, 0x7c, 0x58, 0xac, 0xce, 0xd2, 0x58, 0xfd, 0x72, 0xf8, 0x46, 0x5a, 0xdf, 0xe2, - 0x73, 0xa7, 0x71, 0x8c, 0xe9, 0x42, 0x7e, 0x0a, 0x13, 0xe2, 0xed, 0x96, 0x49, 0x39, 0xc2, 0xb2, - 0x74, 0x63, 0x1f, 0x3d, 0xc2, 0x9a, 0x89, 0xa3, 0xaa, 0x69, 0x7a, 0x30, 0xcb, 0x6d, 0xbc, 0x7b, - 0xd4, 0xc6, 0x72, 0xa2, 0xac, 0xff, 0x33, 0xd6, 0xdd, 0x85, 0x22, 0x3d, 0x01, 0x1f, 0xa2, 0x11, - 0xb3, 0xd2, 0x80, 0x59, 0xdb, 0x71, 0x06, 0x28, 0x08, 0xa2, 0x8a, 0xc5, 0x3f, 0x27, 0x27, 0xa9, - 0xf9, 0x12, 0x4a, 0xb2, 0x82, 0x89, 0xc1, 0x31, 0x24, 0xe2, 0x89, 0xd5, 0x1a, 0x0b, 0xc4, 0x80, - 0x73, 0xc4, 0x00, 0xbe, 0xcc, 0xc9, 0xe8, 0x7f, 0xa3, 0x80, 0xf1, 0xe4, 0x05, 0x7e, 0x84, 0x9e, - 0x23, 0x97, 0x97, 0xb5, 0x63, 0xaf, 0x15, 0x2b, 0x52, 0x0d, 0x23, 0x9a, 0xcf, 0x4b, 0xf4, 0xe4, - 0xda, 0x78, 0xa2, 0xe2, 0xf6, 0x95, 0x02, 0x8b, 0x2c, 0xf1, 0xa6, 0xe6, 0x71, 0xdc, 0xf5, 0xa6, - 0x49, 0xd7, 0xe3, 0x78, 0x33, 0xa6, 0x91, 0x4b, 0xa7, 0xf1, 0x47, 0x06, 0x16, 0xc4, 0x7e, 0x3c, - 0x35, 0x83, 0xfb, 0x09, 0x06, 0x6a, 0xbd, 0x3a, 0x69, 0xb7, 0x73, 0xed, 0xac, 0xe0, 0x34, 0x13, - 0xb5, 0x91, 0x53, 0x7e, 0x2f, 0x52, 0xd4, 0x8a, 0x38, 0x4f, 0xa1, 0xa8, 0xc5, 0x4a, 0x57, 0x34, - 0x2f, 0x36, 0x3a, 0x9f, 0x5e, 0xbb, 0xee, 0x80, 0x2a, 0x71, 0x38, 0x49, 0x7d, 0x15, 0x53, 0x5b, - 0x27, 0x3f, 0x50, 0x46, 0xa0, 0xf1, 0xd4, 0x1b, 0x3b, 0x49, 0x95, 0x7f, 0xf7, 0x24, 0xfd, 0x4d, - 0x81, 0x45, 0x56, 0xf0, 0xff, 0x76, 0xb2, 0x5d, 0x3d, 0x12, 0xea, 0xbf, 0x64, 0xdd, 0x14, 0x7b, - 0xa7, 0x45, 0xeb, 0x56, 0x72, 0xef, 0xc8, 0xde, 0x38, 0x49, 0xfc, 0xcc, 0x8f, 0x61, 0x69, 0xd3, - 0x7b, 0x6e, 0xbb, 0x3d, 0x87, 0xdd, 0x69, 0xe9, 0x55, 0x4a, 0x58, 0x74, 0x31, 0x3e, 0xf4, 0xe8, - 0x2d, 0x93, 0x5d, 0x83, 0xa7, 0x3f, 0xda, 0xcc, 0xdf, 0x15, 0x50, 0xb1, 0x87, 0xf0, 0xfe, 0x0e, - 0x6d, 0x3b, 0x8e, 0xb8, 0x28, 0x2f, 0x5c, 0x64, 0x24, 0x5c, 0x94, 0xdf, 0x38, 0x23, 0x9c, 0x64, - 0x48, 0x4e, 0x52, 0xaa, 0x05, 0x31, 0x32, 0xee, 0x8f, 0xc9, 0xee, 0x13, 0x13, 0x5a, 0x62, 0xf1, - 0x36, 0xed, 0x42, 0xf8, 0xe2, 0xed, 0xd8, 0x90, 0x99, 0x54, 0x43, 0x1a, 0x1a, 0x00, 0xb5, 0xa3, - 0xe1, 0xe2, 0xbd, 0x67, 0xe6, 0xb7, 0x59, 0xd0, 0x1e, 0x61, 0xaf, 0x3b, 0x16, 0xfa, 0x6b, 0x46, - 0x59, 0x3a, 0x53, 0xae, 0x49, 0xed, 0x92, 0x92, 0xd2, 0x2e, 0x65, 0x12, 0xed, 0x12, 0xc7, 0xaf, - 0x27, 0xda, 0xab, 0xeb, 0x02, 0xbf, 0x91, 0x38, 0xb3, 0x6e, 0x08, 0xfc, 0x26, 0x35, 0x89, 0xe3, - 0x37, 0x05, 0x7e, 0x8b, 0xb6, 0x52, 0x1c, 0xbf, 0x25, 0xf0, 0xdb, 0xb4, 0x6d, 0xe2, 0xf8, 0x6d, - 0x81, 0xaf, 0xd1, 0xfe, 0x88, 0xe3, 0x6b, 0x02, 0xbf, 0x43, 0x1b, 0x21, 0x8e, 0xdf, 0x91, 0xe2, - 0x08, 0x12, 0x2e, 0xa7, 0xba, 0x2a, 0xe1, 0x72, 0x5d, 0xd5, 0xe4, 0x33, 0x57, 0xe0, 0x2d, 0xda, - 0xf7, 0x64, 0x27, 0x84, 0x6a, 0x5e, 0xc2, 0xa5, 0x50, 0x95, 0xd2, 0x73, 0xee, 0xfb, 0x0c, 0xcc, - 0x6d, 0x7a, 0x21, 0xea, 0xa2, 0x41, 0x90, 0x9a, 0x70, 0xc9, 0x3d, 0x99, 0x9d, 0x78, 0x00, 0x28, - 0xd5, 0xe2, 0x04, 0xa2, 0x24, 0x00, 0xb9, 0x94, 0x9c, 0x5a, 0x10, 0x44, 0x39, 0x7e, 0x8f, 0x06, - 0x40, 0x8f, 0xf0, 0x7b, 0x02, 0xbf, 0x4f, 0x03, 0x30, 0x1b, 0xe1, 0xf7, 0x05, 0xbe, 0x41, 0x03, - 0x30, 0x13, 0xe1, 0x1b, 0x02, 0xdf, 0xa4, 0x01, 0x28, 0x45, 0xf8, 0xa6, 0xc0, 0x1f, 0xd0, 0x00, - 0x94, 0x23, 0xfc, 0xc1, 0x54, 0x4d, 0xdd, 0x2e, 0x68, 0x4d, 0xec, 0x85, 0x76, 0xcf, 0x63, 0xed, - 0xd2, 0x74, 0x75, 0x2b, 0x7f, 0xa2, 0x32, 0xd9, 0x86, 0xb3, 0xd1, 0x53, 0xc3, 0x07, 0xbd, 0xf0, - 0x00, 0x0f, 0xc3, 0x53, 0x2d, 0x65, 0x5e, 0x83, 0x1c, 0x69, 0x7f, 0xc9, 0x51, 0xb0, 0xdf, 0x1b, - 0x04, 0x61, 0x34, 0x8d, 0x7d, 0xe8, 0x3a, 0xe4, 0x5c, 0x3b, 0x08, 0xa3, 0xb2, 0x4a, 0xff, 0x9b, - 0x1f, 0x81, 0xba, 0x7d, 0x80, 0x3d, 0xb4, 0x35, 0xec, 0xef, 0xa2, 0x01, 0x11, 0xa1, 0xdd, 0x39, - 0x9b, 0x47, 0xff, 0xeb, 0x15, 0x50, 0xf7, 0xf0, 0x90, 0x1c, 0x3a, 0x7b, 0xd8, 0xe1, 0xa7, 0x8b, - 0x0c, 0x11, 0x3a, 0x1e, 0x9d, 0xcf, 0x8a, 0x8e, 0x15, 0x7d, 0x99, 0x9f, 0x40, 0x31, 0xb2, 0x8a, - 0x1d, 0x01, 0x7a, 0x15, 0x34, 0xf6, 0x50, 0x20, 0x77, 0x9a, 0xbc, 0x4e, 0xaa, 0x6c, 0x88, 0xb5, - 0x91, 0xff, 0x8f, 0xfa, 0xfb, 0xcc, 0xc4, 0xfe, 0x9e, 0x35, 0xf6, 0xe6, 0xa1, 0x02, 0x67, 0xd7, - 0x7d, 0x1f, 0x79, 0x47, 0xea, 0x30, 0x7f, 0x1c, 0x50, 0xa6, 0x78, 0x1c, 0xb8, 0x02, 0x79, 0xf2, - 0xcb, 0xcb, 0x72, 0x9a, 0x30, 0x13, 0xd2, 0xb7, 0xa1, 0xe8, 0x13, 0x77, 0x75, 0x98, 0x85, 0x3c, - 0xa6, 0xf2, 0x9d, 0x5e, 0x72, 0x27, 0xbb, 0xf5, 0xe6, 0xc8, 0xa5, 0x91, 0xba, 0x92, 0xa9, 0xd2, - 0xfc, 0x58, 0x22, 0x30, 0xbf, 0x50, 0xe0, 0xc2, 0xfb, 0x5e, 0x30, 0xf4, 0x7d, 0x3c, 0x08, 0x91, - 0xc3, 0xcc, 0x39, 0x95, 0x25, 0xb7, 0x61, 0xc6, 0xa3, 0x6e, 0x8e, 0x9c, 0x26, 0xdf, 0x65, 0x13, - 0x61, 0xe0, 0xd3, 0x22, 0x71, 0xf3, 0x4b, 0x05, 0xe6, 0xb7, 0x30, 0xc9, 0x38, 0xb1, 0xee, 0x3b, - 0xa0, 0x46, 0x8f, 0x37, 0x04, 0xe6, 0xe7, 0xd9, 0x6b, 0x16, 0x27, 0x69, 0x44, 0xbc, 0xd2, 0x50, - 0x31, 0x96, 0x1a, 0x31, 0x20, 0xe8, 0x67, 0x53, 0xe8, 0xbf, 0x8e, 0xe9, 0x9b, 0x9f, 0xc3, 0x79, - 0x69, 0x0b, 0x6c, 0xb3, 0x67, 0x17, 0x1a, 0x57, 0xfd, 0x7f, 0xc9, 0x6d, 0x90, 0xbc, 0xba, 0xad, - 0x8b, 0x61, 0xb6, 0x1b, 0xb4, 0xe4, 0xf0, 0x74, 0xfb, 0xef, 0x29, 0x00, 0x61, 0x44, 0x56, 0x45, - 0x0e, 0x39, 0xc7, 0xa5, 0xed, 0xc3, 0xf4, 0x01, 0xdf, 0x45, 0x17, 0xe4, 0x5d, 0xc4, 0xc7, 0x28, - 0x44, 0xee, 0x64, 0x76, 0x97, 0x59, 0x9b, 0xb7, 0xc8, 0x5f, 0x73, 0x1b, 0x96, 0xa4, 0x04, 0x8d, - 0x8c, 0x12, 0x5e, 0xae, 0xf3, 0xdc, 0x1b, 0x7f, 0xd0, 0x88, 0xd9, 0x24, 0x33, 0x70, 0xd9, 0x84, - 0x5c, 0xdb, 0x1b, 0xf6, 0x75, 0x0d, 0xe6, 0x48, 0x4a, 0x75, 0xb0, 0x87, 0xca, 0x67, 0xc4, 0x57, - 0xf8, 0x02, 0x97, 0x95, 0xc6, 0x15, 0x28, 0xee, 0xe1, 0x7e, 0xac, 0xad, 0xa1, 0x45, 0x9e, 0xdd, - 0x1e, 0xe0, 0x10, 0x6f, 0x2b, 0x1f, 0xaa, 0x62, 0xc8, 0xdf, 0xdd, 0x9d, 0xa1, 0xaf, 0x4b, 0xd7, - 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x97, 0xb8, 0xe8, 0x46, 0x71, 0x15, 0x00, 0x00, +var File_examples_documents_example_proto protoreflect.FileDescriptor + +var file_examples_documents_example_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, + 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x61, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xb0, 0x04, 0x0a, 0x0f, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x44, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x31, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x31, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x32, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x31, 0x12, 0x28, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, + 0x65, 0x64, 0x12, 0x31, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05, 0xa0, + 0xc1, 0xf5, 0x0a, 0x00, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x6f, 0x74, 0x49, 0x67, + 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, + 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05, 0xa0, 0xc1, + 0xf5, 0x0a, 0x01, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, + 0x64, 0x12, 0x2f, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x68, + 0x61, 0x73, 0x68, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05, 0xa8, 0xc1, 0xf5, + 0x0a, 0x01, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, + 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x2a, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x05, 0xc0, + 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x08, 0x70, 0x61, + 0x64, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xb0, 0xc1, + 0xf5, 0x0a, 0x20, 0x52, 0x08, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x12, 0x21, 0x0a, + 0x08, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x42, + 0x05, 0xb0, 0xc1, 0xf5, 0x0a, 0x20, 0x52, 0x08, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x42, + 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, + 0x61, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x0d, 0x41, 0x6c, 0x6c, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 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, + 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, + 0x6c, 0x74, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x12, 0x41, 0x6c, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x61, 0x6c, 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, + 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, + 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, + 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x24, 0x0a, 0x0a, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x22, 0x79, 0x0a, 0x0c, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x49, 0x74, 0x65, + 0x6d, 0x12, 0x2d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, + 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, + 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x7c, 0x0a, 0x09, + 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x1a, 0x38, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb3, 0x01, 0x0a, 0x0f, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x12, 0x42, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x42, 0x05, 0xb0, 0xc1, 0xf5, 0x0a, 0x20, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, + 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xb6, 0x01, 0x0a, 0x09, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x70, 0x12, 0x35, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x4d, 0x61, 0x70, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, + 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x1a, 0x4e, 0x0a, 0x0a, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0b, 0x53, 0x69, 0x6d, + 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7a, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, + 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x42, 0x13, 0xb0, 0xc1, 0xf5, 0x0a, 0x20, 0xba, 0xc1, 0xf5, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x22, + 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, + 0x74, 0x73, 0x22, 0x6c, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x65, + 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x65, 0x6e, 0x74, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x41, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, + 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x43, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x22, 0x6e, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x65, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x13, + 0xb0, 0xc1, 0xf5, 0x0a, 0x20, 0xba, 0xc1, 0xf5, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, + 0x6b, 0x65, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x05, + 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, + 0x22, 0x3f, 0x0a, 0x0d, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x7c, 0x0a, 0x0f, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, + 0x11, 0xb0, 0xc1, 0xf5, 0x0a, 0x14, 0xba, 0xc1, 0xf5, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x73, + 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, + 0x87, 0x01, 0x0a, 0x18, 0x54, 0x77, 0x6f, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x70, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x12, 0x2f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, + 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x16, 0x53, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x12, 0x22, 0x0a, 0x05, + 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, + 0x22, 0xe8, 0x02, 0x0a, 0x11, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, + 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x47, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x42, 0x05, 0xb0, 0xc1, 0xf5, 0x0a, 0x20, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x12, + 0x40, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x44, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x44, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, + 0x73, 0x61, 0x6c, 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x79, 0x0a, 0x0c, 0x54, + 0x77, 0x6f, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x2d, 0x0a, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, + 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x16, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x12, 0x2d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x12, 0x2f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x77, 0x6f, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x44, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, + 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x5d, 0x0a, 0x1a, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x48, 0x61, 0x73, 0x68, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x05, 0xa8, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, + 0x61, 0x6c, 0x74, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x18, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x18, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x12, 0x2f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x69, 0x6d, + 0x70, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x00, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x44, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, + 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x42, 0x0c, 0x0a, + 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x9a, 0x03, 0x0a, 0x0c, + 0x4c, 0x6f, 0x6e, 0x67, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x30, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x30, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x31, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x31, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x32, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x33, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x33, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x34, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x35, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x35, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x36, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x36, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x37, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x37, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x38, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x38, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x39, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x39, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x43, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x45, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x0f, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, 0x6c, + 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x9e, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x74, + 0x65, 0x67, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x46, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x46, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x47, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x47, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x48, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x18, 0x0b, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x53, 0x61, + 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x62, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x53, 0x61, 0x6c, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, + 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x45, 0x0a, + 0x13, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x53, + 0x61, 0x6c, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x22, 0x30, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x72, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x22, 0x5b, 0x0a, 0x0b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x72, 0x79, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x0d, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05, 0xa8, 0xc1, 0xf5, 0x0a, + 0x01, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x05, 0xc0, 0xc1, 0xf5, 0x0a, + 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x05, 0xc0, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x05, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0d, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x42, 0x13, 0xb0, 0xc1, 0xf5, 0x0a, 0x04, 0xba, 0xc1, 0xf5, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0xc0, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x19, 0x55, 0x6e, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x44, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x05, 0xc0, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x37, 0x0a, 0x06, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x05, 0xc0, 0xc1, 0xf5, + 0x0a, 0x01, 0x52, 0x06, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x0e, 0x4e, + 0x6f, 0x53, 0x61, 0x6c, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, + 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x6f, 0x53, 0x61, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x05, 0xc8, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x4e, 0x6f, 0x53, 0x61, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x53, + 0x61, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x53, 0x61, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, + 0x61, 0x6d, 0x65, 0x42, 0x05, 0xc8, 0xc1, 0xf5, 0x0a, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x7b, 0x0a, 0x17, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x57, 0x69, 0x74, 0x68, 0x50, + 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xb0, 0xc1, 0xf5, + 0x0a, 0x20, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x12, 0x1d, 0x0a, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05, 0xb0, 0xc1, 0xf5, 0x0a, + 0x20, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x61, 0x6c, + 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x73, 0x2e, 0x53, 0x61, 0x6c, 0x74, 0x52, 0x05, 0x73, 0x61, 0x6c, 0x74, 0x73, 0x22, 0x56, 0x0a, + 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x05, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xb0, 0xc1, 0xf5, 0x0a, + 0x0a, 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xb0, 0xc1, 0xf5, 0x0a, 0x0a, 0x52, 0x04, 0x6c, + 0x61, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x61, 0x67, 0x65, 0x22, 0x50, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, + 0x61, 0x6d, 0x65, 0x50, 0x61, 0x64, 0x64, 0x65, 0x64, 0x42, 0x05, 0xc0, 0xc1, 0xf5, 0x0a, 0x01, + 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2a, 0x22, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, + 0x0c, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x74, 0x77, 0x6f, 0x10, 0x01, 0x42, 0x63, 0x0a, 0x0d, 0x63, + 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x0c, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x66, + 0x75, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6f, + 0x66, 0x73, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_examples_documents_example_proto_rawDescOnce sync.Once + file_examples_documents_example_proto_rawDescData = file_examples_documents_example_proto_rawDesc +) + +func file_examples_documents_example_proto_rawDescGZIP() []byte { + file_examples_documents_example_proto_rawDescOnce.Do(func() { + file_examples_documents_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_examples_documents_example_proto_rawDescData) + }) + return file_examples_documents_example_proto_rawDescData +} + +var file_examples_documents_example_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_examples_documents_example_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_examples_documents_example_proto_goTypes = []interface{}{ + (Enum)(0), // 0: documents.Enum + (*ExampleDocument)(nil), // 1: documents.ExampleDocument + (*AllFieldTypes)(nil), // 2: documents.AllFieldTypes + (*AllFieldTypesSalts)(nil), // 3: documents.AllFieldTypesSalts + (*SimpleItem)(nil), // 4: documents.SimpleItem + (*RepeatedItem)(nil), // 5: documents.RepeatedItem + (*SimpleMap)(nil), // 6: documents.SimpleMap + (*SimpleStringMap)(nil), // 7: documents.SimpleStringMap + (*NestedMap)(nil), // 8: documents.NestedMap + (*SimpleEntry)(nil), // 9: documents.SimpleEntry + (*SimpleEntries)(nil), // 10: documents.SimpleEntries + (*Entry)(nil), // 11: documents.Entry + (*Entries)(nil), // 12: documents.Entries + (*BytesKeyEntry)(nil), // 13: documents.BytesKeyEntry + (*BytesKeyEntries)(nil), // 14: documents.BytesKeyEntries + (*TwoLevelRepeatedDocument)(nil), // 15: documents.TwoLevelRepeatedDocument + (*SimpleRepeatedDocument)(nil), // 16: documents.SimpleRepeatedDocument + (*SimpleMapDocument)(nil), // 17: documents.SimpleMapDocument + (*TwoLevelItem)(nil), // 18: documents.TwoLevelItem + (*NestedRepeatedDocument)(nil), // 19: documents.NestedRepeatedDocument + (*InvalidHashedFieldDocument)(nil), // 20: documents.InvalidHashedFieldDocument + (*OneofSample)(nil), // 21: documents.oneofSample + (*LongDocument)(nil), // 22: documents.LongDocument + (*Integers)(nil), // 23: documents.Integers + (*ContainSalts)(nil), // 24: documents.ContainSalts + (*ExampleWithoutSalts)(nil), // 25: documents.ExampleWithoutSalts + (*Name)(nil), // 26: documents.Name + (*PhoneNumber)(nil), // 27: documents.PhoneNumber + (*ExampleNested)(nil), // 28: documents.ExampleNested + (*AppendFieldDocument)(nil), // 29: documents.AppendFieldDocument + (*UnsupportedAppendDocument)(nil), // 30: documents.UnsupportedAppendDocument + (*NoSaltDocument)(nil), // 31: documents.NoSaltDocument + (*ExampleWithPaddingField)(nil), // 32: documents.ExampleWithPaddingField + (*NamePadded)(nil), // 33: documents.NamePadded + (*AppendFieldPaddingDocument)(nil), // 34: documents.AppendFieldPaddingDocument + nil, // 35: documents.SimpleMap.ValueEntry + nil, // 36: documents.SimpleStringMap.ValueEntry + nil, // 37: documents.NestedMap.ValueEntry + nil, // 38: documents.SimpleMapDocument.ValueCEntry + nil, // 39: documents.SimpleMapDocument.ValueDEntry + (*proto.Salt)(nil), // 40: proofs.Salt + (*timestamppb.Timestamp)(nil), // 41: google.protobuf.Timestamp +} +var file_examples_documents_example_proto_depIdxs = []int32{ + 0, // 0: documents.ExampleDocument.enum_type:type_name -> documents.Enum + 26, // 1: documents.ExampleDocument.name:type_name -> documents.Name + 40, // 2: documents.ExampleDocument.salts:type_name -> proofs.Salt + 41, // 3: documents.AllFieldTypes.time_stamp_value:type_name -> google.protobuf.Timestamp + 40, // 4: documents.AllFieldTypes.salts:type_name -> proofs.Salt + 40, // 5: documents.AllFieldTypesSalts.salts:type_name -> proofs.Salt + 4, // 6: documents.RepeatedItem.valueA:type_name -> documents.SimpleItem + 40, // 7: documents.RepeatedItem.salts:type_name -> proofs.Salt + 35, // 8: documents.SimpleMap.value:type_name -> documents.SimpleMap.ValueEntry + 36, // 9: documents.SimpleStringMap.value:type_name -> documents.SimpleStringMap.ValueEntry + 40, // 10: documents.SimpleStringMap.salts:type_name -> proofs.Salt + 37, // 11: documents.NestedMap.value:type_name -> documents.NestedMap.ValueEntry + 40, // 12: documents.NestedMap.salts:type_name -> proofs.Salt + 9, // 13: documents.SimpleEntries.entries:type_name -> documents.SimpleEntry + 40, // 14: documents.SimpleEntries.salts:type_name -> proofs.Salt + 11, // 15: documents.Entries.entries:type_name -> documents.Entry + 40, // 16: documents.Entries.salts:type_name -> proofs.Salt + 13, // 17: documents.BytesKeyEntries.entries:type_name -> documents.BytesKeyEntry + 40, // 18: documents.BytesKeyEntries.salts:type_name -> proofs.Salt + 5, // 19: documents.TwoLevelRepeatedDocument.valueB:type_name -> documents.RepeatedItem + 40, // 20: documents.TwoLevelRepeatedDocument.salts:type_name -> proofs.Salt + 40, // 21: documents.SimpleRepeatedDocument.salts:type_name -> proofs.Salt + 38, // 22: documents.SimpleMapDocument.valueC:type_name -> documents.SimpleMapDocument.ValueCEntry + 39, // 23: documents.SimpleMapDocument.valueD:type_name -> documents.SimpleMapDocument.ValueDEntry + 40, // 24: documents.SimpleMapDocument.salts:type_name -> proofs.Salt + 4, // 25: documents.TwoLevelItem.valueA:type_name -> documents.SimpleItem + 40, // 26: documents.TwoLevelItem.salts:type_name -> proofs.Salt + 4, // 27: documents.NestedRepeatedDocument.valueC:type_name -> documents.SimpleItem + 18, // 28: documents.NestedRepeatedDocument.valueD:type_name -> documents.TwoLevelItem + 40, // 29: documents.NestedRepeatedDocument.salts:type_name -> proofs.Salt + 40, // 30: documents.InvalidHashedFieldDocument.salts:type_name -> proofs.Salt + 4, // 31: documents.oneofSample.valueD:type_name -> documents.SimpleItem + 40, // 32: documents.oneofSample.salts:type_name -> proofs.Salt + 40, // 33: documents.LongDocument.salts:type_name -> proofs.Salt + 40, // 34: documents.Integers.salts:type_name -> proofs.Salt + 40, // 35: documents.ContainSalts.salts:type_name -> proofs.Salt + 26, // 36: documents.ExampleNested.name:type_name -> documents.Name + 26, // 37: documents.AppendFieldDocument.name:type_name -> documents.Name + 26, // 38: documents.AppendFieldDocument.names:type_name -> documents.Name + 27, // 39: documents.AppendFieldDocument.phone_numbers:type_name -> documents.PhoneNumber + 26, // 40: documents.UnsupportedAppendDocument.name:type_name -> documents.Name + 28, // 41: documents.UnsupportedAppendDocument.nested:type_name -> documents.ExampleNested + 26, // 42: documents.NoSaltDocument.name:type_name -> documents.Name + 40, // 43: documents.ExampleWithPaddingField.salts:type_name -> proofs.Salt + 33, // 44: documents.AppendFieldPaddingDocument.names:type_name -> documents.NamePadded + 6, // 45: documents.NestedMap.ValueEntry.value:type_name -> documents.SimpleMap + 46, // [46:46] is the sub-list for method output_type + 46, // [46:46] is the sub-list for method input_type + 46, // [46:46] is the sub-list for extension type_name + 46, // [46:46] is the sub-list for extension extendee + 0, // [0:46] is the sub-list for field type_name +} + +func init() { file_examples_documents_example_proto_init() } +func file_examples_documents_example_proto_init() { + if File_examples_documents_example_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_examples_documents_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AllFieldTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AllFieldTypesSalts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepeatedItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleStringMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NestedMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleEntries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Entry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Entries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BytesKeyEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BytesKeyEntries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TwoLevelRepeatedDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleRepeatedDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleMapDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TwoLevelItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NestedRepeatedDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidHashedFieldDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneofSample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LongDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Integers); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainSalts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleWithoutSalts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Name); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PhoneNumber); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleNested); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppendFieldDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnsupportedAppendDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoSaltDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleWithPaddingField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamePadded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_examples_documents_example_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppendFieldPaddingDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_examples_documents_example_proto_msgTypes[20].OneofWrappers = []interface{}{ + (*OneofSample_ValueB)(nil), + (*OneofSample_ValueC)(nil), + (*OneofSample_ValueD)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_examples_documents_example_proto_rawDesc, + NumEnums: 1, + NumMessages: 39, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_examples_documents_example_proto_goTypes, + DependencyIndexes: file_examples_documents_example_proto_depIdxs, + EnumInfos: file_examples_documents_example_proto_enumTypes, + MessageInfos: file_examples_documents_example_proto_msgTypes, + }.Build() + File_examples_documents_example_proto = out.File + file_examples_documents_example_proto_rawDesc = nil + file_examples_documents_example_proto_goTypes = nil + file_examples_documents_example_proto_depIdxs = nil } diff --git a/examples/documents/example.proto b/examples/documents/example.proto index 9088515..10af7cb 100644 --- a/examples/documents/example.proto +++ b/examples/documents/example.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package documents; -option go_package = "documentspb"; +option go_package = "github.com/centrifuge/precise-proofs/example/documents;documentspb"; option java_multiple_files = true; option java_outer_classname = "ExampleProto"; option java_package = "com.documents"; diff --git a/go.mod b/go.mod index ad4325a..ea8e906 100644 --- a/go.mod +++ b/go.mod @@ -4,13 +4,14 @@ go 1.15 require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/golang/protobuf v1.3.1 + github.com/golang/protobuf v1.5.0 github.com/pkg/errors v0.8.0 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/testify v1.2.2 github.com/xsleonard/go-merkle v1.1.0 golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 golang.org/x/sys v0.0.0-20190531073156-46560c3f3c0a // indirect + google.golang.org/protobuf v1.28.0 ) replace github.com/xsleonard/go-merkle v1.1.0 => github.com/centrifuge/go-merkle v0.0.0-20190727075423-0ac78bbbc01b diff --git a/go.sum b/go.sum index b20315d..fe8cdec 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,10 @@ github.com/centrifuge/go-merkle v0.0.0-20190727075423-0ac78bbbc01b h1:TPvvMcGAc3 github.com/centrifuge/go-merkle v0.0.0-20190727075423-0ac78bbbc01b/go.mod h1:0voJY6Qzxvr2S0LeDSFQiCnJzGq5gORg2SwCmn8602I= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -19,3 +21,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190531073156-46560c3f3c0a h1:ndj5BW7+tkr8XVsbkZpft/pgCRU+L76ePImF2dpCwek= golang.org/x/sys v0.0.0-20190531073156-46560c3f3c0a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/proofs/flatten.go b/proofs/flatten.go index a055e7a..4181e0b 100644 --- a/proofs/flatten.go +++ b/proofs/flatten.go @@ -3,6 +3,7 @@ package proofs import ( "bytes" "encoding/binary" + "fmt" "hash" "reflect" "sort" @@ -16,6 +17,7 @@ import ( "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/timestamp" "github.com/pkg/errors" + "google.golang.org/protobuf/types/descriptorpb" ) // messageFlattener takes a proto.Message and flattens it to a list of ordered nodes. @@ -93,8 +95,8 @@ func (f *messageFlattener) handleValue(prop Property, value reflect.Value, salts field = value.Field(i).Elem().Elem().Type().Field(0) oneOfField = true } - // Ignore fields starting with XXX_, those are protobuf internals - if strings.HasPrefix(field.Name, "XXX_") { + // Ignore unexported fields. + if !field.IsExported() { continue } @@ -104,15 +106,6 @@ func (f *messageFlattener) handleValue(prop Property, value reflect.Value, salts continue } - innerFieldDescriptor := messageDescriptor.Field[i] - - // Check if the field has an exclude_from_tree option and skip it - excludeFromTree, err := proto.GetExtension(innerFieldDescriptor.Options, proofspb.E_ExcludeFromTree) - if err == nil && *(excludeFromTree.(*bool)) { - continue - } - - fixedLength := getKeyLengthFrom(innerFieldDescriptor) protoTag := field.Tag.Get("protobuf") name, num, err := ExtractFieldTags(protoTag) if err != nil { @@ -125,6 +118,21 @@ func (f *messageFlattener) handleValue(prop Property, value reflect.Value, salts continue } } + + innerFieldDescriptor, err := getInnerFieldDescriptor(messageDescriptor, int32(num)) + + if err != nil { + return errors.Wrapf(err, "failed to get inner field descriptor") + } + + // Check if the field has an exclude_from_tree option and skip it + excludeFromTree, err := proto.GetExtension(innerFieldDescriptor.Options, proofspb.E_ExcludeFromTree) + if err == nil && *(excludeFromTree.(*bool)) { + continue + } + + fixedLength := getKeyLengthFrom(innerFieldDescriptor) + fieldProp := prop.FieldProp(name, num) isHashed, err := proto.GetExtension(innerFieldDescriptor.Options, proofspb.E_HashedField) @@ -298,6 +306,16 @@ func (f *messageFlattener) handleValue(prop Property, value reflect.Value, salts return nil } +func getInnerFieldDescriptor(descriptorProto *descriptorpb.DescriptorProto, fieldNum int32) (*descriptorpb.FieldDescriptorProto, error) { + for _, field := range descriptorProto.GetField() { + if field.GetNumber() == fieldNum { + return field, nil + } + } + + return nil, fmt.Errorf("field number %d not found", fieldNum) +} + func fetchLengthFromInterface(k reflect.Value) uint64 { switch k.Kind() { case reflect.Interface: @@ -481,9 +499,9 @@ func sliceToMap(value reflect.Value, mappingKey string, keyLength uint64) (refle if (len(elemMD.Field) == 2) || ((len(elemMD.Field) == 3) && (saltsFieldFound)) { valueField, valueFound := elemType.FieldByNameFunc(func(name string) bool { if saltsFieldFound { - return !strings.HasPrefix(name, "XXX_") && name != mappingKey && name != SaltsFieldName + return !isInternalProtoField(name) && name != mappingKey && name != SaltsFieldName } else { - return !strings.HasPrefix(name, "XXX_") && name != mappingKey + return !isInternalProtoField(name) && name != mappingKey } }) if !valueFound { @@ -510,6 +528,20 @@ func sliceToMap(value reflect.Value, mappingKey string, keyLength uint64) (refle return mapValue, nil } +var internalProtoFields = map[string]struct{}{ + "state": {}, + "sizeCache": {}, + "weakFields": {}, + "unknownFields": {}, + "extensionFields": {}, +} + +func isInternalProtoField(fieldName string) bool { + _, ok := internalProtoFields[fieldName] + + return ok +} + func getKeyLengthFrom(fd *godescriptor.FieldDescriptorProto) (keyLength uint64) { if fd == nil { return diff --git a/proofs/proto/proof.pb.go b/proofs/proto/proof.pb.go index 73fb2c1..464581a 100644 --- a/proofs/proto/proof.pb.go +++ b/proofs/proto/proof.pb.go @@ -1,75 +1,87 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: proofs/proto/proof.proto +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 +// source: proof.proto package proofspb import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type MerkleHash struct { - Left []byte `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"` - Right []byte `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MerkleHash) Reset() { *m = MerkleHash{} } -func (m *MerkleHash) String() string { return proto.CompactTextString(m) } -func (*MerkleHash) ProtoMessage() {} -func (*MerkleHash) Descriptor() ([]byte, []int) { - return fileDescriptor_48dd2c57ca80438f, []int{0} + Left []byte `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"` + Right []byte `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"` } -func (m *MerkleHash) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MerkleHash.Unmarshal(m, b) -} -func (m *MerkleHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MerkleHash.Marshal(b, m, deterministic) -} -func (m *MerkleHash) XXX_Merge(src proto.Message) { - xxx_messageInfo_MerkleHash.Merge(m, src) +func (x *MerkleHash) Reset() { + *x = MerkleHash{} + if protoimpl.UnsafeEnabled { + mi := &file_proof_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MerkleHash) XXX_Size() int { - return xxx_messageInfo_MerkleHash.Size(m) + +func (x *MerkleHash) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MerkleHash) XXX_DiscardUnknown() { - xxx_messageInfo_MerkleHash.DiscardUnknown(m) + +func (*MerkleHash) ProtoMessage() {} + +func (x *MerkleHash) ProtoReflect() protoreflect.Message { + mi := &file_proof_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MerkleHash proto.InternalMessageInfo +// Deprecated: Use MerkleHash.ProtoReflect.Descriptor instead. +func (*MerkleHash) Descriptor() ([]byte, []int) { + return file_proof_proto_rawDescGZIP(), []int{0} +} -func (m *MerkleHash) GetLeft() []byte { - if m != nil { - return m.Left +func (x *MerkleHash) GetLeft() []byte { + if x != nil { + return x.Left } return nil } -func (m *MerkleHash) GetRight() []byte { - if m != nil { - return m.Right +func (x *MerkleHash) GetRight() []byte { + if x != nil { + return x.Right } return nil } type Proof struct { - // Types that are valid to be assigned to Property: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Property: // *Proof_ReadableName // *Proof_CompactName Property isProof_Property `protobuf_oneof:"property"` @@ -79,54 +91,42 @@ type Proof struct { Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` // Fills either 'hashes' for standard Merkle trees or 'sorted_hashes' for a lexicograhical ordered of a node hash // not both - Hashes []*MerkleHash `protobuf:"bytes,4,rep,name=hashes,proto3" json:"hashes,omitempty"` - SortedHashes [][]byte `protobuf:"bytes,5,rep,name=sorted_hashes,json=sortedHashes,proto3" json:"sorted_hashes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hashes []*MerkleHash `protobuf:"bytes,4,rep,name=hashes,proto3" json:"hashes,omitempty"` + SortedHashes [][]byte `protobuf:"bytes,5,rep,name=sorted_hashes,json=sortedHashes,proto3" json:"sorted_hashes,omitempty"` } -func (m *Proof) Reset() { *m = Proof{} } -func (m *Proof) String() string { return proto.CompactTextString(m) } -func (*Proof) ProtoMessage() {} -func (*Proof) Descriptor() ([]byte, []int) { - return fileDescriptor_48dd2c57ca80438f, []int{1} +func (x *Proof) Reset() { + *x = Proof{} + if protoimpl.UnsafeEnabled { + mi := &file_proof_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Proof) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Proof.Unmarshal(m, b) -} -func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Proof.Marshal(b, m, deterministic) -} -func (m *Proof) XXX_Merge(src proto.Message) { - xxx_messageInfo_Proof.Merge(m, src) -} -func (m *Proof) XXX_Size() int { - return xxx_messageInfo_Proof.Size(m) +func (x *Proof) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Proof) XXX_DiscardUnknown() { - xxx_messageInfo_Proof.DiscardUnknown(m) -} - -var xxx_messageInfo_Proof proto.InternalMessageInfo -type isProof_Property interface { - isProof_Property() -} +func (*Proof) ProtoMessage() {} -type Proof_ReadableName struct { - ReadableName string `protobuf:"bytes,7,opt,name=readable_name,json=readableName,proto3,oneof"` +func (x *Proof) ProtoReflect() protoreflect.Message { + mi := &file_proof_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Proof_CompactName struct { - CompactName []byte `protobuf:"bytes,9,opt,name=compact_name,json=compactName,proto3,oneof"` +// Deprecated: Use Proof.ProtoReflect.Descriptor instead. +func (*Proof) Descriptor() ([]byte, []int) { + return file_proof_proto_rawDescGZIP(), []int{1} } -func (*Proof_ReadableName) isProof_Property() {} - -func (*Proof_CompactName) isProof_Property() {} - func (m *Proof) GetProperty() isProof_Property { if m != nil { return m.Property @@ -134,159 +134,282 @@ func (m *Proof) GetProperty() isProof_Property { return nil } -func (m *Proof) GetReadableName() string { - if x, ok := m.GetProperty().(*Proof_ReadableName); ok { +func (x *Proof) GetReadableName() string { + if x, ok := x.GetProperty().(*Proof_ReadableName); ok { return x.ReadableName } return "" } -func (m *Proof) GetCompactName() []byte { - if x, ok := m.GetProperty().(*Proof_CompactName); ok { +func (x *Proof) GetCompactName() []byte { + if x, ok := x.GetProperty().(*Proof_CompactName); ok { return x.CompactName } return nil } -func (m *Proof) GetValue() []byte { - if m != nil { - return m.Value +func (x *Proof) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *Proof) GetSalt() []byte { - if m != nil { - return m.Salt +func (x *Proof) GetSalt() []byte { + if x != nil { + return x.Salt } return nil } -func (m *Proof) GetHash() []byte { - if m != nil { - return m.Hash +func (x *Proof) GetHash() []byte { + if x != nil { + return x.Hash } return nil } -func (m *Proof) GetHashes() []*MerkleHash { - if m != nil { - return m.Hashes +func (x *Proof) GetHashes() []*MerkleHash { + if x != nil { + return x.Hashes } return nil } -func (m *Proof) GetSortedHashes() [][]byte { - if m != nil { - return m.SortedHashes +func (x *Proof) GetSortedHashes() [][]byte { + if x != nil { + return x.SortedHashes } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Proof) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Proof_ReadableName)(nil), - (*Proof_CompactName)(nil), - } -} - -var E_ExcludeFromTree = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 2862100, - Name: "proofs.exclude_from_tree", - Tag: "varint,2862100,opt,name=exclude_from_tree", - Filename: "proofs/proto/proof.proto", +type isProof_Property interface { + isProof_Property() } -var E_HashedField = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 2862101, - Name: "proofs.hashed_field", - Tag: "varint,2862101,opt,name=hashed_field", - Filename: "proofs/proto/proof.proto", +type Proof_ReadableName struct { + ReadableName string `protobuf:"bytes,7,opt,name=readable_name,json=readableName,proto3,oneof"` } -var E_FieldLength = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*uint64)(nil), - Field: 2862102, - Name: "proofs.field_length", - Tag: "varint,2862102,opt,name=field_length", - Filename: "proofs/proto/proof.proto", +type Proof_CompactName struct { + CompactName []byte `protobuf:"bytes,9,opt,name=compact_name,json=compactName,proto3,oneof"` } -var E_MappingKey = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*string)(nil), - Field: 2862103, - Name: "proofs.mapping_key", - Tag: "bytes,2862103,opt,name=mapping_key", - Filename: "proofs/proto/proof.proto", -} +func (*Proof_ReadableName) isProof_Property() {} -var E_AppendFields = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 2862104, - Name: "proofs.append_fields", - Tag: "varint,2862104,opt,name=append_fields", - Filename: "proofs/proto/proof.proto", -} +func (*Proof_CompactName) isProof_Property() {} -var E_NoSalt = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 2862105, - Name: "proofs.no_salt", - Tag: "varint,2862105,opt,name=no_salt", - Filename: "proofs/proto/proof.proto", -} +var file_proof_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 2862100, + Name: "proofs.exclude_from_tree", + Tag: "varint,2862100,opt,name=exclude_from_tree", + Filename: "proof.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 2862101, + Name: "proofs.hashed_field", + Tag: "varint,2862101,opt,name=hashed_field", + Filename: "proof.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*uint64)(nil), + Field: 2862102, + Name: "proofs.field_length", + Tag: "varint,2862102,opt,name=field_length", + Filename: "proof.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*string)(nil), + Field: 2862103, + Name: "proofs.mapping_key", + Tag: "bytes,2862103,opt,name=mapping_key", + Filename: "proof.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 2862104, + Name: "proofs.append_fields", + Tag: "varint,2862104,opt,name=append_fields", + Filename: "proof.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 2862105, + Name: "proofs.no_salt", + Tag: "varint,2862105,opt,name=no_salt", + Filename: "proof.proto", + }, +} + +// Extension fields to descriptorpb.FieldOptions. +var ( + // optional bool exclude_from_tree = 2862100; + E_ExcludeFromTree = &file_proof_proto_extTypes[0] + // optional bool hashed_field = 2862101; + E_HashedField = &file_proof_proto_extTypes[1] + // optional uint64 field_length = 2862102; + E_FieldLength = &file_proof_proto_extTypes[2] + // optional string mapping_key = 2862103; + E_MappingKey = &file_proof_proto_extTypes[3] + // optional bool append_fields = 2862104; + E_AppendFields = &file_proof_proto_extTypes[4] + // optional bool no_salt = 2862105; + E_NoSalt = &file_proof_proto_extTypes[5] +) -func init() { - proto.RegisterType((*MerkleHash)(nil), "proofs.MerkleHash") - proto.RegisterType((*Proof)(nil), "proofs.Proof") - proto.RegisterExtension(E_ExcludeFromTree) - proto.RegisterExtension(E_HashedField) - proto.RegisterExtension(E_FieldLength) - proto.RegisterExtension(E_MappingKey) - proto.RegisterExtension(E_AppendFields) - proto.RegisterExtension(E_NoSalt) -} +var File_proof_proto protoreflect.FileDescriptor + +var file_proof_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, + 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x0a, 0x4d, 0x65, 0x72, 0x6b, 0x6c, + 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, + 0xee, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x61, + 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x23, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, + 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, + 0x61, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2e, 0x4d, 0x65, 0x72, + 0x6b, 0x6c, 0x65, 0x48, 0x61, 0x73, 0x68, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, + 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x48, 0x61, + 0x73, 0x68, 0x65, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, + 0x3a, 0x4c, 0x0a, 0x11, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, + 0x5f, 0x74, 0x72, 0x65, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x94, 0xd8, 0xae, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, + 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x72, 0x65, 0x65, 0x3a, 0x43, + 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x95, 0xd8, + 0xae, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x3a, 0x43, 0x0a, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x96, 0xd8, 0xae, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3a, 0x41, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x70, + 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x97, 0xd8, 0xae, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x3a, 0x45, 0x0a, 0x0d, 0x61, + 0x70, 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x98, 0xd8, 0xae, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x73, 0x3a, 0x39, 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x73, 0x61, 0x6c, 0x74, 0x12, 0x1d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x99, 0xd8, 0xae, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x53, 0x61, 0x6c, 0x74, 0x42, 0x56, 0x0a, + 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x42, 0x0a, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x66, 0x75, 0x67, 0x65, + 0x2f, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2f, + 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proof_proto_rawDescOnce sync.Once + file_proof_proto_rawDescData = file_proof_proto_rawDesc +) -func init() { proto.RegisterFile("proofs/proto/proof.proto", fileDescriptor_48dd2c57ca80438f) } - -var fileDescriptor_48dd2c57ca80438f = []byte{ - // 454 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdd, 0x8a, 0xd3, 0x40, - 0x14, 0xc7, 0xb7, 0xb6, 0xcd, 0xb6, 0x27, 0x29, 0xe2, 0xb0, 0x17, 0x41, 0x10, 0xc2, 0xae, 0x42, - 0xf1, 0x22, 0x05, 0x05, 0xc1, 0xdc, 0x59, 0x71, 0x29, 0xb8, 0x6a, 0x89, 0x5e, 0x79, 0x13, 0xa6, - 0xc9, 0xc9, 0x07, 0x3b, 0xc9, 0x0c, 0x33, 0x53, 0xb1, 0xef, 0xe1, 0xe7, 0x4b, 0xf8, 0x3c, 0x3e, - 0x85, 0xcf, 0x20, 0x33, 0x93, 0xb0, 0x97, 0xb9, 0xca, 0x99, 0xff, 0x39, 0xff, 0xdf, 0x99, 0x73, - 0x26, 0x10, 0x0a, 0xc9, 0x79, 0xa9, 0x36, 0x42, 0x72, 0xcd, 0x37, 0xf6, 0x10, 0xdb, 0x98, 0x78, - 0x2e, 0xf3, 0x30, 0xaa, 0x38, 0xaf, 0x18, 0xba, 0x8a, 0xc3, 0xb1, 0xdc, 0x14, 0xa8, 0x72, 0xd9, - 0x08, 0xcd, 0xa5, 0xab, 0xbc, 0x7c, 0x01, 0xf0, 0x0e, 0xe5, 0x2d, 0xc3, 0x1d, 0x55, 0x35, 0x21, - 0x30, 0x63, 0x58, 0xea, 0x70, 0x12, 0x4d, 0xd6, 0x41, 0x6a, 0x63, 0x72, 0x01, 0x73, 0xd9, 0x54, - 0xb5, 0x0e, 0xef, 0x59, 0xd1, 0x1d, 0x2e, 0xff, 0x4d, 0x60, 0xbe, 0x37, 0x4d, 0xc8, 0x13, 0x58, - 0x49, 0xa4, 0x05, 0x3d, 0x30, 0xcc, 0x3a, 0xda, 0x62, 0x78, 0x1e, 0x4d, 0xd6, 0xcb, 0xdd, 0x59, - 0x1a, 0x0c, 0xf2, 0x7b, 0xda, 0x22, 0xb9, 0x82, 0x20, 0xe7, 0xad, 0xa0, 0xb9, 0x76, 0x55, 0x4b, - 0x43, 0xdb, 0x9d, 0xa5, 0x7e, 0xaf, 0xda, 0xa2, 0x0b, 0x98, 0x7f, 0xa1, 0xec, 0x88, 0x43, 0x2f, - 0x7b, 0x30, 0xb7, 0x52, 0x94, 0xe9, 0x70, 0xea, 0x6e, 0x65, 0x62, 0xa3, 0xd5, 0x54, 0xd5, 0xa1, - 0xe7, 0x34, 0x13, 0x93, 0xa7, 0xe0, 0x99, 0x2f, 0xaa, 0x70, 0x16, 0x4d, 0xd7, 0xfe, 0x33, 0x12, - 0xbb, 0x35, 0xc4, 0x77, 0x13, 0xa6, 0x7d, 0x05, 0xb9, 0x82, 0x95, 0xe2, 0x52, 0x63, 0x91, 0xf5, - 0x96, 0x79, 0x34, 0x5d, 0x07, 0x69, 0xe0, 0xc4, 0x9d, 0xd5, 0xb6, 0x00, 0x0b, 0x21, 0xb9, 0x40, - 0xa9, 0x4f, 0xc9, 0x0d, 0x3c, 0xc0, 0xaf, 0x39, 0x3b, 0x16, 0x98, 0x95, 0x92, 0xb7, 0x99, 0x96, - 0x88, 0xe4, 0x51, 0xec, 0x16, 0x1c, 0x0f, 0x0b, 0x8e, 0xaf, 0x1b, 0x64, 0xc5, 0x07, 0xa1, 0x1b, - 0xde, 0xa9, 0xf0, 0xdb, 0xdf, 0x3f, 0x66, 0x93, 0x8b, 0xf4, 0x7e, 0x6f, 0xbd, 0x96, 0xbc, 0xfd, - 0x24, 0x11, 0x93, 0xd7, 0x10, 0xd8, 0xbe, 0x45, 0x56, 0x1a, 0xc3, 0x18, 0xe8, 0xfb, 0x00, 0xf2, - 0x9d, 0xcb, 0x26, 0x0d, 0xc4, 0xba, 0x33, 0x86, 0x5d, 0xa5, 0xeb, 0x31, 0xc8, 0x0f, 0x07, 0x99, - 0xa5, 0xbe, 0x75, 0xdd, 0x58, 0x53, 0xf2, 0x0a, 0xfc, 0x96, 0x0a, 0xd1, 0x74, 0x55, 0x76, 0x8b, - 0xa7, 0x31, 0xc6, 0x4f, 0xc7, 0x58, 0xa6, 0xd0, 0x9b, 0xde, 0xe2, 0x29, 0x79, 0x03, 0x2b, 0x2a, - 0x04, 0x76, 0xfd, 0x30, 0x6a, 0x0c, 0xf2, 0x6b, 0x98, 0x26, 0x70, 0x36, 0x9b, 0x54, 0xc9, 0x4b, - 0x38, 0xef, 0x78, 0x66, 0x5f, 0x77, 0x04, 0xf0, 0x7b, 0x00, 0x78, 0x1d, 0xff, 0x48, 0x99, 0xde, - 0x3e, 0x06, 0xc8, 0x79, 0xdb, 0x3f, 0xf7, 0x16, 0xec, 0x8f, 0xb9, 0x37, 0xd6, 0xfd, 0xe4, 0xf3, - 0xc2, 0xa9, 0xe2, 0x70, 0xf0, 0x2c, 0xed, 0xf9, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6b, 0xfd, - 0xf7, 0xb3, 0x38, 0x03, 0x00, 0x00, +func file_proof_proto_rawDescGZIP() []byte { + file_proof_proto_rawDescOnce.Do(func() { + file_proof_proto_rawDescData = protoimpl.X.CompressGZIP(file_proof_proto_rawDescData) + }) + return file_proof_proto_rawDescData +} + +var file_proof_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_proof_proto_goTypes = []interface{}{ + (*MerkleHash)(nil), // 0: proofs.MerkleHash + (*Proof)(nil), // 1: proofs.Proof + (*descriptorpb.FieldOptions)(nil), // 2: google.protobuf.FieldOptions +} +var file_proof_proto_depIdxs = []int32{ + 0, // 0: proofs.Proof.hashes:type_name -> proofs.MerkleHash + 2, // 1: proofs.exclude_from_tree:extendee -> google.protobuf.FieldOptions + 2, // 2: proofs.hashed_field:extendee -> google.protobuf.FieldOptions + 2, // 3: proofs.field_length:extendee -> google.protobuf.FieldOptions + 2, // 4: proofs.mapping_key:extendee -> google.protobuf.FieldOptions + 2, // 5: proofs.append_fields:extendee -> google.protobuf.FieldOptions + 2, // 6: proofs.no_salt:extendee -> google.protobuf.FieldOptions + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 1, // [1:7] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_proof_proto_init() } +func file_proof_proto_init() { + if File_proof_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MerkleHash); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proof_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proof_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Proof_ReadableName)(nil), + (*Proof_CompactName)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proof_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 6, + NumServices: 0, + }, + GoTypes: file_proof_proto_goTypes, + DependencyIndexes: file_proof_proto_depIdxs, + MessageInfos: file_proof_proto_msgTypes, + ExtensionInfos: file_proof_proto_extTypes, + }.Build() + File_proof_proto = out.File + file_proof_proto_rawDesc = nil + file_proof_proto_goTypes = nil + file_proof_proto_depIdxs = nil } diff --git a/proofs/proto/proof.proto b/proofs/proto/proof.proto index 10dcee4..370316d 100644 --- a/proofs/proto/proof.proto +++ b/proofs/proto/proof.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package proofs; -option go_package = "proofspb"; +option go_package = "github.com/centrifuge/precise-proofs/proofs/proto;proofspb"; option java_multiple_files = true; option java_outer_classname = "ProofProto"; option java_package = "com.proofs"; diff --git a/proofs/proto/salt.pb.go b/proofs/proto/salt.pb.go index 0350cd8..ab3a558 100644 --- a/proofs/proto/salt.pb.go +++ b/proofs/proto/salt.pb.go @@ -1,86 +1,155 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: proofs/proto/salt.proto +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 +// source: salt.proto package proofspb import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Salt struct { - Compact []byte `protobuf:"bytes,1,opt,name=compact,proto3" json:"compact,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Salt) Reset() { *m = Salt{} } -func (m *Salt) String() string { return proto.CompactTextString(m) } -func (*Salt) ProtoMessage() {} -func (*Salt) Descriptor() ([]byte, []int) { - return fileDescriptor_276674408a4daf93, []int{0} + Compact []byte `protobuf:"bytes,1,opt,name=compact,proto3" json:"compact,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *Salt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Salt.Unmarshal(m, b) -} -func (m *Salt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Salt.Marshal(b, m, deterministic) -} -func (m *Salt) XXX_Merge(src proto.Message) { - xxx_messageInfo_Salt.Merge(m, src) +func (x *Salt) Reset() { + *x = Salt{} + if protoimpl.UnsafeEnabled { + mi := &file_salt_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Salt) XXX_Size() int { - return xxx_messageInfo_Salt.Size(m) + +func (x *Salt) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Salt) XXX_DiscardUnknown() { - xxx_messageInfo_Salt.DiscardUnknown(m) + +func (*Salt) ProtoMessage() {} + +func (x *Salt) ProtoReflect() protoreflect.Message { + mi := &file_salt_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Salt proto.InternalMessageInfo +// Deprecated: Use Salt.ProtoReflect.Descriptor instead. +func (*Salt) Descriptor() ([]byte, []int) { + return file_salt_proto_rawDescGZIP(), []int{0} +} -func (m *Salt) GetCompact() []byte { - if m != nil { - return m.Compact +func (x *Salt) GetCompact() []byte { + if x != nil { + return x.Compact } return nil } -func (m *Salt) GetValue() []byte { - if m != nil { - return m.Value +func (x *Salt) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func init() { - proto.RegisterType((*Salt)(nil), "proofs.Salt") +var File_salt_proto protoreflect.FileDescriptor + +var file_salt_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x73, 0x61, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x73, 0x22, 0x36, 0x0a, 0x04, 0x53, 0x61, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, + 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x56, 0x0a, 0x0a, + 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x42, 0x0a, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x66, 0x75, 0x67, 0x65, 0x2f, + 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2f, 0x70, + 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x6f, + 0x66, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_salt_proto_rawDescOnce sync.Once + file_salt_proto_rawDescData = file_salt_proto_rawDesc +) + +func file_salt_proto_rawDescGZIP() []byte { + file_salt_proto_rawDescOnce.Do(func() { + file_salt_proto_rawDescData = protoimpl.X.CompressGZIP(file_salt_proto_rawDescData) + }) + return file_salt_proto_rawDescData } -func init() { proto.RegisterFile("proofs/proto/salt.proto", fileDescriptor_276674408a4daf93) } - -var fileDescriptor_276674408a4daf93 = []byte{ - // 123 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x28, 0xca, 0xcf, - 0x4f, 0x2b, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x4e, 0xcc, 0x29, 0xd1, 0x03, 0x33, - 0x85, 0xd8, 0x20, 0x12, 0x4a, 0x66, 0x5c, 0x2c, 0xc1, 0x89, 0x39, 0x25, 0x42, 0x12, 0x5c, 0xec, - 0xc9, 0xf9, 0xb9, 0x05, 0x89, 0xc9, 0x25, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x30, 0xae, - 0x90, 0x08, 0x17, 0x6b, 0x59, 0x62, 0x4e, 0x69, 0xaa, 0x04, 0x13, 0x58, 0x1c, 0xc2, 0x71, 0x52, - 0xe1, 0xe2, 0x4a, 0xce, 0xcf, 0xd5, 0x83, 0x98, 0xe2, 0xc4, 0x15, 0x00, 0xa2, 0x03, 0x40, 0x26, - 0x07, 0x30, 0x46, 0x71, 0x40, 0x44, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x96, 0x19, 0x03, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xc5, 0xb4, 0x75, 0x72, 0x87, 0x00, 0x00, 0x00, +var file_salt_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_salt_proto_goTypes = []interface{}{ + (*Salt)(nil), // 0: proofs.Salt +} +var file_salt_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_salt_proto_init() } +func file_salt_proto_init() { + if File_salt_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_salt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Salt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_salt_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_salt_proto_goTypes, + DependencyIndexes: file_salt_proto_depIdxs, + MessageInfos: file_salt_proto_msgTypes, + }.Build() + File_salt_proto = out.File + file_salt_proto_rawDesc = nil + file_salt_proto_goTypes = nil + file_salt_proto_depIdxs = nil } diff --git a/proofs/proto/salt.proto b/proofs/proto/salt.proto index d3ccb45..9553f14 100644 --- a/proofs/proto/salt.proto +++ b/proofs/proto/salt.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package proofs; -option go_package = "proofspb"; +option go_package = "github.com/centrifuge/precise-proofs/proofs/proto;proofspb"; option java_multiple_files = true; option java_outer_classname = "ProofProto"; option java_package = "com.proofs"; diff --git a/prototool.yaml b/prototool.yaml deleted file mode 100644 index 7207e2a..0000000 --- a/prototool.yaml +++ /dev/null @@ -1,12 +0,0 @@ -protoc: - version: 3.7.0 -lint: - ignores: - - id: MESSAGE_FIELD_NAMES_LOWER_SNAKE_CASE -generate: - go_options: - import_path: github.com/centrifuge/precise-proofs - plugins: - - name: go - type: go - output: .