diff --git a/Makefile b/Makefile index a59bc69e..0ce45978 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ GO = go DOCKER = docker DOCKER_IMAGE = orionbcdb/orion-server DOCKERFILE = images/Dockerfile +PROTO_COMPILER_IMAGE = orionbcdb/protobuf +PROTO_COMPILER_DOCKERFILE = images/Proto PKGS = $(or $(PKG),$(shell env GO111MODULE=on $(GO) list ./...)) TESTPKGS = $(shell env GO111MODULE=on $(GO) list -f \ '{{ if or .TestGoFiles .XTestGoFiles }}{{ .ImportPath }}{{ end }}' \ @@ -69,7 +71,8 @@ docker-clean: .PHONY: protos protos: - docker run -it -v `pwd`:`pwd` -w `pwd` sykesm/fabric-protos:0.2 scripts/compile_go_protos.sh + $(DOCKER) build -t $(PROTO_COMPILER_IMAGE) --no-cache -f $(PROTO_COMPILER_DOCKERFILE) . + docker run -it -v `pwd`:`pwd` -w `pwd` $(PROTO_COMPILER_IMAGE) scripts/compile_go_protos.sh TEST_TARGETS := test-default test-bench test-short test-verbose test-race test-bench: ARGS=-run=__absolutelynothing__ -bench=. diff --git a/go.mod b/go.mod index ef3a5f69..da1d8be0 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,10 @@ go 1.16 require ( github.com/cayleygraph/cayley v0.7.7 github.com/cayleygraph/quad v1.1.0 + github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang/protobuf v1.5.2 github.com/golang/snappy v0.0.1 + github.com/google/go-cmp v0.5.5 // indirect github.com/google/uuid v1.1.1 github.com/gorilla/mux v1.7.4 github.com/hidal-go/hidalgo v0.0.0-20201109092204-05749a6d73df @@ -19,5 +21,6 @@ require ( github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 go.etcd.io/etcd v0.5.0-alpha.5.0.20210226220824-aa7126864d82 // indirect git tag v3.4.15 go.uber.org/zap v1.18.1 + google.golang.org/protobuf v1.26.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/images/Proto b/images/Proto new file mode 100644 index 00000000..f1f11257 --- /dev/null +++ b/images/Proto @@ -0,0 +1,13 @@ +FROM golang + +RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 +RUN apt-get update && apt-get install -y unzip + +ENV PROTOC_ZIP=protoc-3.15.8-linux-x86_64.zip +RUN curl -OL https://github.com/google/protobuf/releases/download/v3.15.8/${PROTOC_ZIP} +RUN unzip -o ${PROTOC_ZIP} -d ./proto +RUN chmod 755 -R ./proto/bin +ENV BASE=/usr/local +# Copy into path +RUN cp ./proto/bin/protoc ${BASE}/bin +RUN cp -R ./proto/include/* ${BASE}/include diff --git a/internal/bcdb/config_query_test.go b/internal/bcdb/config_query_test.go index eeaeed2f..39ae091d 100644 --- a/internal/bcdb/config_query_test.go +++ b/internal/bcdb/config_query_test.go @@ -421,7 +421,7 @@ func TestGetClusterStatus(t *testing.T) { require.Equal(t, "node2", status.Response.Nodes[1].Id) require.NotNil(t, status.Response.Nodes[1].Certificate) - require.Equal(t, &types.Version{BlockNum: 10}, status.Response.Version) + require.True(t, proto.Equal(&types.Version{BlockNum: 10}, status.Response.Version)) require.Equal(t, "node1", status.Response.Leader) require.Equal(t, []string{"node1", "node2"}, status.Response.Active) }) @@ -445,7 +445,7 @@ func TestGetClusterStatus(t *testing.T) { require.Equal(t, "node2", status.Response.Nodes[1].Id) require.NotNil(t, status.Response.Nodes[1].Certificate) - require.Equal(t, &types.Version{BlockNum: 10}, status.Response.Version) + require.True(t, proto.Equal(&types.Version{BlockNum: 10}, status.Response.Version)) require.Equal(t, "", status.Response.Leader) require.Equal(t, []string{"node1"}, status.Response.Active) }) @@ -469,7 +469,7 @@ func TestGetClusterStatus(t *testing.T) { require.Equal(t, "node2", status.Response.Nodes[1].Id) require.Nil(t, status.Response.Nodes[1].Certificate) - require.Equal(t, &types.Version{BlockNum: 10}, status.Response.Version) + require.True(t, proto.Equal(&types.Version{BlockNum: 10}, status.Response.Version)) require.Equal(t, "node1", status.Response.Leader) require.Equal(t, []string{"node1", "node2"}, status.Response.Active) }) @@ -494,7 +494,7 @@ func TestGetClusterStatus(t *testing.T) { require.Equal(t, "node2", status.Response.Nodes[1].Id) require.NotNil(t, "node2", status.Response.Nodes[1].Certificate) - require.Equal(t, &types.Version{BlockNum: 10}, status.Response.Version) + require.True(t, proto.Equal(&types.Version{BlockNum: 10}, status.Response.Version)) require.Equal(t, "", status.Response.Leader) require.Equal(t, []string{"node1", "node2"}, status.Response.Active) }) diff --git a/internal/bcdb/db.go b/internal/bcdb/db.go index 00abdcbe..6c35e9c8 100644 --- a/internal/bcdb/db.go +++ b/internal/bcdb/db.go @@ -5,7 +5,6 @@ package bcdb import ( "context" "crypto/x509" - "encoding/json" "encoding/pem" "io/ioutil" "time" @@ -22,8 +21,10 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/certificateauthority" "github.com/hyperledger-labs/orion-server/pkg/crypto" "github.com/hyperledger-labs/orion-server/pkg/logger" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" ) //go:generate mockery --dir . --name DB --case underscore --output mocks/ @@ -966,7 +967,7 @@ func (d *db) responseHeader() *types.ResponseHeader { } func (d *db) signature(response interface{}) ([]byte, error) { - responseBytes, err := json.Marshal(response) + responseBytes, err := marshal.DefaultMarshaler().Marshal(response.(proto.Message)) if err != nil { return nil, err } diff --git a/internal/blockprocessor/processor_test.go b/internal/blockprocessor/processor_test.go index f28b46e8..eea32385 100644 --- a/internal/blockprocessor/processor_test.go +++ b/internal/blockprocessor/processor_test.go @@ -164,12 +164,10 @@ func newTestEnv(t *testing.T) *testEnv { Algorithm: "raft", Members: []*types.PeerConfig{ { - NodeId: "node1", - RaftId: 1, - PeerHost: "127.0.0.1", - PeerPort: 7090, - XXX_unrecognized: nil, - XXX_sizecache: 0, + NodeId: "node1", + RaftId: 1, + PeerHost: "127.0.0.1", + PeerPort: 7090, }, }, RaftConfig: &types.RaftConfig{ @@ -177,9 +175,6 @@ func newTestEnv(t *testing.T) *testEnv { ElectionTicks: 100, HeartbeatTicks: 10, }, - XXX_NoUnkeyedLiteral: struct{}{}, - XXX_unrecognized: nil, - XXX_sizecache: 0, }, } genesisBlock := &types.Block{ @@ -626,7 +621,6 @@ func TestBlockCommitListener(t *testing.T) { }, } expectedBlock := proto.Clone(block2).(*types.Block) - expectedBlock.XXX_sizecache = 0 genesisHash, err := env.blockStore.GetHash(uint64(1)) expectedBlock.Header.SkipchainHashes = calculateBlockHashes(t, genesisHash, []*types.Block{block2}, 2) root, err := mtree.BuildTreeForBlockTx(block2) diff --git a/internal/blockstore/block_file_stream_test.go b/internal/blockstore/block_file_stream_test.go index 580251a3..8629ef74 100644 --- a/internal/blockstore/block_file_stream_test.go +++ b/internal/blockstore/block_file_stream_test.go @@ -6,8 +6,8 @@ import ( "encoding/binary" "testing" - "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/golang/protobuf/proto" + "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/require" ) @@ -84,7 +84,10 @@ func TestBlockFileStream(t *testing.T) { blockEndOffset: location.Offset + location.Length, } - require.Equal(t, expectedBlockWithLocation, blockWithLocation) + require.True(t, proto.Equal(expectedBlockWithLocation.block, blockWithLocation.block)) + require.Equal(t, expectedBlockWithLocation.fileChunkNum, blockWithLocation.fileChunkNum) + require.Equal(t, expectedBlockWithLocation.blockStartOffset, blockWithLocation.blockStartOffset) + require.Equal(t, expectedBlockWithLocation.blockEndOffset, blockWithLocation.blockEndOffset) i++ } blockWithLocation, err := stream.nextBlockWithLocation() @@ -164,7 +167,10 @@ func TestBlockFileStream(t *testing.T) { blockEndOffset: location.Offset + location.Length, } - require.Equal(t, expectedBlockWithLocation, blockWithLocation) + require.True(t, proto.Equal(expectedBlockWithLocation.block, blockWithLocation.block)) + require.Equal(t, expectedBlockWithLocation.fileChunkNum, blockWithLocation.fileChunkNum) + require.Equal(t, expectedBlockWithLocation.blockStartOffset, blockWithLocation.blockStartOffset) + require.Equal(t, expectedBlockWithLocation.blockEndOffset, blockWithLocation.blockEndOffset) } blockWithLocation, err := stream.nextBlockWithLocation() require.Nil(t, blockWithLocation) diff --git a/internal/blockstore/block_txs_id.pb.go b/internal/blockstore/block_txs_id.pb.go index d40b0efd..09db5380 100644 --- a/internal/blockstore/block_txs_id.pb.go +++ b/internal/blockstore/block_txs_id.pb.go @@ -1,143 +1,237 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: block_txs_id.proto package blockstore import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/hyperledger-labs/orion-server/pkg/types" - 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 BlockTxIDs struct { - TxIds []string `protobuf:"bytes,1,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BlockTxIDs) Reset() { *m = BlockTxIDs{} } -func (m *BlockTxIDs) String() string { return proto.CompactTextString(m) } -func (*BlockTxIDs) ProtoMessage() {} -func (*BlockTxIDs) Descriptor() ([]byte, []int) { - return fileDescriptor_c1ac3dcb8cc34951, []int{0} + TxIds []string `protobuf:"bytes,1,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` } -func (m *BlockTxIDs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockTxIDs.Unmarshal(m, b) -} -func (m *BlockTxIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockTxIDs.Marshal(b, m, deterministic) -} -func (m *BlockTxIDs) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockTxIDs.Merge(m, src) +func (x *BlockTxIDs) Reset() { + *x = BlockTxIDs{} + if protoimpl.UnsafeEnabled { + mi := &file_block_txs_id_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockTxIDs) XXX_Size() int { - return xxx_messageInfo_BlockTxIDs.Size(m) + +func (x *BlockTxIDs) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockTxIDs) XXX_DiscardUnknown() { - xxx_messageInfo_BlockTxIDs.DiscardUnknown(m) + +func (*BlockTxIDs) ProtoMessage() {} + +func (x *BlockTxIDs) ProtoReflect() protoreflect.Message { + mi := &file_block_txs_id_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_BlockTxIDs proto.InternalMessageInfo +// Deprecated: Use BlockTxIDs.ProtoReflect.Descriptor instead. +func (*BlockTxIDs) Descriptor() ([]byte, []int) { + return file_block_txs_id_proto_rawDescGZIP(), []int{0} +} -func (m *BlockTxIDs) GetTxIds() []string { - if m != nil { - return m.TxIds +func (x *BlockTxIDs) GetTxIds() []string { + if x != nil { + return x.TxIds } return nil } type TxInfo struct { - BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` - Validation *types.ValidationInfo `protobuf:"bytes,3,opt,name=validation,proto3" json:"validation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxInfo) Reset() { *m = TxInfo{} } -func (m *TxInfo) String() string { return proto.CompactTextString(m) } -func (*TxInfo) ProtoMessage() {} -func (*TxInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_c1ac3dcb8cc34951, []int{1} + BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` + Validation *types.ValidationInfo `protobuf:"bytes,3,opt,name=validation,proto3" json:"validation,omitempty"` } -func (m *TxInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxInfo.Unmarshal(m, b) -} -func (m *TxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxInfo.Marshal(b, m, deterministic) -} -func (m *TxInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxInfo.Merge(m, src) +func (x *TxInfo) Reset() { + *x = TxInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_block_txs_id_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxInfo) XXX_Size() int { - return xxx_messageInfo_TxInfo.Size(m) + +func (x *TxInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TxInfo.DiscardUnknown(m) + +func (*TxInfo) ProtoMessage() {} + +func (x *TxInfo) ProtoReflect() protoreflect.Message { + mi := &file_block_txs_id_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_TxInfo proto.InternalMessageInfo +// Deprecated: Use TxInfo.ProtoReflect.Descriptor instead. +func (*TxInfo) Descriptor() ([]byte, []int) { + return file_block_txs_id_proto_rawDescGZIP(), []int{1} +} -func (m *TxInfo) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *TxInfo) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } -func (m *TxInfo) GetTxIndex() uint64 { - if m != nil { - return m.TxIndex +func (x *TxInfo) GetTxIndex() uint64 { + if x != nil { + return x.TxIndex } return 0 } -func (m *TxInfo) GetValidation() *types.ValidationInfo { - if m != nil { - return m.Validation +func (x *TxInfo) GetValidation() *types.ValidationInfo { + if x != nil { + return x.Validation } return nil } -func init() { - proto.RegisterType((*BlockTxIDs)(nil), "blockstore.BlockTxIDs") - proto.RegisterType((*TxInfo)(nil), "blockstore.TxInfo") -} - -func init() { proto.RegisterFile("block_txs_id.proto", fileDescriptor_c1ac3dcb8cc34951) } - -var fileDescriptor_c1ac3dcb8cc34951 = []byte{ - // 250 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x31, 0x4f, 0xc3, 0x30, - 0x10, 0x85, 0x15, 0x0a, 0x05, 0xae, 0x4c, 0x96, 0x2a, 0x05, 0x58, 0x42, 0x59, 0xb2, 0x34, 0x91, - 0x40, 0x6c, 0x88, 0xa1, 0x62, 0xc9, 0xc2, 0x10, 0x55, 0x0c, 0x2c, 0x91, 0x13, 0x1f, 0xad, 0x45, - 0x6a, 0x47, 0xe7, 0x6b, 0xe5, 0x0e, 0xfc, 0x77, 0x64, 0x47, 0x02, 0x46, 0x7f, 0xdf, 0xd3, 0xf3, - 0xdd, 0x81, 0x68, 0x7b, 0xdb, 0x7d, 0x35, 0xec, 0x5d, 0xa3, 0x55, 0x31, 0x90, 0x65, 0x2b, 0x20, - 0x32, 0xc7, 0x96, 0xf0, 0xe6, 0x76, 0xf4, 0xd2, 0xa8, 0x86, 0x49, 0x1a, 0x27, 0x3b, 0xd6, 0xd6, - 0x8c, 0xc1, 0xc5, 0x3d, 0xc0, 0x2a, 0xe8, 0xb5, 0xaf, 0x5e, 0x9d, 0x98, 0xc3, 0x94, 0x7d, 0xa3, - 0x95, 0x4b, 0x93, 0x6c, 0x92, 0x5f, 0xd6, 0x67, 0xec, 0x2b, 0xe5, 0x16, 0xdf, 0x30, 0x5d, 0xfb, - 0xca, 0x7c, 0x5a, 0x71, 0x07, 0x57, 0x63, 0x9b, 0xd9, 0xef, 0x5a, 0xa4, 0x34, 0xc9, 0x92, 0xfc, - 0xb4, 0x9e, 0x45, 0xf6, 0x16, 0x91, 0xb8, 0x86, 0x8b, 0xd0, 0x61, 0x14, 0xfa, 0xf4, 0x24, 0xea, - 0x73, 0xf6, 0x55, 0x78, 0x8a, 0x27, 0x80, 0x83, 0xec, 0xb5, 0x92, 0x61, 0x80, 0x74, 0x92, 0x25, - 0xf9, 0xec, 0x61, 0x5e, 0xf0, 0x71, 0x40, 0x57, 0xbc, 0xff, 0x8a, 0xf0, 0x51, 0xfd, 0x2f, 0xb8, - 0x7a, 0xf9, 0x78, 0xde, 0x68, 0xde, 0xee, 0xdb, 0xa2, 0xb3, 0xbb, 0x72, 0x7b, 0x1c, 0x90, 0x7a, - 0x54, 0x1b, 0xa4, 0x65, 0x2f, 0x5b, 0x57, 0x5a, 0xd2, 0xd6, 0x2c, 0x1d, 0xd2, 0x01, 0xa9, 0xd4, - 0x86, 0x91, 0x8c, 0xec, 0xcb, 0xbf, 0x03, 0xb4, 0xd3, 0xb8, 0xea, 0xe3, 0x4f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x6e, 0x84, 0xc1, 0xb6, 0x29, 0x01, 0x00, 0x00, +var File_block_txs_id_proto protoreflect.FileDescriptor + +var file_block_txs_id_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x78, 0x73, 0x5f, 0x69, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x1a, 0x1b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23, 0x0a, + 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x78, 0x49, 0x44, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x74, + 0x78, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x78, 0x49, + 0x64, 0x73, 0x22, 0x7d, 0x0a, 0x06, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x35, 0x0a, 0x0a, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2d, 0x6c, 0x61, 0x62, 0x73, + 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_block_txs_id_proto_rawDescOnce sync.Once + file_block_txs_id_proto_rawDescData = file_block_txs_id_proto_rawDesc +) + +func file_block_txs_id_proto_rawDescGZIP() []byte { + file_block_txs_id_proto_rawDescOnce.Do(func() { + file_block_txs_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_block_txs_id_proto_rawDescData) + }) + return file_block_txs_id_proto_rawDescData +} + +var file_block_txs_id_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_block_txs_id_proto_goTypes = []interface{}{ + (*BlockTxIDs)(nil), // 0: blockstore.BlockTxIDs + (*TxInfo)(nil), // 1: blockstore.TxInfo + (*types.ValidationInfo)(nil), // 2: types.ValidationInfo +} +var file_block_txs_id_proto_depIdxs = []int32{ + 2, // 0: blockstore.TxInfo.validation:type_name -> types.ValidationInfo + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_block_txs_id_proto_init() } +func file_block_txs_id_proto_init() { + if File_block_txs_id_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_block_txs_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockTxIDs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_txs_id_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxInfo); 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_block_txs_id_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_block_txs_id_proto_goTypes, + DependencyIndexes: file_block_txs_id_proto_depIdxs, + MessageInfos: file_block_txs_id_proto_msgTypes, + }.Build() + File_block_txs_id_proto = out.File + file_block_txs_id_proto_rawDesc = nil + file_block_txs_id_proto_goTypes = nil + file_block_txs_id_proto_depIdxs = nil } diff --git a/internal/blockstore/location.pb.go b/internal/blockstore/location.pb.go index 563504bc..4a03507b 100644 --- a/internal/blockstore/location.pb.go +++ b/internal/blockstore/location.pb.go @@ -1,98 +1,168 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: location.proto package blockstore 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 BlockLocation struct { - FileChunkNum uint64 `protobuf:"varint,1,opt,name=file_chunk_num,json=fileChunkNum,proto3" json:"file_chunk_num,omitempty"` - Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Length int64 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BlockLocation) Reset() { *m = BlockLocation{} } -func (m *BlockLocation) String() string { return proto.CompactTextString(m) } -func (*BlockLocation) ProtoMessage() {} -func (*BlockLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_4f0f35158dcf9f2c, []int{0} + FileChunkNum uint64 `protobuf:"varint,1,opt,name=file_chunk_num,json=fileChunkNum,proto3" json:"file_chunk_num,omitempty"` + Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Length int64 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"` } -func (m *BlockLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockLocation.Unmarshal(m, b) -} -func (m *BlockLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockLocation.Marshal(b, m, deterministic) -} -func (m *BlockLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockLocation.Merge(m, src) +func (x *BlockLocation) Reset() { + *x = BlockLocation{} + if protoimpl.UnsafeEnabled { + mi := &file_location_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockLocation) XXX_Size() int { - return xxx_messageInfo_BlockLocation.Size(m) + +func (x *BlockLocation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockLocation) XXX_DiscardUnknown() { - xxx_messageInfo_BlockLocation.DiscardUnknown(m) + +func (*BlockLocation) ProtoMessage() {} + +func (x *BlockLocation) ProtoReflect() protoreflect.Message { + mi := &file_location_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_BlockLocation proto.InternalMessageInfo +// Deprecated: Use BlockLocation.ProtoReflect.Descriptor instead. +func (*BlockLocation) Descriptor() ([]byte, []int) { + return file_location_proto_rawDescGZIP(), []int{0} +} -func (m *BlockLocation) GetFileChunkNum() uint64 { - if m != nil { - return m.FileChunkNum +func (x *BlockLocation) GetFileChunkNum() uint64 { + if x != nil { + return x.FileChunkNum } return 0 } -func (m *BlockLocation) GetOffset() int64 { - if m != nil { - return m.Offset +func (x *BlockLocation) GetOffset() int64 { + if x != nil { + return x.Offset } return 0 } -func (m *BlockLocation) GetLength() int64 { - if m != nil { - return m.Length +func (x *BlockLocation) GetLength() int64 { + if x != nil { + return x.Length } return 0 } -func init() { - proto.RegisterType((*BlockLocation)(nil), "blockstore.BlockLocation") +var File_location_proto protoreflect.FileDescriptor + +var file_location_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x65, 0x0a, 0x0d, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, + 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2d, 0x6c, 0x61, + 0x62, 0x73, 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_location_proto_rawDescOnce sync.Once + file_location_proto_rawDescData = file_location_proto_rawDesc +) + +func file_location_proto_rawDescGZIP() []byte { + file_location_proto_rawDescOnce.Do(func() { + file_location_proto_rawDescData = protoimpl.X.CompressGZIP(file_location_proto_rawDescData) + }) + return file_location_proto_rawDescData +} + +var file_location_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_location_proto_goTypes = []interface{}{ + (*BlockLocation)(nil), // 0: blockstore.BlockLocation +} +var file_location_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() { proto.RegisterFile("location.proto", fileDescriptor_4f0f35158dcf9f2c) } - -var fileDescriptor_4f0f35158dcf9f2c = []byte{ - // 186 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0xce, 0xb1, 0x6b, 0x84, 0x30, - 0x14, 0xc7, 0x71, 0xac, 0xc5, 0x21, 0xb4, 0x0e, 0x0e, 0xc5, 0x51, 0x4a, 0x07, 0x17, 0xcd, 0xd0, - 0xb5, 0x74, 0xb0, 0x6b, 0xb9, 0xc1, 0xf1, 0x16, 0x31, 0xb9, 0xa7, 0x09, 0xc6, 0x3c, 0x79, 0x49, - 0x0e, 0xee, 0xbf, 0x3f, 0x72, 0x0a, 0x37, 0x7e, 0x3f, 0xfc, 0x86, 0x1f, 0xcb, 0x0d, 0xca, 0xd1, - 0x6b, 0xb4, 0xed, 0x46, 0xe8, 0xb1, 0x60, 0xc2, 0xa0, 0x5c, 0x9c, 0x47, 0x82, 0x4f, 0x60, 0xef, - 0x5d, 0xac, 0xff, 0x63, 0x52, 0x7c, 0xb1, 0x7c, 0xd2, 0x06, 0x06, 0xa9, 0x82, 0x5d, 0x06, 0x1b, - 0xd6, 0x32, 0xa9, 0x92, 0xfa, 0xb5, 0x7f, 0x8b, 0xfa, 0x17, 0xf1, 0x14, 0xd6, 0xe2, 0x83, 0x65, - 0x38, 0x4d, 0x0e, 0x7c, 0xf9, 0x52, 0x25, 0x75, 0xda, 0x1f, 0x15, 0xdd, 0x80, 0x9d, 0xbd, 0x2a, - 0xd3, 0xdd, 0xf7, 0xea, 0x7e, 0xcf, 0x3f, 0xb3, 0xf6, 0x2a, 0x88, 0x56, 0xe2, 0xca, 0xd5, 0x6d, - 0x03, 0x32, 0x70, 0x99, 0x81, 0x1a, 0x33, 0x0a, 0xc7, 0x91, 0x34, 0xda, 0xc6, 0x01, 0x5d, 0x81, - 0xb8, 0xb6, 0x1e, 0xc8, 0x8e, 0x86, 0x3f, 0x6f, 0x8a, 0xec, 0xf1, 0xfc, 0xfb, 0x1e, 0x00, 0x00, - 0xff, 0xff, 0x7b, 0xfb, 0x11, 0xba, 0xcb, 0x00, 0x00, 0x00, +func init() { file_location_proto_init() } +func file_location_proto_init() { + if File_location_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_location_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockLocation); 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_location_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_location_proto_goTypes, + DependencyIndexes: file_location_proto_depIdxs, + MessageInfos: file_location_proto_msgTypes, + }.Build() + File_location_proto = out.File + file_location_proto_rawDesc = nil + file_location_proto_goTypes = nil + file_location_proto_depIdxs = nil } diff --git a/internal/comm/catchup_client_test.go b/internal/comm/catchup_client_test.go index 28e016bf..1ddb8a10 100644 --- a/internal/comm/catchup_client_test.go +++ b/internal/comm/catchup_client_test.go @@ -67,7 +67,7 @@ func TestCatchUpClient_UpdateMembers(t *testing.T) { peer2.PeerHost = "not a legal address" err = h.UpdateMembers([]*types.PeerConfig{peer1, peer2}) - require.EqualError(t, err, "failed to convert PeerConfig [node_id:\"node2\" raft_id:2 peer_host:\"not a legal address\" peer_port:9002 ] to url: parse \"http://not a legal address:9002\": invalid character \" \" in host name") + require.EqualError(t, err, "failed to convert PeerConfig [node_id:\"node2\" raft_id:2 peer_host:\"not a legal address\" peer_port:9002] to url: parse \"http://not a legal address:9002\": invalid character \" \" in host name") } func TestCatchUpClient_GetHeight(t *testing.T) { diff --git a/internal/httphandler/config_request_handler.go b/internal/httphandler/config_request_handler.go index c2c9c6ff..3c324dd6 100644 --- a/internal/httphandler/config_request_handler.go +++ b/internal/httphandler/config_request_handler.go @@ -3,8 +3,8 @@ package httphandler import ( - "encoding/json" "fmt" + "io/ioutil" "net/http" "github.com/gorilla/mux" @@ -15,6 +15,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" "github.com/hyperledger-labs/orion-server/pkg/logger" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/encoding/protojson" ) // configRequestHandler handles query and transaction associated @@ -157,11 +158,14 @@ func (c *configRequestHandler) configTransaction(response http.ResponseWriter, r return } - d := json.NewDecoder(request.Body) - d.DisallowUnknownFields() + requestBytes, err := ioutil.ReadAll(request.Body) + if err != nil { + utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) + return + } txEnv := &types.ConfigTxEnvelope{} - if err := d.Decode(txEnv); err != nil { + if err := protojson.Unmarshal(requestBytes, txEnv); err != nil { utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) return } diff --git a/internal/httphandler/config_request_handler_test.go b/internal/httphandler/config_request_handler_test.go index 0e06a3ca..6e1ce9c1 100644 --- a/internal/httphandler/config_request_handler_test.go +++ b/internal/httphandler/config_request_handler_test.go @@ -8,6 +8,7 @@ import ( "encoding/json" "errors" "fmt" + "io/ioutil" "net/http" "net/http/httptest" "net/url" @@ -20,10 +21,12 @@ import ( "github.com/hyperledger-labs/orion-server/internal/utils" "github.com/hyperledger-labs/orion-server/pkg/constants" "github.com/hyperledger-labs/orion-server/pkg/logger" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" ) func createLogger(logLevel string) (*logger.SugarLogger, error) { @@ -204,9 +207,10 @@ func TestConfigRequestHandler_GetConfig(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetConfigResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetConfigResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) // TODO verify signature on responses } @@ -491,7 +495,7 @@ func TestConfigRequestHandler_SubmitConfig(t *testing.T) { t.Run(tt.name, func(t *testing.T) { txEnv := tt.txEnvFactory() txResp := tt.txRespFactory() - txBytes, err := json.Marshal(txEnv) + txBytes, err := marshal.DefaultMarshaler().Marshal(txEnv) require.NoError(t, err) txReader := bytes.NewReader(txBytes) @@ -527,9 +531,10 @@ func TestConfigRequestHandler_SubmitConfig(t *testing.T) { require.Equal(t, tt.expectedCode, rr.Code) if tt.expectedCode == http.StatusOK { - resp := &types.TxReceiptResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(resp) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + resp := &types.TxReceiptResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, resp)) require.Equal(t, txResp, resp) } else if tt.expectedCode == http.StatusTemporaryRedirect { locationUrl := rr.Header().Get("Location") @@ -709,9 +714,10 @@ func TestConfigRequestHandler_GetNodesConfig(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetNodeConfigResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetNodeConfigResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) // TODO verify signature on responses } @@ -884,9 +890,10 @@ func TestConfigRequestHandler_GetLastConfigBlock(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetConfigBlockResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetConfigBlockResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) // TODO verify signature on responses } @@ -1212,9 +1219,10 @@ func TestConfigRequestHandler_GetClusterStatus(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetClusterStatusResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetClusterStatusResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) // TODO verify signature on responses } diff --git a/internal/httphandler/data_request_handler.go b/internal/httphandler/data_request_handler.go index f5baee65..7f3124ee 100644 --- a/internal/httphandler/data_request_handler.go +++ b/internal/httphandler/data_request_handler.go @@ -4,8 +4,8 @@ package httphandler import ( "context" - "encoding/json" "fmt" + "io/ioutil" "net/http" "sort" "strings" @@ -18,6 +18,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" "github.com/hyperledger-labs/orion-server/pkg/logger" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/encoding/protojson" ) // dataRequestHandler handles query and transaction associated @@ -141,11 +142,17 @@ func (d *dataRequestHandler) dataTransaction(response http.ResponseWriter, reque return } - requestData := json.NewDecoder(request.Body) - requestData.DisallowUnknownFields() + // requestData := json.NewDecoder(request.Body) + // requestData.DisallowUnknownFields() + + requestBody, err := ioutil.ReadAll(request.Body) + if err != nil { + utils.SendHTTPResponse(response, http.StatusBadRequest, + &types.HttpResponseErr{ErrMsg: err.Error()}) + } txEnv := &types.DataTxEnvelope{} - if err := requestData.Decode(txEnv); err != nil { + if err := protojson.Unmarshal(requestBody, txEnv); err != nil { utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) return } diff --git a/internal/httphandler/data_request_handler_test.go b/internal/httphandler/data_request_handler_test.go index 8143b5ff..f008e089 100644 --- a/internal/httphandler/data_request_handler_test.go +++ b/internal/httphandler/data_request_handler_test.go @@ -7,6 +7,7 @@ import ( "encoding/base64" "encoding/json" "errors" + "io/ioutil" "net/http" "net/http/httptest" "net/url" @@ -17,10 +18,12 @@ import ( "github.com/hyperledger-labs/orion-server/internal/bcdb/mocks" interrors "github.com/hyperledger-labs/orion-server/internal/errors" "github.com/hyperledger-labs/orion-server/pkg/constants" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" ) func TestDataRequestHandler_DataQuery(t *testing.T) { @@ -229,9 +232,10 @@ func TestDataRequestHandler_DataQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetDataResponseEnvelope{} - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetDataResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) //TODO verify signature on response } @@ -614,9 +618,10 @@ func TestDataRequestHandler_DataRangeQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetDataRangeResponseEnvelope{} - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetDataRangeResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) //TODO verify signature on response } @@ -883,9 +888,10 @@ func TestDataRequestHandler_DataJSONQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.DataQueryResponseEnvelope{} - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.DataQueryResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) //TODO verify signature on response } @@ -1283,7 +1289,7 @@ func TestDataRequestHandler_DataTransaction(t *testing.T) { t.Run(tt.name, func(t *testing.T) { txEnv := tt.txEnvFactory() txResp := tt.txRespFactory() - txBytes, err := json.Marshal(txEnv) + txBytes, err := marshal.DefaultMarshaler().Marshal(txEnv) require.NoError(t, err) require.NotNil(t, txBytes) @@ -1318,11 +1324,11 @@ func TestDataRequestHandler_DataTransaction(t *testing.T) { handler := NewDataRequestHandler(db, logger) handler.ServeHTTP(rr, req) - // require.Equal(t, tt.expectedCode, rr.Code) if tt.expectedCode == http.StatusOK { - resp := &types.TxReceiptResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(resp) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + resp := &types.TxReceiptResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, resp)) require.Equal(t, txResp, resp) } else if tt.expectedCode == http.StatusTemporaryRedirect { locationUrl := rr.Header().Get("Location") @@ -1469,9 +1475,10 @@ func TestDataRequestHandler_DataJSONQueryWithContext(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.DataQueryResponseEnvelope{} - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.DataQueryResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) //TODO verify signature on response } diff --git a/internal/httphandler/db_request_handler.go b/internal/httphandler/db_request_handler.go index 4d5c4127..77ecfaa8 100644 --- a/internal/httphandler/db_request_handler.go +++ b/internal/httphandler/db_request_handler.go @@ -3,8 +3,8 @@ package httphandler import ( - "encoding/json" "fmt" + "io/ioutil" "net/http" "github.com/gorilla/mux" @@ -15,6 +15,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" "github.com/hyperledger-labs/orion-server/pkg/logger" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/encoding/protojson" ) // dbRequestHandler handles query and transaction associated @@ -110,11 +111,14 @@ func (d *dbRequestHandler) dbTransaction(response http.ResponseWriter, request * return } - dbRequestBody := json.NewDecoder(request.Body) - dbRequestBody.DisallowUnknownFields() + requestBytes, err := ioutil.ReadAll(request.Body) + if err != nil { + utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) + return + } txEnv := &types.DBAdministrationTxEnvelope{} - if err := dbRequestBody.Decode(txEnv); err != nil { + if err := protojson.Unmarshal(requestBytes, txEnv); err != nil { utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) return } diff --git a/internal/httphandler/db_request_handler_test.go b/internal/httphandler/db_request_handler_test.go index a1756ed4..2863888c 100644 --- a/internal/httphandler/db_request_handler_test.go +++ b/internal/httphandler/db_request_handler_test.go @@ -7,6 +7,7 @@ import ( "encoding/base64" "encoding/json" "errors" + "io/ioutil" "net/http" "net/http/httptest" "net/url" @@ -17,10 +18,12 @@ import ( "github.com/hyperledger-labs/orion-server/internal/bcdb/mocks" interrors "github.com/hyperledger-labs/orion-server/internal/errors" "github.com/hyperledger-labs/orion-server/pkg/constants" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" ) func TestDBRequestHandler_DBStatus(t *testing.T) { @@ -202,10 +205,10 @@ func TestDBRequestHandler_DBStatus(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetDBStatusResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) - + res := &types.GetDBStatusResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -408,10 +411,10 @@ func TestDBRequestHandler_DBIndex(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetDBIndexResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) - + res := &types.GetDBIndexResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -675,14 +678,15 @@ func TestDBRequestHandler_DBTransaction(t *testing.T) { for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { txEnv := tt.txEnvFactory() - txBytes, err := json.Marshal(txEnv) - txResp := tt.txRespFactory() + txBytes, err := marshal.DefaultMarshaler().Marshal(txEnv) require.NoError(t, err) require.NotNil(t, txBytes) txReader := bytes.NewReader(txBytes) require.NotNil(t, txReader) + txResp := tt.txRespFactory() + reqUrl := &url.URL{ Scheme: "http", Host: "server1.example.com:6091", @@ -713,9 +717,10 @@ func TestDBRequestHandler_DBTransaction(t *testing.T) { require.Equal(t, tt.expectedCode, rr.Code) if tt.expectedCode == http.StatusOK { - resp := &types.TxReceiptResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(resp) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + resp := &types.TxReceiptResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, resp)) require.Equal(t, txResp, resp) } else if tt.expectedCode == http.StatusTemporaryRedirect { locationUrl := rr.Header().Get("Location") diff --git a/internal/httphandler/ledger_request_handler_test.go b/internal/httphandler/ledger_request_handler_test.go index 4b228a7a..845ee901 100644 --- a/internal/httphandler/ledger_request_handler_test.go +++ b/internal/httphandler/ledger_request_handler_test.go @@ -6,12 +6,14 @@ import ( "encoding/base64" "encoding/json" "fmt" + "io/ioutil" "net/http" "net/http/httptest" "path" "testing" - "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + "google.golang.org/protobuf/proto" "github.com/hyperledger-labs/orion-server/internal/bcdb" "github.com/hyperledger-labs/orion-server/internal/bcdb/mocks" @@ -87,7 +89,7 @@ func TestBlockQuery(t *testing.T) { }, }, requestFactory: func() (*http.Request, error) { - req, err := http.NewRequest(http.MethodGet, constants.LedgerEndpoint + fmt.Sprintf("block/%d?augmented=%t", 1, false), nil) + req, err := http.NewRequest(http.MethodGet, constants.LedgerEndpoint+fmt.Sprintf("block/%d?augmented=%t", 1, false), nil) if err != nil { return nil, err } @@ -288,8 +290,9 @@ func TestBlockQuery(t *testing.T) { res = &types.GetBlockResponseEnvelope{} } - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) //TODO verify signature on response } @@ -504,10 +507,10 @@ func TestPathQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetLedgerPathResponseEnvelope{} - rr.Body.Bytes() - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetLedgerPathResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -709,10 +712,10 @@ func TestTxProofQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetTxProofResponseEnvelope{} - rr.Body.Bytes() - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetTxProofResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -1008,10 +1011,10 @@ func TestDataProofQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetDataProofResponseEnvelope{} - rr.Body.Bytes() - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.GetDataProofResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -1146,10 +1149,10 @@ func TestTxReceiptQuery(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.TxReceiptResponseEnvelope{} - rr.Body.Bytes() - err = json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + res := &types.TxReceiptResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) diff --git a/internal/httphandler/provenance_request_handler_test.go b/internal/httphandler/provenance_request_handler_test.go index 6de70002..ba617c58 100644 --- a/internal/httphandler/provenance_request_handler_test.go +++ b/internal/httphandler/provenance_request_handler_test.go @@ -7,6 +7,7 @@ import ( "encoding/base64" "encoding/json" "errors" + "io/ioutil" "net/http" "net/http/httptest" "testing" @@ -20,6 +21,8 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" + "google.golang.org/protobuf/proto" ) type testCase struct { @@ -1031,8 +1034,9 @@ func assertTestCase(t *testing.T, tt testCase, responseType interface{}) { } if tt.expectedResponse != nil { - err = json.NewDecoder(rr.Body).Decode(responseType) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + require.NoError(t, protojson.Unmarshal(requestBody, responseType.(proto.Message))) require.Equal(t, tt.expectedResponse, responseType) } } diff --git a/internal/httphandler/users_request_handler.go b/internal/httphandler/users_request_handler.go index 4c9ba3c0..4fa39906 100644 --- a/internal/httphandler/users_request_handler.go +++ b/internal/httphandler/users_request_handler.go @@ -3,8 +3,8 @@ package httphandler import ( - "encoding/json" "fmt" + "io/ioutil" "net/http" "github.com/gorilla/mux" @@ -15,6 +15,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" "github.com/hyperledger-labs/orion-server/pkg/logger" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/encoding/protojson" ) // usersRequestHandler handles query and transaction associated @@ -88,12 +89,14 @@ func (u *usersRequestHandler) userTransaction(response http.ResponseWriter, requ return } - d := json.NewDecoder(request.Body) - d.DisallowUnknownFields() + requestBytes, err := ioutil.ReadAll(request.Body) + if err != nil { + utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) + return + } txEnv := &types.UserAdministrationTxEnvelope{} - if err := d.Decode(txEnv); err != nil { - u.logger.Errorf(err.Error()) + if err := protojson.Unmarshal(requestBytes, txEnv); err != nil { utils.SendHTTPResponse(response, http.StatusBadRequest, &types.HttpResponseErr{ErrMsg: err.Error()}) return } diff --git a/internal/httphandler/users_request_handler_test.go b/internal/httphandler/users_request_handler_test.go index 68b298a9..da0b5a72 100644 --- a/internal/httphandler/users_request_handler_test.go +++ b/internal/httphandler/users_request_handler_test.go @@ -7,6 +7,7 @@ import ( "encoding/base64" "encoding/json" "errors" + "io/ioutil" "net/http" "net/http/httptest" "net/url" @@ -17,10 +18,12 @@ import ( "github.com/hyperledger-labs/orion-server/internal/bcdb/mocks" interrors "github.com/hyperledger-labs/orion-server/internal/errors" "github.com/hyperledger-labs/orion-server/pkg/constants" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" ) func TestUsersRequestHandler_GetUser(t *testing.T) { @@ -207,10 +210,10 @@ func TestUsersRequestHandler_GetUser(t *testing.T) { } if tt.expectedResponse != nil { - res := &types.GetUserResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(res) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) - + res := &types.GetUserResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, res)) require.Equal(t, tt.expectedResponse, res) } }) @@ -491,7 +494,7 @@ func TestUsersRequestHandler_SubmitUserTx(t *testing.T) { for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { txEnv := tt.txEnvFactory() - txBytes, err := json.Marshal(txEnv) + txBytes, err := marshal.DefaultMarshaler().Marshal(txEnv) txResp := tt.txRespFactory() require.NoError(t, err) require.NotNil(t, txBytes) @@ -529,9 +532,10 @@ func TestUsersRequestHandler_SubmitUserTx(t *testing.T) { require.Equal(t, tt.expectedCode, rr.Code) if tt.expectedCode == http.StatusOK { - resp := &types.TxReceiptResponseEnvelope{} - err := json.NewDecoder(rr.Body).Decode(resp) + requestBody, err := ioutil.ReadAll(rr.Body) require.NoError(t, err) + resp := &types.TxReceiptResponseEnvelope{} + require.NoError(t, protojson.Unmarshal(requestBody, resp)) require.Equal(t, txResp, resp) } else if tt.expectedCode == http.StatusTemporaryRedirect { locationUrl := rr.Header().Get("Location") diff --git a/internal/httphandler/utils.go b/internal/httphandler/utils.go index 007aefaf..9640a706 100644 --- a/internal/httphandler/utils.go +++ b/internal/httphandler/utils.go @@ -5,7 +5,6 @@ package httphandler import ( "encoding/base64" - "encoding/json" "errors" "io" "net/http" @@ -16,7 +15,9 @@ import ( "github.com/hyperledger-labs/orion-server/internal/utils" "github.com/hyperledger-labs/orion-server/pkg/constants" "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/proto" ) func extractVerifiedQueryPayload(w http.ResponseWriter, r *http.Request, queryType string, signVerifier *cryptoservice.SignatureVerifier) (interface{}, bool) { @@ -287,9 +288,13 @@ func VerifyRequestSignature( signature []byte, requestPayload interface{}, ) (error, int) { - requestBytes, err := json.Marshal(requestPayload) + if _, ok := requestPayload.(proto.Message); !ok { + return &types.HttpResponseErr{ErrMsg: "payload is not a protoreflect message"}, http.StatusInternalServerError + } + + requestBytes, err := marshal.DefaultMarshaler().Marshal(requestPayload.(proto.Message)) if err != nil { - return &types.HttpResponseErr{ErrMsg: "failure during json.Marshal: " + err.Error()}, http.StatusInternalServerError + return &types.HttpResponseErr{ErrMsg: "failure during Marshal: " + err.Error()}, http.StatusInternalServerError } err = sigVerifier.Verify(user, signature, requestBytes) diff --git a/internal/httphandler/utils_test.go b/internal/httphandler/utils_test.go index 2b10b07e..a904b557 100644 --- a/internal/httphandler/utils_test.go +++ b/internal/httphandler/utils_test.go @@ -62,7 +62,7 @@ func TestVerifyRequestSignature(t *testing.T) { verifier := cryptoservice.NewVerifier(db, lg) payload := make(chan struct{}) err, code := VerifyRequestSignature(verifier, "alice", []byte("something"), payload) - require.EqualError(t, err, "failure during json.Marshal: json: unsupported type: chan struct {}") + require.EqualError(t, err, "payload is not a protoreflect message") require.Equal(t, http.StatusInternalServerError, code) }) } diff --git a/internal/txvalidation/sig_validator.go b/internal/txvalidation/sig_validator.go index 1f4c82f9..4d6f7ce0 100644 --- a/internal/txvalidation/sig_validator.go +++ b/internal/txvalidation/sig_validator.go @@ -4,13 +4,14 @@ package txvalidation import ( - "encoding/json" "fmt" "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" "github.com/hyperledger-labs/orion-server/pkg/logger" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" ) type txSigValidator struct { @@ -23,10 +24,10 @@ func (s *txSigValidator) validate( signature []byte, txPayload interface{}, ) (*types.ValidationInfo, error) { - requestBytes, err := json.Marshal(txPayload) + requestBytes, err := marshal.DefaultMarshaler().Marshal(txPayload.(proto.Message)) if err != nil { - s.logger.Errorf("Error during json.Marshal Tx: %s, error: %s", txPayload, err) - return nil, errors.Wrapf(err, "failed to json.Marshal Tx: %s", txPayload) + s.logger.Errorf("Error during Marshal Tx: %s, error: %s", txPayload, err) + return nil, errors.Wrapf(err, "failed to Marshal Tx: %s", txPayload) } err = s.sigVerifier.Verify(user, signature, requestBytes) diff --git a/internal/utils/blocks.go b/internal/utils/blocks.go index f65ea817..5bd5768b 100644 --- a/internal/utils/blocks.go +++ b/internal/utils/blocks.go @@ -23,7 +23,7 @@ func BlockPayloadToTxIDs(blockPayload interface{}) ([]string, error) { } id := p.GetTxId() if id == "" { - return nil, errors.Errorf("missing TxId in index [%d]: %+v", i, env) + return nil, errors.Errorf("missing TxId in index [%d]: %+v", i, env.DataTxEnvelopes.GetEnvelopes()[i]) } txIDs = append(txIDs, id) } diff --git a/internal/utils/blocks_test.go b/internal/utils/blocks_test.go index b8ce75dc..139e3426 100644 --- a/internal/utils/blocks_test.go +++ b/internal/utils/blocks_test.go @@ -92,7 +92,7 @@ func TestBlockPayloadToTxIDs_Errors(t *testing.T) { } txIDs, err = utils.BlockPayloadToTxIDs(userAdmin) - require.EqualError(t, err, "missing TxId in: &{UserAdministrationTxEnvelope:payload:<> }") + require.EqualError(t, err, "missing TxId in: &{UserAdministrationTxEnvelope:payload:{}}") require.Nil(t, txIDs) }) @@ -118,7 +118,7 @@ func TestBlockPayloadToTxIDs_Errors(t *testing.T) { } txIDs, err = utils.BlockPayloadToTxIDs(dbAdmin) - require.EqualError(t, err, "missing TxId in: &{DbAdministrationTxEnvelope:payload:<> }") + require.EqualError(t, err, "missing TxId in: &{DbAdministrationTxEnvelope:payload:{}}") require.Nil(t, txIDs) }) @@ -144,7 +144,7 @@ func TestBlockPayloadToTxIDs_Errors(t *testing.T) { } txIDs, err = utils.BlockPayloadToTxIDs(config) - require.EqualError(t, err, "missing TxId in: &{ConfigTxEnvelope:payload:<> }") + require.EqualError(t, err, "missing TxId in: &{ConfigTxEnvelope:payload:{}}") require.Nil(t, txIDs) }) @@ -182,7 +182,7 @@ func TestBlockPayloadToTxIDs_Errors(t *testing.T) { }, } txIDs, err = utils.BlockPayloadToTxIDs(data) - require.EqualError(t, err, "empty payload in index [0]: &{DataTxEnvelopes:envelopes:<> }") + require.EqualError(t, err, "empty payload in index [0]: &{DataTxEnvelopes:envelopes:{}}") require.Nil(t, txIDs) data = &types.Block_DataTxEnvelopes{ @@ -203,7 +203,7 @@ func TestBlockPayloadToTxIDs_Errors(t *testing.T) { }, } txIDs, err = utils.BlockPayloadToTxIDs(data) - require.EqualError(t, err, "missing TxId in index [1]: &{DataTxEnvelopes:envelopes: > envelopes: > }") + require.EqualError(t, err, "missing TxId in index [1]: payload:{must_sign_user_ids:\"bob\"}") require.Nil(t, txIDs) }) } diff --git a/internal/utils/http.go b/internal/utils/http.go index 16258997..579928e4 100644 --- a/internal/utils/http.go +++ b/internal/utils/http.go @@ -11,14 +11,21 @@ import ( "net/url" "strconv" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" + "google.golang.org/protobuf/proto" ) const MultiPartFormData = "multipart/form-data" // SendHTTPResponse writes HTTP response back including HTTP code number and encode payload func SendHTTPResponse(w http.ResponseWriter, code int, payload interface{}) { - response, _ := json.Marshal(payload) + var response []byte + if p, ok := payload.(proto.Message); ok { + response, _ = marshal.DefaultMarshaler().Marshal(p) + } else { + response, _ = json.Marshal(payload) + } w.Header().Set("Content-Type", "application/json") w.WriteHeader(code) if _, err := w.Write(response); err != nil { diff --git a/pkg/cryptoservice/signer.go b/pkg/cryptoservice/signer.go index f57498b6..a43b4e55 100644 --- a/pkg/cryptoservice/signer.go +++ b/pkg/cryptoservice/signer.go @@ -3,11 +3,11 @@ package cryptoservice import ( - "encoding/json" - "github.com/hyperledger-labs/orion-server/pkg/crypto" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" ) func SignQuery(querySigner crypto.Signer, query interface{}) ([]byte, error) { @@ -59,7 +59,7 @@ func SignTx(txSigner crypto.Signer, tx interface{}) ([]byte, error) { } func SignPayload(signer crypto.Signer, payload interface{}) ([]byte, error) { - payloadBytes, err := json.Marshal(payload) + payloadBytes, err := marshal.DefaultMarshaler().Marshal(payload.(proto.Message)) if err != nil { return nil, err } diff --git a/pkg/cryptoservice/verifier.go b/pkg/cryptoservice/verifier.go index 66faa778..e0c5829b 100644 --- a/pkg/cryptoservice/verifier.go +++ b/pkg/cryptoservice/verifier.go @@ -34,12 +34,12 @@ type SignatureVerifier struct { func (sv *SignatureVerifier) Verify(userID string, signature, body []byte) error { cert, err := sv.userDBQuerier.GetCertificate(userID) if err != nil { - sv.logger.Debugf("Error during GetCertificate: userID: %s, error: %s", userID, err) + sv.logger.Info("Error during GetCertificate: userID: %s, error: %s", userID, err) return err } verifier := crypto.Verifier{Certificate: cert} if err = verifier.Verify(body, signature); err != nil { - sv.logger.Debugf("Failed to verify signature: userID: %s, error: %s", userID, err) + sv.logger.Info("Failed to verify signature: userID: %s, error: %s", userID, err) return err } return err diff --git a/pkg/marshal/proto_json_marshal.go b/pkg/marshal/proto_json_marshal.go new file mode 100644 index 00000000..dd7c89b1 --- /dev/null +++ b/pkg/marshal/proto_json_marshal.go @@ -0,0 +1,41 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +package marshal + +import ( + "bytes" + "encoding/json" + + "google.golang.org/protobuf/encoding/protojson" + "google.golang.org/protobuf/proto" +) + +type DefaultMarshal struct { + marshalOption *protojson.MarshalOptions +} + +func DefaultMarshaler() *DefaultMarshal { + return &DefaultMarshal{ + marshalOption: &protojson.MarshalOptions{ + Multiline: false, + AllowPartial: false, + UseProtoNames: true, + UseEnumNumbers: false, + EmitUnpopulated: false, + Resolver: nil, + }, + } +} + +func (o DefaultMarshal) Marshal(m proto.Message) ([]byte, error) { + mBytes, err := o.marshalOption.Marshal(m) + if err != nil { + return nil, err + } + + compactedPayloadBytes := bytes.NewBuffer([]byte{}) + if err := json.Compact(compactedPayloadBytes, mBytes); err != nil { + return nil, err + } + return compactedPayloadBytes.Bytes(), nil +} diff --git a/pkg/server/mock/rest_client.go b/pkg/server/mock/rest_client.go index 5b2e2602..57c1bcba 100644 --- a/pkg/server/mock/rest_client.go +++ b/pkg/server/mock/rest_client.go @@ -10,14 +10,18 @@ import ( "encoding/json" "fmt" "io" + "io/ioutil" "net" "net/http" "net/url" "time" "github.com/hyperledger-labs/orion-server/pkg/constants" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/pkg/errors" + "google.golang.org/protobuf/encoding/protojson" + "google.golang.org/protobuf/proto" ) type Client struct { @@ -67,7 +71,7 @@ func (c *Client) GetDBStatus(e *types.GetDBStatusQueryEnvelope) (*types.GetDBSta defer resp.Body.Close() res := &types.GetDBStatusResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -84,7 +88,7 @@ func (c *Client) GetDBIndex(e *types.GetDBIndexQueryEnvelope) (*types.GetDBIndex defer resp.Body.Close() res := &types.GetDBIndexResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -101,7 +105,7 @@ func (c *Client) GetData(e *types.GetDataQueryEnvelope) (*types.GetDataResponseE defer resp.Body.Close() res := &types.GetDataResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -118,7 +122,7 @@ func (c *Client) GetUser(e *types.GetUserQueryEnvelope) (*types.GetUserResponseE defer resp.Body.Close() res := &types.GetUserResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -136,7 +140,7 @@ func (c *Client) GetTxProof(e *types.GetTxProofQueryEnvelope) (*types.GetTxProof defer resp.Body.Close() res := &types.GetTxProofResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -154,7 +158,7 @@ func (c *Client) GetDataRange(e *types.GetDataQueryEnvelope, startKey, endKey st defer resp.Body.Close() res := &types.GetDataRangeResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -172,7 +176,7 @@ func (c *Client) GetDataProof(e *types.GetDataProofQueryEnvelope) (*types.GetDat defer resp.Body.Close() res := &types.GetDataProofResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -189,7 +193,7 @@ func (c *Client) GetLastConfigBlockStatus(e *types.GeConfigBlockQueryEnvelope) ( defer resp.Body.Close() res := &types.GetConfigBlockResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -206,7 +210,7 @@ func (c *Client) GetLastBlock(e *types.GetLastBlockQueryEnvelope) (*types.GetBlo defer resp.Body.Close() res := &types.GetBlockResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -225,7 +229,7 @@ func (c *Client) GetLedgerPath(e *types.GetLedgerPathQueryEnvelope) (*types.GetL defer resp.Body.Close() res := &types.GetLedgerPathResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -244,7 +248,7 @@ func (c *Client) GetTxReceipt(e *types.GetTxReceiptQueryEnvelope) (*types.TxRece defer resp.Body.Close() res := &types.TxReceiptResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -266,7 +270,7 @@ func (c *Client) GetBlockHeader(e *types.GetBlockQueryEnvelope, forceParam bool) defer resp.Body.Close() res := &types.GetBlockResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -284,7 +288,7 @@ func (c *Client) GetAugmentedBlockHeader(e *types.GetBlockQueryEnvelope) (*types defer resp.Body.Close() res := &types.GetAugmentedBlockHeaderResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -301,7 +305,7 @@ func (c *Client) GetClusterStatus(e *types.GetClusterStatusQueryEnvelope) (*type defer resp.Body.Close() res := &types.GetClusterStatusResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -318,7 +322,7 @@ func (c *Client) GetConfig(e *types.GetConfigQueryEnvelope) (*types.GetConfigRes defer resp.Body.Close() res := &types.GetConfigResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -335,7 +339,7 @@ func (c *Client) GetNodeConfig(e *types.GetNodeConfigQueryEnvelope) (*types.GetN defer resp.Body.Close() res := &types.GetNodeConfigResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -352,7 +356,7 @@ func (c *Client) GetHistoricalData(urlPath string, e *types.GetHistoricalDataQue defer resp.Body.Close() res := &types.GetHistoricalDataResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -369,7 +373,7 @@ func (c *Client) GetDataReadByUser(urlPath string, e *types.GetDataReadByQueryEn defer resp.Body.Close() res := &types.GetDataProvenanceResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -386,7 +390,7 @@ func (c *Client) GetDataWrittenByUser(urlPath string, e *types.GetDataWrittenByQ defer resp.Body.Close() res := &types.GetDataProvenanceResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -403,7 +407,7 @@ func (c *Client) GetDataDeletedByUser(urlPath string, e *types.GetDataDeletedByQ defer resp.Body.Close() res := &types.GetDataProvenanceResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -420,7 +424,7 @@ func (c *Client) GetDataReaders(urlPath string, e *types.GetDataReadersQueryEnve defer resp.Body.Close() res := &types.GetDataReadersResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -437,7 +441,7 @@ func (c *Client) GetDataWriters(urlPath string, e *types.GetDataWritersQueryEnve defer resp.Body.Close() res := &types.GetDataWritersResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -454,7 +458,7 @@ func (c *Client) GetTxIDsSubmitedBy(urlPath string, e *types.GetTxIDsSubmittedBy defer resp.Body.Close() res := &types.GetTxIDsSubmittedByResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } @@ -477,10 +481,19 @@ func (c *Client) ExecuteJSONQuery(urlPath string, e *types.DataJSONQuery, signat defer resp.Body.Close() res := &types.DataQueryResponseEnvelope{} - err = json.NewDecoder(resp.Body).Decode(res) + err = unMarshalResponse(resp, res) return res, err } +func unMarshalResponse(httpResp *http.Response, resp proto.Message) error { + responseBytes, err := ioutil.ReadAll(httpResp.Body) + if err != nil { + return err + } + + return protojson.Unmarshal(responseBytes, resp) +} + func (c *Client) handlePostRequest(urlPath string, userID string, postData, signature []byte) (*http.Response, error) { parsedURL, err := url.Parse(urlPath) if err != nil { @@ -554,8 +567,8 @@ func (c *Client) SubmitTransaction(urlPath string, tx interface{}, serverTimeout }, ) - buf := &bytes.Buffer{} - if err := json.NewEncoder(buf).Encode(tx); err != nil { + txBytes, err := marshal.DefaultMarshaler().Marshal(tx.(proto.Message)) + if err != nil { return nil, err } @@ -567,7 +580,7 @@ func (c *Client) SubmitTransaction(urlPath string, tx interface{}, serverTimeout defer cancelFnc() } - req, err := http.NewRequestWithContext(ctx, http.MethodPost, u.String(), buf) + req, err := http.NewRequestWithContext(ctx, http.MethodPost, u.String(), bytes.NewReader(txBytes)) if err != nil { return nil, err } diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index 7b40ff48..8c41c1e1 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -5,7 +5,6 @@ package server import ( "bytes" "crypto/tls" - "encoding/json" "encoding/pem" "fmt" "io/ioutil" @@ -26,6 +25,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/constants" "github.com/hyperledger-labs/orion-server/pkg/crypto" "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/server/mock" "github.com/hyperledger-labs/orion-server/pkg/server/testutils" "github.com/hyperledger-labs/orion-server/pkg/types" @@ -411,7 +411,7 @@ func TestServerWithDataRequestAndProvenanceQueries(t *testing.T) { require.NotNil(t, data) require.NotNil(t, data.Response) - resp, err := json.Marshal(data.GetResponse()) + resp, err := marshal.DefaultMarshaler().Marshal(data.GetResponse()) require.NoError(t, err) err = verifier.Verify(resp, data.GetSignature()) require.NoError(t, err) @@ -466,7 +466,7 @@ func TestServerWithDataRequestAndProvenanceQueries(t *testing.T) { return false } - dataB, err := json.Marshal(data.GetResponse()) + dataB, err := marshal.DefaultMarshaler().Marshal(data.GetResponse()) require.NoError(t, err) err = verifier.Verify(dataB, data.GetSignature()) @@ -493,7 +493,7 @@ func TestServerWithDataRequestAndProvenanceQueries(t *testing.T) { ) require.NoError(t, err) - valuesB, err := json.Marshal(values.GetResponse()) + valuesB, err := marshal.DefaultMarshaler().Marshal(values.GetResponse()) require.NoError(t, err) err = verifier.Verify(valuesB, values.GetSignature()) @@ -527,7 +527,7 @@ func TestServerWithDataRequestAndProvenanceOff(t *testing.T) { require.NotNil(t, data) require.NotNil(t, data.Response) - resp, err := json.Marshal(data.GetResponse()) + resp, err := marshal.DefaultMarshaler().Marshal(data.GetResponse()) require.NoError(t, err) err = verifier.Verify(resp, data.GetSignature()) require.NoError(t, err) @@ -582,7 +582,7 @@ func TestServerWithDataRequestAndProvenanceOff(t *testing.T) { return false } - dataB, err := json.Marshal(data.GetResponse()) + dataB, err := marshal.DefaultMarshaler().Marshal(data.GetResponse()) require.NoError(t, err) err = verifier.Verify(dataB, data.GetSignature()) @@ -681,7 +681,7 @@ func TestServerWithUserAdminRequest(t *testing.T) { return false } - userB, err := json.Marshal(user.GetResponse()) + userB, err := marshal.DefaultMarshaler().Marshal(user.GetResponse()) require.NoError(t, err) err = verifier.Verify(userB, user.GetSignature()) @@ -734,7 +734,7 @@ func TestServerWithDBAdminRequest(t *testing.T) { return false } - dbB, err := json.Marshal(db.GetResponse()) + dbB, err := marshal.DefaultMarshaler().Marshal(db.GetResponse()) require.NoError(t, err) err = verifier.Verify(dbB, db.GetSignature()) @@ -791,7 +791,7 @@ func TestServerWithDBAdminRequest(t *testing.T) { return false } - dataB, err := json.Marshal(data.GetResponse()) + dataB, err := marshal.DefaultMarshaler().Marshal(data.GetResponse()) require.NoError(t, err) err = verifier.Verify(dataB, data.GetSignature()) @@ -950,7 +950,7 @@ func TestSyncTxWithServerTLS(t *testing.T) { require.NoError(t, err) require.NotNil(t, user.GetResponse()) - userBytes, err := json.Marshal(user.GetResponse()) + userBytes, err := marshal.DefaultMarshaler().Marshal(user.GetResponse()) require.NoError(t, err) err = verifier.Verify(userBytes, user.GetSignature()) @@ -1114,7 +1114,7 @@ func TestSyncTxWithServerAndClientTLS(t *testing.T) { require.NoError(t, err) require.NotNil(t, user.GetResponse()) - userBytes, err := json.Marshal(user.GetResponse()) + userBytes, err := marshal.DefaultMarshaler().Marshal(user.GetResponse()) require.NoError(t, err) err = verifier.Verify(userBytes, user.GetSignature()) @@ -1178,7 +1178,7 @@ func TestServerWithRestart(t *testing.T) { return false } - userB, err := json.Marshal(user.GetResponse()) + userB, err := marshal.DefaultMarshaler().Marshal(user.GetResponse()) require.NoError(t, err) err = verifier.Verify(userB, user.GetSignature()) @@ -1212,7 +1212,7 @@ func TestServerWithRestart(t *testing.T) { return false } - userB, err := json.Marshal(user.GetResponse()) + userB, err := marshal.DefaultMarshaler().Marshal(user.GetResponse()) require.NoError(t, err) err = verifier.Verify(userB, user.GetSignature()) diff --git a/pkg/server/testutils/crypto_utils.go b/pkg/server/testutils/crypto_utils.go index d740811c..ae4a2406 100644 --- a/pkg/server/testutils/crypto_utils.go +++ b/pkg/server/testutils/crypto_utils.go @@ -9,7 +9,6 @@ import ( "crypto/tls" "crypto/x509" "crypto/x509/pkix" - "encoding/json" "encoding/pem" "io/ioutil" "math/big" @@ -21,8 +20,10 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/crypto" "github.com/hyperledger-labs/orion-server/pkg/cryptoservice" + "github.com/hyperledger-labs/orion-server/pkg/marshal" "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) const RootCAFileName = "rootCA" @@ -305,7 +306,7 @@ func SignedDBAdministrationTxEnvelope(t *testing.T, signer crypto.Signer, tx *ty func VerifyPayloadSignature(t *testing.T, rawCert []byte, payload interface{}, sig []byte) { ver, err := crypto.NewVerifier(rawCert) require.NoError(t, err) - payloadBytes, err := json.Marshal(payload) + payloadBytes, err := marshal.DefaultMarshaler().Marshal(payload.(proto.Message)) require.NoError(t, err) err = ver.Verify(payloadBytes, sig) require.NoError(t, err) diff --git a/pkg/types/block_and_transaction.pb.go b/pkg/types/block_and_transaction.pb.go index b4e8bc3f..58d6b0bc 100644 --- a/pkg/types/block_and_transaction.pb.go +++ b/pkg/types/block_and_transaction.pb.go @@ -1,24 +1,27 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: block_and_transaction.proto package types 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 Flag int32 @@ -33,34 +36,55 @@ const ( Flag_INVALID_MISSING_SIGNATURE Flag = 7 ) -var Flag_name = map[int32]string{ - 0: "VALID", - 1: "INVALID_MVCC_CONFLICT_WITHIN_BLOCK", - 2: "INVALID_MVCC_CONFLICT_WITH_COMMITTED_STATE", - 3: "INVALID_DATABASE_DOES_NOT_EXIST", - 4: "INVALID_NO_PERMISSION", - 5: "INVALID_INCORRECT_ENTRIES", - 6: "INVALID_UNAUTHORISED", - 7: "INVALID_MISSING_SIGNATURE", -} +// Enum value maps for Flag. +var ( + Flag_name = map[int32]string{ + 0: "VALID", + 1: "INVALID_MVCC_CONFLICT_WITHIN_BLOCK", + 2: "INVALID_MVCC_CONFLICT_WITH_COMMITTED_STATE", + 3: "INVALID_DATABASE_DOES_NOT_EXIST", + 4: "INVALID_NO_PERMISSION", + 5: "INVALID_INCORRECT_ENTRIES", + 6: "INVALID_UNAUTHORISED", + 7: "INVALID_MISSING_SIGNATURE", + } + Flag_value = map[string]int32{ + "VALID": 0, + "INVALID_MVCC_CONFLICT_WITHIN_BLOCK": 1, + "INVALID_MVCC_CONFLICT_WITH_COMMITTED_STATE": 2, + "INVALID_DATABASE_DOES_NOT_EXIST": 3, + "INVALID_NO_PERMISSION": 4, + "INVALID_INCORRECT_ENTRIES": 5, + "INVALID_UNAUTHORISED": 6, + "INVALID_MISSING_SIGNATURE": 7, + } +) -var Flag_value = map[string]int32{ - "VALID": 0, - "INVALID_MVCC_CONFLICT_WITHIN_BLOCK": 1, - "INVALID_MVCC_CONFLICT_WITH_COMMITTED_STATE": 2, - "INVALID_DATABASE_DOES_NOT_EXIST": 3, - "INVALID_NO_PERMISSION": 4, - "INVALID_INCORRECT_ENTRIES": 5, - "INVALID_UNAUTHORISED": 6, - "INVALID_MISSING_SIGNATURE": 7, +func (x Flag) Enum() *Flag { + p := new(Flag) + *p = x + return p } func (x Flag) String() string { - return proto.EnumName(Flag_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Flag) Descriptor() protoreflect.EnumDescriptor { + return file_block_and_transaction_proto_enumTypes[0].Descriptor() } +func (Flag) Type() protoreflect.EnumType { + return &file_block_and_transaction_proto_enumTypes[0] +} + +func (x Flag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Flag.Descriptor instead. func (Flag) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{0} + return file_block_and_transaction_proto_rawDescGZIP(), []int{0} } type IndexAttributeType int32 @@ -71,24 +95,45 @@ const ( IndexAttributeType_BOOLEAN IndexAttributeType = 2 ) -var IndexAttributeType_name = map[int32]string{ - 0: "NUMBER", - 1: "STRING", - 2: "BOOLEAN", -} +// Enum value maps for IndexAttributeType. +var ( + IndexAttributeType_name = map[int32]string{ + 0: "NUMBER", + 1: "STRING", + 2: "BOOLEAN", + } + IndexAttributeType_value = map[string]int32{ + "NUMBER": 0, + "STRING": 1, + "BOOLEAN": 2, + } +) -var IndexAttributeType_value = map[string]int32{ - "NUMBER": 0, - "STRING": 1, - "BOOLEAN": 2, +func (x IndexAttributeType) Enum() *IndexAttributeType { + p := new(IndexAttributeType) + *p = x + return p } func (x IndexAttributeType) String() string { - return proto.EnumName(IndexAttributeType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (IndexAttributeType) Descriptor() protoreflect.EnumDescriptor { + return file_block_and_transaction_proto_enumTypes[1].Descriptor() +} + +func (IndexAttributeType) Type() protoreflect.EnumType { + return &file_block_and_transaction_proto_enumTypes[1] +} + +func (x IndexAttributeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IndexAttributeType.Descriptor instead. func (IndexAttributeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{1} + return file_block_and_transaction_proto_rawDescGZIP(), []int{1} } type AccessControlWritePolicy int32 @@ -98,100 +143,102 @@ const ( AccessControl_ALL AccessControlWritePolicy = 1 ) -var AccessControlWritePolicy_name = map[int32]string{ - 0: "ANY", - 1: "ALL", -} +// Enum value maps for AccessControlWritePolicy. +var ( + AccessControlWritePolicy_name = map[int32]string{ + 0: "ANY", + 1: "ALL", + } + AccessControlWritePolicy_value = map[string]int32{ + "ANY": 0, + "ALL": 1, + } +) -var AccessControlWritePolicy_value = map[string]int32{ - "ANY": 0, - "ALL": 1, +func (x AccessControlWritePolicy) Enum() *AccessControlWritePolicy { + p := new(AccessControlWritePolicy) + *p = x + return p } func (x AccessControlWritePolicy) String() string { - return proto.EnumName(AccessControlWritePolicy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (AccessControlWritePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_block_and_transaction_proto_enumTypes[2].Descriptor() +} + +func (AccessControlWritePolicy) Type() protoreflect.EnumType { + return &file_block_and_transaction_proto_enumTypes[2] +} + +func (x AccessControlWritePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AccessControlWritePolicy.Descriptor instead. func (AccessControlWritePolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{22, 0} + return file_block_and_transaction_proto_rawDescGZIP(), []int{22, 0} } // Block holds the chain information and transactions type Block struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // Types that are valid to be assigned to Payload: + // Types that are assignable to Payload: + // // *Block_DataTxEnvelopes // *Block_ConfigTxEnvelope // *Block_DbAdministrationTxEnvelope // *Block_UserAdministrationTxEnvelope Payload isBlock_Payload `protobuf_oneof:"Payload"` // Consensus protocol metadata - ConsensusMetadata *ConsensusMetadata `protobuf:"bytes,6,opt,name=consensus_metadata,json=consensusMetadata,proto3" json:"consensus_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Block) Reset() { *m = Block{} } -func (m *Block) String() string { return proto.CompactTextString(m) } -func (*Block) ProtoMessage() {} -func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{0} -} - -func (m *Block) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Block.Unmarshal(m, b) -} -func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Block.Marshal(b, m, deterministic) + ConsensusMetadata *ConsensusMetadata `protobuf:"bytes,6,opt,name=consensus_metadata,json=consensusMetadata,proto3" json:"consensus_metadata,omitempty"` } -func (m *Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block.Merge(m, src) -} -func (m *Block) XXX_Size() int { - return xxx_messageInfo_Block.Size(m) -} -func (m *Block) XXX_DiscardUnknown() { - xxx_messageInfo_Block.DiscardUnknown(m) -} - -var xxx_messageInfo_Block proto.InternalMessageInfo -func (m *Block) GetHeader() *BlockHeader { - if m != nil { - return m.Header +func (x *Block) Reset() { + *x = Block{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type isBlock_Payload interface { - isBlock_Payload() +func (x *Block) String() string { + return protoimpl.X.MessageStringOf(x) } -type Block_DataTxEnvelopes struct { - DataTxEnvelopes *DataTxEnvelopes `protobuf:"bytes,2,opt,name=data_tx_envelopes,json=dataTxEnvelopes,proto3,oneof"` -} +func (*Block) ProtoMessage() {} -type Block_ConfigTxEnvelope struct { - ConfigTxEnvelope *ConfigTxEnvelope `protobuf:"bytes,3,opt,name=config_tx_envelope,json=configTxEnvelope,proto3,oneof"` +func (x *Block) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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) } -type Block_DbAdministrationTxEnvelope struct { - DbAdministrationTxEnvelope *DBAdministrationTxEnvelope `protobuf:"bytes,4,opt,name=db_administration_tx_envelope,json=dbAdministrationTxEnvelope,proto3,oneof"` +// Deprecated: Use Block.ProtoReflect.Descriptor instead. +func (*Block) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{0} } -type Block_UserAdministrationTxEnvelope struct { - UserAdministrationTxEnvelope *UserAdministrationTxEnvelope `protobuf:"bytes,5,opt,name=user_administration_tx_envelope,json=userAdministrationTxEnvelope,proto3,oneof"` +func (x *Block) GetHeader() *BlockHeader { + if x != nil { + return x.Header + } + return nil } -func (*Block_DataTxEnvelopes) isBlock_Payload() {} - -func (*Block_ConfigTxEnvelope) isBlock_Payload() {} - -func (*Block_DbAdministrationTxEnvelope) isBlock_Payload() {} - -func (*Block_UserAdministrationTxEnvelope) isBlock_Payload() {} - func (m *Block) GetPayload() isBlock_Payload { if m != nil { return m.Payload @@ -199,115 +246,141 @@ func (m *Block) GetPayload() isBlock_Payload { return nil } -func (m *Block) GetDataTxEnvelopes() *DataTxEnvelopes { - if x, ok := m.GetPayload().(*Block_DataTxEnvelopes); ok { +func (x *Block) GetDataTxEnvelopes() *DataTxEnvelopes { + if x, ok := x.GetPayload().(*Block_DataTxEnvelopes); ok { return x.DataTxEnvelopes } return nil } -func (m *Block) GetConfigTxEnvelope() *ConfigTxEnvelope { - if x, ok := m.GetPayload().(*Block_ConfigTxEnvelope); ok { +func (x *Block) GetConfigTxEnvelope() *ConfigTxEnvelope { + if x, ok := x.GetPayload().(*Block_ConfigTxEnvelope); ok { return x.ConfigTxEnvelope } return nil } -func (m *Block) GetDbAdministrationTxEnvelope() *DBAdministrationTxEnvelope { - if x, ok := m.GetPayload().(*Block_DbAdministrationTxEnvelope); ok { +func (x *Block) GetDbAdministrationTxEnvelope() *DBAdministrationTxEnvelope { + if x, ok := x.GetPayload().(*Block_DbAdministrationTxEnvelope); ok { return x.DbAdministrationTxEnvelope } return nil } -func (m *Block) GetUserAdministrationTxEnvelope() *UserAdministrationTxEnvelope { - if x, ok := m.GetPayload().(*Block_UserAdministrationTxEnvelope); ok { +func (x *Block) GetUserAdministrationTxEnvelope() *UserAdministrationTxEnvelope { + if x, ok := x.GetPayload().(*Block_UserAdministrationTxEnvelope); ok { return x.UserAdministrationTxEnvelope } return nil } -func (m *Block) GetConsensusMetadata() *ConsensusMetadata { - if m != nil { - return m.ConsensusMetadata +func (x *Block) GetConsensusMetadata() *ConsensusMetadata { + if x != nil { + return x.ConsensusMetadata } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Block) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Block_DataTxEnvelopes)(nil), - (*Block_ConfigTxEnvelope)(nil), - (*Block_DbAdministrationTxEnvelope)(nil), - (*Block_UserAdministrationTxEnvelope)(nil), - } +type isBlock_Payload interface { + isBlock_Payload() +} + +type Block_DataTxEnvelopes struct { + DataTxEnvelopes *DataTxEnvelopes `protobuf:"bytes,2,opt,name=data_tx_envelopes,json=dataTxEnvelopes,proto3,oneof"` } +type Block_ConfigTxEnvelope struct { + ConfigTxEnvelope *ConfigTxEnvelope `protobuf:"bytes,3,opt,name=config_tx_envelope,json=configTxEnvelope,proto3,oneof"` +} + +type Block_DbAdministrationTxEnvelope struct { + DbAdministrationTxEnvelope *DBAdministrationTxEnvelope `protobuf:"bytes,4,opt,name=db_administration_tx_envelope,json=dbAdministrationTxEnvelope,proto3,oneof"` +} + +type Block_UserAdministrationTxEnvelope struct { + UserAdministrationTxEnvelope *UserAdministrationTxEnvelope `protobuf:"bytes,5,opt,name=user_administration_tx_envelope,json=userAdministrationTxEnvelope,proto3,oneof"` +} + +func (*Block_DataTxEnvelopes) isBlock_Payload() {} + +func (*Block_ConfigTxEnvelope) isBlock_Payload() {} + +func (*Block_DbAdministrationTxEnvelope) isBlock_Payload() {} + +func (*Block_UserAdministrationTxEnvelope) isBlock_Payload() {} + // BlockHeaderBase holds the block metadata and the chain information // that computed before transaction validation type BlockHeaderBase struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // Hash of (number - 1) BlockHeaderBase PreviousBaseHeaderHash []byte `protobuf:"bytes,2,opt,name=previous_base_header_hash,json=previousBaseHeaderHash,proto3" json:"previous_base_header_hash,omitempty"` // Hash of BlockHeader of last block already committed to ledger LastCommittedBlockHash []byte `protobuf:"bytes,3,opt,name=last_committed_block_hash,json=lastCommittedBlockHash,proto3" json:"last_committed_block_hash,omitempty"` // Number of last block already committed to ledger - LastCommittedBlockNum uint64 `protobuf:"varint,4,opt,name=last_committed_block_num,json=lastCommittedBlockNum,proto3" json:"last_committed_block_num,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LastCommittedBlockNum uint64 `protobuf:"varint,4,opt,name=last_committed_block_num,json=lastCommittedBlockNum,proto3" json:"last_committed_block_num,omitempty"` } -func (m *BlockHeaderBase) Reset() { *m = BlockHeaderBase{} } -func (m *BlockHeaderBase) String() string { return proto.CompactTextString(m) } -func (*BlockHeaderBase) ProtoMessage() {} -func (*BlockHeaderBase) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{1} +func (x *BlockHeaderBase) Reset() { + *x = BlockHeaderBase{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockHeaderBase) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockHeaderBase.Unmarshal(m, b) -} -func (m *BlockHeaderBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockHeaderBase.Marshal(b, m, deterministic) +func (x *BlockHeaderBase) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockHeaderBase) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeaderBase.Merge(m, src) -} -func (m *BlockHeaderBase) XXX_Size() int { - return xxx_messageInfo_BlockHeaderBase.Size(m) -} -func (m *BlockHeaderBase) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeaderBase.DiscardUnknown(m) + +func (*BlockHeaderBase) ProtoMessage() {} + +func (x *BlockHeaderBase) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_BlockHeaderBase proto.InternalMessageInfo +// Deprecated: Use BlockHeaderBase.ProtoReflect.Descriptor instead. +func (*BlockHeaderBase) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{1} +} -func (m *BlockHeaderBase) GetNumber() uint64 { - if m != nil { - return m.Number +func (x *BlockHeaderBase) GetNumber() uint64 { + if x != nil { + return x.Number } return 0 } -func (m *BlockHeaderBase) GetPreviousBaseHeaderHash() []byte { - if m != nil { - return m.PreviousBaseHeaderHash +func (x *BlockHeaderBase) GetPreviousBaseHeaderHash() []byte { + if x != nil { + return x.PreviousBaseHeaderHash } return nil } -func (m *BlockHeaderBase) GetLastCommittedBlockHash() []byte { - if m != nil { - return m.LastCommittedBlockHash +func (x *BlockHeaderBase) GetLastCommittedBlockHash() []byte { + if x != nil { + return x.LastCommittedBlockHash } return nil } -func (m *BlockHeaderBase) GetLastCommittedBlockNum() uint64 { - if m != nil { - return m.LastCommittedBlockNum +func (x *BlockHeaderBase) GetLastCommittedBlockNum() uint64 { + if x != nil { + return x.LastCommittedBlockNum } return 0 } @@ -315,6 +388,10 @@ func (m *BlockHeaderBase) GetLastCommittedBlockNum() uint64 { // BlockHeader holds, in addition to base header, additional chain integrity information that is computed after transactions validation, // including the state and transaction Merkle trees roots, skip-chain hashes, and transaction validation information. type BlockHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + BaseHeader *BlockHeaderBase `protobuf:"bytes,1,opt,name=base_header,json=baseHeader,proto3" json:"base_header,omitempty"` // Skip chain hashed, based of BlockHeader hashed of blocks connected in blocks skip list SkipchainHashes [][]byte `protobuf:"bytes,2,rep,name=skipchain_hashes,json=skipchainHashes,proto3" json:"skipchain_hashes,omitempty"` @@ -323,1421 +400,1641 @@ type BlockHeader struct { // Root hash of system wide state merkle-particia tree StateMerkelTreeRootHash []byte `protobuf:"bytes,4,opt,name=state_merkel_tree_root_hash,json=stateMerkelTreeRootHash,proto3" json:"state_merkel_tree_root_hash,omitempty"` // Validation info for transactions in block. - ValidationInfo []*ValidationInfo `protobuf:"bytes,5,rep,name=validation_info,json=validationInfo,proto3" json:"validation_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ValidationInfo []*ValidationInfo `protobuf:"bytes,5,rep,name=validation_info,json=validationInfo,proto3" json:"validation_info,omitempty"` } -func (m *BlockHeader) Reset() { *m = BlockHeader{} } -func (m *BlockHeader) String() string { return proto.CompactTextString(m) } -func (*BlockHeader) ProtoMessage() {} -func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{2} +func (x *BlockHeader) Reset() { + *x = BlockHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockHeader.Unmarshal(m, b) -} -func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockHeader.Marshal(b, m, deterministic) -} -func (m *BlockHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeader.Merge(m, src) -} -func (m *BlockHeader) XXX_Size() int { - return xxx_messageInfo_BlockHeader.Size(m) +func (x *BlockHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockHeader) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeader.DiscardUnknown(m) + +func (*BlockHeader) ProtoMessage() {} + +func (x *BlockHeader) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_BlockHeader proto.InternalMessageInfo +// Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead. +func (*BlockHeader) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{2} +} -func (m *BlockHeader) GetBaseHeader() *BlockHeaderBase { - if m != nil { - return m.BaseHeader +func (x *BlockHeader) GetBaseHeader() *BlockHeaderBase { + if x != nil { + return x.BaseHeader } return nil } -func (m *BlockHeader) GetSkipchainHashes() [][]byte { - if m != nil { - return m.SkipchainHashes +func (x *BlockHeader) GetSkipchainHashes() [][]byte { + if x != nil { + return x.SkipchainHashes } return nil } -func (m *BlockHeader) GetTxMerkelTreeRootHash() []byte { - if m != nil { - return m.TxMerkelTreeRootHash +func (x *BlockHeader) GetTxMerkelTreeRootHash() []byte { + if x != nil { + return x.TxMerkelTreeRootHash } return nil } -func (m *BlockHeader) GetStateMerkelTreeRootHash() []byte { - if m != nil { - return m.StateMerkelTreeRootHash +func (x *BlockHeader) GetStateMerkelTreeRootHash() []byte { + if x != nil { + return x.StateMerkelTreeRootHash } return nil } -func (m *BlockHeader) GetValidationInfo() []*ValidationInfo { - if m != nil { - return m.ValidationInfo +func (x *BlockHeader) GetValidationInfo() []*ValidationInfo { + if x != nil { + return x.ValidationInfo } return nil } type DataTxEnvelopes struct { - Envelopes []*DataTxEnvelope `protobuf:"bytes,1,rep,name=envelopes,proto3" json:"envelopes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataTxEnvelopes) Reset() { *m = DataTxEnvelopes{} } -func (m *DataTxEnvelopes) String() string { return proto.CompactTextString(m) } -func (*DataTxEnvelopes) ProtoMessage() {} -func (*DataTxEnvelopes) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{3} + Envelopes []*DataTxEnvelope `protobuf:"bytes,1,rep,name=envelopes,proto3" json:"envelopes,omitempty"` } -func (m *DataTxEnvelopes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataTxEnvelopes.Unmarshal(m, b) -} -func (m *DataTxEnvelopes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataTxEnvelopes.Marshal(b, m, deterministic) -} -func (m *DataTxEnvelopes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataTxEnvelopes.Merge(m, src) +func (x *DataTxEnvelopes) Reset() { + *x = DataTxEnvelopes{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataTxEnvelopes) XXX_Size() int { - return xxx_messageInfo_DataTxEnvelopes.Size(m) + +func (x *DataTxEnvelopes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataTxEnvelopes) XXX_DiscardUnknown() { - xxx_messageInfo_DataTxEnvelopes.DiscardUnknown(m) + +func (*DataTxEnvelopes) ProtoMessage() {} + +func (x *DataTxEnvelopes) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataTxEnvelopes proto.InternalMessageInfo +// Deprecated: Use DataTxEnvelopes.ProtoReflect.Descriptor instead. +func (*DataTxEnvelopes) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{3} +} -func (m *DataTxEnvelopes) GetEnvelopes() []*DataTxEnvelope { - if m != nil { - return m.Envelopes +func (x *DataTxEnvelopes) GetEnvelopes() []*DataTxEnvelope { + if x != nil { + return x.Envelopes } return nil } type DataTxEnvelope struct { - Payload *DataTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signatures map[string][]byte `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty" protobuf_key:"bytes,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 *DataTxEnvelope) Reset() { *m = DataTxEnvelope{} } -func (m *DataTxEnvelope) String() string { return proto.CompactTextString(m) } -func (*DataTxEnvelope) ProtoMessage() {} -func (*DataTxEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{4} + Payload *DataTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signatures map[string][]byte `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *DataTxEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataTxEnvelope.Unmarshal(m, b) -} -func (m *DataTxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataTxEnvelope.Marshal(b, m, deterministic) -} -func (m *DataTxEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataTxEnvelope.Merge(m, src) +func (x *DataTxEnvelope) Reset() { + *x = DataTxEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataTxEnvelope) XXX_Size() int { - return xxx_messageInfo_DataTxEnvelope.Size(m) + +func (x *DataTxEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataTxEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_DataTxEnvelope.DiscardUnknown(m) + +func (*DataTxEnvelope) ProtoMessage() {} + +func (x *DataTxEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataTxEnvelope proto.InternalMessageInfo +// Deprecated: Use DataTxEnvelope.ProtoReflect.Descriptor instead. +func (*DataTxEnvelope) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{4} +} -func (m *DataTxEnvelope) GetPayload() *DataTx { - if m != nil { - return m.Payload +func (x *DataTxEnvelope) GetPayload() *DataTx { + if x != nil { + return x.Payload } return nil } -func (m *DataTxEnvelope) GetSignatures() map[string][]byte { - if m != nil { - return m.Signatures +func (x *DataTxEnvelope) GetSignatures() map[string][]byte { + if x != nil { + return x.Signatures } return nil } type ConfigTxEnvelope struct { - Payload *ConfigTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ConfigTxEnvelope) Reset() { *m = ConfigTxEnvelope{} } -func (m *ConfigTxEnvelope) String() string { return proto.CompactTextString(m) } -func (*ConfigTxEnvelope) ProtoMessage() {} -func (*ConfigTxEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{5} + Payload *ConfigTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *ConfigTxEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigTxEnvelope.Unmarshal(m, b) -} -func (m *ConfigTxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigTxEnvelope.Marshal(b, m, deterministic) -} -func (m *ConfigTxEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigTxEnvelope.Merge(m, src) +func (x *ConfigTxEnvelope) Reset() { + *x = ConfigTxEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigTxEnvelope) XXX_Size() int { - return xxx_messageInfo_ConfigTxEnvelope.Size(m) + +func (x *ConfigTxEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigTxEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigTxEnvelope.DiscardUnknown(m) + +func (*ConfigTxEnvelope) ProtoMessage() {} + +func (x *ConfigTxEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_ConfigTxEnvelope proto.InternalMessageInfo +// Deprecated: Use ConfigTxEnvelope.ProtoReflect.Descriptor instead. +func (*ConfigTxEnvelope) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{5} +} -func (m *ConfigTxEnvelope) GetPayload() *ConfigTx { - if m != nil { - return m.Payload +func (x *ConfigTxEnvelope) GetPayload() *ConfigTx { + if x != nil { + return x.Payload } return nil } -func (m *ConfigTxEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *ConfigTxEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type DBAdministrationTxEnvelope struct { - Payload *DBAdministrationTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DBAdministrationTxEnvelope) Reset() { *m = DBAdministrationTxEnvelope{} } -func (m *DBAdministrationTxEnvelope) String() string { return proto.CompactTextString(m) } -func (*DBAdministrationTxEnvelope) ProtoMessage() {} -func (*DBAdministrationTxEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{6} + Payload *DBAdministrationTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *DBAdministrationTxEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DBAdministrationTxEnvelope.Unmarshal(m, b) -} -func (m *DBAdministrationTxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DBAdministrationTxEnvelope.Marshal(b, m, deterministic) -} -func (m *DBAdministrationTxEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_DBAdministrationTxEnvelope.Merge(m, src) +func (x *DBAdministrationTxEnvelope) Reset() { + *x = DBAdministrationTxEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DBAdministrationTxEnvelope) XXX_Size() int { - return xxx_messageInfo_DBAdministrationTxEnvelope.Size(m) + +func (x *DBAdministrationTxEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DBAdministrationTxEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_DBAdministrationTxEnvelope.DiscardUnknown(m) + +func (*DBAdministrationTxEnvelope) ProtoMessage() {} + +func (x *DBAdministrationTxEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DBAdministrationTxEnvelope proto.InternalMessageInfo +// Deprecated: Use DBAdministrationTxEnvelope.ProtoReflect.Descriptor instead. +func (*DBAdministrationTxEnvelope) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{6} +} -func (m *DBAdministrationTxEnvelope) GetPayload() *DBAdministrationTx { - if m != nil { - return m.Payload +func (x *DBAdministrationTxEnvelope) GetPayload() *DBAdministrationTx { + if x != nil { + return x.Payload } return nil } -func (m *DBAdministrationTxEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *DBAdministrationTxEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type UserAdministrationTxEnvelope struct { - Payload *UserAdministrationTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserAdministrationTxEnvelope) Reset() { *m = UserAdministrationTxEnvelope{} } -func (m *UserAdministrationTxEnvelope) String() string { return proto.CompactTextString(m) } -func (*UserAdministrationTxEnvelope) ProtoMessage() {} -func (*UserAdministrationTxEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{7} + Payload *UserAdministrationTx `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *UserAdministrationTxEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAdministrationTxEnvelope.Unmarshal(m, b) -} -func (m *UserAdministrationTxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAdministrationTxEnvelope.Marshal(b, m, deterministic) -} -func (m *UserAdministrationTxEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAdministrationTxEnvelope.Merge(m, src) +func (x *UserAdministrationTxEnvelope) Reset() { + *x = UserAdministrationTxEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserAdministrationTxEnvelope) XXX_Size() int { - return xxx_messageInfo_UserAdministrationTxEnvelope.Size(m) + +func (x *UserAdministrationTxEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserAdministrationTxEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_UserAdministrationTxEnvelope.DiscardUnknown(m) + +func (*UserAdministrationTxEnvelope) ProtoMessage() {} + +func (x *UserAdministrationTxEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_UserAdministrationTxEnvelope proto.InternalMessageInfo +// Deprecated: Use UserAdministrationTxEnvelope.ProtoReflect.Descriptor instead. +func (*UserAdministrationTxEnvelope) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{7} +} -func (m *UserAdministrationTxEnvelope) GetPayload() *UserAdministrationTx { - if m != nil { - return m.Payload +func (x *UserAdministrationTxEnvelope) GetPayload() *UserAdministrationTx { + if x != nil { + return x.Payload } return nil } -func (m *UserAdministrationTxEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *UserAdministrationTxEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type DataTx struct { - MustSignUserIds []string `protobuf:"bytes,1,rep,name=must_sign_user_ids,json=mustSignUserIds,proto3" json:"must_sign_user_ids,omitempty"` - TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - DbOperations []*DBOperation `protobuf:"bytes,3,rep,name=db_operations,json=dbOperations,proto3" json:"db_operations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataTx) Reset() { *m = DataTx{} } -func (m *DataTx) String() string { return proto.CompactTextString(m) } -func (*DataTx) ProtoMessage() {} -func (*DataTx) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{8} + MustSignUserIds []string `protobuf:"bytes,1,rep,name=must_sign_user_ids,json=mustSignUserIds,proto3" json:"must_sign_user_ids,omitempty"` + TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + DbOperations []*DBOperation `protobuf:"bytes,3,rep,name=db_operations,json=dbOperations,proto3" json:"db_operations,omitempty"` } -func (m *DataTx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataTx.Unmarshal(m, b) -} -func (m *DataTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataTx.Marshal(b, m, deterministic) -} -func (m *DataTx) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataTx.Merge(m, src) +func (x *DataTx) Reset() { + *x = DataTx{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataTx) XXX_Size() int { - return xxx_messageInfo_DataTx.Size(m) + +func (x *DataTx) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataTx) XXX_DiscardUnknown() { - xxx_messageInfo_DataTx.DiscardUnknown(m) + +func (*DataTx) ProtoMessage() {} + +func (x *DataTx) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataTx proto.InternalMessageInfo +// Deprecated: Use DataTx.ProtoReflect.Descriptor instead. +func (*DataTx) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{8} +} -func (m *DataTx) GetMustSignUserIds() []string { - if m != nil { - return m.MustSignUserIds +func (x *DataTx) GetMustSignUserIds() []string { + if x != nil { + return x.MustSignUserIds } return nil } -func (m *DataTx) GetTxId() string { - if m != nil { - return m.TxId +func (x *DataTx) GetTxId() string { + if x != nil { + return x.TxId } return "" } -func (m *DataTx) GetDbOperations() []*DBOperation { - if m != nil { - return m.DbOperations +func (x *DataTx) GetDbOperations() []*DBOperation { + if x != nil { + return x.DbOperations } return nil } type DBOperation struct { - DbName string `protobuf:"bytes,3,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - DataReads []*DataRead `protobuf:"bytes,4,rep,name=data_reads,json=dataReads,proto3" json:"data_reads,omitempty"` - DataWrites []*DataWrite `protobuf:"bytes,5,rep,name=data_writes,json=dataWrites,proto3" json:"data_writes,omitempty"` - DataDeletes []*DataDelete `protobuf:"bytes,6,rep,name=data_deletes,json=dataDeletes,proto3" json:"data_deletes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DBOperation) Reset() { *m = DBOperation{} } -func (m *DBOperation) String() string { return proto.CompactTextString(m) } -func (*DBOperation) ProtoMessage() {} -func (*DBOperation) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{9} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DBOperation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DBOperation.Unmarshal(m, b) + DbName string `protobuf:"bytes,3,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + DataReads []*DataRead `protobuf:"bytes,4,rep,name=data_reads,json=dataReads,proto3" json:"data_reads,omitempty"` + DataWrites []*DataWrite `protobuf:"bytes,5,rep,name=data_writes,json=dataWrites,proto3" json:"data_writes,omitempty"` + DataDeletes []*DataDelete `protobuf:"bytes,6,rep,name=data_deletes,json=dataDeletes,proto3" json:"data_deletes,omitempty"` } -func (m *DBOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DBOperation.Marshal(b, m, deterministic) -} -func (m *DBOperation) XXX_Merge(src proto.Message) { - xxx_messageInfo_DBOperation.Merge(m, src) + +func (x *DBOperation) Reset() { + *x = DBOperation{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DBOperation) XXX_Size() int { - return xxx_messageInfo_DBOperation.Size(m) + +func (x *DBOperation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DBOperation) XXX_DiscardUnknown() { - xxx_messageInfo_DBOperation.DiscardUnknown(m) + +func (*DBOperation) ProtoMessage() {} + +func (x *DBOperation) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DBOperation proto.InternalMessageInfo +// Deprecated: Use DBOperation.ProtoReflect.Descriptor instead. +func (*DBOperation) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{9} +} -func (m *DBOperation) GetDbName() string { - if m != nil { - return m.DbName +func (x *DBOperation) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *DBOperation) GetDataReads() []*DataRead { - if m != nil { - return m.DataReads +func (x *DBOperation) GetDataReads() []*DataRead { + if x != nil { + return x.DataReads } return nil } -func (m *DBOperation) GetDataWrites() []*DataWrite { - if m != nil { - return m.DataWrites +func (x *DBOperation) GetDataWrites() []*DataWrite { + if x != nil { + return x.DataWrites } return nil } -func (m *DBOperation) GetDataDeletes() []*DataDelete { - if m != nil { - return m.DataDeletes +func (x *DBOperation) GetDataDeletes() []*DataDelete { + if x != nil { + return x.DataDeletes } return nil } // DataRead hold a read key and its version type DataRead struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataRead) Reset() { *m = DataRead{} } -func (m *DataRead) String() string { return proto.CompactTextString(m) } -func (*DataRead) ProtoMessage() {} -func (*DataRead) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{10} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` } -func (m *DataRead) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataRead.Unmarshal(m, b) -} -func (m *DataRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataRead.Marshal(b, m, deterministic) -} -func (m *DataRead) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataRead.Merge(m, src) +func (x *DataRead) Reset() { + *x = DataRead{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataRead) XXX_Size() int { - return xxx_messageInfo_DataRead.Size(m) + +func (x *DataRead) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataRead) XXX_DiscardUnknown() { - xxx_messageInfo_DataRead.DiscardUnknown(m) + +func (*DataRead) ProtoMessage() {} + +func (x *DataRead) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataRead proto.InternalMessageInfo +// Deprecated: Use DataRead.ProtoReflect.Descriptor instead. +func (*DataRead) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{10} +} -func (m *DataRead) GetKey() string { - if m != nil { - return m.Key +func (x *DataRead) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *DataRead) GetVersion() *Version { - if m != nil { - return m.Version +func (x *DataRead) GetVersion() *Version { + if x != nil { + return x.Version } return nil } // DataWrite hold a write including a delete type DataWrite struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Acl *AccessControl `protobuf:"bytes,3,opt,name=acl,proto3" json:"acl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataWrite) Reset() { *m = DataWrite{} } -func (m *DataWrite) String() string { return proto.CompactTextString(m) } -func (*DataWrite) ProtoMessage() {} -func (*DataWrite) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{11} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Acl *AccessControl `protobuf:"bytes,3,opt,name=acl,proto3" json:"acl,omitempty"` } -func (m *DataWrite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataWrite.Unmarshal(m, b) -} -func (m *DataWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataWrite.Marshal(b, m, deterministic) -} -func (m *DataWrite) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataWrite.Merge(m, src) +func (x *DataWrite) Reset() { + *x = DataWrite{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataWrite) XXX_Size() int { - return xxx_messageInfo_DataWrite.Size(m) + +func (x *DataWrite) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataWrite) XXX_DiscardUnknown() { - xxx_messageInfo_DataWrite.DiscardUnknown(m) + +func (*DataWrite) ProtoMessage() {} + +func (x *DataWrite) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataWrite proto.InternalMessageInfo +// Deprecated: Use DataWrite.ProtoReflect.Descriptor instead. +func (*DataWrite) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{11} +} -func (m *DataWrite) GetKey() string { - if m != nil { - return m.Key +func (x *DataWrite) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *DataWrite) GetValue() []byte { - if m != nil { - return m.Value +func (x *DataWrite) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *DataWrite) GetAcl() *AccessControl { - if m != nil { - return m.Acl +func (x *DataWrite) GetAcl() *AccessControl { + if x != nil { + return x.Acl } return nil } type DataDelete struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataDelete) Reset() { *m = DataDelete{} } -func (m *DataDelete) String() string { return proto.CompactTextString(m) } -func (*DataDelete) ProtoMessage() {} -func (*DataDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{12} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` } -func (m *DataDelete) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataDelete.Unmarshal(m, b) -} -func (m *DataDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataDelete.Marshal(b, m, deterministic) -} -func (m *DataDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataDelete.Merge(m, src) +func (x *DataDelete) Reset() { + *x = DataDelete{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataDelete) XXX_Size() int { - return xxx_messageInfo_DataDelete.Size(m) + +func (x *DataDelete) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataDelete) XXX_DiscardUnknown() { - xxx_messageInfo_DataDelete.DiscardUnknown(m) + +func (*DataDelete) ProtoMessage() {} + +func (x *DataDelete) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DataDelete proto.InternalMessageInfo +// Deprecated: Use DataDelete.ProtoReflect.Descriptor instead. +func (*DataDelete) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{12} +} -func (m *DataDelete) GetKey() string { - if m != nil { - return m.Key +func (x *DataDelete) GetKey() string { + if x != nil { + return x.Key } return "" } type ConfigTx struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` ReadOldConfigVersion *Version `protobuf:"bytes,3,opt,name=read_old_config_version,json=readOldConfigVersion,proto3" json:"read_old_config_version,omitempty"` NewConfig *ClusterConfig `protobuf:"bytes,4,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ConfigTx) Reset() { *m = ConfigTx{} } -func (m *ConfigTx) String() string { return proto.CompactTextString(m) } -func (*ConfigTx) ProtoMessage() {} -func (*ConfigTx) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{13} +func (x *ConfigTx) Reset() { + *x = ConfigTx{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConfigTx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConfigTx.Unmarshal(m, b) -} -func (m *ConfigTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConfigTx.Marshal(b, m, deterministic) +func (x *ConfigTx) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConfigTx) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigTx.Merge(m, src) -} -func (m *ConfigTx) XXX_Size() int { - return xxx_messageInfo_ConfigTx.Size(m) -} -func (m *ConfigTx) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigTx.DiscardUnknown(m) + +func (*ConfigTx) ProtoMessage() {} + +func (x *ConfigTx) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_ConfigTx proto.InternalMessageInfo +// Deprecated: Use ConfigTx.ProtoReflect.Descriptor instead. +func (*ConfigTx) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{13} +} -func (m *ConfigTx) GetUserId() string { - if m != nil { - return m.UserId +func (x *ConfigTx) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *ConfigTx) GetTxId() string { - if m != nil { - return m.TxId +func (x *ConfigTx) GetTxId() string { + if x != nil { + return x.TxId } return "" } -func (m *ConfigTx) GetReadOldConfigVersion() *Version { - if m != nil { - return m.ReadOldConfigVersion +func (x *ConfigTx) GetReadOldConfigVersion() *Version { + if x != nil { + return x.ReadOldConfigVersion } return nil } -func (m *ConfigTx) GetNewConfig() *ClusterConfig { - if m != nil { - return m.NewConfig +func (x *ConfigTx) GetNewConfig() *ClusterConfig { + if x != nil { + return x.NewConfig } return nil } type DBAdministrationTx struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - CreateDbs []string `protobuf:"bytes,3,rep,name=create_dbs,json=createDbs,proto3" json:"create_dbs,omitempty"` - DeleteDbs []string `protobuf:"bytes,4,rep,name=delete_dbs,json=deleteDbs,proto3" json:"delete_dbs,omitempty"` - DbsIndex map[string]*DBIndex `protobuf:"bytes,5,rep,name=dbs_index,json=dbsIndex,proto3" json:"dbs_index,omitempty" protobuf_key:"bytes,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:"-"` -} - -func (m *DBAdministrationTx) Reset() { *m = DBAdministrationTx{} } -func (m *DBAdministrationTx) String() string { return proto.CompactTextString(m) } -func (*DBAdministrationTx) ProtoMessage() {} -func (*DBAdministrationTx) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{14} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DBAdministrationTx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DBAdministrationTx.Unmarshal(m, b) -} -func (m *DBAdministrationTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DBAdministrationTx.Marshal(b, m, deterministic) + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + CreateDbs []string `protobuf:"bytes,3,rep,name=create_dbs,json=createDbs,proto3" json:"create_dbs,omitempty"` + DeleteDbs []string `protobuf:"bytes,4,rep,name=delete_dbs,json=deleteDbs,proto3" json:"delete_dbs,omitempty"` + DbsIndex map[string]*DBIndex `protobuf:"bytes,5,rep,name=dbs_index,json=dbsIndex,proto3" json:"dbs_index,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *DBAdministrationTx) XXX_Merge(src proto.Message) { - xxx_messageInfo_DBAdministrationTx.Merge(m, src) + +func (x *DBAdministrationTx) Reset() { + *x = DBAdministrationTx{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DBAdministrationTx) XXX_Size() int { - return xxx_messageInfo_DBAdministrationTx.Size(m) + +func (x *DBAdministrationTx) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DBAdministrationTx) XXX_DiscardUnknown() { - xxx_messageInfo_DBAdministrationTx.DiscardUnknown(m) + +func (*DBAdministrationTx) ProtoMessage() {} + +func (x *DBAdministrationTx) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DBAdministrationTx proto.InternalMessageInfo +// Deprecated: Use DBAdministrationTx.ProtoReflect.Descriptor instead. +func (*DBAdministrationTx) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{14} +} -func (m *DBAdministrationTx) GetUserId() string { - if m != nil { - return m.UserId +func (x *DBAdministrationTx) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *DBAdministrationTx) GetTxId() string { - if m != nil { - return m.TxId +func (x *DBAdministrationTx) GetTxId() string { + if x != nil { + return x.TxId } return "" } -func (m *DBAdministrationTx) GetCreateDbs() []string { - if m != nil { - return m.CreateDbs +func (x *DBAdministrationTx) GetCreateDbs() []string { + if x != nil { + return x.CreateDbs } return nil } -func (m *DBAdministrationTx) GetDeleteDbs() []string { - if m != nil { - return m.DeleteDbs +func (x *DBAdministrationTx) GetDeleteDbs() []string { + if x != nil { + return x.DeleteDbs } return nil } -func (m *DBAdministrationTx) GetDbsIndex() map[string]*DBIndex { - if m != nil { - return m.DbsIndex +func (x *DBAdministrationTx) GetDbsIndex() map[string]*DBIndex { + if x != nil { + return x.DbsIndex } return nil } type DBIndex struct { - AttributeAndType map[string]IndexAttributeType `protobuf:"bytes,1,rep,name=attribute_and_type,json=attributeAndType,proto3" json:"attribute_and_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=types.IndexAttributeType"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DBIndex) Reset() { *m = DBIndex{} } -func (m *DBIndex) String() string { return proto.CompactTextString(m) } -func (*DBIndex) ProtoMessage() {} -func (*DBIndex) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{15} + AttributeAndType map[string]IndexAttributeType `protobuf:"bytes,1,rep,name=attribute_and_type,json=attributeAndType,proto3" json:"attribute_and_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=types.IndexAttributeType"` } -func (m *DBIndex) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DBIndex.Unmarshal(m, b) -} -func (m *DBIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DBIndex.Marshal(b, m, deterministic) -} -func (m *DBIndex) XXX_Merge(src proto.Message) { - xxx_messageInfo_DBIndex.Merge(m, src) +func (x *DBIndex) Reset() { + *x = DBIndex{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DBIndex) XXX_Size() int { - return xxx_messageInfo_DBIndex.Size(m) + +func (x *DBIndex) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DBIndex) XXX_DiscardUnknown() { - xxx_messageInfo_DBIndex.DiscardUnknown(m) + +func (*DBIndex) ProtoMessage() {} + +func (x *DBIndex) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_DBIndex proto.InternalMessageInfo +// Deprecated: Use DBIndex.ProtoReflect.Descriptor instead. +func (*DBIndex) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{15} +} -func (m *DBIndex) GetAttributeAndType() map[string]IndexAttributeType { - if m != nil { - return m.AttributeAndType +func (x *DBIndex) GetAttributeAndType() map[string]IndexAttributeType { + if x != nil { + return x.AttributeAndType } return nil } type UserAdministrationTx struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - UserReads []*UserRead `protobuf:"bytes,3,rep,name=user_reads,json=userReads,proto3" json:"user_reads,omitempty"` - UserWrites []*UserWrite `protobuf:"bytes,4,rep,name=user_writes,json=userWrites,proto3" json:"user_writes,omitempty"` - UserDeletes []*UserDelete `protobuf:"bytes,5,rep,name=user_deletes,json=userDeletes,proto3" json:"user_deletes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAdministrationTx) Reset() { *m = UserAdministrationTx{} } -func (m *UserAdministrationTx) String() string { return proto.CompactTextString(m) } -func (*UserAdministrationTx) ProtoMessage() {} -func (*UserAdministrationTx) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{16} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserAdministrationTx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAdministrationTx.Unmarshal(m, b) -} -func (m *UserAdministrationTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAdministrationTx.Marshal(b, m, deterministic) + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + UserReads []*UserRead `protobuf:"bytes,3,rep,name=user_reads,json=userReads,proto3" json:"user_reads,omitempty"` + UserWrites []*UserWrite `protobuf:"bytes,4,rep,name=user_writes,json=userWrites,proto3" json:"user_writes,omitempty"` + UserDeletes []*UserDelete `protobuf:"bytes,5,rep,name=user_deletes,json=userDeletes,proto3" json:"user_deletes,omitempty"` } -func (m *UserAdministrationTx) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAdministrationTx.Merge(m, src) + +func (x *UserAdministrationTx) Reset() { + *x = UserAdministrationTx{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserAdministrationTx) XXX_Size() int { - return xxx_messageInfo_UserAdministrationTx.Size(m) + +func (x *UserAdministrationTx) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserAdministrationTx) XXX_DiscardUnknown() { - xxx_messageInfo_UserAdministrationTx.DiscardUnknown(m) + +func (*UserAdministrationTx) ProtoMessage() {} + +func (x *UserAdministrationTx) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_UserAdministrationTx proto.InternalMessageInfo +// Deprecated: Use UserAdministrationTx.ProtoReflect.Descriptor instead. +func (*UserAdministrationTx) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{16} +} -func (m *UserAdministrationTx) GetUserId() string { - if m != nil { - return m.UserId +func (x *UserAdministrationTx) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *UserAdministrationTx) GetTxId() string { - if m != nil { - return m.TxId +func (x *UserAdministrationTx) GetTxId() string { + if x != nil { + return x.TxId } return "" } -func (m *UserAdministrationTx) GetUserReads() []*UserRead { - if m != nil { - return m.UserReads +func (x *UserAdministrationTx) GetUserReads() []*UserRead { + if x != nil { + return x.UserReads } return nil } -func (m *UserAdministrationTx) GetUserWrites() []*UserWrite { - if m != nil { - return m.UserWrites +func (x *UserAdministrationTx) GetUserWrites() []*UserWrite { + if x != nil { + return x.UserWrites } return nil } -func (m *UserAdministrationTx) GetUserDeletes() []*UserDelete { - if m != nil { - return m.UserDeletes +func (x *UserAdministrationTx) GetUserDeletes() []*UserDelete { + if x != nil { + return x.UserDeletes } return nil } type UserRead struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserRead) Reset() { *m = UserRead{} } -func (m *UserRead) String() string { return proto.CompactTextString(m) } -func (*UserRead) ProtoMessage() {} -func (*UserRead) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{17} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` } -func (m *UserRead) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRead.Unmarshal(m, b) -} -func (m *UserRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRead.Marshal(b, m, deterministic) -} -func (m *UserRead) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRead.Merge(m, src) +func (x *UserRead) Reset() { + *x = UserRead{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserRead) XXX_Size() int { - return xxx_messageInfo_UserRead.Size(m) + +func (x *UserRead) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserRead) XXX_DiscardUnknown() { - xxx_messageInfo_UserRead.DiscardUnknown(m) + +func (*UserRead) ProtoMessage() {} + +func (x *UserRead) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_UserRead proto.InternalMessageInfo +// Deprecated: Use UserRead.ProtoReflect.Descriptor instead. +func (*UserRead) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{17} +} -func (m *UserRead) GetUserId() string { - if m != nil { - return m.UserId +func (x *UserRead) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *UserRead) GetVersion() *Version { - if m != nil { - return m.Version +func (x *UserRead) GetVersion() *Version { + if x != nil { + return x.Version } return nil } type UserWrite struct { - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Acl *AccessControl `protobuf:"bytes,2,opt,name=acl,proto3" json:"acl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserWrite) Reset() { *m = UserWrite{} } -func (m *UserWrite) String() string { return proto.CompactTextString(m) } -func (*UserWrite) ProtoMessage() {} -func (*UserWrite) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{18} + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Acl *AccessControl `protobuf:"bytes,2,opt,name=acl,proto3" json:"acl,omitempty"` } -func (m *UserWrite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserWrite.Unmarshal(m, b) -} -func (m *UserWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserWrite.Marshal(b, m, deterministic) -} -func (m *UserWrite) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserWrite.Merge(m, src) +func (x *UserWrite) Reset() { + *x = UserWrite{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserWrite) XXX_Size() int { - return xxx_messageInfo_UserWrite.Size(m) + +func (x *UserWrite) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserWrite) XXX_DiscardUnknown() { - xxx_messageInfo_UserWrite.DiscardUnknown(m) + +func (*UserWrite) ProtoMessage() {} + +func (x *UserWrite) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_UserWrite proto.InternalMessageInfo +// Deprecated: Use UserWrite.ProtoReflect.Descriptor instead. +func (*UserWrite) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{18} +} -func (m *UserWrite) GetUser() *User { - if m != nil { - return m.User +func (x *UserWrite) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserWrite) GetAcl() *AccessControl { - if m != nil { - return m.Acl +func (x *UserWrite) GetAcl() *AccessControl { + if x != nil { + return x.Acl } return nil } type UserDelete struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserDelete) Reset() { *m = UserDelete{} } -func (m *UserDelete) String() string { return proto.CompactTextString(m) } -func (*UserDelete) ProtoMessage() {} -func (*UserDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{19} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` } -func (m *UserDelete) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserDelete.Unmarshal(m, b) -} -func (m *UserDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserDelete.Marshal(b, m, deterministic) -} -func (m *UserDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserDelete.Merge(m, src) +func (x *UserDelete) Reset() { + *x = UserDelete{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserDelete) XXX_Size() int { - return xxx_messageInfo_UserDelete.Size(m) + +func (x *UserDelete) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserDelete) XXX_DiscardUnknown() { - xxx_messageInfo_UserDelete.DiscardUnknown(m) + +func (*UserDelete) ProtoMessage() {} + +func (x *UserDelete) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_UserDelete proto.InternalMessageInfo +// Deprecated: Use UserDelete.ProtoReflect.Descriptor instead. +func (*UserDelete) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{19} +} -func (m *UserDelete) GetUserId() string { - if m != nil { - return m.UserId +func (x *UserDelete) GetUserId() string { + if x != nil { + return x.UserId } return "" } type Metadata struct { - Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - AccessControl *AccessControl `protobuf:"bytes,2,opt,name=access_control,json=accessControl,proto3" json:"access_control,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{20} + Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + AccessControl *AccessControl `protobuf:"bytes,2,opt,name=access_control,json=accessControl,proto3" json:"access_control,omitempty"` } -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metadata.Unmarshal(m, b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Metadata) XXX_Size() int { - return xxx_messageInfo_Metadata.Size(m) + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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) } -var xxx_messageInfo_Metadata proto.InternalMessageInfo +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{20} +} -func (m *Metadata) GetVersion() *Version { - if m != nil { - return m.Version +func (x *Metadata) GetVersion() *Version { + if x != nil { + return x.Version } return nil } -func (m *Metadata) GetAccessControl() *AccessControl { - if m != nil { - return m.AccessControl +func (x *Metadata) GetAccessControl() *AccessControl { + if x != nil { + return x.AccessControl } return nil } type Version struct { - BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` - TxNum uint64 `protobuf:"varint,2,opt,name=tx_num,json=txNum,proto3" json:"tx_num,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{21} + BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` + TxNum uint64 `protobuf:"varint,2,opt,name=tx_num,json=txNum,proto3" json:"tx_num,omitempty"` } -func (m *Version) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Version.Unmarshal(m, b) -} -func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Version.Marshal(b, m, deterministic) -} -func (m *Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Version.Merge(m, src) +func (x *Version) Reset() { + *x = Version{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Version) XXX_Size() int { - return xxx_messageInfo_Version.Size(m) + +func (x *Version) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Version) XXX_DiscardUnknown() { - xxx_messageInfo_Version.DiscardUnknown(m) + +func (*Version) ProtoMessage() {} + +func (x *Version) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_Version proto.InternalMessageInfo +// Deprecated: Use Version.ProtoReflect.Descriptor instead. +func (*Version) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{21} +} -func (m *Version) GetBlockNum() uint64 { - if m != nil { - return m.BlockNum +func (x *Version) GetBlockNum() uint64 { + if x != nil { + return x.BlockNum } return 0 } -func (m *Version) GetTxNum() uint64 { - if m != nil { - return m.TxNum +func (x *Version) GetTxNum() uint64 { + if x != nil { + return x.TxNum } return 0 } type AccessControl struct { - ReadUsers map[string]bool `protobuf:"bytes,1,rep,name=read_users,json=readUsers,proto3" json:"read_users,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - ReadWriteUsers map[string]bool `protobuf:"bytes,2,rep,name=read_write_users,json=readWriteUsers,proto3" json:"read_write_users,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - SignPolicyForWrite AccessControlWritePolicy `protobuf:"varint,3,opt,name=sign_policy_for_write,json=signPolicyForWrite,proto3,enum=types.AccessControlWritePolicy" json:"sign_policy_for_write,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AccessControl) Reset() { *m = AccessControl{} } -func (m *AccessControl) String() string { return proto.CompactTextString(m) } -func (*AccessControl) ProtoMessage() {} -func (*AccessControl) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{22} + ReadUsers map[string]bool `protobuf:"bytes,1,rep,name=read_users,json=readUsers,proto3" json:"read_users,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + ReadWriteUsers map[string]bool `protobuf:"bytes,2,rep,name=read_write_users,json=readWriteUsers,proto3" json:"read_write_users,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + SignPolicyForWrite AccessControlWritePolicy `protobuf:"varint,3,opt,name=sign_policy_for_write,json=signPolicyForWrite,proto3,enum=types.AccessControlWritePolicy" json:"sign_policy_for_write,omitempty"` } -func (m *AccessControl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AccessControl.Unmarshal(m, b) -} -func (m *AccessControl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AccessControl.Marshal(b, m, deterministic) -} -func (m *AccessControl) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccessControl.Merge(m, src) +func (x *AccessControl) Reset() { + *x = AccessControl{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccessControl) XXX_Size() int { - return xxx_messageInfo_AccessControl.Size(m) + +func (x *AccessControl) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccessControl) XXX_DiscardUnknown() { - xxx_messageInfo_AccessControl.DiscardUnknown(m) + +func (*AccessControl) ProtoMessage() {} + +func (x *AccessControl) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_AccessControl proto.InternalMessageInfo +// Deprecated: Use AccessControl.ProtoReflect.Descriptor instead. +func (*AccessControl) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{22} +} -func (m *AccessControl) GetReadUsers() map[string]bool { - if m != nil { - return m.ReadUsers +func (x *AccessControl) GetReadUsers() map[string]bool { + if x != nil { + return x.ReadUsers } return nil } -func (m *AccessControl) GetReadWriteUsers() map[string]bool { - if m != nil { - return m.ReadWriteUsers +func (x *AccessControl) GetReadWriteUsers() map[string]bool { + if x != nil { + return x.ReadWriteUsers } return nil } -func (m *AccessControl) GetSignPolicyForWrite() AccessControlWritePolicy { - if m != nil { - return m.SignPolicyForWrite +func (x *AccessControl) GetSignPolicyForWrite() AccessControlWritePolicy { + if x != nil { + return x.SignPolicyForWrite } return AccessControl_ANY } type KVWithMetadata struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *KVWithMetadata) Reset() { *m = KVWithMetadata{} } -func (m *KVWithMetadata) String() string { return proto.CompactTextString(m) } -func (*KVWithMetadata) ProtoMessage() {} -func (*KVWithMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{23} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *KVWithMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KVWithMetadata.Unmarshal(m, b) -} -func (m *KVWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KVWithMetadata.Marshal(b, m, deterministic) -} -func (m *KVWithMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVWithMetadata.Merge(m, src) +func (x *KVWithMetadata) Reset() { + *x = KVWithMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *KVWithMetadata) XXX_Size() int { - return xxx_messageInfo_KVWithMetadata.Size(m) + +func (x *KVWithMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KVWithMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_KVWithMetadata.DiscardUnknown(m) + +func (*KVWithMetadata) ProtoMessage() {} + +func (x *KVWithMetadata) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_KVWithMetadata proto.InternalMessageInfo +// Deprecated: Use KVWithMetadata.ProtoReflect.Descriptor instead. +func (*KVWithMetadata) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{23} +} -func (m *KVWithMetadata) GetKey() string { - if m != nil { - return m.Key +func (x *KVWithMetadata) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *KVWithMetadata) GetValue() []byte { - if m != nil { - return m.Value +func (x *KVWithMetadata) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *KVWithMetadata) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *KVWithMetadata) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type ValueWithMetadata struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValueWithMetadata) Reset() { *m = ValueWithMetadata{} } -func (m *ValueWithMetadata) String() string { return proto.CompactTextString(m) } -func (*ValueWithMetadata) ProtoMessage() {} -func (*ValueWithMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{24} + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *ValueWithMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValueWithMetadata.Unmarshal(m, b) -} -func (m *ValueWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValueWithMetadata.Marshal(b, m, deterministic) -} -func (m *ValueWithMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueWithMetadata.Merge(m, src) +func (x *ValueWithMetadata) Reset() { + *x = ValueWithMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValueWithMetadata) XXX_Size() int { - return xxx_messageInfo_ValueWithMetadata.Size(m) + +func (x *ValueWithMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValueWithMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ValueWithMetadata.DiscardUnknown(m) + +func (*ValueWithMetadata) ProtoMessage() {} + +func (x *ValueWithMetadata) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_ValueWithMetadata proto.InternalMessageInfo +// Deprecated: Use ValueWithMetadata.ProtoReflect.Descriptor instead. +func (*ValueWithMetadata) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{24} +} -func (m *ValueWithMetadata) GetValue() []byte { - if m != nil { - return m.Value +func (x *ValueWithMetadata) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *ValueWithMetadata) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *ValueWithMetadata) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type Digest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Ledger merkle tree root RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` // Ledger height - Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } -func (m *Digest) Reset() { *m = Digest{} } -func (m *Digest) String() string { return proto.CompactTextString(m) } -func (*Digest) ProtoMessage() {} -func (*Digest) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{25} +func (x *Digest) Reset() { + *x = Digest{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Digest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Digest.Unmarshal(m, b) -} -func (m *Digest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Digest.Marshal(b, m, deterministic) +func (x *Digest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Digest) XXX_Merge(src proto.Message) { - xxx_messageInfo_Digest.Merge(m, src) -} -func (m *Digest) XXX_Size() int { - return xxx_messageInfo_Digest.Size(m) -} -func (m *Digest) XXX_DiscardUnknown() { - xxx_messageInfo_Digest.DiscardUnknown(m) + +func (*Digest) ProtoMessage() {} + +func (x *Digest) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_Digest proto.InternalMessageInfo +// Deprecated: Use Digest.ProtoReflect.Descriptor instead. +func (*Digest) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{25} +} -func (m *Digest) GetRootHash() []byte { - if m != nil { - return m.RootHash +func (x *Digest) GetRootHash() []byte { + if x != nil { + return x.RootHash } return nil } -func (m *Digest) GetHeight() uint64 { - if m != nil { - return m.Height +func (x *Digest) GetHeight() uint64 { + if x != nil { + return x.Height } return 0 } type ValidationInfo struct { - Flag Flag `protobuf:"varint,1,opt,name=flag,proto3,enum=types.Flag" json:"flag,omitempty"` - ReasonIfInvalid string `protobuf:"bytes,2,opt,name=reason_if_invalid,json=reasonIfInvalid,proto3" json:"reason_if_invalid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidationInfo) Reset() { *m = ValidationInfo{} } -func (m *ValidationInfo) String() string { return proto.CompactTextString(m) } -func (*ValidationInfo) ProtoMessage() {} -func (*ValidationInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{26} + Flag Flag `protobuf:"varint,1,opt,name=flag,proto3,enum=types.Flag" json:"flag,omitempty"` + ReasonIfInvalid string `protobuf:"bytes,2,opt,name=reason_if_invalid,json=reasonIfInvalid,proto3" json:"reason_if_invalid,omitempty"` } -func (m *ValidationInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidationInfo.Unmarshal(m, b) -} -func (m *ValidationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidationInfo.Marshal(b, m, deterministic) -} -func (m *ValidationInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidationInfo.Merge(m, src) +func (x *ValidationInfo) Reset() { + *x = ValidationInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValidationInfo) XXX_Size() int { - return xxx_messageInfo_ValidationInfo.Size(m) + +func (x *ValidationInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidationInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ValidationInfo.DiscardUnknown(m) + +func (*ValidationInfo) ProtoMessage() {} + +func (x *ValidationInfo) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_ValidationInfo proto.InternalMessageInfo +// Deprecated: Use ValidationInfo.ProtoReflect.Descriptor instead. +func (*ValidationInfo) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{26} +} -func (m *ValidationInfo) GetFlag() Flag { - if m != nil { - return m.Flag +func (x *ValidationInfo) GetFlag() Flag { + if x != nil { + return x.Flag } return Flag_VALID } -func (m *ValidationInfo) GetReasonIfInvalid() string { - if m != nil { - return m.ReasonIfInvalid +func (x *ValidationInfo) GetReasonIfInvalid() string { + if x != nil { + return x.ReasonIfInvalid } return "" } type TxProof struct { - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Path [][]byte `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxProof) Reset() { *m = TxProof{} } -func (m *TxProof) String() string { return proto.CompactTextString(m) } -func (*TxProof) ProtoMessage() {} -func (*TxProof) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{27} + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Path [][]byte `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` } -func (m *TxProof) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxProof.Unmarshal(m, b) -} -func (m *TxProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxProof.Marshal(b, m, deterministic) -} -func (m *TxProof) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxProof.Merge(m, src) +func (x *TxProof) Reset() { + *x = TxProof{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxProof) XXX_Size() int { - return xxx_messageInfo_TxProof.Size(m) + +func (x *TxProof) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxProof) XXX_DiscardUnknown() { - xxx_messageInfo_TxProof.DiscardUnknown(m) + +func (*TxProof) ProtoMessage() {} + +func (x *TxProof) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_TxProof proto.InternalMessageInfo +// Deprecated: Use TxProof.ProtoReflect.Descriptor instead. +func (*TxProof) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{27} +} -func (m *TxProof) GetHeader() *BlockHeader { - if m != nil { - return m.Header +func (x *TxProof) GetHeader() *BlockHeader { + if x != nil { + return x.Header } return nil } -func (m *TxProof) GetPath() [][]byte { - if m != nil { - return m.Path +func (x *TxProof) GetPath() [][]byte { + if x != nil { + return x.Path } return nil } type BlockProof struct { - BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - Path []*BlockHeader `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BlockProof) Reset() { *m = BlockProof{} } -func (m *BlockProof) String() string { return proto.CompactTextString(m) } -func (*BlockProof) ProtoMessage() {} -func (*BlockProof) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{28} + BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + Path []*BlockHeader `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` } -func (m *BlockProof) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockProof.Unmarshal(m, b) -} -func (m *BlockProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockProof.Marshal(b, m, deterministic) -} -func (m *BlockProof) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockProof.Merge(m, src) +func (x *BlockProof) Reset() { + *x = BlockProof{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockProof) XXX_Size() int { - return xxx_messageInfo_BlockProof.Size(m) + +func (x *BlockProof) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockProof) XXX_DiscardUnknown() { - xxx_messageInfo_BlockProof.DiscardUnknown(m) + +func (*BlockProof) ProtoMessage() {} + +func (x *BlockProof) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_BlockProof proto.InternalMessageInfo +// Deprecated: Use BlockProof.ProtoReflect.Descriptor instead. +func (*BlockProof) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{28} +} -func (m *BlockProof) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *BlockProof) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } -func (m *BlockProof) GetPath() []*BlockHeader { - if m != nil { - return m.Path +func (x *BlockProof) GetPath() []*BlockHeader { + if x != nil { + return x.Path } return nil } type TxReceipt struct { - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxReceipt) Reset() { *m = TxReceipt{} } -func (m *TxReceipt) String() string { return proto.CompactTextString(m) } -func (*TxReceipt) ProtoMessage() {} -func (*TxReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{29} + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` } -func (m *TxReceipt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxReceipt.Unmarshal(m, b) -} -func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxReceipt.Marshal(b, m, deterministic) -} -func (m *TxReceipt) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxReceipt.Merge(m, src) +func (x *TxReceipt) Reset() { + *x = TxReceipt{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxReceipt) XXX_Size() int { - return xxx_messageInfo_TxReceipt.Size(m) + +func (x *TxReceipt) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxReceipt) XXX_DiscardUnknown() { - xxx_messageInfo_TxReceipt.DiscardUnknown(m) + +func (*TxReceipt) ProtoMessage() {} + +func (x *TxReceipt) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_TxReceipt proto.InternalMessageInfo +// Deprecated: Use TxReceipt.ProtoReflect.Descriptor instead. +func (*TxReceipt) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{29} +} -func (m *TxReceipt) GetHeader() *BlockHeader { - if m != nil { - return m.Header +func (x *TxReceipt) GetHeader() *BlockHeader { + if x != nil { + return x.Header } return nil } -func (m *TxReceipt) GetTxIndex() uint64 { - if m != nil { - return m.TxIndex +func (x *TxReceipt) GetTxIndex() uint64 { + if x != nil { + return x.TxIndex } return 0 } @@ -1745,266 +2042,961 @@ func (m *TxReceipt) GetTxIndex() uint64 { // ConsensusMetadata holds data specific to the consensus protocol ordering the block. // The field prefix indicated the protocil used, e.g. "raft_*". type ConsensusMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The Raft term associated with the block RaftTerm uint64 `protobuf:"varint,1,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"` // The Raft index associated with the block - RaftIndex uint64 `protobuf:"varint,2,opt,name=raft_index,json=raftIndex,proto3" json:"raft_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RaftIndex uint64 `protobuf:"varint,2,opt,name=raft_index,json=raftIndex,proto3" json:"raft_index,omitempty"` } -func (m *ConsensusMetadata) Reset() { *m = ConsensusMetadata{} } -func (m *ConsensusMetadata) String() string { return proto.CompactTextString(m) } -func (*ConsensusMetadata) ProtoMessage() {} -func (*ConsensusMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{30} +func (x *ConsensusMetadata) Reset() { + *x = ConsensusMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConsensusMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConsensusMetadata.Unmarshal(m, b) -} -func (m *ConsensusMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConsensusMetadata.Marshal(b, m, deterministic) -} -func (m *ConsensusMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConsensusMetadata.Merge(m, src) -} -func (m *ConsensusMetadata) XXX_Size() int { - return xxx_messageInfo_ConsensusMetadata.Size(m) +func (x *ConsensusMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsensusMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ConsensusMetadata.DiscardUnknown(m) + +func (*ConsensusMetadata) ProtoMessage() {} + +func (x *ConsensusMetadata) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_ConsensusMetadata proto.InternalMessageInfo +// Deprecated: Use ConsensusMetadata.ProtoReflect.Descriptor instead. +func (*ConsensusMetadata) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{30} +} -func (m *ConsensusMetadata) GetRaftTerm() uint64 { - if m != nil { - return m.RaftTerm +func (x *ConsensusMetadata) GetRaftTerm() uint64 { + if x != nil { + return x.RaftTerm } return 0 } -func (m *ConsensusMetadata) GetRaftIndex() uint64 { - if m != nil { - return m.RaftIndex +func (x *ConsensusMetadata) GetRaftIndex() uint64 { + if x != nil { + return x.RaftIndex } return 0 } type AugmentedBlockHeader struct { - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - TxIds []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AugmentedBlockHeader) Reset() { *m = AugmentedBlockHeader{} } -func (m *AugmentedBlockHeader) String() string { return proto.CompactTextString(m) } -func (*AugmentedBlockHeader) ProtoMessage() {} -func (*AugmentedBlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8098d268f52aac08, []int{31} + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TxIds []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` } -func (m *AugmentedBlockHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AugmentedBlockHeader.Unmarshal(m, b) -} -func (m *AugmentedBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AugmentedBlockHeader.Marshal(b, m, deterministic) -} -func (m *AugmentedBlockHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_AugmentedBlockHeader.Merge(m, src) +func (x *AugmentedBlockHeader) Reset() { + *x = AugmentedBlockHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_block_and_transaction_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AugmentedBlockHeader) XXX_Size() int { - return xxx_messageInfo_AugmentedBlockHeader.Size(m) + +func (x *AugmentedBlockHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AugmentedBlockHeader) XXX_DiscardUnknown() { - xxx_messageInfo_AugmentedBlockHeader.DiscardUnknown(m) + +func (*AugmentedBlockHeader) ProtoMessage() {} + +func (x *AugmentedBlockHeader) ProtoReflect() protoreflect.Message { + mi := &file_block_and_transaction_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_AugmentedBlockHeader proto.InternalMessageInfo +// Deprecated: Use AugmentedBlockHeader.ProtoReflect.Descriptor instead. +func (*AugmentedBlockHeader) Descriptor() ([]byte, []int) { + return file_block_and_transaction_proto_rawDescGZIP(), []int{31} +} -func (m *AugmentedBlockHeader) GetHeader() *BlockHeader { - if m != nil { - return m.Header +func (x *AugmentedBlockHeader) GetHeader() *BlockHeader { + if x != nil { + return x.Header } return nil } -func (m *AugmentedBlockHeader) GetTxIds() []string { - if m != nil { - return m.TxIds +func (x *AugmentedBlockHeader) GetTxIds() []string { + if x != nil { + return x.TxIds } return nil } -func init() { - proto.RegisterEnum("types.Flag", Flag_name, Flag_value) - proto.RegisterEnum("types.IndexAttributeType", IndexAttributeType_name, IndexAttributeType_value) - proto.RegisterEnum("types.AccessControlWritePolicy", AccessControlWritePolicy_name, AccessControlWritePolicy_value) - proto.RegisterType((*Block)(nil), "types.Block") - proto.RegisterType((*BlockHeaderBase)(nil), "types.BlockHeaderBase") - proto.RegisterType((*BlockHeader)(nil), "types.BlockHeader") - proto.RegisterType((*DataTxEnvelopes)(nil), "types.DataTxEnvelopes") - proto.RegisterType((*DataTxEnvelope)(nil), "types.DataTxEnvelope") - proto.RegisterMapType((map[string][]byte)(nil), "types.DataTxEnvelope.SignaturesEntry") - proto.RegisterType((*ConfigTxEnvelope)(nil), "types.ConfigTxEnvelope") - proto.RegisterType((*DBAdministrationTxEnvelope)(nil), "types.DBAdministrationTxEnvelope") - proto.RegisterType((*UserAdministrationTxEnvelope)(nil), "types.UserAdministrationTxEnvelope") - proto.RegisterType((*DataTx)(nil), "types.DataTx") - proto.RegisterType((*DBOperation)(nil), "types.DBOperation") - proto.RegisterType((*DataRead)(nil), "types.DataRead") - proto.RegisterType((*DataWrite)(nil), "types.DataWrite") - proto.RegisterType((*DataDelete)(nil), "types.DataDelete") - proto.RegisterType((*ConfigTx)(nil), "types.ConfigTx") - proto.RegisterType((*DBAdministrationTx)(nil), "types.DBAdministrationTx") - proto.RegisterMapType((map[string]*DBIndex)(nil), "types.DBAdministrationTx.DbsIndexEntry") - proto.RegisterType((*DBIndex)(nil), "types.DBIndex") - proto.RegisterMapType((map[string]IndexAttributeType)(nil), "types.DBIndex.AttributeAndTypeEntry") - proto.RegisterType((*UserAdministrationTx)(nil), "types.UserAdministrationTx") - proto.RegisterType((*UserRead)(nil), "types.UserRead") - proto.RegisterType((*UserWrite)(nil), "types.UserWrite") - proto.RegisterType((*UserDelete)(nil), "types.UserDelete") - proto.RegisterType((*Metadata)(nil), "types.Metadata") - proto.RegisterType((*Version)(nil), "types.Version") - proto.RegisterType((*AccessControl)(nil), "types.AccessControl") - proto.RegisterMapType((map[string]bool)(nil), "types.AccessControl.ReadUsersEntry") - proto.RegisterMapType((map[string]bool)(nil), "types.AccessControl.ReadWriteUsersEntry") - proto.RegisterType((*KVWithMetadata)(nil), "types.KVWithMetadata") - proto.RegisterType((*ValueWithMetadata)(nil), "types.ValueWithMetadata") - proto.RegisterType((*Digest)(nil), "types.Digest") - proto.RegisterType((*ValidationInfo)(nil), "types.ValidationInfo") - proto.RegisterType((*TxProof)(nil), "types.TxProof") - proto.RegisterType((*BlockProof)(nil), "types.BlockProof") - proto.RegisterType((*TxReceipt)(nil), "types.TxReceipt") - proto.RegisterType((*ConsensusMetadata)(nil), "types.ConsensusMetadata") - proto.RegisterType((*AugmentedBlockHeader)(nil), "types.AugmentedBlockHeader") -} - -func init() { proto.RegisterFile("block_and_transaction.proto", fileDescriptor_8098d268f52aac08) } - -var fileDescriptor_8098d268f52aac08 = []byte{ - // 1910 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x58, 0xdd, 0x72, 0xdb, 0xb8, - 0x15, 0x8e, 0xfe, 0xad, 0x23, 0x47, 0xa2, 0x11, 0x3b, 0x51, 0x9c, 0xa4, 0xc9, 0x32, 0xfb, 0x93, - 0xcd, 0xce, 0x2a, 0xd3, 0x64, 0xdb, 0x74, 0xdb, 0x4d, 0x67, 0xf4, 0x97, 0x98, 0x13, 0x5b, 0xca, - 0x40, 0x8c, 0xd3, 0xed, 0x4e, 0xcb, 0x21, 0x45, 0x48, 0xe2, 0x44, 0x22, 0x55, 0x02, 0x72, 0xe4, - 0xcb, 0x4e, 0x1f, 0xa1, 0x2f, 0xd0, 0xbb, 0xbe, 0x40, 0x6f, 0x3b, 0x7d, 0x8d, 0xde, 0xf4, 0x0d, - 0xfa, 0x10, 0x3b, 0xf8, 0x21, 0x45, 0xca, 0x92, 0x13, 0xdf, 0x81, 0xf8, 0xce, 0xf9, 0xce, 0x01, - 0x70, 0xf0, 0x01, 0x20, 0xdc, 0x71, 0xa6, 0xc1, 0xf0, 0xbd, 0x65, 0xfb, 0xae, 0xc5, 0x42, 0xdb, - 0xa7, 0xf6, 0x90, 0x79, 0x81, 0xdf, 0x98, 0x87, 0x01, 0x0b, 0x50, 0x81, 0x9d, 0xcf, 0x09, 0x3d, - 0xbc, 0x31, 0x0c, 0xfc, 0x91, 0x37, 0x5e, 0x84, 0xf6, 0x0a, 0xd3, 0xff, 0x9f, 0x83, 0x42, 0x8b, - 0xfb, 0xa2, 0xc7, 0x50, 0x9c, 0x10, 0xdb, 0x25, 0x61, 0x3d, 0xf3, 0x20, 0xf3, 0xa8, 0xf2, 0x14, - 0x35, 0x84, 0x5b, 0x43, 0xa0, 0x47, 0x02, 0xc1, 0xca, 0x02, 0x75, 0x60, 0xcf, 0xb5, 0x99, 0x6d, - 0xb1, 0xa5, 0x45, 0xfc, 0x33, 0x32, 0x0d, 0xe6, 0x84, 0xd6, 0xb3, 0xc2, 0xed, 0xa6, 0x72, 0xeb, - 0xd8, 0xcc, 0x36, 0x97, 0xdd, 0x08, 0x3d, 0xba, 0x86, 0x6b, 0x6e, 0xba, 0x0b, 0xbd, 0x02, 0x24, - 0x53, 0x4a, 0xf2, 0xd4, 0x73, 0x82, 0xe6, 0x96, 0xa2, 0x69, 0x0b, 0x83, 0x95, 0xd7, 0xd1, 0x35, - 0xac, 0x0d, 0xd7, 0xfa, 0xd0, 0x08, 0xee, 0xb9, 0x8e, 0x65, 0xbb, 0x33, 0xcf, 0xf7, 0x28, 0x93, - 0xe3, 0x4b, 0x71, 0xe6, 0x05, 0xe7, 0x67, 0x51, 0x6a, 0xad, 0x66, 0xca, 0x34, 0xc5, 0x7e, 0xe8, - 0x3a, 0xdb, 0x50, 0x34, 0x85, 0xfb, 0x0b, 0x4a, 0xc2, 0xcb, 0x22, 0x15, 0x44, 0xa4, 0x87, 0x2a, - 0xd2, 0x5b, 0x4a, 0xc2, 0x4b, 0x62, 0xdd, 0x5d, 0x5c, 0x82, 0xab, 0xe9, 0xa1, 0xc4, 0xa7, 0x0b, - 0x6a, 0xcd, 0x08, 0xb3, 0xf9, 0xfc, 0xd5, 0x8b, 0x22, 0x40, 0x7d, 0x35, 0x3d, 0xd2, 0xe0, 0x44, - 0xe1, 0x78, 0x6f, 0xb8, 0xde, 0xd5, 0x2a, 0x43, 0xe9, 0x8d, 0x7d, 0x3e, 0x0d, 0x6c, 0x57, 0xff, - 0x6f, 0x06, 0x6a, 0x89, 0x05, 0x6d, 0xd9, 0x94, 0xa0, 0x9b, 0x50, 0xf4, 0x17, 0x33, 0x47, 0x2d, - 0x7c, 0x1e, 0xab, 0x2f, 0xf4, 0x3d, 0xdc, 0x9e, 0x87, 0xe4, 0xcc, 0x0b, 0x16, 0xd4, 0x72, 0x6c, - 0x4a, 0x2c, 0xb9, 0xf8, 0xd6, 0xc4, 0xa6, 0x13, 0xb1, 0xd8, 0xbb, 0xf8, 0x66, 0x64, 0xc0, 0x89, - 0x24, 0xe5, 0x91, 0x4d, 0x27, 0xdc, 0x75, 0x6a, 0x53, 0x66, 0x0d, 0x83, 0xd9, 0xcc, 0x63, 0x8c, - 0xb8, 0x96, 0xac, 0x4f, 0xe1, 0x9a, 0x93, 0xae, 0xdc, 0xa0, 0x1d, 0xe1, 0x32, 0x27, 0xee, 0xfa, - 0x1c, 0xea, 0x1b, 0x5d, 0xfd, 0xc5, 0x4c, 0x2c, 0x63, 0x1e, 0x1f, 0x5c, 0xf4, 0xec, 0x2d, 0x66, - 0xfa, 0x3f, 0xb3, 0x50, 0x49, 0x0c, 0x0d, 0x3d, 0x87, 0x4a, 0x22, 0x6b, 0x55, 0xd4, 0x37, 0x2f, - 0x16, 0x35, 0x4f, 0x1d, 0x83, 0x13, 0x0f, 0x00, 0x7d, 0x0d, 0x1a, 0x7d, 0xef, 0xcd, 0x87, 0x13, - 0xdb, 0xf3, 0x45, 0xc6, 0xa2, 0xb6, 0x73, 0x8f, 0x76, 0x71, 0x2d, 0xee, 0x3f, 0x12, 0xdd, 0xe8, - 0xd7, 0x50, 0x67, 0x4b, 0x6b, 0x46, 0xc2, 0xf7, 0x64, 0x6a, 0xb1, 0x90, 0x10, 0x2b, 0x0c, 0x02, - 0x96, 0x1c, 0xe6, 0x3e, 0x5b, 0x9e, 0x08, 0xd8, 0x0c, 0x09, 0xc1, 0x41, 0xc0, 0xc4, 0x20, 0x7f, - 0x80, 0x3b, 0x94, 0xd9, 0x8c, 0x6c, 0x71, 0xcd, 0x0b, 0xd7, 0x5b, 0xc2, 0x64, 0x83, 0xf7, 0xef, - 0xa1, 0x76, 0x66, 0x4f, 0x3d, 0x57, 0x56, 0x9f, 0xe7, 0x8f, 0x82, 0x7a, 0xe1, 0x41, 0xee, 0x51, - 0xe5, 0xe9, 0x81, 0x1a, 0xdd, 0x69, 0x8c, 0x1a, 0xfe, 0x28, 0xc0, 0xd5, 0xb3, 0xd4, 0xb7, 0xfe, - 0x12, 0x6a, 0x6b, 0xbb, 0x13, 0x3d, 0x83, 0xf2, 0x6a, 0x23, 0x67, 0x52, 0x64, 0x69, 0x53, 0xbc, - 0xb2, 0xd3, 0xff, 0x93, 0x81, 0x6a, 0x1a, 0x45, 0x5f, 0x41, 0x69, 0x2e, 0x4b, 0x4d, 0x4d, 0xf8, - 0xf5, 0x14, 0x0b, 0x8e, 0x50, 0xd4, 0x05, 0xa0, 0xde, 0xd8, 0xb7, 0xd9, 0x22, 0x54, 0xd3, 0x5b, - 0x79, 0xfa, 0xc5, 0xc6, 0x88, 0x8d, 0x41, 0x6c, 0xd7, 0xf5, 0x59, 0x78, 0x8e, 0x13, 0x8e, 0x87, - 0x2f, 0xa0, 0xb6, 0x06, 0x23, 0x0d, 0x72, 0xef, 0xc9, 0xb9, 0x08, 0x5f, 0xc6, 0xbc, 0x89, 0xf6, - 0xa1, 0x70, 0x66, 0x4f, 0x17, 0x44, 0x15, 0xad, 0xfc, 0xf8, 0x6d, 0xf6, 0x37, 0x19, 0xfd, 0x27, - 0xd0, 0xd6, 0x05, 0x06, 0x7d, 0xbd, 0x3e, 0x84, 0xda, 0x9a, 0x14, 0xad, 0x06, 0x71, 0x17, 0xca, - 0x71, 0x2e, 0x8a, 0x7c, 0xd5, 0xa1, 0x07, 0x70, 0xb8, 0x5d, 0x69, 0xd0, 0xb3, 0xf5, 0x30, 0xb7, - 0xb7, 0xaa, 0xd3, 0xa7, 0x06, 0xa4, 0x70, 0xf7, 0x32, 0xc1, 0x41, 0xbf, 0x5a, 0x0f, 0x79, 0xe7, - 0x12, 0x99, 0xfa, 0xd4, 0xa0, 0x7f, 0xcb, 0x40, 0x51, 0x2e, 0x18, 0xfa, 0x06, 0xd0, 0x6c, 0x41, - 0x99, 0xc5, 0x41, 0x4b, 0x08, 0xa5, 0xe7, 0xca, 0x6a, 0x2a, 0xe3, 0x1a, 0x47, 0xf8, 0x52, 0xf1, - 0x58, 0x86, 0x4b, 0xd1, 0x0d, 0x28, 0xb0, 0xa5, 0xe5, 0xb9, 0x82, 0xb1, 0x8c, 0xf3, 0x6c, 0x69, - 0xb8, 0xe8, 0x39, 0x5c, 0x77, 0x1d, 0x2b, 0x98, 0x13, 0x99, 0x05, 0xad, 0xe7, 0x44, 0x61, 0xa0, - 0x78, 0x6a, 0xfa, 0x11, 0x84, 0x77, 0x5d, 0x27, 0xfe, 0x10, 0xa5, 0x58, 0x49, 0xa0, 0xe8, 0x16, - 0x94, 0x5c, 0xc7, 0xf2, 0xed, 0x99, 0x3c, 0x4f, 0xca, 0xb8, 0xe8, 0x3a, 0x3d, 0x7b, 0x46, 0x50, - 0x03, 0x40, 0x9c, 0x5c, 0x21, 0xb1, 0x5d, 0x5a, 0xcf, 0x0b, 0xfa, 0x5a, 0xa2, 0xee, 0x30, 0xb1, - 0x5d, 0x5c, 0x76, 0x55, 0x8b, 0xa2, 0x5f, 0x42, 0x45, 0xd8, 0x7f, 0x08, 0x3d, 0x46, 0xa8, 0xda, - 0x67, 0x5a, 0xc2, 0xe1, 0x1d, 0x07, 0xb0, 0x20, 0x15, 0x4d, 0x8a, 0xbe, 0x83, 0x5d, 0xe1, 0xe2, - 0x92, 0x29, 0xe1, 0x3e, 0x45, 0xe1, 0xb3, 0x97, 0xf0, 0xe9, 0x08, 0x04, 0x0b, 0x66, 0xd9, 0xa6, - 0xfa, 0x4b, 0xd8, 0x89, 0xe2, 0x6f, 0x28, 0xe1, 0x47, 0x50, 0x3a, 0x23, 0x21, 0xf5, 0x02, 0x5f, - 0x1d, 0xb3, 0xd5, 0x68, 0xab, 0xcb, 0x5e, 0x1c, 0xc1, 0xfa, 0x4f, 0x50, 0x8e, 0xd3, 0xfa, 0xd4, - 0xbd, 0x80, 0xbe, 0x84, 0x9c, 0x3d, 0x9c, 0xaa, 0xa3, 0x77, 0x5f, 0x51, 0x37, 0x87, 0x43, 0x42, - 0x69, 0x3b, 0xf0, 0x59, 0x18, 0x4c, 0x31, 0x37, 0xd0, 0x7f, 0x01, 0xb0, 0xca, 0xff, 0x22, 0xbb, - 0xfe, 0xaf, 0x0c, 0xec, 0x44, 0xdb, 0x84, 0xaf, 0x81, 0x2a, 0x02, 0x65, 0x52, 0x5c, 0x88, 0xb5, - 0xdf, 0xbc, 0xf4, 0x5d, 0xb8, 0xc5, 0xd7, 0xc4, 0x0a, 0xa6, 0xae, 0xa5, 0x6e, 0x05, 0xd1, 0x88, - 0x73, 0x1b, 0x47, 0xbc, 0xcf, 0xcd, 0xfb, 0x53, 0x57, 0xc6, 0x53, 0xbd, 0xe8, 0x19, 0x80, 0x4f, - 0x3e, 0x28, 0x06, 0x75, 0xee, 0x47, 0x03, 0x6a, 0x4f, 0x17, 0x94, 0x91, 0x50, 0x3a, 0xe0, 0xb2, - 0x4f, 0x3e, 0xc8, 0xa6, 0xfe, 0xf7, 0x2c, 0xa0, 0x8b, 0xdb, 0xee, 0x8a, 0x03, 0xb8, 0x07, 0x30, - 0x0c, 0x09, 0x17, 0x75, 0xd7, 0x91, 0x85, 0x5b, 0xc6, 0x65, 0xd9, 0xd3, 0x71, 0x28, 0x87, 0x65, - 0x41, 0x08, 0x38, 0x2f, 0x61, 0xd9, 0xc3, 0xe1, 0x0e, 0x94, 0x5d, 0x87, 0x5a, 0x9e, 0xef, 0x92, - 0xa5, 0xaa, 0xb2, 0xaf, 0xb6, 0x0a, 0x42, 0xa3, 0xe3, 0x50, 0x83, 0x5b, 0x4a, 0x41, 0xdc, 0x71, - 0xd5, 0xe7, 0xe1, 0x6b, 0xb8, 0x9e, 0x82, 0x36, 0x14, 0xc0, 0xe7, 0xc9, 0x02, 0x58, 0xcd, 0x6a, - 0xa7, 0x25, 0xbc, 0x92, 0xe2, 0xf8, 0xef, 0x0c, 0x94, 0x54, 0x37, 0xc2, 0x80, 0x6c, 0xc6, 0x42, - 0xcf, 0x59, 0x30, 0x22, 0x6f, 0x99, 0xe7, 0x73, 0xa2, 0x0e, 0x8a, 0xcf, 0xd3, 0x14, 0x8d, 0x66, - 0x64, 0xd8, 0xf4, 0x5d, 0xf3, 0x7c, 0x4e, 0x64, 0x92, 0x9a, 0xbd, 0xd6, 0x7d, 0xf8, 0x67, 0x38, - 0xd8, 0x68, 0xba, 0x21, 0xe9, 0x27, 0xc9, 0xa4, 0xab, 0xb1, 0x54, 0x8a, 0x78, 0x31, 0x07, 0x27, - 0x48, 0xe6, 0xff, 0xbf, 0x0c, 0xec, 0x6f, 0x52, 0xb6, 0x2b, 0xae, 0x6b, 0x03, 0x40, 0x58, 0x4b, - 0xc5, 0xc8, 0xa5, 0x14, 0x83, 0xd3, 0x4b, 0xc5, 0x58, 0xa8, 0x96, 0x50, 0x0c, 0x61, 0xaf, 0x14, - 0x23, 0x9f, 0x52, 0x0c, 0xee, 0xa0, 0x14, 0x63, 0x11, 0x35, 0x85, 0x62, 0x08, 0x97, 0x48, 0x31, - 0x0a, 0x29, 0xc5, 0xe0, 0x3e, 0x91, 0x62, 0x2c, 0xe2, 0x36, 0xd5, 0x4f, 0x60, 0x27, 0x8a, 0xbf, - 0x7d, 0x48, 0x9f, 0x2e, 0x1c, 0x26, 0x94, 0xe3, 0xec, 0xd0, 0x7d, 0xc8, 0x73, 0x02, 0x75, 0x4e, - 0x54, 0x92, 0xc3, 0x15, 0x40, 0xa4, 0x18, 0xd9, 0x8f, 0x29, 0xc6, 0x17, 0x00, 0xab, 0xfc, 0xb7, - 0xa6, 0xa9, 0xff, 0x05, 0x76, 0xa2, 0xeb, 0x6a, 0x32, 0xe5, 0xcc, 0xa5, 0x29, 0xa3, 0xdf, 0x41, - 0xd5, 0x16, 0x21, 0xf9, 0x7e, 0xe7, 0x31, 0x2f, 0xcd, 0xe7, 0xba, 0x9d, 0xfc, 0xd4, 0x5f, 0x40, - 0x29, 0x12, 0x8d, 0x3b, 0x50, 0x5e, 0x5d, 0x32, 0xe5, 0x25, 0x78, 0xc7, 0x51, 0xf7, 0x4a, 0x74, - 0x00, 0x45, 0xb6, 0x14, 0x48, 0x56, 0x20, 0x05, 0xb6, 0xe4, 0xd7, 0xcd, 0x7f, 0xe4, 0xe0, 0x7a, - 0x8a, 0x1f, 0xb5, 0x00, 0x84, 0x82, 0xf1, 0x21, 0x45, 0x97, 0xa8, 0x87, 0x9b, 0x32, 0x69, 0xf0, - 0x25, 0xe3, 0xb3, 0xa2, 0x2e, 0x34, 0xe5, 0x30, 0xfa, 0x46, 0x18, 0x34, 0xc1, 0x21, 0x8a, 0x47, - 0x31, 0xc9, 0xcb, 0xd1, 0xa3, 0xad, 0x4c, 0x62, 0xc5, 0x12, 0x74, 0xd5, 0x30, 0xd5, 0x89, 0x4c, - 0x38, 0x10, 0x27, 0xf2, 0x3c, 0x98, 0x7a, 0xc3, 0x73, 0x6b, 0x14, 0xa8, 0xda, 0x14, 0xba, 0x5a, - 0x8d, 0x5f, 0x45, 0x69, 0x62, 0x99, 0x80, 0x74, 0xc1, 0x88, 0xfb, 0xbf, 0x11, 0xed, 0x97, 0x81, - 0xac, 0x90, 0xc3, 0x1f, 0xa0, 0x9a, 0x1e, 0xc6, 0xc7, 0x0e, 0x9b, 0x9d, 0xc4, 0xde, 0x3c, 0x6c, - 0xc2, 0x8d, 0x0d, 0xa9, 0x5f, 0x85, 0x42, 0x7f, 0x00, 0xbb, 0xc9, 0x24, 0x51, 0x09, 0x72, 0xcd, - 0xde, 0x8f, 0xda, 0x35, 0xd1, 0x38, 0x3e, 0xd6, 0x32, 0x3a, 0x81, 0xea, 0xeb, 0xd3, 0x77, 0x1e, - 0x9b, 0xc4, 0xa5, 0xf5, 0xa9, 0xe7, 0xe1, 0x37, 0xb0, 0x13, 0x3f, 0xb8, 0x72, 0xa9, 0x4b, 0x60, - 0xfc, 0xce, 0x8a, 0x0d, 0xf4, 0x53, 0xd8, 0x3b, 0xe5, 0x5e, 0xa9, 0x48, 0x31, 0x6f, 0x66, 0x1b, - 0x6f, 0xf6, 0x63, 0xbc, 0x2f, 0xa0, 0xd8, 0xf1, 0xc6, 0x84, 0x32, 0x5e, 0x9f, 0xab, 0xc7, 0x81, - 0x24, 0xdc, 0x09, 0xa3, 0xd7, 0xc0, 0x4d, 0xfe, 0x6e, 0xf7, 0xc6, 0x13, 0xa6, 0xea, 0x53, 0x7d, - 0xe9, 0x7f, 0x82, 0x6a, 0xfa, 0x1d, 0xc0, 0x37, 0xf5, 0x68, 0x6a, 0x8f, 0x05, 0x43, 0x35, 0xde, - 0xd4, 0x2f, 0xa7, 0xf6, 0x18, 0x0b, 0x00, 0x3d, 0x86, 0xbd, 0x90, 0xd8, 0x94, 0x3f, 0x2a, 0x46, - 0x96, 0xe7, 0x8b, 0x67, 0x83, 0xd2, 0xc2, 0x9a, 0x04, 0x8c, 0x91, 0x21, 0xbb, 0x75, 0x03, 0x4a, - 0xe6, 0xf2, 0x4d, 0x18, 0x04, 0xa3, 0x2b, 0xfd, 0x39, 0x40, 0x90, 0x9f, 0xdb, 0x6c, 0xa2, 0x1e, - 0x54, 0xa2, 0xad, 0xbf, 0x03, 0x10, 0xa6, 0x92, 0xed, 0x33, 0xd8, 0x8d, 0x37, 0xe3, 0xea, 0x51, - 0x5a, 0x89, 0xf6, 0xa3, 0x23, 0xc4, 0x67, 0x45, 0xb2, 0x39, 0x9c, 0x24, 0xc6, 0x50, 0x36, 0x97, - 0x98, 0x0c, 0x89, 0x37, 0x67, 0x57, 0xca, 0xf2, 0x36, 0xec, 0xf0, 0x83, 0x40, 0x1c, 0xc6, 0x72, - 0x56, 0x4b, 0x6c, 0x29, 0x4e, 0x1b, 0xbd, 0x0f, 0x7b, 0x17, 0x1e, 0xdd, 0x62, 0x81, 0xec, 0x11, - 0xb3, 0x18, 0x09, 0x63, 0x01, 0xe1, 0x1d, 0x26, 0x09, 0x67, 0xfc, 0xe4, 0x17, 0x60, 0x92, 0x4e, - 0x98, 0x4b, 0xc2, 0x1f, 0x61, 0xbf, 0xb9, 0x18, 0xcf, 0x88, 0x1f, 0x3f, 0x83, 0x65, 0x0e, 0x57, - 0xc9, 0x57, 0x6a, 0x14, 0xbf, 0x6d, 0x67, 0xc5, 0xc5, 0xa2, 0xc0, 0x4f, 0x2e, 0xfa, 0xf8, 0xaf, - 0x59, 0xc8, 0xf3, 0xe5, 0x45, 0x65, 0x28, 0x9c, 0x36, 0x8f, 0x8d, 0x8e, 0x76, 0x0d, 0x7d, 0x09, - 0xba, 0xd1, 0x13, 0x1f, 0xd6, 0xc9, 0x69, 0xbb, 0x6d, 0xb5, 0xfb, 0xbd, 0x97, 0xc7, 0x46, 0xdb, - 0xb4, 0xde, 0x19, 0xe6, 0x91, 0xd1, 0xb3, 0x5a, 0xc7, 0xfd, 0xf6, 0x6b, 0x2d, 0x83, 0x1a, 0xf0, - 0x78, 0xbb, 0x9d, 0xd5, 0xee, 0x9f, 0x9c, 0x18, 0xa6, 0xd9, 0xed, 0x58, 0x03, 0xb3, 0x69, 0x76, - 0xb5, 0x2c, 0x7a, 0x08, 0xf7, 0x23, 0xfb, 0x4e, 0xd3, 0x6c, 0xb6, 0x9a, 0x83, 0xae, 0xd5, 0xe9, - 0x77, 0x07, 0x56, 0xaf, 0x6f, 0x5a, 0xdd, 0x3f, 0x18, 0x03, 0x53, 0xcb, 0xa1, 0xdb, 0x70, 0x10, - 0x19, 0xf5, 0xfa, 0xd6, 0x9b, 0x2e, 0x3e, 0x31, 0x06, 0x03, 0xa3, 0xdf, 0xd3, 0xf2, 0xe8, 0x1e, - 0xdc, 0x8e, 0x20, 0xa3, 0xd7, 0xee, 0x63, 0xdc, 0x6d, 0x9b, 0x56, 0xb7, 0x67, 0x62, 0xa3, 0x3b, - 0xd0, 0x0a, 0xa8, 0x0e, 0xfb, 0x11, 0xfc, 0xb6, 0xd7, 0x7c, 0x6b, 0x1e, 0xf5, 0xb1, 0x31, 0xe8, - 0x76, 0xb4, 0x62, 0xd2, 0x51, 0xb0, 0xf5, 0x5e, 0x59, 0x03, 0xe3, 0x55, 0xaf, 0x69, 0xbe, 0xc5, - 0x5d, 0xad, 0xf4, 0xf8, 0x7b, 0x40, 0x17, 0xaf, 0x09, 0x08, 0xa0, 0xd8, 0x7b, 0x7b, 0xd2, 0xea, - 0x62, 0xed, 0x1a, 0x6f, 0x0f, 0x4c, 0x6c, 0xf4, 0x5e, 0x69, 0x19, 0x54, 0x81, 0x52, 0xab, 0xdf, - 0x3f, 0xee, 0x36, 0x7b, 0x5a, 0xb6, 0xf5, 0xdd, 0x1f, 0x9f, 0x8e, 0x3d, 0x36, 0x59, 0x38, 0x8d, - 0x61, 0x30, 0x7b, 0x32, 0x39, 0x9f, 0x93, 0x70, 0x4a, 0xdc, 0x31, 0x09, 0xbf, 0x9d, 0xda, 0x0e, - 0x7d, 0x12, 0x84, 0x5e, 0xe0, 0x7f, 0x4b, 0x49, 0x78, 0x46, 0xc2, 0x27, 0xf3, 0xf7, 0xe3, 0x27, - 0x62, 0x7d, 0x9c, 0xa2, 0xf8, 0xb1, 0xf6, 0xec, 0xe7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x5e, - 0xa4, 0xe4, 0x93, 0x13, 0x00, 0x00, +var File_block_and_transaction_proto protoreflect.FileDescriptor + +var file_block_and_transaction_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x1a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xec, 0x03, 0x0a, 0x05, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x44, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x78, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, + 0x74, 0x78, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x66, + 0x0a, 0x1d, 0x64, 0x62, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x78, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x42, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x48, 0x00, 0x52, 0x1a, 0x64, 0x62, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x6c, 0x0a, 0x1f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x78, + 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x48, 0x00, 0x52, 0x1c, 0x75, 0x73, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, + 0x73, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, + 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x09, 0x0a, + 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xd8, 0x01, 0x0a, 0x0f, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x68, 0x61, 0x73, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x42, 0x61, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, + 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x37, 0x0a, 0x18, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x6c, 0x61, + 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x4e, 0x75, 0x6d, 0x22, 0xa7, 0x02, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, + 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, + 0x73, 0x6b, 0x69, 0x70, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x18, 0x74, 0x78, 0x5f, 0x6d, 0x65, + 0x72, 0x6b, 0x65, 0x6c, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x74, 0x78, 0x4d, 0x65, 0x72, + 0x6b, 0x65, 0x6c, 0x54, 0x72, 0x65, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x3c, 0x0a, 0x1b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x72, 0x6b, 0x65, 0x6c, 0x5f, + 0x74, 0x72, 0x65, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x72, 0x6b, 0x65, + 0x6c, 0x54, 0x72, 0x65, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x3e, 0x0a, + 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x46, 0x0a, + 0x0f, 0x44, 0x61, 0x74, 0x61, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, + 0x12, 0x33, 0x0a, 0x09, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, + 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x22, 0xbf, 0x01, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x78, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x78, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x12, 0x45, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2e, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5b, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x54, 0x78, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x22, 0x6f, 0x0a, 0x1a, 0x44, 0x42, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x42, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x52, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x73, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x45, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x78, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x06, 0x44, + 0x61, 0x74, 0x61, 0x54, 0x78, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x73, 0x69, + 0x67, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0f, 0x6d, 0x75, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x73, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x0d, 0x64, 0x62, 0x5f, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x42, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x62, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0xbf, 0x01, 0x0a, 0x0b, 0x44, 0x42, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x52, 0x09, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x73, 0x12, 0x31, 0x0a, 0x0b, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x0c, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x73, 0x22, 0x46, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x28, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5b, 0x0a, 0x09, 0x44, 0x61, + 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x26, 0x0a, 0x03, 0x61, 0x63, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x52, 0x03, 0x61, 0x63, 0x6c, 0x22, 0x1e, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x54, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x13, 0x0a, + 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, + 0x49, 0x64, 0x12, 0x45, 0x0a, 0x17, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6c, 0x64, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x0a, 0x6e, 0x65, 0x77, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x93, + 0x02, 0x0a, 0x12, 0x44, 0x42, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x13, + 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x78, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x62, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, + 0x62, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x64, 0x62, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x62, + 0x73, 0x12, 0x44, 0x0a, 0x09, 0x64, 0x62, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x42, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x2e, + 0x44, 0x62, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x64, + 0x62, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0x4b, 0x0a, 0x0d, 0x44, 0x62, 0x73, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x44, 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x07, 0x44, 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x12, 0x52, 0x0a, 0x12, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x61, 0x6e, + 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x41, 0x6e, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x1a, 0x5e, 0x0a, 0x15, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 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, + 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdd, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x0a, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, + 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x73, 0x12, 0x31, 0x0a, 0x0b, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x12, 0x34, + 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x12, 0x1f, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x12, 0x26, 0x0a, 0x03, 0x61, 0x63, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x03, 0x61, 0x63, 0x6c, 0x22, 0x25, 0x0a, 0x0a, 0x55, 0x73, 0x65, + 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x22, 0x71, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x22, 0x3d, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, + 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x15, 0x0a, 0x06, 0x74, + 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x78, 0x4e, + 0x75, 0x6d, 0x22, 0xa0, 0x03, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x42, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, + 0x65, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x52, 0x0a, 0x10, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, + 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x54, 0x0a, 0x15, + 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x5f, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x12, + 0x73, 0x69, 0x67, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x46, 0x6f, 0x72, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x1a, 0x3c, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 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, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x41, 0x0a, 0x13, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x73, 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, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x20, 0x0a, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, + 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x22, 0x65, 0x0a, 0x0e, 0x4b, 0x56, 0x57, 0x69, 0x74, 0x68, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x56, 0x0a, 0x11, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x3d, 0x0a, 0x06, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x22, 0x5d, 0x0a, 0x0e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x46, 0x6c, 0x61, 0x67, + 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x5f, 0x69, 0x66, 0x5f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x49, 0x66, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x22, 0x49, 0x0a, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x2a, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x57, 0x0a, + 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x21, 0x0a, 0x0c, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, + 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x52, 0x0a, 0x09, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x70, 0x74, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x4f, 0x0a, 0x11, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x72, 0x61, 0x66, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x61, 0x66, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x72, 0x61, 0x66, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x59, 0x0a, 0x14, 0x41, + 0x75, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x15, 0x0a, 0x06, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x78, 0x49, 0x64, 0x73, 0x2a, 0x81, 0x02, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, + 0x09, 0x0a, 0x05, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x56, 0x43, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x4c, + 0x49, 0x43, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x49, 0x4e, 0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, + 0x10, 0x01, 0x12, 0x2e, 0x0a, 0x2a, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x56, + 0x43, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x49, 0x43, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, + 0x10, 0x02, 0x12, 0x23, 0x0a, 0x1f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x41, + 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x4f, 0x45, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x45, 0x58, 0x49, 0x53, 0x54, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x5f, 0x4e, 0x4f, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, + 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x4e, + 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x49, 0x45, 0x53, 0x10, + 0x05, 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x55, 0x4e, 0x41, + 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x53, 0x45, 0x44, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x49, + 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x53, + 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x07, 0x2a, 0x39, 0x0a, 0x12, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, + 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, + 0x45, 0x41, 0x4e, 0x10, 0x02, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2d, + 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_block_and_transaction_proto_rawDescOnce sync.Once + file_block_and_transaction_proto_rawDescData = file_block_and_transaction_proto_rawDesc +) + +func file_block_and_transaction_proto_rawDescGZIP() []byte { + file_block_and_transaction_proto_rawDescOnce.Do(func() { + file_block_and_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_block_and_transaction_proto_rawDescData) + }) + return file_block_and_transaction_proto_rawDescData +} + +var file_block_and_transaction_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_block_and_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 37) +var file_block_and_transaction_proto_goTypes = []interface{}{ + (Flag)(0), // 0: types.Flag + (IndexAttributeType)(0), // 1: types.IndexAttributeType + (AccessControlWritePolicy)(0), // 2: types.AccessControl.write_policy + (*Block)(nil), // 3: types.Block + (*BlockHeaderBase)(nil), // 4: types.BlockHeaderBase + (*BlockHeader)(nil), // 5: types.BlockHeader + (*DataTxEnvelopes)(nil), // 6: types.DataTxEnvelopes + (*DataTxEnvelope)(nil), // 7: types.DataTxEnvelope + (*ConfigTxEnvelope)(nil), // 8: types.ConfigTxEnvelope + (*DBAdministrationTxEnvelope)(nil), // 9: types.DBAdministrationTxEnvelope + (*UserAdministrationTxEnvelope)(nil), // 10: types.UserAdministrationTxEnvelope + (*DataTx)(nil), // 11: types.DataTx + (*DBOperation)(nil), // 12: types.DBOperation + (*DataRead)(nil), // 13: types.DataRead + (*DataWrite)(nil), // 14: types.DataWrite + (*DataDelete)(nil), // 15: types.DataDelete + (*ConfigTx)(nil), // 16: types.ConfigTx + (*DBAdministrationTx)(nil), // 17: types.DBAdministrationTx + (*DBIndex)(nil), // 18: types.DBIndex + (*UserAdministrationTx)(nil), // 19: types.UserAdministrationTx + (*UserRead)(nil), // 20: types.UserRead + (*UserWrite)(nil), // 21: types.UserWrite + (*UserDelete)(nil), // 22: types.UserDelete + (*Metadata)(nil), // 23: types.Metadata + (*Version)(nil), // 24: types.Version + (*AccessControl)(nil), // 25: types.AccessControl + (*KVWithMetadata)(nil), // 26: types.KVWithMetadata + (*ValueWithMetadata)(nil), // 27: types.ValueWithMetadata + (*Digest)(nil), // 28: types.Digest + (*ValidationInfo)(nil), // 29: types.ValidationInfo + (*TxProof)(nil), // 30: types.TxProof + (*BlockProof)(nil), // 31: types.BlockProof + (*TxReceipt)(nil), // 32: types.TxReceipt + (*ConsensusMetadata)(nil), // 33: types.ConsensusMetadata + (*AugmentedBlockHeader)(nil), // 34: types.AugmentedBlockHeader + nil, // 35: types.DataTxEnvelope.SignaturesEntry + nil, // 36: types.DBAdministrationTx.DbsIndexEntry + nil, // 37: types.DBIndex.AttributeAndTypeEntry + nil, // 38: types.AccessControl.ReadUsersEntry + nil, // 39: types.AccessControl.ReadWriteUsersEntry + (*ClusterConfig)(nil), // 40: types.ClusterConfig + (*User)(nil), // 41: types.User +} +var file_block_and_transaction_proto_depIdxs = []int32{ + 5, // 0: types.Block.header:type_name -> types.BlockHeader + 6, // 1: types.Block.data_tx_envelopes:type_name -> types.DataTxEnvelopes + 8, // 2: types.Block.config_tx_envelope:type_name -> types.ConfigTxEnvelope + 9, // 3: types.Block.db_administration_tx_envelope:type_name -> types.DBAdministrationTxEnvelope + 10, // 4: types.Block.user_administration_tx_envelope:type_name -> types.UserAdministrationTxEnvelope + 33, // 5: types.Block.consensus_metadata:type_name -> types.ConsensusMetadata + 4, // 6: types.BlockHeader.base_header:type_name -> types.BlockHeaderBase + 29, // 7: types.BlockHeader.validation_info:type_name -> types.ValidationInfo + 7, // 8: types.DataTxEnvelopes.envelopes:type_name -> types.DataTxEnvelope + 11, // 9: types.DataTxEnvelope.payload:type_name -> types.DataTx + 35, // 10: types.DataTxEnvelope.signatures:type_name -> types.DataTxEnvelope.SignaturesEntry + 16, // 11: types.ConfigTxEnvelope.payload:type_name -> types.ConfigTx + 17, // 12: types.DBAdministrationTxEnvelope.payload:type_name -> types.DBAdministrationTx + 19, // 13: types.UserAdministrationTxEnvelope.payload:type_name -> types.UserAdministrationTx + 12, // 14: types.DataTx.db_operations:type_name -> types.DBOperation + 13, // 15: types.DBOperation.data_reads:type_name -> types.DataRead + 14, // 16: types.DBOperation.data_writes:type_name -> types.DataWrite + 15, // 17: types.DBOperation.data_deletes:type_name -> types.DataDelete + 24, // 18: types.DataRead.version:type_name -> types.Version + 25, // 19: types.DataWrite.acl:type_name -> types.AccessControl + 24, // 20: types.ConfigTx.read_old_config_version:type_name -> types.Version + 40, // 21: types.ConfigTx.new_config:type_name -> types.ClusterConfig + 36, // 22: types.DBAdministrationTx.dbs_index:type_name -> types.DBAdministrationTx.DbsIndexEntry + 37, // 23: types.DBIndex.attribute_and_type:type_name -> types.DBIndex.AttributeAndTypeEntry + 20, // 24: types.UserAdministrationTx.user_reads:type_name -> types.UserRead + 21, // 25: types.UserAdministrationTx.user_writes:type_name -> types.UserWrite + 22, // 26: types.UserAdministrationTx.user_deletes:type_name -> types.UserDelete + 24, // 27: types.UserRead.version:type_name -> types.Version + 41, // 28: types.UserWrite.user:type_name -> types.User + 25, // 29: types.UserWrite.acl:type_name -> types.AccessControl + 24, // 30: types.Metadata.version:type_name -> types.Version + 25, // 31: types.Metadata.access_control:type_name -> types.AccessControl + 38, // 32: types.AccessControl.read_users:type_name -> types.AccessControl.ReadUsersEntry + 39, // 33: types.AccessControl.read_write_users:type_name -> types.AccessControl.ReadWriteUsersEntry + 2, // 34: types.AccessControl.sign_policy_for_write:type_name -> types.AccessControl.write_policy + 23, // 35: types.KVWithMetadata.metadata:type_name -> types.Metadata + 23, // 36: types.ValueWithMetadata.metadata:type_name -> types.Metadata + 0, // 37: types.ValidationInfo.flag:type_name -> types.Flag + 5, // 38: types.TxProof.header:type_name -> types.BlockHeader + 5, // 39: types.BlockProof.path:type_name -> types.BlockHeader + 5, // 40: types.TxReceipt.header:type_name -> types.BlockHeader + 5, // 41: types.AugmentedBlockHeader.header:type_name -> types.BlockHeader + 18, // 42: types.DBAdministrationTx.DbsIndexEntry.value:type_name -> types.DBIndex + 1, // 43: types.DBIndex.AttributeAndTypeEntry.value:type_name -> types.IndexAttributeType + 44, // [44:44] is the sub-list for method output_type + 44, // [44:44] is the sub-list for method input_type + 44, // [44:44] is the sub-list for extension type_name + 44, // [44:44] is the sub-list for extension extendee + 0, // [0:44] is the sub-list for field type_name +} + +func init() { file_block_and_transaction_proto_init() } +func file_block_and_transaction_proto_init() { + if File_block_and_transaction_proto != nil { + return + } + file_configuration_proto_init() + if !protoimpl.UnsafeEnabled { + file_block_and_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Block); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeaderBase); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataTxEnvelopes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataTxEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigTxEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBAdministrationTxEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserAdministrationTxEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBOperation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataRead); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataWrite); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataDelete); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBAdministrationTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBIndex); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserAdministrationTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRead); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserWrite); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserDelete); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Version); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccessControl); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KVWithMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueWithMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Digest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidationInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxReceipt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsensusMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_block_and_transaction_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AugmentedBlockHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_block_and_transaction_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Block_DataTxEnvelopes)(nil), + (*Block_ConfigTxEnvelope)(nil), + (*Block_DbAdministrationTxEnvelope)(nil), + (*Block_UserAdministrationTxEnvelope)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_block_and_transaction_proto_rawDesc, + NumEnums: 3, + NumMessages: 37, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_block_and_transaction_proto_goTypes, + DependencyIndexes: file_block_and_transaction_proto_depIdxs, + EnumInfos: file_block_and_transaction_proto_enumTypes, + MessageInfos: file_block_and_transaction_proto_msgTypes, + }.Build() + File_block_and_transaction_proto = out.File + file_block_and_transaction_proto_rawDesc = nil + file_block_and_transaction_proto_goTypes = nil + file_block_and_transaction_proto_depIdxs = nil } diff --git a/pkg/types/configuration.pb.go b/pkg/types/configuration.pb.go index 1e5a1a3e..72aac3a8 100644 --- a/pkg/types/configuration.pb.go +++ b/pkg/types/configuration.pb.go @@ -1,24 +1,27 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: configuration.proto package types 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 Privilege_Access int32 @@ -27,22 +30,43 @@ const ( Privilege_ReadWrite Privilege_Access = 1 ) -var Privilege_Access_name = map[int32]string{ - 0: "Read", - 1: "ReadWrite", -} +// Enum value maps for Privilege_Access. +var ( + Privilege_Access_name = map[int32]string{ + 0: "Read", + 1: "ReadWrite", + } + Privilege_Access_value = map[string]int32{ + "Read": 0, + "ReadWrite": 1, + } +) -var Privilege_Access_value = map[string]int32{ - "Read": 0, - "ReadWrite": 1, +func (x Privilege_Access) Enum() *Privilege_Access { + p := new(Privilege_Access) + *p = x + return p } func (x Privilege_Access) String() string { - return proto.EnumName(Privilege_Access_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Privilege_Access) Descriptor() protoreflect.EnumDescriptor { + return file_configuration_proto_enumTypes[0].Descriptor() +} + +func (Privilege_Access) Type() protoreflect.EnumType { + return &file_configuration_proto_enumTypes[0] +} + +func (x Privilege_Access) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Privilege_Access.Descriptor instead. func (Privilege_Access) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{9, 0} + return file_configuration_proto_rawDescGZIP(), []int{9, 0} } // ClusterConfig holds the shared configuration of a blockchain database cluster. @@ -55,6 +79,10 @@ func (Privilege_Access) EnumDescriptor() ([]byte, []int) { // This part of the configuration is replicated and is common to all nodes. // After the initial bootstrap, this part of the configuration can change only through configuration transactions. type ClusterConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The set of nodes that serve client requests, as they are known to clients. Nodes []*NodeConfig `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // The set of database administrators. @@ -64,61 +92,65 @@ type ClusterConfig struct { // transactions and blocks. CertAuthConfig *CAConfig `protobuf:"bytes,3,opt,name=cert_auth_config,json=certAuthConfig,proto3" json:"cert_auth_config,omitempty"` // The consensus configuration. - ConsensusConfig *ConsensusConfig `protobuf:"bytes,4,opt,name=consensus_config,json=consensusConfig,proto3" json:"consensus_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConsensusConfig *ConsensusConfig `protobuf:"bytes,4,opt,name=consensus_config,json=consensusConfig,proto3" json:"consensus_config,omitempty"` } -func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } -func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } -func (*ClusterConfig) ProtoMessage() {} -func (*ClusterConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{0} +func (x *ClusterConfig) Reset() { + *x = ClusterConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) -} -func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) -} -func (m *ClusterConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterConfig.Merge(m, src) -} -func (m *ClusterConfig) XXX_Size() int { - return xxx_messageInfo_ClusterConfig.Size(m) +func (x *ClusterConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterConfig.DiscardUnknown(m) + +func (*ClusterConfig) ProtoMessage() {} + +func (x *ClusterConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_ClusterConfig proto.InternalMessageInfo +// Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead. +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{0} +} -func (m *ClusterConfig) GetNodes() []*NodeConfig { - if m != nil { - return m.Nodes +func (x *ClusterConfig) GetNodes() []*NodeConfig { + if x != nil { + return x.Nodes } return nil } -func (m *ClusterConfig) GetAdmins() []*Admin { - if m != nil { - return m.Admins +func (x *ClusterConfig) GetAdmins() []*Admin { + if x != nil { + return x.Admins } return nil } -func (m *ClusterConfig) GetCertAuthConfig() *CAConfig { - if m != nil { - return m.CertAuthConfig +func (x *ClusterConfig) GetCertAuthConfig() *CAConfig { + if x != nil { + return x.CertAuthConfig } return nil } -func (m *ClusterConfig) GetConsensusConfig() *ConsensusConfig { - if m != nil { - return m.ConsensusConfig +func (x *ClusterConfig) GetConsensusConfig() *ConsensusConfig { + if x != nil { + return x.ConsensusConfig } return nil } @@ -130,6 +162,10 @@ func (m *ClusterConfig) GetConsensusConfig() *ConsensusConfig { // // TODO: change the name NodeConfig to Node once the existing message Node is renamed to something else. type NodeConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A unique identifier for the node within the cluster. // TODO define and enforce the characters that can be used for this field. Should be something that complies with file names. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -139,162 +175,186 @@ type NodeConfig struct { Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` // The x509 certificate used by this node to authenticate its communication with clients. // This certificate corresponds to the private key the server uses to sign blocks and transaction responses. - Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (m *NodeConfig) Reset() { *m = NodeConfig{} } -func (m *NodeConfig) String() string { return proto.CompactTextString(m) } -func (*NodeConfig) ProtoMessage() {} -func (*NodeConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{1} +func (x *NodeConfig) Reset() { + *x = NodeConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NodeConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeConfig.Unmarshal(m, b) +func (x *NodeConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NodeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeConfig.Marshal(b, m, deterministic) -} -func (m *NodeConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeConfig.Merge(m, src) -} -func (m *NodeConfig) XXX_Size() int { - return xxx_messageInfo_NodeConfig.Size(m) -} -func (m *NodeConfig) XXX_DiscardUnknown() { - xxx_messageInfo_NodeConfig.DiscardUnknown(m) + +func (*NodeConfig) ProtoMessage() {} + +func (x *NodeConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_NodeConfig proto.InternalMessageInfo +// Deprecated: Use NodeConfig.ProtoReflect.Descriptor instead. +func (*NodeConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{1} +} -func (m *NodeConfig) GetId() string { - if m != nil { - return m.Id +func (x *NodeConfig) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *NodeConfig) GetAddress() string { - if m != nil { - return m.Address +func (x *NodeConfig) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *NodeConfig) GetPort() uint32 { - if m != nil { - return m.Port +func (x *NodeConfig) GetPort() uint32 { + if x != nil { + return x.Port } return 0 } -func (m *NodeConfig) GetCertificate() []byte { - if m != nil { - return m.Certificate +func (x *NodeConfig) GetCertificate() []byte { + if x != nil { + return x.Certificate } return nil } // Admin holds the id and certificate of a cluster administrator. type Admin struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Admin) Reset() { *m = Admin{} } -func (m *Admin) String() string { return proto.CompactTextString(m) } -func (*Admin) ProtoMessage() {} -func (*Admin) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{2} + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (m *Admin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Admin.Unmarshal(m, b) -} -func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Admin.Marshal(b, m, deterministic) -} -func (m *Admin) XXX_Merge(src proto.Message) { - xxx_messageInfo_Admin.Merge(m, src) +func (x *Admin) Reset() { + *x = Admin{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Admin) XXX_Size() int { - return xxx_messageInfo_Admin.Size(m) + +func (x *Admin) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Admin) XXX_DiscardUnknown() { - xxx_messageInfo_Admin.DiscardUnknown(m) + +func (*Admin) ProtoMessage() {} + +func (x *Admin) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_Admin proto.InternalMessageInfo +// Deprecated: Use Admin.ProtoReflect.Descriptor instead. +func (*Admin) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{2} +} -func (m *Admin) GetId() string { - if m != nil { - return m.Id +func (x *Admin) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Admin) GetCertificate() []byte { - if m != nil { - return m.Certificate +func (x *Admin) GetCertificate() []byte { + if x != nil { + return x.Certificate } return nil } type CAConfig struct { - Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` - Intermediates [][]byte `protobuf:"bytes,2,rep,name=intermediates,proto3" json:"intermediates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CAConfig) Reset() { *m = CAConfig{} } -func (m *CAConfig) String() string { return proto.CompactTextString(m) } -func (*CAConfig) ProtoMessage() {} -func (*CAConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{3} + Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` + Intermediates [][]byte `protobuf:"bytes,2,rep,name=intermediates,proto3" json:"intermediates,omitempty"` } -func (m *CAConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CAConfig.Unmarshal(m, b) -} -func (m *CAConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CAConfig.Marshal(b, m, deterministic) -} -func (m *CAConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_CAConfig.Merge(m, src) +func (x *CAConfig) Reset() { + *x = CAConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CAConfig) XXX_Size() int { - return xxx_messageInfo_CAConfig.Size(m) + +func (x *CAConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CAConfig) XXX_DiscardUnknown() { - xxx_messageInfo_CAConfig.DiscardUnknown(m) + +func (*CAConfig) ProtoMessage() {} + +func (x *CAConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_CAConfig proto.InternalMessageInfo +// Deprecated: Use CAConfig.ProtoReflect.Descriptor instead. +func (*CAConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{3} +} -func (m *CAConfig) GetRoots() [][]byte { - if m != nil { - return m.Roots +func (x *CAConfig) GetRoots() [][]byte { + if x != nil { + return x.Roots } return nil } -func (m *CAConfig) GetIntermediates() [][]byte { - if m != nil { - return m.Intermediates +func (x *CAConfig) GetIntermediates() [][]byte { + if x != nil { + return x.Intermediates } return nil } // The definitions of the clustered consensus algorithm, members, and parameters. type ConsensusConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The consensus algorithm, currently only "raft" is supported. Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` // Peers that take part in consensus. @@ -302,67 +362,75 @@ type ConsensusConfig struct { // Peers that are allowed to connect and fetch the ledger from members, but do not take part in consensus. Observers []*PeerConfig `protobuf:"bytes,3,rep,name=observers,proto3" json:"observers,omitempty"` // Raft protocol parameters. - RaftConfig *RaftConfig `protobuf:"bytes,4,opt,name=raft_config,json=raftConfig,proto3" json:"raft_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RaftConfig *RaftConfig `protobuf:"bytes,4,opt,name=raft_config,json=raftConfig,proto3" json:"raft_config,omitempty"` } -func (m *ConsensusConfig) Reset() { *m = ConsensusConfig{} } -func (m *ConsensusConfig) String() string { return proto.CompactTextString(m) } -func (*ConsensusConfig) ProtoMessage() {} -func (*ConsensusConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{4} +func (x *ConsensusConfig) Reset() { + *x = ConsensusConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConsensusConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConsensusConfig.Unmarshal(m, b) -} -func (m *ConsensusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConsensusConfig.Marshal(b, m, deterministic) -} -func (m *ConsensusConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConsensusConfig.Merge(m, src) -} -func (m *ConsensusConfig) XXX_Size() int { - return xxx_messageInfo_ConsensusConfig.Size(m) +func (x *ConsensusConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsensusConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ConsensusConfig.DiscardUnknown(m) + +func (*ConsensusConfig) ProtoMessage() {} + +func (x *ConsensusConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_ConsensusConfig proto.InternalMessageInfo +// Deprecated: Use ConsensusConfig.ProtoReflect.Descriptor instead. +func (*ConsensusConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{4} +} -func (m *ConsensusConfig) GetAlgorithm() string { - if m != nil { - return m.Algorithm +func (x *ConsensusConfig) GetAlgorithm() string { + if x != nil { + return x.Algorithm } return "" } -func (m *ConsensusConfig) GetMembers() []*PeerConfig { - if m != nil { - return m.Members +func (x *ConsensusConfig) GetMembers() []*PeerConfig { + if x != nil { + return x.Members } return nil } -func (m *ConsensusConfig) GetObservers() []*PeerConfig { - if m != nil { - return m.Observers +func (x *ConsensusConfig) GetObservers() []*PeerConfig { + if x != nil { + return x.Observers } return nil } -func (m *ConsensusConfig) GetRaftConfig() *RaftConfig { - if m != nil { - return m.RaftConfig +func (x *ConsensusConfig) GetRaftConfig() *RaftConfig { + if x != nil { + return x.RaftConfig } return nil } // PeerConfig defines a server that takes part in consensus, or an observer. type PeerConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The node ID correlates the peer definition here with the NodeConfig.ID field. NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Raft ID must be >0 for members, or =0 for observers. @@ -370,66 +438,74 @@ type PeerConfig struct { // The host name or IP address that is used by other peers to connect to this peer. PeerHost string `protobuf:"bytes,3,opt,name=peer_host,json=peerHost,proto3" json:"peer_host,omitempty"` // The port that is used by other peers to connect to this peer. - PeerPort uint32 `protobuf:"varint,4,opt,name=peer_port,json=peerPort,proto3" json:"peer_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PeerPort uint32 `protobuf:"varint,4,opt,name=peer_port,json=peerPort,proto3" json:"peer_port,omitempty"` } -func (m *PeerConfig) Reset() { *m = PeerConfig{} } -func (m *PeerConfig) String() string { return proto.CompactTextString(m) } -func (*PeerConfig) ProtoMessage() {} -func (*PeerConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{5} +func (x *PeerConfig) Reset() { + *x = PeerConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PeerConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PeerConfig.Unmarshal(m, b) +func (x *PeerConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PeerConfig.Marshal(b, m, deterministic) -} -func (m *PeerConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerConfig.Merge(m, src) -} -func (m *PeerConfig) XXX_Size() int { - return xxx_messageInfo_PeerConfig.Size(m) -} -func (m *PeerConfig) XXX_DiscardUnknown() { - xxx_messageInfo_PeerConfig.DiscardUnknown(m) + +func (*PeerConfig) ProtoMessage() {} + +func (x *PeerConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_PeerConfig proto.InternalMessageInfo +// Deprecated: Use PeerConfig.ProtoReflect.Descriptor instead. +func (*PeerConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{5} +} -func (m *PeerConfig) GetNodeId() string { - if m != nil { - return m.NodeId +func (x *PeerConfig) GetNodeId() string { + if x != nil { + return x.NodeId } return "" } -func (m *PeerConfig) GetRaftId() uint64 { - if m != nil { - return m.RaftId +func (x *PeerConfig) GetRaftId() uint64 { + if x != nil { + return x.RaftId } return 0 } -func (m *PeerConfig) GetPeerHost() string { - if m != nil { - return m.PeerHost +func (x *PeerConfig) GetPeerHost() string { + if x != nil { + return x.PeerHost } return "" } -func (m *PeerConfig) GetPeerPort() uint32 { - if m != nil { - return m.PeerPort +func (x *PeerConfig) GetPeerPort() uint32 { + if x != nil { + return x.PeerPort } return 0 } type RaftConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Time interval between two Node.Tick invocations, e.g. 100ms. // Any duration string parsable by ParseDuration(): // https://golang.org/pkg/time/#ParseDuration @@ -454,75 +530,79 @@ type RaftConfig struct { // requirement, we require that the Raft ID of a new peer added to the cluster must be higher than 'max_raft_id'. // We recommend to start a cluster with low ID numbers, e.g. (1,2,3) => 'max_raft_id'=3, // and then set the Raft ID of a new peer added to the cluster to 'max_raft_id'+1. - MaxRaftId uint64 `protobuf:"varint,6,opt,name=max_raft_id,json=maxRaftId,proto3" json:"max_raft_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxRaftId uint64 `protobuf:"varint,6,opt,name=max_raft_id,json=maxRaftId,proto3" json:"max_raft_id,omitempty"` } -func (m *RaftConfig) Reset() { *m = RaftConfig{} } -func (m *RaftConfig) String() string { return proto.CompactTextString(m) } -func (*RaftConfig) ProtoMessage() {} -func (*RaftConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{6} +func (x *RaftConfig) Reset() { + *x = RaftConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RaftConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RaftConfig.Unmarshal(m, b) -} -func (m *RaftConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RaftConfig.Marshal(b, m, deterministic) +func (x *RaftConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RaftConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftConfig.Merge(m, src) -} -func (m *RaftConfig) XXX_Size() int { - return xxx_messageInfo_RaftConfig.Size(m) -} -func (m *RaftConfig) XXX_DiscardUnknown() { - xxx_messageInfo_RaftConfig.DiscardUnknown(m) + +func (*RaftConfig) ProtoMessage() {} + +func (x *RaftConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_RaftConfig proto.InternalMessageInfo +// Deprecated: Use RaftConfig.ProtoReflect.Descriptor instead. +func (*RaftConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{6} +} -func (m *RaftConfig) GetTickInterval() string { - if m != nil { - return m.TickInterval +func (x *RaftConfig) GetTickInterval() string { + if x != nil { + return x.TickInterval } return "" } -func (m *RaftConfig) GetElectionTicks() uint32 { - if m != nil { - return m.ElectionTicks +func (x *RaftConfig) GetElectionTicks() uint32 { + if x != nil { + return x.ElectionTicks } return 0 } -func (m *RaftConfig) GetHeartbeatTicks() uint32 { - if m != nil { - return m.HeartbeatTicks +func (x *RaftConfig) GetHeartbeatTicks() uint32 { + if x != nil { + return x.HeartbeatTicks } return 0 } -func (m *RaftConfig) GetMaxInflightBlocks() uint32 { - if m != nil { - return m.MaxInflightBlocks +func (x *RaftConfig) GetMaxInflightBlocks() uint32 { + if x != nil { + return x.MaxInflightBlocks } return 0 } -func (m *RaftConfig) GetSnapshotIntervalSize() uint64 { - if m != nil { - return m.SnapshotIntervalSize +func (x *RaftConfig) GetSnapshotIntervalSize() uint64 { + if x != nil { + return x.SnapshotIntervalSize } return 0 } -func (m *RaftConfig) GetMaxRaftId() uint64 { - if m != nil { - return m.MaxRaftId +func (x *RaftConfig) GetMaxRaftId() uint64 { + if x != nil { + return x.MaxRaftId } return 0 } @@ -530,56 +610,64 @@ func (m *RaftConfig) GetMaxRaftId() uint64 { // Database configuration. Stores default read/write ACLs // Stored as value in _dbs system database under key 'name' type DatabaseConfig struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ReadAccessUsers []string `protobuf:"bytes,2,rep,name=read_access_users,json=readAccessUsers,proto3" json:"read_access_users,omitempty"` - WriteAccessUsers []string `protobuf:"bytes,3,rep,name=write_access_users,json=writeAccessUsers,proto3" json:"write_access_users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DatabaseConfig) Reset() { *m = DatabaseConfig{} } -func (m *DatabaseConfig) String() string { return proto.CompactTextString(m) } -func (*DatabaseConfig) ProtoMessage() {} -func (*DatabaseConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{7} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ReadAccessUsers []string `protobuf:"bytes,2,rep,name=read_access_users,json=readAccessUsers,proto3" json:"read_access_users,omitempty"` + WriteAccessUsers []string `protobuf:"bytes,3,rep,name=write_access_users,json=writeAccessUsers,proto3" json:"write_access_users,omitempty"` } -func (m *DatabaseConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatabaseConfig.Unmarshal(m, b) -} -func (m *DatabaseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatabaseConfig.Marshal(b, m, deterministic) -} -func (m *DatabaseConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatabaseConfig.Merge(m, src) +func (x *DatabaseConfig) Reset() { + *x = DatabaseConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DatabaseConfig) XXX_Size() int { - return xxx_messageInfo_DatabaseConfig.Size(m) + +func (x *DatabaseConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DatabaseConfig) XXX_DiscardUnknown() { - xxx_messageInfo_DatabaseConfig.DiscardUnknown(m) + +func (*DatabaseConfig) ProtoMessage() {} + +func (x *DatabaseConfig) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_DatabaseConfig proto.InternalMessageInfo +// Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead. +func (*DatabaseConfig) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{7} +} -func (m *DatabaseConfig) GetName() string { - if m != nil { - return m.Name +func (x *DatabaseConfig) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *DatabaseConfig) GetReadAccessUsers() []string { - if m != nil { - return m.ReadAccessUsers +func (x *DatabaseConfig) GetReadAccessUsers() []string { + if x != nil { + return x.ReadAccessUsers } return nil } -func (m *DatabaseConfig) GetWriteAccessUsers() []string { - if m != nil { - return m.WriteAccessUsers +func (x *DatabaseConfig) GetWriteAccessUsers() []string { + if x != nil { + return x.WriteAccessUsers } return nil } @@ -587,56 +675,64 @@ func (m *DatabaseConfig) GetWriteAccessUsers() []string { // User holds userID, certificate, privilege the user has, // and groups the user belong to. type User struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - Privilege *Privilege `protobuf:"bytes,3,opt,name=privilege,proto3" json:"privilege,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{8} + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Privilege *Privilege `protobuf:"bytes,3,opt,name=privilege,proto3" json:"privilege,omitempty"` } -func (m *User) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_User.Unmarshal(m, b) -} -func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_User.Marshal(b, m, deterministic) -} -func (m *User) XXX_Merge(src proto.Message) { - xxx_messageInfo_User.Merge(m, src) +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *User) XXX_Size() int { - return xxx_messageInfo_User.Size(m) + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *User) XXX_DiscardUnknown() { - xxx_messageInfo_User.DiscardUnknown(m) + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_User proto.InternalMessageInfo +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{8} +} -func (m *User) GetId() string { - if m != nil { - return m.Id +func (x *User) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *User) GetCertificate() []byte { - if m != nil { - return m.Certificate +func (x *User) GetCertificate() []byte { + if x != nil { + return x.Certificate } return nil } -func (m *User) GetPrivilege() *Privilege { - if m != nil { - return m.Privilege +func (x *User) GetPrivilege() *Privilege { + if x != nil { + return x.Privilege } return nil } @@ -647,6 +743,10 @@ func (m *User) GetPrivilege() *Privilege { // where the db manipulation such as DB creation/deletion and // user manipulation such as add/update/delete are allowed. type Privilege struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DbPermission map[string]Privilege_Access `protobuf:"bytes,1,rep,name=db_permission,json=dbPermission,proto3" json:"db_permission,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=types.Privilege_Access"` // admin has privileges to submit a user administration transaction, // cluster configuration transaction, and database administration @@ -654,119 +754,351 @@ type Privilege struct { // from any database provided that the state has no ACL defined. If // a state has a read and write ACL, the admin can read or write to // the state only if the admin is listed in the read or write ACL list. - Admin bool `protobuf:"varint,2,opt,name=admin,proto3" json:"admin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Admin bool `protobuf:"varint,2,opt,name=admin,proto3" json:"admin,omitempty"` } -func (m *Privilege) Reset() { *m = Privilege{} } -func (m *Privilege) String() string { return proto.CompactTextString(m) } -func (*Privilege) ProtoMessage() {} -func (*Privilege) Descriptor() ([]byte, []int) { - return fileDescriptor_415c9e57263f32ab, []int{9} +func (x *Privilege) Reset() { + *x = Privilege{} + if protoimpl.UnsafeEnabled { + mi := &file_configuration_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Privilege) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Privilege.Unmarshal(m, b) +func (x *Privilege) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Privilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Privilege.Marshal(b, m, deterministic) -} -func (m *Privilege) XXX_Merge(src proto.Message) { - xxx_messageInfo_Privilege.Merge(m, src) -} -func (m *Privilege) XXX_Size() int { - return xxx_messageInfo_Privilege.Size(m) -} -func (m *Privilege) XXX_DiscardUnknown() { - xxx_messageInfo_Privilege.DiscardUnknown(m) + +func (*Privilege) ProtoMessage() {} + +func (x *Privilege) ProtoReflect() protoreflect.Message { + mi := &file_configuration_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_Privilege proto.InternalMessageInfo +// Deprecated: Use Privilege.ProtoReflect.Descriptor instead. +func (*Privilege) Descriptor() ([]byte, []int) { + return file_configuration_proto_rawDescGZIP(), []int{9} +} -func (m *Privilege) GetDbPermission() map[string]Privilege_Access { - if m != nil { - return m.DbPermission +func (x *Privilege) GetDbPermission() map[string]Privilege_Access { + if x != nil { + return x.DbPermission } return nil } -func (m *Privilege) GetAdmin() bool { - if m != nil { - return m.Admin +func (x *Privilege) GetAdmin() bool { + if x != nil { + return x.Admin } return false } -func init() { - proto.RegisterEnum("types.Privilege_Access", Privilege_Access_name, Privilege_Access_value) - proto.RegisterType((*ClusterConfig)(nil), "types.ClusterConfig") - proto.RegisterType((*NodeConfig)(nil), "types.NodeConfig") - proto.RegisterType((*Admin)(nil), "types.Admin") - proto.RegisterType((*CAConfig)(nil), "types.CAConfig") - proto.RegisterType((*ConsensusConfig)(nil), "types.ConsensusConfig") - proto.RegisterType((*PeerConfig)(nil), "types.PeerConfig") - proto.RegisterType((*RaftConfig)(nil), "types.RaftConfig") - proto.RegisterType((*DatabaseConfig)(nil), "types.DatabaseConfig") - proto.RegisterType((*User)(nil), "types.User") - proto.RegisterType((*Privilege)(nil), "types.Privilege") - proto.RegisterMapType((map[string]Privilege_Access)(nil), "types.Privilege.DbPermissionEntry") -} - -func init() { proto.RegisterFile("configuration.proto", fileDescriptor_415c9e57263f32ab) } - -var fileDescriptor_415c9e57263f32ab = []byte{ - // 802 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x6f, 0xe4, 0x34, - 0x18, 0x26, 0xf3, 0xd5, 0xe6, 0x9d, 0xcf, 0x7a, 0x57, 0xbb, 0x23, 0x40, 0xa8, 0x84, 0x45, 0x5b, - 0x01, 0x9d, 0x91, 0x86, 0x3d, 0xb0, 0xdc, 0x66, 0xbb, 0x7c, 0xf4, 0x82, 0x2a, 0x03, 0x02, 0x71, - 0x89, 0x9c, 0xe4, 0x9d, 0x89, 0xd5, 0x24, 0x8e, 0x6c, 0xa7, 0xb4, 0x7b, 0xe0, 0xca, 0xef, 0xe2, - 0x7f, 0x70, 0xe7, 0x6f, 0x20, 0xdb, 0xf1, 0x4c, 0xdb, 0x11, 0x07, 0x6e, 0xf6, 0xf3, 0x3c, 0xaf, - 0xfd, 0xf8, 0x79, 0xed, 0x04, 0x9e, 0xa4, 0xa2, 0xda, 0xf0, 0x6d, 0x23, 0x99, 0xe6, 0xa2, 0x5a, - 0xd4, 0x52, 0x68, 0x41, 0xfa, 0xfa, 0xae, 0x46, 0x15, 0xfd, 0x1d, 0xc0, 0xf8, 0xa2, 0x68, 0x94, - 0x46, 0x79, 0x61, 0x55, 0xe4, 0x25, 0xf4, 0x2b, 0x91, 0xa1, 0x9a, 0x07, 0xa7, 0xdd, 0xb3, 0xe1, - 0xea, 0x64, 0x61, 0x85, 0x8b, 0x1f, 0x44, 0x86, 0x4e, 0x41, 0x1d, 0x4f, 0x5e, 0xc0, 0x80, 0x65, - 0x25, 0xaf, 0xd4, 0xbc, 0x63, 0x95, 0xa3, 0x56, 0xb9, 0x36, 0x20, 0x6d, 0x39, 0xf2, 0x1a, 0x66, - 0x29, 0x4a, 0x1d, 0xb3, 0x46, 0xe7, 0xb1, 0x33, 0x32, 0xef, 0x9e, 0x06, 0x67, 0xc3, 0xd5, 0xb4, - 0xd5, 0x5f, 0xac, 0xdb, 0x75, 0x27, 0x46, 0xb8, 0x6e, 0x74, 0xde, 0x3a, 0x59, 0xc3, 0x2c, 0x15, - 0x95, 0xc2, 0x4a, 0x35, 0xca, 0x97, 0xf6, 0x6c, 0xe9, 0x33, 0x5f, 0xea, 0xe9, 0x76, 0x85, 0x69, - 0xfa, 0x10, 0x88, 0x0a, 0x80, 0xbd, 0x71, 0x32, 0x81, 0x0e, 0xcf, 0xe6, 0xc1, 0x69, 0x70, 0x16, - 0xd2, 0x0e, 0xcf, 0xc8, 0x1c, 0x8e, 0x58, 0x96, 0x49, 0x54, 0xe6, 0x08, 0x06, 0xf4, 0x53, 0x42, - 0xa0, 0x57, 0x0b, 0xa9, 0xad, 0xd3, 0x31, 0xb5, 0x63, 0x72, 0x0a, 0x43, 0x63, 0x90, 0x6f, 0x78, - 0xca, 0x34, 0x5a, 0x27, 0x23, 0x7a, 0x1f, 0x8a, 0x5e, 0x43, 0xdf, 0x1e, 0xfe, 0x60, 0xa3, 0x47, - 0xa5, 0x9d, 0xc3, 0xd2, 0x6f, 0xe1, 0xd8, 0xe7, 0x40, 0x9e, 0x42, 0x5f, 0x0a, 0xa1, 0x5d, 0x07, - 0x46, 0xd4, 0x4d, 0xc8, 0x0b, 0x18, 0xf3, 0x4a, 0xa3, 0x2c, 0x31, 0xe3, 0x4c, 0xa3, 0x4b, 0x7d, - 0x44, 0x1f, 0x82, 0xd1, 0x5f, 0x01, 0x4c, 0x1f, 0xa5, 0x42, 0x3e, 0x84, 0x90, 0x15, 0x5b, 0x21, - 0xb9, 0xce, 0xcb, 0xd6, 0xd4, 0x1e, 0x20, 0x9f, 0xc3, 0x51, 0x89, 0x65, 0x82, 0xd2, 0xf7, 0xd1, - 0x77, 0xfc, 0x0a, 0xfd, 0x9d, 0xa0, 0x5e, 0x41, 0x96, 0x10, 0x8a, 0x44, 0xa1, 0xbc, 0x31, 0xf2, - 0xee, 0x7f, 0xc9, 0xf7, 0x1a, 0xb2, 0x82, 0xa1, 0x64, 0x1b, 0xfd, 0xb0, 0x7d, 0xbe, 0x84, 0xb2, - 0x8d, 0x6e, 0x4b, 0x40, 0xee, 0xc6, 0xd1, 0x2d, 0xc0, 0x7e, 0x31, 0xf2, 0x1c, 0x8e, 0xcc, 0x7d, - 0x8b, 0x77, 0x81, 0x0e, 0xcc, 0xf4, 0x32, 0x33, 0x84, 0x5d, 0x9a, 0x67, 0x36, 0xd0, 0x1e, 0x1d, - 0x98, 0xe9, 0x65, 0x46, 0x3e, 0x80, 0xb0, 0x46, 0x94, 0x71, 0x2e, 0x94, 0xeb, 0x60, 0x48, 0x8f, - 0x0d, 0xf0, 0xbd, 0x50, 0x7a, 0x47, 0xda, 0xf6, 0xf6, 0x6c, 0x7b, 0x2d, 0x79, 0x25, 0xa4, 0x8e, - 0xfe, 0xec, 0x00, 0xec, 0x4d, 0x91, 0x4f, 0x60, 0xac, 0x79, 0x7a, 0x1d, 0xdb, 0x88, 0x6f, 0x58, - 0xd1, 0x1a, 0x18, 0x19, 0xf0, 0xb2, 0xc5, 0xc8, 0xa7, 0x30, 0xc1, 0x02, 0x53, 0xf3, 0xb4, 0x62, - 0x43, 0xb8, 0xbb, 0x34, 0xa6, 0x63, 0x8f, 0xfe, 0x64, 0x40, 0xf2, 0x12, 0xa6, 0x39, 0x32, 0xa9, - 0x13, 0x64, 0xba, 0xd5, 0xb9, 0xcb, 0x35, 0xd9, 0xc1, 0x4e, 0xb8, 0x80, 0x27, 0x25, 0xbb, 0x8d, - 0x79, 0xb5, 0x29, 0xf8, 0x36, 0xd7, 0x71, 0x52, 0x08, 0x23, 0x76, 0x56, 0x4f, 0x4a, 0x76, 0x7b, - 0xd9, 0x32, 0x6f, 0x2c, 0x41, 0x5e, 0xc1, 0x33, 0x55, 0xb1, 0x5a, 0xe5, 0x42, 0xef, 0x8c, 0xc6, - 0x8a, 0xbf, 0xc3, 0x79, 0xdf, 0xa6, 0xf2, 0xd4, 0xb3, 0xde, 0xf1, 0x8f, 0xfc, 0x1d, 0x92, 0x8f, - 0x60, 0x68, 0x76, 0xf1, 0x01, 0x0e, 0xac, 0x34, 0x2c, 0xd9, 0x2d, 0xb5, 0x19, 0x46, 0x7f, 0xc0, - 0xe4, 0x2d, 0xd3, 0x2c, 0x61, 0xca, 0x3f, 0x1e, 0x02, 0xbd, 0x8a, 0x95, 0xd8, 0x66, 0x60, 0xc7, - 0xe4, 0x33, 0x38, 0x91, 0xc8, 0xb2, 0x98, 0xa5, 0x29, 0x2a, 0x15, 0x37, 0xca, 0xdf, 0xa2, 0x90, - 0x4e, 0x0d, 0xb1, 0xb6, 0xf8, 0xcf, 0x06, 0x26, 0x5f, 0x00, 0xf9, 0x5d, 0x72, 0x8d, 0x0f, 0xc5, - 0x5d, 0x2b, 0x9e, 0x59, 0xe6, 0x9e, 0x3a, 0xca, 0xa1, 0x67, 0x06, 0xff, 0xff, 0x25, 0x91, 0x05, - 0x84, 0xb5, 0xe4, 0x37, 0xbc, 0xc0, 0x2d, 0xb6, 0x5f, 0x9a, 0x99, 0xbf, 0xa2, 0x1e, 0xa7, 0x7b, - 0x49, 0xf4, 0x4f, 0x00, 0xe1, 0x8e, 0x20, 0xdf, 0xc1, 0x38, 0x4b, 0xe2, 0x1a, 0x65, 0xc9, 0x95, - 0xe2, 0xa2, 0x6a, 0xbf, 0x82, 0xd1, 0xe3, 0x15, 0x16, 0x6f, 0x93, 0xab, 0x9d, 0xe8, 0x9b, 0x4a, - 0xcb, 0x3b, 0x3a, 0xca, 0xee, 0x41, 0xe6, 0x11, 0xdb, 0x2f, 0xa0, 0xb5, 0x78, 0x4c, 0xdd, 0xe4, - 0xfd, 0x5f, 0xe1, 0xe4, 0xa0, 0x90, 0xcc, 0xa0, 0x7b, 0x8d, 0x77, 0xed, 0x21, 0xcd, 0x90, 0x9c, - 0x43, 0xff, 0x86, 0x15, 0x8d, 0x3b, 0xdf, 0x64, 0xf5, 0xfc, 0x60, 0x77, 0x17, 0x15, 0x75, 0xaa, - 0xaf, 0x3b, 0x5f, 0x05, 0xd1, 0xc7, 0x30, 0x70, 0x20, 0x39, 0x86, 0x1e, 0x45, 0x96, 0xcd, 0xde, - 0x23, 0x63, 0x08, 0xcd, 0xe8, 0x17, 0x13, 0xee, 0x2c, 0x78, 0xf3, 0xea, 0xb7, 0xd5, 0x96, 0xeb, - 0xbc, 0x49, 0x16, 0xa9, 0x28, 0x97, 0xf9, 0x5d, 0x8d, 0xb2, 0xc0, 0x6c, 0x8b, 0xf2, 0xbc, 0x60, - 0x89, 0x5a, 0x0a, 0xc9, 0x45, 0x75, 0xee, 0x1e, 0xee, 0xb2, 0xbe, 0xde, 0x2e, 0xed, 0xa6, 0xc9, - 0xc0, 0xfe, 0x2f, 0xbe, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x43, 0x90, 0xf6, 0xbd, 0x46, 0x06, - 0x00, 0x00, +var File_configuration_proto protoreflect.FileDescriptor + +var file_configuration_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xdc, 0x01, 0x0a, + 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, + 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x06, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x06, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x12, 0x39, 0x0a, + 0x10, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x43, 0x41, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x41, 0x75, + 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, + 0x6e, 0x73, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x6c, 0x0a, 0x0a, 0x4e, + 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x39, 0x0a, 0x05, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x22, 0x46, 0x0a, 0x08, 0x43, 0x41, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, + 0x05, 0x72, 0x6f, 0x6f, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x2b, + 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x6f, + 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x09, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x32, 0x0a, 0x0b, + 0x72, 0x61, 0x66, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x22, 0x78, 0x0a, 0x0a, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x17, + 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x61, 0x66, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x61, 0x66, 0x74, 0x49, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x87, 0x02, 0x0a, 0x0a, 0x52, + 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x69, 0x63, + 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x25, + 0x0a, 0x0e, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, + 0x61, 0x74, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, + 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x2e, + 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x6d, 0x61, 0x78, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x34, + 0x0a, 0x16, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, + 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x61, 0x66, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x52, 0x61, + 0x66, 0x74, 0x49, 0x64, 0x22, 0x7e, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x10, 0x77, 0x72, 0x69, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x55, + 0x73, 0x65, 0x72, 0x73, 0x22, 0x68, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x2e, + 0x0a, 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, + 0x65, 0x67, 0x65, 0x52, 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x22, 0xe7, + 0x01, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x0d, + 0x64, 0x62, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x69, 0x76, + 0x69, 0x6c, 0x65, 0x67, 0x65, 0x2e, 0x44, 0x62, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x64, 0x62, 0x50, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x58, 0x0a, 0x11, 0x44, + 0x62, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, + 0x65, 0x67, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x21, 0x0a, 0x06, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, + 0x08, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x65, 0x61, + 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x10, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, + 0x65, 0x72, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_configuration_proto_rawDescOnce sync.Once + file_configuration_proto_rawDescData = file_configuration_proto_rawDesc +) + +func file_configuration_proto_rawDescGZIP() []byte { + file_configuration_proto_rawDescOnce.Do(func() { + file_configuration_proto_rawDescData = protoimpl.X.CompressGZIP(file_configuration_proto_rawDescData) + }) + return file_configuration_proto_rawDescData +} + +var file_configuration_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_configuration_proto_goTypes = []interface{}{ + (Privilege_Access)(0), // 0: types.Privilege.Access + (*ClusterConfig)(nil), // 1: types.ClusterConfig + (*NodeConfig)(nil), // 2: types.NodeConfig + (*Admin)(nil), // 3: types.Admin + (*CAConfig)(nil), // 4: types.CAConfig + (*ConsensusConfig)(nil), // 5: types.ConsensusConfig + (*PeerConfig)(nil), // 6: types.PeerConfig + (*RaftConfig)(nil), // 7: types.RaftConfig + (*DatabaseConfig)(nil), // 8: types.DatabaseConfig + (*User)(nil), // 9: types.User + (*Privilege)(nil), // 10: types.Privilege + nil, // 11: types.Privilege.DbPermissionEntry +} +var file_configuration_proto_depIdxs = []int32{ + 2, // 0: types.ClusterConfig.nodes:type_name -> types.NodeConfig + 3, // 1: types.ClusterConfig.admins:type_name -> types.Admin + 4, // 2: types.ClusterConfig.cert_auth_config:type_name -> types.CAConfig + 5, // 3: types.ClusterConfig.consensus_config:type_name -> types.ConsensusConfig + 6, // 4: types.ConsensusConfig.members:type_name -> types.PeerConfig + 6, // 5: types.ConsensusConfig.observers:type_name -> types.PeerConfig + 7, // 6: types.ConsensusConfig.raft_config:type_name -> types.RaftConfig + 10, // 7: types.User.privilege:type_name -> types.Privilege + 11, // 8: types.Privilege.db_permission:type_name -> types.Privilege.DbPermissionEntry + 0, // 9: types.Privilege.DbPermissionEntry.value:type_name -> types.Privilege.Access + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_configuration_proto_init() } +func file_configuration_proto_init() { + if File_configuration_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_configuration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Admin); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CAConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsensusConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatabaseConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_configuration_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Privilege); 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_configuration_proto_rawDesc, + NumEnums: 1, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_configuration_proto_goTypes, + DependencyIndexes: file_configuration_proto_depIdxs, + EnumInfos: file_configuration_proto_enumTypes, + MessageInfos: file_configuration_proto_msgTypes, + }.Build() + File_configuration_proto = out.File + file_configuration_proto_rawDesc = nil + file_configuration_proto_goTypes = nil + file_configuration_proto_depIdxs = nil } diff --git a/pkg/types/query.pb.go b/pkg/types/query.pb.go index 267919a3..7ace10f1 100644 --- a/pkg/types/query.pb.go +++ b/pkg/types/query.pb.go @@ -1,24 +1,27 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: query.proto package types 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 GetMostRecentUserOrNodeQuery_Type int32 @@ -27,2406 +30,3635 @@ const ( GetMostRecentUserOrNodeQuery_NODE GetMostRecentUserOrNodeQuery_Type = 1 ) -var GetMostRecentUserOrNodeQuery_Type_name = map[int32]string{ - 0: "USER", - 1: "NODE", -} +// Enum value maps for GetMostRecentUserOrNodeQuery_Type. +var ( + GetMostRecentUserOrNodeQuery_Type_name = map[int32]string{ + 0: "USER", + 1: "NODE", + } + GetMostRecentUserOrNodeQuery_Type_value = map[string]int32{ + "USER": 0, + "NODE": 1, + } +) -var GetMostRecentUserOrNodeQuery_Type_value = map[string]int32{ - "USER": 0, - "NODE": 1, +func (x GetMostRecentUserOrNodeQuery_Type) Enum() *GetMostRecentUserOrNodeQuery_Type { + p := new(GetMostRecentUserOrNodeQuery_Type) + *p = x + return p } func (x GetMostRecentUserOrNodeQuery_Type) String() string { - return proto.EnumName(GetMostRecentUserOrNodeQuery_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (GetMostRecentUserOrNodeQuery_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{43, 0} +func (GetMostRecentUserOrNodeQuery_Type) Descriptor() protoreflect.EnumDescriptor { + return file_query_proto_enumTypes[0].Descriptor() } -type GetDBStatusQueryEnvelope struct { - Payload *GetDBStatusQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (GetMostRecentUserOrNodeQuery_Type) Type() protoreflect.EnumType { + return &file_query_proto_enumTypes[0] } -func (m *GetDBStatusQueryEnvelope) Reset() { *m = GetDBStatusQueryEnvelope{} } -func (m *GetDBStatusQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDBStatusQueryEnvelope) ProtoMessage() {} -func (*GetDBStatusQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{0} +func (x GetMostRecentUserOrNodeQuery_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *GetDBStatusQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBStatusQueryEnvelope.Unmarshal(m, b) +// Deprecated: Use GetMostRecentUserOrNodeQuery_Type.Descriptor instead. +func (GetMostRecentUserOrNodeQuery_Type) EnumDescriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{43, 0} } -func (m *GetDBStatusQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBStatusQueryEnvelope.Marshal(b, m, deterministic) + +type GetDBStatusQueryEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Payload *GetDBStatusQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDBStatusQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBStatusQueryEnvelope.Merge(m, src) + +func (x *GetDBStatusQueryEnvelope) Reset() { + *x = GetDBStatusQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBStatusQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDBStatusQueryEnvelope.Size(m) + +func (x *GetDBStatusQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBStatusQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBStatusQueryEnvelope.DiscardUnknown(m) + +func (*GetDBStatusQueryEnvelope) ProtoMessage() {} + +func (x *GetDBStatusQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDBStatusQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDBStatusQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDBStatusQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{0} +} -func (m *GetDBStatusQueryEnvelope) GetPayload() *GetDBStatusQuery { - if m != nil { - return m.Payload +func (x *GetDBStatusQueryEnvelope) GetPayload() *GetDBStatusQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDBStatusQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDBStatusQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDBStatusQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_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 *GetDBStatusQuery) Reset() { *m = GetDBStatusQuery{} } -func (m *GetDBStatusQuery) String() string { return proto.CompactTextString(m) } -func (*GetDBStatusQuery) ProtoMessage() {} -func (*GetDBStatusQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{1} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` } -func (m *GetDBStatusQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBStatusQuery.Unmarshal(m, b) -} -func (m *GetDBStatusQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBStatusQuery.Marshal(b, m, deterministic) -} -func (m *GetDBStatusQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBStatusQuery.Merge(m, src) +func (x *GetDBStatusQuery) Reset() { + *x = GetDBStatusQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBStatusQuery) XXX_Size() int { - return xxx_messageInfo_GetDBStatusQuery.Size(m) + +func (x *GetDBStatusQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBStatusQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBStatusQuery.DiscardUnknown(m) + +func (*GetDBStatusQuery) ProtoMessage() {} + +func (x *GetDBStatusQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDBStatusQuery proto.InternalMessageInfo +// Deprecated: Use GetDBStatusQuery.ProtoReflect.Descriptor instead. +func (*GetDBStatusQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{1} +} -func (m *GetDBStatusQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDBStatusQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDBStatusQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDBStatusQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } type GetDBIndexQueryEnvelope struct { - Payload *GetDBIndexQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDBIndexQueryEnvelope) Reset() { *m = GetDBIndexQueryEnvelope{} } -func (m *GetDBIndexQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDBIndexQueryEnvelope) ProtoMessage() {} -func (*GetDBIndexQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{2} + Payload *GetDBIndexQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDBIndexQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBIndexQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDBIndexQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBIndexQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDBIndexQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBIndexQueryEnvelope.Merge(m, src) +func (x *GetDBIndexQueryEnvelope) Reset() { + *x = GetDBIndexQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBIndexQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDBIndexQueryEnvelope.Size(m) + +func (x *GetDBIndexQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBIndexQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBIndexQueryEnvelope.DiscardUnknown(m) + +func (*GetDBIndexQueryEnvelope) ProtoMessage() {} + +func (x *GetDBIndexQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDBIndexQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDBIndexQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDBIndexQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{2} +} -func (m *GetDBIndexQueryEnvelope) GetPayload() *GetDBIndexQuery { - if m != nil { - return m.Payload +func (x *GetDBIndexQueryEnvelope) GetPayload() *GetDBIndexQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDBIndexQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDBIndexQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDBIndexQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_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 *GetDBIndexQuery) Reset() { *m = GetDBIndexQuery{} } -func (m *GetDBIndexQuery) String() string { return proto.CompactTextString(m) } -func (*GetDBIndexQuery) ProtoMessage() {} -func (*GetDBIndexQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{3} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` } -func (m *GetDBIndexQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBIndexQuery.Unmarshal(m, b) -} -func (m *GetDBIndexQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBIndexQuery.Marshal(b, m, deterministic) -} -func (m *GetDBIndexQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBIndexQuery.Merge(m, src) +func (x *GetDBIndexQuery) Reset() { + *x = GetDBIndexQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBIndexQuery) XXX_Size() int { - return xxx_messageInfo_GetDBIndexQuery.Size(m) + +func (x *GetDBIndexQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBIndexQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBIndexQuery.DiscardUnknown(m) + +func (*GetDBIndexQuery) ProtoMessage() {} + +func (x *GetDBIndexQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDBIndexQuery proto.InternalMessageInfo +// Deprecated: Use GetDBIndexQuery.ProtoReflect.Descriptor instead. +func (*GetDBIndexQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{3} +} -func (m *GetDBIndexQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDBIndexQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDBIndexQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDBIndexQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } type GetDataQueryEnvelope struct { - Payload *GetDataQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataQueryEnvelope) Reset() { *m = GetDataQueryEnvelope{} } -func (m *GetDataQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataQueryEnvelope) ProtoMessage() {} -func (*GetDataQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{4} + Payload *GetDataQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataQueryEnvelope.Merge(m, src) +func (x *GetDataQueryEnvelope) Reset() { + *x = GetDataQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataQueryEnvelope.Size(m) + +func (x *GetDataQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataQueryEnvelope.DiscardUnknown(m) + +func (*GetDataQueryEnvelope) ProtoMessage() {} + +func (x *GetDataQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{4} +} -func (m *GetDataQueryEnvelope) GetPayload() *GetDataQuery { - if m != nil { - return m.Payload +func (x *GetDataQueryEnvelope) GetPayload() *GetDataQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataQuery) Reset() { *m = GetDataQuery{} } -func (m *GetDataQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataQuery) ProtoMessage() {} -func (*GetDataQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{5} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } -func (m *GetDataQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataQuery.Unmarshal(m, b) -} -func (m *GetDataQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataQuery.Marshal(b, m, deterministic) -} -func (m *GetDataQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataQuery.Merge(m, src) +func (x *GetDataQuery) Reset() { + *x = GetDataQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataQuery) XXX_Size() int { - return xxx_messageInfo_GetDataQuery.Size(m) + +func (x *GetDataQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataQuery.DiscardUnknown(m) + +func (*GetDataQuery) ProtoMessage() {} + +func (x *GetDataQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataQuery proto.InternalMessageInfo +// Deprecated: Use GetDataQuery.ProtoReflect.Descriptor instead. +func (*GetDataQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{5} +} -func (m *GetDataQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDataQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetDataQuery) GetKey() string { - if m != nil { - return m.Key +func (x *GetDataQuery) GetKey() string { + if x != nil { + return x.Key } return "" } type GetDataRangeQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - StartKey string `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey string `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDataRangeQuery) Reset() { *m = GetDataRangeQuery{} } -func (m *GetDataRangeQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataRangeQuery) ProtoMessage() {} -func (*GetDataRangeQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{6} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataRangeQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataRangeQuery.Unmarshal(m, b) + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + StartKey string `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey string `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *GetDataRangeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataRangeQuery.Marshal(b, m, deterministic) -} -func (m *GetDataRangeQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataRangeQuery.Merge(m, src) + +func (x *GetDataRangeQuery) Reset() { + *x = GetDataRangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataRangeQuery) XXX_Size() int { - return xxx_messageInfo_GetDataRangeQuery.Size(m) + +func (x *GetDataRangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataRangeQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataRangeQuery.DiscardUnknown(m) + +func (*GetDataRangeQuery) ProtoMessage() {} + +func (x *GetDataRangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataRangeQuery proto.InternalMessageInfo +// Deprecated: Use GetDataRangeQuery.ProtoReflect.Descriptor instead. +func (*GetDataRangeQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{6} +} -func (m *GetDataRangeQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataRangeQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataRangeQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDataRangeQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetDataRangeQuery) GetStartKey() string { - if m != nil { - return m.StartKey +func (x *GetDataRangeQuery) GetStartKey() string { + if x != nil { + return x.StartKey } return "" } -func (m *GetDataRangeQuery) GetEndKey() string { - if m != nil { - return m.EndKey +func (x *GetDataRangeQuery) GetEndKey() string { + if x != nil { + return x.EndKey } return "" } -func (m *GetDataRangeQuery) GetLimit() uint64 { - if m != nil { - return m.Limit +func (x *GetDataRangeQuery) GetLimit() uint64 { + if x != nil { + return x.Limit } return 0 } type GetUserQueryEnvelope struct { - Payload *GetUserQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetUserQueryEnvelope) Reset() { *m = GetUserQueryEnvelope{} } -func (m *GetUserQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetUserQueryEnvelope) ProtoMessage() {} -func (*GetUserQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{7} + Payload *GetUserQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetUserQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserQueryEnvelope.Unmarshal(m, b) -} -func (m *GetUserQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetUserQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserQueryEnvelope.Merge(m, src) +func (x *GetUserQueryEnvelope) Reset() { + *x = GetUserQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetUserQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetUserQueryEnvelope.Size(m) + +func (x *GetUserQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserQueryEnvelope.DiscardUnknown(m) + +func (*GetUserQueryEnvelope) ProtoMessage() {} + +func (x *GetUserQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetUserQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetUserQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetUserQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{7} +} -func (m *GetUserQueryEnvelope) GetPayload() *GetUserQuery { - if m != nil { - return m.Payload +func (x *GetUserQueryEnvelope) GetPayload() *GetUserQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetUserQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetUserQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetUserQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetUserQuery) Reset() { *m = GetUserQuery{} } -func (m *GetUserQuery) String() string { return proto.CompactTextString(m) } -func (*GetUserQuery) ProtoMessage() {} -func (*GetUserQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{8} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` } -func (m *GetUserQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserQuery.Unmarshal(m, b) -} -func (m *GetUserQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserQuery.Marshal(b, m, deterministic) -} -func (m *GetUserQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserQuery.Merge(m, src) +func (x *GetUserQuery) Reset() { + *x = GetUserQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetUserQuery) XXX_Size() int { - return xxx_messageInfo_GetUserQuery.Size(m) + +func (x *GetUserQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserQuery.DiscardUnknown(m) + +func (*GetUserQuery) ProtoMessage() {} + +func (x *GetUserQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetUserQuery proto.InternalMessageInfo +// Deprecated: Use GetUserQuery.ProtoReflect.Descriptor instead. +func (*GetUserQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{8} +} -func (m *GetUserQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetUserQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetUserQuery) GetTargetUserId() string { - if m != nil { - return m.TargetUserId +func (x *GetUserQuery) GetTargetUserId() string { + if x != nil { + return x.TargetUserId } return "" } type GetConfigQueryEnvelope struct { - Payload *GetConfigQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigQueryEnvelope) Reset() { *m = GetConfigQueryEnvelope{} } -func (m *GetConfigQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetConfigQueryEnvelope) ProtoMessage() {} -func (*GetConfigQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{9} + Payload *GetConfigQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetConfigQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigQueryEnvelope.Unmarshal(m, b) -} -func (m *GetConfigQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetConfigQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigQueryEnvelope.Merge(m, src) +func (x *GetConfigQueryEnvelope) Reset() { + *x = GetConfigQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetConfigQueryEnvelope.Size(m) + +func (x *GetConfigQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigQueryEnvelope.DiscardUnknown(m) + +func (*GetConfigQueryEnvelope) ProtoMessage() {} + +func (x *GetConfigQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetConfigQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetConfigQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetConfigQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{9} +} -func (m *GetConfigQueryEnvelope) GetPayload() *GetConfigQuery { - if m != nil { - return m.Payload +func (x *GetConfigQueryEnvelope) GetPayload() *GetConfigQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetConfigQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetConfigQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetConfigQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigQuery) Reset() { *m = GetConfigQuery{} } -func (m *GetConfigQuery) String() string { return proto.CompactTextString(m) } -func (*GetConfigQuery) ProtoMessage() {} -func (*GetConfigQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{10} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` } -func (m *GetConfigQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigQuery.Unmarshal(m, b) -} -func (m *GetConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigQuery.Marshal(b, m, deterministic) -} -func (m *GetConfigQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigQuery.Merge(m, src) +func (x *GetConfigQuery) Reset() { + *x = GetConfigQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigQuery) XXX_Size() int { - return xxx_messageInfo_GetConfigQuery.Size(m) + +func (x *GetConfigQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigQuery.DiscardUnknown(m) + +func (*GetConfigQuery) ProtoMessage() {} + +func (x *GetConfigQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetConfigQuery proto.InternalMessageInfo +// Deprecated: Use GetConfigQuery.ProtoReflect.Descriptor instead. +func (*GetConfigQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{10} +} -func (m *GetConfigQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetConfigQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } type GetNodeConfigQueryEnvelope struct { - Payload *GetNodeConfigQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetNodeConfigQueryEnvelope) Reset() { *m = GetNodeConfigQueryEnvelope{} } -func (m *GetNodeConfigQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetNodeConfigQueryEnvelope) ProtoMessage() {} -func (*GetNodeConfigQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{11} + Payload *GetNodeConfigQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetNodeConfigQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetNodeConfigQueryEnvelope.Unmarshal(m, b) -} -func (m *GetNodeConfigQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetNodeConfigQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetNodeConfigQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetNodeConfigQueryEnvelope.Merge(m, src) +func (x *GetNodeConfigQueryEnvelope) Reset() { + *x = GetNodeConfigQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetNodeConfigQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetNodeConfigQueryEnvelope.Size(m) + +func (x *GetNodeConfigQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetNodeConfigQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetNodeConfigQueryEnvelope.DiscardUnknown(m) + +func (*GetNodeConfigQueryEnvelope) ProtoMessage() {} + +func (x *GetNodeConfigQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetNodeConfigQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetNodeConfigQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetNodeConfigQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{11} +} -func (m *GetNodeConfigQueryEnvelope) GetPayload() *GetNodeConfigQuery { - if m != nil { - return m.Payload +func (x *GetNodeConfigQueryEnvelope) GetPayload() *GetNodeConfigQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetNodeConfigQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetNodeConfigQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetNodeConfigQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetNodeConfigQuery) Reset() { *m = GetNodeConfigQuery{} } -func (m *GetNodeConfigQuery) String() string { return proto.CompactTextString(m) } -func (*GetNodeConfigQuery) ProtoMessage() {} -func (*GetNodeConfigQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{12} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` } -func (m *GetNodeConfigQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetNodeConfigQuery.Unmarshal(m, b) -} -func (m *GetNodeConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetNodeConfigQuery.Marshal(b, m, deterministic) -} -func (m *GetNodeConfigQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetNodeConfigQuery.Merge(m, src) +func (x *GetNodeConfigQuery) Reset() { + *x = GetNodeConfigQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetNodeConfigQuery) XXX_Size() int { - return xxx_messageInfo_GetNodeConfigQuery.Size(m) + +func (x *GetNodeConfigQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetNodeConfigQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetNodeConfigQuery.DiscardUnknown(m) + +func (*GetNodeConfigQuery) ProtoMessage() {} + +func (x *GetNodeConfigQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetNodeConfigQuery proto.InternalMessageInfo +// Deprecated: Use GetNodeConfigQuery.ProtoReflect.Descriptor instead. +func (*GetNodeConfigQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{12} +} -func (m *GetNodeConfigQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetNodeConfigQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetNodeConfigQuery) GetNodeId() string { - if m != nil { - return m.NodeId +func (x *GetNodeConfigQuery) GetNodeId() string { + if x != nil { + return x.NodeId } return "" } type GeConfigBlockQueryEnvelope struct { - Payload *GetConfigBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GeConfigBlockQueryEnvelope) Reset() { *m = GeConfigBlockQueryEnvelope{} } -func (m *GeConfigBlockQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GeConfigBlockQueryEnvelope) ProtoMessage() {} -func (*GeConfigBlockQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{13} + Payload *GetConfigBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GeConfigBlockQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GeConfigBlockQueryEnvelope.Unmarshal(m, b) -} -func (m *GeConfigBlockQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GeConfigBlockQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GeConfigBlockQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeConfigBlockQueryEnvelope.Merge(m, src) +func (x *GeConfigBlockQueryEnvelope) Reset() { + *x = GeConfigBlockQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GeConfigBlockQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GeConfigBlockQueryEnvelope.Size(m) + +func (x *GeConfigBlockQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GeConfigBlockQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GeConfigBlockQueryEnvelope.DiscardUnknown(m) + +func (*GeConfigBlockQueryEnvelope) ProtoMessage() {} + +func (x *GeConfigBlockQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GeConfigBlockQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GeConfigBlockQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GeConfigBlockQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{13} +} -func (m *GeConfigBlockQueryEnvelope) GetPayload() *GetConfigBlockQuery { - if m != nil { - return m.Payload +func (x *GeConfigBlockQueryEnvelope) GetPayload() *GetConfigBlockQuery { + if x != nil { + return x.Payload } return nil } -func (m *GeConfigBlockQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GeConfigBlockQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetConfigBlockQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_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 *GetConfigBlockQuery) Reset() { *m = GetConfigBlockQuery{} } -func (m *GetConfigBlockQuery) String() string { return proto.CompactTextString(m) } -func (*GetConfigBlockQuery) ProtoMessage() {} -func (*GetConfigBlockQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{14} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` } -func (m *GetConfigBlockQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigBlockQuery.Unmarshal(m, b) -} -func (m *GetConfigBlockQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigBlockQuery.Marshal(b, m, deterministic) -} -func (m *GetConfigBlockQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigBlockQuery.Merge(m, src) +func (x *GetConfigBlockQuery) Reset() { + *x = GetConfigBlockQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigBlockQuery) XXX_Size() int { - return xxx_messageInfo_GetConfigBlockQuery.Size(m) + +func (x *GetConfigBlockQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigBlockQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigBlockQuery.DiscardUnknown(m) + +func (*GetConfigBlockQuery) ProtoMessage() {} + +func (x *GetConfigBlockQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetConfigBlockQuery proto.InternalMessageInfo +// Deprecated: Use GetConfigBlockQuery.ProtoReflect.Descriptor instead. +func (*GetConfigBlockQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{14} +} -func (m *GetConfigBlockQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetConfigBlockQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetConfigBlockQuery) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *GetConfigBlockQuery) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } type GetClusterStatusQueryEnvelope struct { - Payload *GetClusterStatusQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetClusterStatusQueryEnvelope) Reset() { *m = GetClusterStatusQueryEnvelope{} } -func (m *GetClusterStatusQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetClusterStatusQueryEnvelope) ProtoMessage() {} -func (*GetClusterStatusQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{15} + Payload *GetClusterStatusQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetClusterStatusQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetClusterStatusQueryEnvelope.Unmarshal(m, b) -} -func (m *GetClusterStatusQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetClusterStatusQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetClusterStatusQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterStatusQueryEnvelope.Merge(m, src) +func (x *GetClusterStatusQueryEnvelope) Reset() { + *x = GetClusterStatusQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetClusterStatusQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetClusterStatusQueryEnvelope.Size(m) + +func (x *GetClusterStatusQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetClusterStatusQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterStatusQueryEnvelope.DiscardUnknown(m) + +func (*GetClusterStatusQueryEnvelope) ProtoMessage() {} + +func (x *GetClusterStatusQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetClusterStatusQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetClusterStatusQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetClusterStatusQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{15} +} -func (m *GetClusterStatusQueryEnvelope) GetPayload() *GetClusterStatusQuery { - if m != nil { - return m.Payload +func (x *GetClusterStatusQueryEnvelope) GetPayload() *GetClusterStatusQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetClusterStatusQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetClusterStatusQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetClusterStatusQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - NoCertificates bool `protobuf:"varint,2,opt,name=noCertificates,proto3" json:"noCertificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetClusterStatusQuery) Reset() { *m = GetClusterStatusQuery{} } -func (m *GetClusterStatusQuery) String() string { return proto.CompactTextString(m) } -func (*GetClusterStatusQuery) ProtoMessage() {} -func (*GetClusterStatusQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{16} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + NoCertificates bool `protobuf:"varint,2,opt,name=noCertificates,proto3" json:"noCertificates,omitempty"` } -func (m *GetClusterStatusQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetClusterStatusQuery.Unmarshal(m, b) -} -func (m *GetClusterStatusQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetClusterStatusQuery.Marshal(b, m, deterministic) -} -func (m *GetClusterStatusQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterStatusQuery.Merge(m, src) +func (x *GetClusterStatusQuery) Reset() { + *x = GetClusterStatusQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetClusterStatusQuery) XXX_Size() int { - return xxx_messageInfo_GetClusterStatusQuery.Size(m) + +func (x *GetClusterStatusQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetClusterStatusQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterStatusQuery.DiscardUnknown(m) + +func (*GetClusterStatusQuery) ProtoMessage() {} + +func (x *GetClusterStatusQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetClusterStatusQuery proto.InternalMessageInfo +// Deprecated: Use GetClusterStatusQuery.ProtoReflect.Descriptor instead. +func (*GetClusterStatusQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{16} +} -func (m *GetClusterStatusQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetClusterStatusQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetClusterStatusQuery) GetNoCertificates() bool { - if m != nil { - return m.NoCertificates +func (x *GetClusterStatusQuery) GetNoCertificates() bool { + if x != nil { + return x.NoCertificates } return false } type GetBlockQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - Augmented bool `protobuf:"varint,3,opt,name=augmented,proto3" json:"augmented,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBlockQuery) Reset() { *m = GetBlockQuery{} } -func (m *GetBlockQuery) String() string { return proto.CompactTextString(m) } -func (*GetBlockQuery) ProtoMessage() {} -func (*GetBlockQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{17} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + Augmented bool `protobuf:"varint,3,opt,name=augmented,proto3" json:"augmented,omitempty"` } -func (m *GetBlockQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlockQuery.Unmarshal(m, b) -} -func (m *GetBlockQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlockQuery.Marshal(b, m, deterministic) -} -func (m *GetBlockQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlockQuery.Merge(m, src) +func (x *GetBlockQuery) Reset() { + *x = GetBlockQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlockQuery) XXX_Size() int { - return xxx_messageInfo_GetBlockQuery.Size(m) + +func (x *GetBlockQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlockQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlockQuery.DiscardUnknown(m) + +func (*GetBlockQuery) ProtoMessage() {} + +func (x *GetBlockQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetBlockQuery proto.InternalMessageInfo +// Deprecated: Use GetBlockQuery.ProtoReflect.Descriptor instead. +func (*GetBlockQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{17} +} -func (m *GetBlockQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetBlockQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetBlockQuery) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *GetBlockQuery) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } -func (m *GetBlockQuery) GetAugmented() bool { - if m != nil { - return m.Augmented +func (x *GetBlockQuery) GetAugmented() bool { + if x != nil { + return x.Augmented } return false } type GetBlockQueryEnvelope struct { - Payload *GetBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBlockQueryEnvelope) Reset() { *m = GetBlockQueryEnvelope{} } -func (m *GetBlockQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetBlockQueryEnvelope) ProtoMessage() {} -func (*GetBlockQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{18} + Payload *GetBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetBlockQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlockQueryEnvelope.Unmarshal(m, b) -} -func (m *GetBlockQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlockQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetBlockQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlockQueryEnvelope.Merge(m, src) +func (x *GetBlockQueryEnvelope) Reset() { + *x = GetBlockQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlockQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetBlockQueryEnvelope.Size(m) + +func (x *GetBlockQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlockQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlockQueryEnvelope.DiscardUnknown(m) + +func (*GetBlockQueryEnvelope) ProtoMessage() {} + +func (x *GetBlockQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetBlockQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetBlockQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetBlockQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{18} +} -func (m *GetBlockQueryEnvelope) GetPayload() *GetBlockQuery { - if m != nil { - return m.Payload +func (x *GetBlockQueryEnvelope) GetPayload() *GetBlockQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetBlockQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetBlockQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetLastBlockQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetLastBlockQuery) Reset() { *m = GetLastBlockQuery{} } -func (m *GetLastBlockQuery) String() string { return proto.CompactTextString(m) } -func (*GetLastBlockQuery) ProtoMessage() {} -func (*GetLastBlockQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{19} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` } -func (m *GetLastBlockQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLastBlockQuery.Unmarshal(m, b) -} -func (m *GetLastBlockQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLastBlockQuery.Marshal(b, m, deterministic) -} -func (m *GetLastBlockQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLastBlockQuery.Merge(m, src) +func (x *GetLastBlockQuery) Reset() { + *x = GetLastBlockQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLastBlockQuery) XXX_Size() int { - return xxx_messageInfo_GetLastBlockQuery.Size(m) + +func (x *GetLastBlockQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLastBlockQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetLastBlockQuery.DiscardUnknown(m) + +func (*GetLastBlockQuery) ProtoMessage() {} + +func (x *GetLastBlockQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetLastBlockQuery proto.InternalMessageInfo +// Deprecated: Use GetLastBlockQuery.ProtoReflect.Descriptor instead. +func (*GetLastBlockQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{19} +} -func (m *GetLastBlockQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetLastBlockQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } type GetLastBlockQueryEnvelope struct { - Payload *GetLastBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetLastBlockQueryEnvelope) Reset() { *m = GetLastBlockQueryEnvelope{} } -func (m *GetLastBlockQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetLastBlockQueryEnvelope) ProtoMessage() {} -func (*GetLastBlockQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{20} + Payload *GetLastBlockQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetLastBlockQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLastBlockQueryEnvelope.Unmarshal(m, b) -} -func (m *GetLastBlockQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLastBlockQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetLastBlockQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLastBlockQueryEnvelope.Merge(m, src) +func (x *GetLastBlockQueryEnvelope) Reset() { + *x = GetLastBlockQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLastBlockQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetLastBlockQueryEnvelope.Size(m) + +func (x *GetLastBlockQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLastBlockQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetLastBlockQueryEnvelope.DiscardUnknown(m) + +func (*GetLastBlockQueryEnvelope) ProtoMessage() {} + +func (x *GetLastBlockQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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) } -var xxx_messageInfo_GetLastBlockQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetLastBlockQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetLastBlockQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{20} +} -func (m *GetLastBlockQueryEnvelope) GetPayload() *GetLastBlockQuery { - if m != nil { - return m.Payload +func (x *GetLastBlockQueryEnvelope) GetPayload() *GetLastBlockQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetLastBlockQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetLastBlockQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetLedgerPathQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - StartBlockNumber uint64 `protobuf:"varint,2,opt,name=start_block_number,json=startBlockNumber,proto3" json:"start_block_number,omitempty"` - EndBlockNumber uint64 `protobuf:"varint,3,opt,name=end_block_number,json=endBlockNumber,proto3" json:"end_block_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 *GetLedgerPathQuery) Reset() { *m = GetLedgerPathQuery{} } -func (m *GetLedgerPathQuery) String() string { return proto.CompactTextString(m) } -func (*GetLedgerPathQuery) ProtoMessage() {} -func (*GetLedgerPathQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{21} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + StartBlockNumber uint64 `protobuf:"varint,2,opt,name=start_block_number,json=startBlockNumber,proto3" json:"start_block_number,omitempty"` + EndBlockNumber uint64 `protobuf:"varint,3,opt,name=end_block_number,json=endBlockNumber,proto3" json:"end_block_number,omitempty"` } -func (m *GetLedgerPathQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLedgerPathQuery.Unmarshal(m, b) -} -func (m *GetLedgerPathQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLedgerPathQuery.Marshal(b, m, deterministic) -} -func (m *GetLedgerPathQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLedgerPathQuery.Merge(m, src) +func (x *GetLedgerPathQuery) Reset() { + *x = GetLedgerPathQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLedgerPathQuery) XXX_Size() int { - return xxx_messageInfo_GetLedgerPathQuery.Size(m) + +func (x *GetLedgerPathQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLedgerPathQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetLedgerPathQuery.DiscardUnknown(m) + +func (*GetLedgerPathQuery) ProtoMessage() {} + +func (x *GetLedgerPathQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetLedgerPathQuery proto.InternalMessageInfo +// Deprecated: Use GetLedgerPathQuery.ProtoReflect.Descriptor instead. +func (*GetLedgerPathQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{21} +} -func (m *GetLedgerPathQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetLedgerPathQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetLedgerPathQuery) GetStartBlockNumber() uint64 { - if m != nil { - return m.StartBlockNumber +func (x *GetLedgerPathQuery) GetStartBlockNumber() uint64 { + if x != nil { + return x.StartBlockNumber } return 0 } -func (m *GetLedgerPathQuery) GetEndBlockNumber() uint64 { - if m != nil { - return m.EndBlockNumber +func (x *GetLedgerPathQuery) GetEndBlockNumber() uint64 { + if x != nil { + return x.EndBlockNumber } return 0 } type GetLedgerPathQueryEnvelope struct { - Payload *GetLedgerPathQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetLedgerPathQueryEnvelope) Reset() { *m = GetLedgerPathQueryEnvelope{} } -func (m *GetLedgerPathQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetLedgerPathQueryEnvelope) ProtoMessage() {} -func (*GetLedgerPathQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{22} + Payload *GetLedgerPathQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetLedgerPathQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLedgerPathQueryEnvelope.Unmarshal(m, b) -} -func (m *GetLedgerPathQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLedgerPathQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetLedgerPathQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLedgerPathQueryEnvelope.Merge(m, src) +func (x *GetLedgerPathQueryEnvelope) Reset() { + *x = GetLedgerPathQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLedgerPathQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetLedgerPathQueryEnvelope.Size(m) + +func (x *GetLedgerPathQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLedgerPathQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetLedgerPathQueryEnvelope.DiscardUnknown(m) + +func (*GetLedgerPathQueryEnvelope) ProtoMessage() {} + +func (x *GetLedgerPathQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetLedgerPathQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetLedgerPathQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetLedgerPathQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{22} +} -func (m *GetLedgerPathQueryEnvelope) GetPayload() *GetLedgerPathQuery { - if m != nil { - return m.Payload +func (x *GetLedgerPathQueryEnvelope) GetPayload() *GetLedgerPathQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetLedgerPathQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetLedgerPathQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetTxProofQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxProofQuery) Reset() { *m = GetTxProofQuery{} } -func (m *GetTxProofQuery) String() string { return proto.CompactTextString(m) } -func (*GetTxProofQuery) ProtoMessage() {} -func (*GetTxProofQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{23} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + TxIndex uint64 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` } -func (m *GetTxProofQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxProofQuery.Unmarshal(m, b) -} -func (m *GetTxProofQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxProofQuery.Marshal(b, m, deterministic) -} -func (m *GetTxProofQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxProofQuery.Merge(m, src) +func (x *GetTxProofQuery) Reset() { + *x = GetTxProofQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxProofQuery) XXX_Size() int { - return xxx_messageInfo_GetTxProofQuery.Size(m) + +func (x *GetTxProofQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxProofQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxProofQuery.DiscardUnknown(m) + +func (*GetTxProofQuery) ProtoMessage() {} + +func (x *GetTxProofQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetTxProofQuery proto.InternalMessageInfo +// Deprecated: Use GetTxProofQuery.ProtoReflect.Descriptor instead. +func (*GetTxProofQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{23} +} -func (m *GetTxProofQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetTxProofQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetTxProofQuery) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *GetTxProofQuery) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } -func (m *GetTxProofQuery) GetTxIndex() uint64 { - if m != nil { - return m.TxIndex +func (x *GetTxProofQuery) GetTxIndex() uint64 { + if x != nil { + return x.TxIndex } return 0 } type GetTxProofQueryEnvelope struct { - Payload *GetTxProofQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxProofQueryEnvelope) Reset() { *m = GetTxProofQueryEnvelope{} } -func (m *GetTxProofQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTxProofQueryEnvelope) ProtoMessage() {} -func (*GetTxProofQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{24} + Payload *GetTxProofQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetTxProofQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxProofQueryEnvelope.Unmarshal(m, b) -} -func (m *GetTxProofQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxProofQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTxProofQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxProofQueryEnvelope.Merge(m, src) +func (x *GetTxProofQueryEnvelope) Reset() { + *x = GetTxProofQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxProofQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTxProofQueryEnvelope.Size(m) + +func (x *GetTxProofQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxProofQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxProofQueryEnvelope.DiscardUnknown(m) + +func (*GetTxProofQueryEnvelope) ProtoMessage() {} + +func (x *GetTxProofQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetTxProofQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetTxProofQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetTxProofQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{24} +} -func (m *GetTxProofQueryEnvelope) GetPayload() *GetTxProofQuery { - if m != nil { - return m.Payload +func (x *GetTxProofQueryEnvelope) GetPayload() *GetTxProofQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetTxProofQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetTxProofQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataProofQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - DbName string `protobuf:"bytes,3,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - IsDeleted bool `protobuf:"varint,5,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDataProofQuery) Reset() { *m = GetDataProofQuery{} } -func (m *GetDataProofQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataProofQuery) ProtoMessage() {} -func (*GetDataProofQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{25} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataProofQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProofQuery.Unmarshal(m, b) + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + DbName string `protobuf:"bytes,3,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + IsDeleted bool `protobuf:"varint,5,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` } -func (m *GetDataProofQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProofQuery.Marshal(b, m, deterministic) -} -func (m *GetDataProofQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProofQuery.Merge(m, src) + +func (x *GetDataProofQuery) Reset() { + *x = GetDataProofQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProofQuery) XXX_Size() int { - return xxx_messageInfo_GetDataProofQuery.Size(m) + +func (x *GetDataProofQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProofQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProofQuery.DiscardUnknown(m) + +func (*GetDataProofQuery) ProtoMessage() {} + +func (x *GetDataProofQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataProofQuery proto.InternalMessageInfo +// Deprecated: Use GetDataProofQuery.ProtoReflect.Descriptor instead. +func (*GetDataProofQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{25} +} -func (m *GetDataProofQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataProofQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataProofQuery) GetBlockNumber() uint64 { - if m != nil { - return m.BlockNumber +func (x *GetDataProofQuery) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber } return 0 } -func (m *GetDataProofQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDataProofQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetDataProofQuery) GetKey() string { - if m != nil { - return m.Key +func (x *GetDataProofQuery) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *GetDataProofQuery) GetIsDeleted() bool { - if m != nil { - return m.IsDeleted +func (x *GetDataProofQuery) GetIsDeleted() bool { + if x != nil { + return x.IsDeleted } return false } type GetDataProofQueryEnvelope struct { - Payload *GetDataProofQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataProofQueryEnvelope) Reset() { *m = GetDataProofQueryEnvelope{} } -func (m *GetDataProofQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataProofQueryEnvelope) ProtoMessage() {} -func (*GetDataProofQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{26} + Payload *GetDataProofQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataProofQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProofQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataProofQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProofQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataProofQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProofQueryEnvelope.Merge(m, src) +func (x *GetDataProofQueryEnvelope) Reset() { + *x = GetDataProofQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProofQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataProofQueryEnvelope.Size(m) + +func (x *GetDataProofQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProofQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProofQueryEnvelope.DiscardUnknown(m) + +func (*GetDataProofQueryEnvelope) ProtoMessage() {} + +func (x *GetDataProofQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataProofQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataProofQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataProofQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{26} +} -func (m *GetDataProofQueryEnvelope) GetPayload() *GetDataProofQuery { - if m != nil { - return m.Payload +func (x *GetDataProofQueryEnvelope) GetPayload() *GetDataProofQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataProofQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataProofQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetHistoricalDataQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Version *Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Direction string `protobuf:"bytes,5,opt,name=direction,proto3" json:"direction,omitempty"` - OnlyDeletes bool `protobuf:"varint,6,opt,name=only_deletes,json=onlyDeletes,proto3" json:"only_deletes,omitempty"` - MostRecent bool `protobuf:"varint,7,opt,name=most_recent,json=mostRecent,proto3" json:"most_recent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetHistoricalDataQuery) Reset() { *m = GetHistoricalDataQuery{} } -func (m *GetHistoricalDataQuery) String() string { return proto.CompactTextString(m) } -func (*GetHistoricalDataQuery) ProtoMessage() {} -func (*GetHistoricalDataQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{27} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetHistoricalDataQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetHistoricalDataQuery.Unmarshal(m, b) + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Version *Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Direction string `protobuf:"bytes,5,opt,name=direction,proto3" json:"direction,omitempty"` + OnlyDeletes bool `protobuf:"varint,6,opt,name=only_deletes,json=onlyDeletes,proto3" json:"only_deletes,omitempty"` + MostRecent bool `protobuf:"varint,7,opt,name=most_recent,json=mostRecent,proto3" json:"most_recent,omitempty"` } -func (m *GetHistoricalDataQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetHistoricalDataQuery.Marshal(b, m, deterministic) -} -func (m *GetHistoricalDataQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHistoricalDataQuery.Merge(m, src) + +func (x *GetHistoricalDataQuery) Reset() { + *x = GetHistoricalDataQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetHistoricalDataQuery) XXX_Size() int { - return xxx_messageInfo_GetHistoricalDataQuery.Size(m) + +func (x *GetHistoricalDataQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetHistoricalDataQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetHistoricalDataQuery.DiscardUnknown(m) + +func (*GetHistoricalDataQuery) ProtoMessage() {} + +func (x *GetHistoricalDataQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetHistoricalDataQuery proto.InternalMessageInfo +// Deprecated: Use GetHistoricalDataQuery.ProtoReflect.Descriptor instead. +func (*GetHistoricalDataQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{27} +} -func (m *GetHistoricalDataQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetHistoricalDataQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetHistoricalDataQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetHistoricalDataQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetHistoricalDataQuery) GetKey() string { - if m != nil { - return m.Key +func (x *GetHistoricalDataQuery) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *GetHistoricalDataQuery) GetVersion() *Version { - if m != nil { - return m.Version +func (x *GetHistoricalDataQuery) GetVersion() *Version { + if x != nil { + return x.Version } return nil } -func (m *GetHistoricalDataQuery) GetDirection() string { - if m != nil { - return m.Direction +func (x *GetHistoricalDataQuery) GetDirection() string { + if x != nil { + return x.Direction } return "" } -func (m *GetHistoricalDataQuery) GetOnlyDeletes() bool { - if m != nil { - return m.OnlyDeletes +func (x *GetHistoricalDataQuery) GetOnlyDeletes() bool { + if x != nil { + return x.OnlyDeletes } return false } -func (m *GetHistoricalDataQuery) GetMostRecent() bool { - if m != nil { - return m.MostRecent +func (x *GetHistoricalDataQuery) GetMostRecent() bool { + if x != nil { + return x.MostRecent } return false } type GetHistoricalDataQueryEnvelope struct { - Payload *GetHistoricalDataQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetHistoricalDataQueryEnvelope) Reset() { *m = GetHistoricalDataQueryEnvelope{} } -func (m *GetHistoricalDataQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetHistoricalDataQueryEnvelope) ProtoMessage() {} -func (*GetHistoricalDataQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{28} + Payload *GetHistoricalDataQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetHistoricalDataQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetHistoricalDataQueryEnvelope.Unmarshal(m, b) -} -func (m *GetHistoricalDataQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetHistoricalDataQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetHistoricalDataQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHistoricalDataQueryEnvelope.Merge(m, src) +func (x *GetHistoricalDataQueryEnvelope) Reset() { + *x = GetHistoricalDataQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetHistoricalDataQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetHistoricalDataQueryEnvelope.Size(m) + +func (x *GetHistoricalDataQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetHistoricalDataQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetHistoricalDataQueryEnvelope.DiscardUnknown(m) + +func (*GetHistoricalDataQueryEnvelope) ProtoMessage() {} + +func (x *GetHistoricalDataQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetHistoricalDataQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetHistoricalDataQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetHistoricalDataQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{28} +} -func (m *GetHistoricalDataQueryEnvelope) GetPayload() *GetHistoricalDataQuery { - if m != nil { - return m.Payload +func (x *GetHistoricalDataQueryEnvelope) GetPayload() *GetHistoricalDataQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetHistoricalDataQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetHistoricalDataQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataReadersQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataReadersQuery) Reset() { *m = GetDataReadersQuery{} } -func (m *GetDataReadersQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataReadersQuery) ProtoMessage() {} -func (*GetDataReadersQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{29} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } -func (m *GetDataReadersQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadersQuery.Unmarshal(m, b) -} -func (m *GetDataReadersQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadersQuery.Marshal(b, m, deterministic) -} -func (m *GetDataReadersQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadersQuery.Merge(m, src) +func (x *GetDataReadersQuery) Reset() { + *x = GetDataReadersQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadersQuery) XXX_Size() int { - return xxx_messageInfo_GetDataReadersQuery.Size(m) + +func (x *GetDataReadersQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadersQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadersQuery.DiscardUnknown(m) + +func (*GetDataReadersQuery) ProtoMessage() {} + +func (x *GetDataReadersQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataReadersQuery proto.InternalMessageInfo +// Deprecated: Use GetDataReadersQuery.ProtoReflect.Descriptor instead. +func (*GetDataReadersQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{29} +} -func (m *GetDataReadersQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataReadersQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataReadersQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDataReadersQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetDataReadersQuery) GetKey() string { - if m != nil { - return m.Key +func (x *GetDataReadersQuery) GetKey() string { + if x != nil { + return x.Key } return "" } type GetDataReadersQueryEnvelope struct { - Payload *GetDataReadersQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataReadersQueryEnvelope) Reset() { *m = GetDataReadersQueryEnvelope{} } -func (m *GetDataReadersQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataReadersQueryEnvelope) ProtoMessage() {} -func (*GetDataReadersQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{30} + Payload *GetDataReadersQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataReadersQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadersQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataReadersQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadersQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataReadersQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadersQueryEnvelope.Merge(m, src) +func (x *GetDataReadersQueryEnvelope) Reset() { + *x = GetDataReadersQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadersQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataReadersQueryEnvelope.Size(m) + +func (x *GetDataReadersQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadersQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadersQueryEnvelope.DiscardUnknown(m) + +func (*GetDataReadersQueryEnvelope) ProtoMessage() {} + +func (x *GetDataReadersQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataReadersQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataReadersQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataReadersQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{30} +} -func (m *GetDataReadersQueryEnvelope) GetPayload() *GetDataReadersQuery { - if m != nil { - return m.Payload +func (x *GetDataReadersQueryEnvelope) GetPayload() *GetDataReadersQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataReadersQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataReadersQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataWritersQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataWritersQuery) Reset() { *m = GetDataWritersQuery{} } -func (m *GetDataWritersQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataWritersQuery) ProtoMessage() {} -func (*GetDataWritersQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{31} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } -func (m *GetDataWritersQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWritersQuery.Unmarshal(m, b) -} -func (m *GetDataWritersQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWritersQuery.Marshal(b, m, deterministic) -} -func (m *GetDataWritersQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWritersQuery.Merge(m, src) +func (x *GetDataWritersQuery) Reset() { + *x = GetDataWritersQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWritersQuery) XXX_Size() int { - return xxx_messageInfo_GetDataWritersQuery.Size(m) + +func (x *GetDataWritersQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWritersQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWritersQuery.DiscardUnknown(m) + +func (*GetDataWritersQuery) ProtoMessage() {} + +func (x *GetDataWritersQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataWritersQuery proto.InternalMessageInfo +// Deprecated: Use GetDataWritersQuery.ProtoReflect.Descriptor instead. +func (*GetDataWritersQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{31} +} -func (m *GetDataWritersQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataWritersQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataWritersQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *GetDataWritersQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *GetDataWritersQuery) GetKey() string { - if m != nil { - return m.Key +func (x *GetDataWritersQuery) GetKey() string { + if x != nil { + return x.Key } return "" } type GetDataWritersQueryEnvelope struct { - Payload *GetDataWritersQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataWritersQueryEnvelope) Reset() { *m = GetDataWritersQueryEnvelope{} } -func (m *GetDataWritersQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataWritersQueryEnvelope) ProtoMessage() {} -func (*GetDataWritersQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{32} + Payload *GetDataWritersQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataWritersQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWritersQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataWritersQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWritersQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataWritersQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWritersQueryEnvelope.Merge(m, src) +func (x *GetDataWritersQueryEnvelope) Reset() { + *x = GetDataWritersQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWritersQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataWritersQueryEnvelope.Size(m) + +func (x *GetDataWritersQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWritersQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWritersQueryEnvelope.DiscardUnknown(m) + +func (*GetDataWritersQueryEnvelope) ProtoMessage() {} + +func (x *GetDataWritersQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataWritersQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataWritersQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataWritersQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{32} +} -func (m *GetDataWritersQueryEnvelope) GetPayload() *GetDataWritersQuery { - if m != nil { - return m.Payload +func (x *GetDataWritersQueryEnvelope) GetPayload() *GetDataWritersQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataWritersQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataWritersQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataReadByQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataReadByQuery) Reset() { *m = GetDataReadByQuery{} } -func (m *GetDataReadByQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataReadByQuery) ProtoMessage() {} -func (*GetDataReadByQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{33} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` } -func (m *GetDataReadByQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadByQuery.Unmarshal(m, b) -} -func (m *GetDataReadByQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadByQuery.Marshal(b, m, deterministic) -} -func (m *GetDataReadByQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadByQuery.Merge(m, src) +func (x *GetDataReadByQuery) Reset() { + *x = GetDataReadByQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadByQuery) XXX_Size() int { - return xxx_messageInfo_GetDataReadByQuery.Size(m) + +func (x *GetDataReadByQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadByQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadByQuery.DiscardUnknown(m) + +func (*GetDataReadByQuery) ProtoMessage() {} + +func (x *GetDataReadByQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_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_GetDataReadByQuery proto.InternalMessageInfo +// Deprecated: Use GetDataReadByQuery.ProtoReflect.Descriptor instead. +func (*GetDataReadByQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{33} +} -func (m *GetDataReadByQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataReadByQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataReadByQuery) GetTargetUserId() string { - if m != nil { - return m.TargetUserId +func (x *GetDataReadByQuery) GetTargetUserId() string { + if x != nil { + return x.TargetUserId } return "" } type GetDataReadByQueryEnvelope struct { - Payload *GetDataReadByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataReadByQueryEnvelope) Reset() { *m = GetDataReadByQueryEnvelope{} } -func (m *GetDataReadByQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataReadByQueryEnvelope) ProtoMessage() {} -func (*GetDataReadByQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{34} + Payload *GetDataReadByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataReadByQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadByQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataReadByQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadByQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataReadByQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadByQueryEnvelope.Merge(m, src) +func (x *GetDataReadByQueryEnvelope) Reset() { + *x = GetDataReadByQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadByQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataReadByQueryEnvelope.Size(m) + +func (x *GetDataReadByQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadByQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadByQueryEnvelope.DiscardUnknown(m) + +func (*GetDataReadByQueryEnvelope) ProtoMessage() {} + +func (x *GetDataReadByQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[34] + 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_GetDataReadByQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataReadByQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataReadByQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{34} +} -func (m *GetDataReadByQueryEnvelope) GetPayload() *GetDataReadByQuery { - if m != nil { - return m.Payload +func (x *GetDataReadByQueryEnvelope) GetPayload() *GetDataReadByQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataReadByQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataReadByQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataWrittenByQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataWrittenByQuery) Reset() { *m = GetDataWrittenByQuery{} } -func (m *GetDataWrittenByQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataWrittenByQuery) ProtoMessage() {} -func (*GetDataWrittenByQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{35} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` } -func (m *GetDataWrittenByQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWrittenByQuery.Unmarshal(m, b) -} -func (m *GetDataWrittenByQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWrittenByQuery.Marshal(b, m, deterministic) -} -func (m *GetDataWrittenByQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWrittenByQuery.Merge(m, src) +func (x *GetDataWrittenByQuery) Reset() { + *x = GetDataWrittenByQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWrittenByQuery) XXX_Size() int { - return xxx_messageInfo_GetDataWrittenByQuery.Size(m) + +func (x *GetDataWrittenByQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWrittenByQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWrittenByQuery.DiscardUnknown(m) + +func (*GetDataWrittenByQuery) ProtoMessage() {} + +func (x *GetDataWrittenByQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[35] + 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_GetDataWrittenByQuery proto.InternalMessageInfo +// Deprecated: Use GetDataWrittenByQuery.ProtoReflect.Descriptor instead. +func (*GetDataWrittenByQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{35} +} -func (m *GetDataWrittenByQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataWrittenByQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataWrittenByQuery) GetTargetUserId() string { - if m != nil { - return m.TargetUserId +func (x *GetDataWrittenByQuery) GetTargetUserId() string { + if x != nil { + return x.TargetUserId } return "" } type GetDataDeletedByQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataDeletedByQuery) Reset() { *m = GetDataDeletedByQuery{} } -func (m *GetDataDeletedByQuery) String() string { return proto.CompactTextString(m) } -func (*GetDataDeletedByQuery) ProtoMessage() {} -func (*GetDataDeletedByQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{36} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` } -func (m *GetDataDeletedByQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataDeletedByQuery.Unmarshal(m, b) -} -func (m *GetDataDeletedByQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataDeletedByQuery.Marshal(b, m, deterministic) -} -func (m *GetDataDeletedByQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataDeletedByQuery.Merge(m, src) +func (x *GetDataDeletedByQuery) Reset() { + *x = GetDataDeletedByQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataDeletedByQuery) XXX_Size() int { - return xxx_messageInfo_GetDataDeletedByQuery.Size(m) + +func (x *GetDataDeletedByQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataDeletedByQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataDeletedByQuery.DiscardUnknown(m) + +func (*GetDataDeletedByQuery) ProtoMessage() {} + +func (x *GetDataDeletedByQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[36] + 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_GetDataDeletedByQuery proto.InternalMessageInfo +// Deprecated: Use GetDataDeletedByQuery.ProtoReflect.Descriptor instead. +func (*GetDataDeletedByQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{36} +} -func (m *GetDataDeletedByQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetDataDeletedByQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetDataDeletedByQuery) GetTargetUserId() string { - if m != nil { - return m.TargetUserId +func (x *GetDataDeletedByQuery) GetTargetUserId() string { + if x != nil { + return x.TargetUserId } return "" } type GetDataDeletedByQueryEnvelope struct { - Payload *GetDataDeletedByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataDeletedByQueryEnvelope) Reset() { *m = GetDataDeletedByQueryEnvelope{} } -func (m *GetDataDeletedByQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataDeletedByQueryEnvelope) ProtoMessage() {} -func (*GetDataDeletedByQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{37} + Payload *GetDataDeletedByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataDeletedByQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataDeletedByQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataDeletedByQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataDeletedByQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataDeletedByQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataDeletedByQueryEnvelope.Merge(m, src) +func (x *GetDataDeletedByQueryEnvelope) Reset() { + *x = GetDataDeletedByQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataDeletedByQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataDeletedByQueryEnvelope.Size(m) + +func (x *GetDataDeletedByQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataDeletedByQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataDeletedByQueryEnvelope.DiscardUnknown(m) + +func (*GetDataDeletedByQueryEnvelope) ProtoMessage() {} + +func (x *GetDataDeletedByQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[37] + 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_GetDataDeletedByQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataDeletedByQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataDeletedByQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{37} +} -func (m *GetDataDeletedByQueryEnvelope) GetPayload() *GetDataDeletedByQuery { - if m != nil { - return m.Payload +func (x *GetDataDeletedByQueryEnvelope) GetPayload() *GetDataDeletedByQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataDeletedByQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataDeletedByQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataWrittenByQueryEnvelope struct { - Payload *GetDataWrittenByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataWrittenByQueryEnvelope) Reset() { *m = GetDataWrittenByQueryEnvelope{} } -func (m *GetDataWrittenByQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataWrittenByQueryEnvelope) ProtoMessage() {} -func (*GetDataWrittenByQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{38} + Payload *GetDataWrittenByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataWrittenByQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWrittenByQueryEnvelope.Unmarshal(m, b) -} -func (m *GetDataWrittenByQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWrittenByQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataWrittenByQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWrittenByQueryEnvelope.Merge(m, src) +func (x *GetDataWrittenByQueryEnvelope) Reset() { + *x = GetDataWrittenByQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWrittenByQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataWrittenByQueryEnvelope.Size(m) + +func (x *GetDataWrittenByQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWrittenByQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWrittenByQueryEnvelope.DiscardUnknown(m) + +func (*GetDataWrittenByQueryEnvelope) ProtoMessage() {} + +func (x *GetDataWrittenByQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[38] + 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_GetDataWrittenByQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataWrittenByQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataWrittenByQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{38} +} -func (m *GetDataWrittenByQueryEnvelope) GetPayload() *GetDataWrittenByQuery { - if m != nil { - return m.Payload +func (x *GetDataWrittenByQueryEnvelope) GetPayload() *GetDataWrittenByQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetDataWrittenByQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataWrittenByQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetTxIDsSubmittedByQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxIDsSubmittedByQuery) Reset() { *m = GetTxIDsSubmittedByQuery{} } -func (m *GetTxIDsSubmittedByQuery) String() string { return proto.CompactTextString(m) } -func (*GetTxIDsSubmittedByQuery) ProtoMessage() {} -func (*GetTxIDsSubmittedByQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{39} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` } -func (m *GetTxIDsSubmittedByQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxIDsSubmittedByQuery.Unmarshal(m, b) -} -func (m *GetTxIDsSubmittedByQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxIDsSubmittedByQuery.Marshal(b, m, deterministic) -} -func (m *GetTxIDsSubmittedByQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxIDsSubmittedByQuery.Merge(m, src) +func (x *GetTxIDsSubmittedByQuery) Reset() { + *x = GetTxIDsSubmittedByQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxIDsSubmittedByQuery) XXX_Size() int { - return xxx_messageInfo_GetTxIDsSubmittedByQuery.Size(m) + +func (x *GetTxIDsSubmittedByQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxIDsSubmittedByQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxIDsSubmittedByQuery.DiscardUnknown(m) + +func (*GetTxIDsSubmittedByQuery) ProtoMessage() {} + +func (x *GetTxIDsSubmittedByQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[39] + 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_GetTxIDsSubmittedByQuery proto.InternalMessageInfo +// Deprecated: Use GetTxIDsSubmittedByQuery.ProtoReflect.Descriptor instead. +func (*GetTxIDsSubmittedByQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{39} +} -func (m *GetTxIDsSubmittedByQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetTxIDsSubmittedByQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetTxIDsSubmittedByQuery) GetTargetUserId() string { - if m != nil { - return m.TargetUserId +func (x *GetTxIDsSubmittedByQuery) GetTargetUserId() string { + if x != nil { + return x.TargetUserId } return "" } type GetTxIDsSubmittedByQueryEnvelope struct { - Payload *GetTxIDsSubmittedByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxIDsSubmittedByQueryEnvelope) Reset() { *m = GetTxIDsSubmittedByQueryEnvelope{} } -func (m *GetTxIDsSubmittedByQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTxIDsSubmittedByQueryEnvelope) ProtoMessage() {} -func (*GetTxIDsSubmittedByQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{40} + Payload *GetTxIDsSubmittedByQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetTxIDsSubmittedByQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxIDsSubmittedByQueryEnvelope.Unmarshal(m, b) -} -func (m *GetTxIDsSubmittedByQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxIDsSubmittedByQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTxIDsSubmittedByQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxIDsSubmittedByQueryEnvelope.Merge(m, src) +func (x *GetTxIDsSubmittedByQueryEnvelope) Reset() { + *x = GetTxIDsSubmittedByQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxIDsSubmittedByQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTxIDsSubmittedByQueryEnvelope.Size(m) + +func (x *GetTxIDsSubmittedByQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxIDsSubmittedByQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxIDsSubmittedByQueryEnvelope.DiscardUnknown(m) + +func (*GetTxIDsSubmittedByQueryEnvelope) ProtoMessage() {} + +func (x *GetTxIDsSubmittedByQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[40] + 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_GetTxIDsSubmittedByQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetTxIDsSubmittedByQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetTxIDsSubmittedByQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{40} +} -func (m *GetTxIDsSubmittedByQueryEnvelope) GetPayload() *GetTxIDsSubmittedByQuery { - if m != nil { - return m.Payload +func (x *GetTxIDsSubmittedByQueryEnvelope) GetPayload() *GetTxIDsSubmittedByQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetTxIDsSubmittedByQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetTxIDsSubmittedByQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetTxReceiptQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxReceiptQuery) Reset() { *m = GetTxReceiptQuery{} } -func (m *GetTxReceiptQuery) String() string { return proto.CompactTextString(m) } -func (*GetTxReceiptQuery) ProtoMessage() {} -func (*GetTxReceiptQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{41} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` } -func (m *GetTxReceiptQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxReceiptQuery.Unmarshal(m, b) -} -func (m *GetTxReceiptQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxReceiptQuery.Marshal(b, m, deterministic) -} -func (m *GetTxReceiptQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxReceiptQuery.Merge(m, src) +func (x *GetTxReceiptQuery) Reset() { + *x = GetTxReceiptQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxReceiptQuery) XXX_Size() int { - return xxx_messageInfo_GetTxReceiptQuery.Size(m) + +func (x *GetTxReceiptQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxReceiptQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxReceiptQuery.DiscardUnknown(m) + +func (*GetTxReceiptQuery) ProtoMessage() {} + +func (x *GetTxReceiptQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[41] + 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_GetTxReceiptQuery proto.InternalMessageInfo +// Deprecated: Use GetTxReceiptQuery.ProtoReflect.Descriptor instead. +func (*GetTxReceiptQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{41} +} -func (m *GetTxReceiptQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetTxReceiptQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetTxReceiptQuery) GetTxId() string { - if m != nil { - return m.TxId +func (x *GetTxReceiptQuery) GetTxId() string { + if x != nil { + return x.TxId } return "" } type GetTxReceiptQueryEnvelope struct { - Payload *GetTxReceiptQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxReceiptQueryEnvelope) Reset() { *m = GetTxReceiptQueryEnvelope{} } -func (m *GetTxReceiptQueryEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTxReceiptQueryEnvelope) ProtoMessage() {} -func (*GetTxReceiptQueryEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{42} + Payload *GetTxReceiptQuery `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetTxReceiptQueryEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxReceiptQueryEnvelope.Unmarshal(m, b) -} -func (m *GetTxReceiptQueryEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxReceiptQueryEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTxReceiptQueryEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxReceiptQueryEnvelope.Merge(m, src) +func (x *GetTxReceiptQueryEnvelope) Reset() { + *x = GetTxReceiptQueryEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxReceiptQueryEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTxReceiptQueryEnvelope.Size(m) + +func (x *GetTxReceiptQueryEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxReceiptQueryEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxReceiptQueryEnvelope.DiscardUnknown(m) + +func (*GetTxReceiptQueryEnvelope) ProtoMessage() {} + +func (x *GetTxReceiptQueryEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[42] + 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_GetTxReceiptQueryEnvelope proto.InternalMessageInfo +// Deprecated: Use GetTxReceiptQueryEnvelope.ProtoReflect.Descriptor instead. +func (*GetTxReceiptQueryEnvelope) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{42} +} -func (m *GetTxReceiptQueryEnvelope) GetPayload() *GetTxReceiptQuery { - if m != nil { - return m.Payload +func (x *GetTxReceiptQueryEnvelope) GetPayload() *GetTxReceiptQuery { + if x != nil { + return x.Payload } return nil } -func (m *GetTxReceiptQueryEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetTxReceiptQueryEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetMostRecentUserOrNodeQuery struct { - Type GetMostRecentUserOrNodeQuery_Type `protobuf:"varint,1,opt,name=type,proto3,enum=types.GetMostRecentUserOrNodeQuery_Type" json:"type,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - Version *Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMostRecentUserOrNodeQuery) Reset() { *m = GetMostRecentUserOrNodeQuery{} } -func (m *GetMostRecentUserOrNodeQuery) String() string { return proto.CompactTextString(m) } -func (*GetMostRecentUserOrNodeQuery) ProtoMessage() {} -func (*GetMostRecentUserOrNodeQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{43} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetMostRecentUserOrNodeQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetMostRecentUserOrNodeQuery.Unmarshal(m, b) -} -func (m *GetMostRecentUserOrNodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetMostRecentUserOrNodeQuery.Marshal(b, m, deterministic) + Type GetMostRecentUserOrNodeQuery_Type `protobuf:"varint,1,opt,name=type,proto3,enum=types.GetMostRecentUserOrNodeQuery_Type" json:"type,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + Version *Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` } -func (m *GetMostRecentUserOrNodeQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMostRecentUserOrNodeQuery.Merge(m, src) + +func (x *GetMostRecentUserOrNodeQuery) Reset() { + *x = GetMostRecentUserOrNodeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetMostRecentUserOrNodeQuery) XXX_Size() int { - return xxx_messageInfo_GetMostRecentUserOrNodeQuery.Size(m) + +func (x *GetMostRecentUserOrNodeQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetMostRecentUserOrNodeQuery) XXX_DiscardUnknown() { - xxx_messageInfo_GetMostRecentUserOrNodeQuery.DiscardUnknown(m) + +func (*GetMostRecentUserOrNodeQuery) ProtoMessage() {} + +func (x *GetMostRecentUserOrNodeQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[43] + 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_GetMostRecentUserOrNodeQuery proto.InternalMessageInfo +// Deprecated: Use GetMostRecentUserOrNodeQuery.ProtoReflect.Descriptor instead. +func (*GetMostRecentUserOrNodeQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{43} +} -func (m *GetMostRecentUserOrNodeQuery) GetType() GetMostRecentUserOrNodeQuery_Type { - if m != nil { - return m.Type +func (x *GetMostRecentUserOrNodeQuery) GetType() GetMostRecentUserOrNodeQuery_Type { + if x != nil { + return x.Type } return GetMostRecentUserOrNodeQuery_USER } -func (m *GetMostRecentUserOrNodeQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *GetMostRecentUserOrNodeQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *GetMostRecentUserOrNodeQuery) GetId() string { - if m != nil { - return m.Id +func (x *GetMostRecentUserOrNodeQuery) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *GetMostRecentUserOrNodeQuery) GetVersion() *Version { - if m != nil { - return m.Version +func (x *GetMostRecentUserOrNodeQuery) GetVersion() *Version { + if x != nil { + return x.Version } return nil } type DataJSONQuery struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataJSONQuery) Reset() { *m = DataJSONQuery{} } -func (m *DataJSONQuery) String() string { return proto.CompactTextString(m) } -func (*DataJSONQuery) ProtoMessage() {} -func (*DataJSONQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_5c6ac9b241082464, []int{44} + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` } -func (m *DataJSONQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataJSONQuery.Unmarshal(m, b) -} -func (m *DataJSONQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataJSONQuery.Marshal(b, m, deterministic) -} -func (m *DataJSONQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataJSONQuery.Merge(m, src) +func (x *DataJSONQuery) Reset() { + *x = DataJSONQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_query_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataJSONQuery) XXX_Size() int { - return xxx_messageInfo_DataJSONQuery.Size(m) + +func (x *DataJSONQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataJSONQuery) XXX_DiscardUnknown() { - xxx_messageInfo_DataJSONQuery.DiscardUnknown(m) + +func (*DataJSONQuery) ProtoMessage() {} + +func (x *DataJSONQuery) ProtoReflect() protoreflect.Message { + mi := &file_query_proto_msgTypes[44] + 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_DataJSONQuery proto.InternalMessageInfo +// Deprecated: Use DataJSONQuery.ProtoReflect.Descriptor instead. +func (*DataJSONQuery) Descriptor() ([]byte, []int) { + return file_query_proto_rawDescGZIP(), []int{44} +} -func (m *DataJSONQuery) GetUserId() string { - if m != nil { - return m.UserId +func (x *DataJSONQuery) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *DataJSONQuery) GetDbName() string { - if m != nil { - return m.DbName +func (x *DataJSONQuery) GetDbName() string { + if x != nil { + return x.DbName } return "" } -func (m *DataJSONQuery) GetQuery() string { - if m != nil { - return m.Query +func (x *DataJSONQuery) GetQuery() string { + if x != nil { + return x.Query } return "" } -func init() { - proto.RegisterEnum("types.GetMostRecentUserOrNodeQuery_Type", GetMostRecentUserOrNodeQuery_Type_name, GetMostRecentUserOrNodeQuery_Type_value) - proto.RegisterType((*GetDBStatusQueryEnvelope)(nil), "types.GetDBStatusQueryEnvelope") - proto.RegisterType((*GetDBStatusQuery)(nil), "types.GetDBStatusQuery") - proto.RegisterType((*GetDBIndexQueryEnvelope)(nil), "types.GetDBIndexQueryEnvelope") - proto.RegisterType((*GetDBIndexQuery)(nil), "types.GetDBIndexQuery") - proto.RegisterType((*GetDataQueryEnvelope)(nil), "types.GetDataQueryEnvelope") - proto.RegisterType((*GetDataQuery)(nil), "types.GetDataQuery") - proto.RegisterType((*GetDataRangeQuery)(nil), "types.GetDataRangeQuery") - proto.RegisterType((*GetUserQueryEnvelope)(nil), "types.GetUserQueryEnvelope") - proto.RegisterType((*GetUserQuery)(nil), "types.GetUserQuery") - proto.RegisterType((*GetConfigQueryEnvelope)(nil), "types.GetConfigQueryEnvelope") - proto.RegisterType((*GetConfigQuery)(nil), "types.GetConfigQuery") - proto.RegisterType((*GetNodeConfigQueryEnvelope)(nil), "types.GetNodeConfigQueryEnvelope") - proto.RegisterType((*GetNodeConfigQuery)(nil), "types.GetNodeConfigQuery") - proto.RegisterType((*GeConfigBlockQueryEnvelope)(nil), "types.GeConfigBlockQueryEnvelope") - proto.RegisterType((*GetConfigBlockQuery)(nil), "types.GetConfigBlockQuery") - proto.RegisterType((*GetClusterStatusQueryEnvelope)(nil), "types.GetClusterStatusQueryEnvelope") - proto.RegisterType((*GetClusterStatusQuery)(nil), "types.GetClusterStatusQuery") - proto.RegisterType((*GetBlockQuery)(nil), "types.GetBlockQuery") - proto.RegisterType((*GetBlockQueryEnvelope)(nil), "types.GetBlockQueryEnvelope") - proto.RegisterType((*GetLastBlockQuery)(nil), "types.GetLastBlockQuery") - proto.RegisterType((*GetLastBlockQueryEnvelope)(nil), "types.GetLastBlockQueryEnvelope") - proto.RegisterType((*GetLedgerPathQuery)(nil), "types.GetLedgerPathQuery") - proto.RegisterType((*GetLedgerPathQueryEnvelope)(nil), "types.GetLedgerPathQueryEnvelope") - proto.RegisterType((*GetTxProofQuery)(nil), "types.GetTxProofQuery") - proto.RegisterType((*GetTxProofQueryEnvelope)(nil), "types.GetTxProofQueryEnvelope") - proto.RegisterType((*GetDataProofQuery)(nil), "types.GetDataProofQuery") - proto.RegisterType((*GetDataProofQueryEnvelope)(nil), "types.GetDataProofQueryEnvelope") - proto.RegisterType((*GetHistoricalDataQuery)(nil), "types.GetHistoricalDataQuery") - proto.RegisterType((*GetHistoricalDataQueryEnvelope)(nil), "types.GetHistoricalDataQueryEnvelope") - proto.RegisterType((*GetDataReadersQuery)(nil), "types.GetDataReadersQuery") - proto.RegisterType((*GetDataReadersQueryEnvelope)(nil), "types.GetDataReadersQueryEnvelope") - proto.RegisterType((*GetDataWritersQuery)(nil), "types.GetDataWritersQuery") - proto.RegisterType((*GetDataWritersQueryEnvelope)(nil), "types.GetDataWritersQueryEnvelope") - proto.RegisterType((*GetDataReadByQuery)(nil), "types.GetDataReadByQuery") - proto.RegisterType((*GetDataReadByQueryEnvelope)(nil), "types.GetDataReadByQueryEnvelope") - proto.RegisterType((*GetDataWrittenByQuery)(nil), "types.GetDataWrittenByQuery") - proto.RegisterType((*GetDataDeletedByQuery)(nil), "types.GetDataDeletedByQuery") - proto.RegisterType((*GetDataDeletedByQueryEnvelope)(nil), "types.GetDataDeletedByQueryEnvelope") - proto.RegisterType((*GetDataWrittenByQueryEnvelope)(nil), "types.GetDataWrittenByQueryEnvelope") - proto.RegisterType((*GetTxIDsSubmittedByQuery)(nil), "types.GetTxIDsSubmittedByQuery") - proto.RegisterType((*GetTxIDsSubmittedByQueryEnvelope)(nil), "types.GetTxIDsSubmittedByQueryEnvelope") - proto.RegisterType((*GetTxReceiptQuery)(nil), "types.GetTxReceiptQuery") - proto.RegisterType((*GetTxReceiptQueryEnvelope)(nil), "types.GetTxReceiptQueryEnvelope") - proto.RegisterType((*GetMostRecentUserOrNodeQuery)(nil), "types.GetMostRecentUserOrNodeQuery") - proto.RegisterType((*DataJSONQuery)(nil), "types.DataJSONQuery") -} - -func init() { proto.RegisterFile("query.proto", fileDescriptor_5c6ac9b241082464) } - -var fileDescriptor_5c6ac9b241082464 = []byte{ - // 1140 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdd, 0x72, 0xdb, 0x44, - 0x14, 0xc6, 0x89, 0x9d, 0x9f, 0xe3, 0xd4, 0x18, 0x25, 0x6d, 0x9c, 0x3f, 0x1a, 0x34, 0x0c, 0x63, - 0x66, 0x1a, 0x07, 0xd2, 0x0e, 0x0c, 0x33, 0xdc, 0x90, 0x1f, 0x42, 0xa0, 0x4d, 0x5a, 0x25, 0x69, - 0x81, 0x1b, 0xcf, 0xda, 0x3a, 0x71, 0x76, 0x62, 0xaf, 0xdc, 0xdd, 0x75, 0xb0, 0x87, 0x6b, 0x1e, - 0x80, 0x4b, 0x9e, 0x89, 0x17, 0xe1, 0x31, 0x98, 0x5d, 0xc9, 0x96, 0xb4, 0x96, 0xe9, 0x26, 0xb8, - 0x77, 0xd1, 0xd1, 0xf9, 0xce, 0x7e, 0xdf, 0x27, 0xe9, 0x9c, 0x13, 0x43, 0xf1, 0x6d, 0x0f, 0xf9, - 0xa0, 0xd6, 0xe5, 0x81, 0x0c, 0x9c, 0x82, 0x1c, 0x74, 0x51, 0xac, 0x6f, 0x34, 0xda, 0x41, 0xf3, - 0xa6, 0x4e, 0x98, 0x5f, 0x97, 0x9c, 0x30, 0x41, 0x9a, 0x92, 0x06, 0x2c, 0xcc, 0x71, 0x6f, 0xa0, - 0x72, 0x8c, 0xf2, 0x70, 0xff, 0x5c, 0x12, 0xd9, 0x13, 0xaf, 0x14, 0xfa, 0x88, 0xdd, 0x62, 0x3b, - 0xe8, 0xa2, 0xf3, 0x25, 0xcc, 0x77, 0xc9, 0xa0, 0x1d, 0x10, 0xbf, 0x92, 0xdb, 0xce, 0x55, 0x8b, - 0x7b, 0xab, 0x35, 0x5d, 0xb1, 0x66, 0x22, 0xbc, 0x61, 0x9e, 0xb3, 0x09, 0x8b, 0x82, 0xb6, 0x18, - 0x91, 0x3d, 0x8e, 0x95, 0x99, 0xed, 0x5c, 0x75, 0xc9, 0x8b, 0x03, 0xee, 0x21, 0x94, 0x4d, 0xa8, - 0xb3, 0x0a, 0xf3, 0x3d, 0x81, 0xbc, 0x4e, 0xc3, 0x43, 0x16, 0xbd, 0x39, 0x75, 0x79, 0xe2, 0xab, - 0x1b, 0x7e, 0xa3, 0xce, 0x48, 0x27, 0x2c, 0xb4, 0xe8, 0xcd, 0xf9, 0x8d, 0x53, 0xd2, 0x41, 0x97, - 0xc2, 0xaa, 0xae, 0x72, 0xc2, 0x7c, 0xec, 0xa7, 0x19, 0x7f, 0x61, 0x32, 0x7e, 0x94, 0x64, 0x1c, - 0x03, 0x6c, 0x09, 0x1f, 0xc0, 0x87, 0x06, 0xf2, 0x1e, 0x7c, 0x9b, 0xb0, 0xa2, 0x8a, 0x10, 0x49, - 0xd2, 0x64, 0x77, 0x4c, 0xb2, 0xcb, 0x09, 0xb2, 0xc3, 0x6c, 0x5b, 0xa6, 0x1e, 0x2c, 0x25, 0x61, - 0x77, 0xa7, 0xe9, 0x94, 0x61, 0xf6, 0x06, 0x07, 0x95, 0x59, 0x1d, 0x54, 0x7f, 0xba, 0x7f, 0xe6, - 0xe0, 0xa3, 0xa8, 0xa8, 0x47, 0x58, 0x0b, 0xef, 0x5b, 0x79, 0x03, 0x16, 0x85, 0x24, 0x5c, 0xd6, - 0xe3, 0xfa, 0x0b, 0x3a, 0xf0, 0x13, 0xea, 0x72, 0xc8, 0x7c, 0x7d, 0x2b, 0x1f, 0xa2, 0x90, 0xf9, - 0xea, 0xc6, 0x0a, 0x14, 0xda, 0xb4, 0x43, 0x65, 0xa5, 0xb0, 0x9d, 0xab, 0xe6, 0xbd, 0xf0, 0x22, - 0x32, 0xf3, 0x52, 0x20, 0xb7, 0x37, 0x73, 0x94, 0x6d, 0x6b, 0xe6, 0x0b, 0x6d, 0xe6, 0x08, 0x36, - 0x59, 0xf2, 0xa7, 0x50, 0x92, 0x84, 0xb7, 0x50, 0xd6, 0x87, 0xf7, 0x43, 0xe5, 0x4b, 0x61, 0xf4, - 0x52, 0x67, 0xb9, 0x2d, 0x78, 0x74, 0x8c, 0xf2, 0x20, 0x60, 0x57, 0xb4, 0x95, 0x66, 0xbd, 0x6b, - 0xb2, 0x7e, 0x18, 0xb3, 0x4e, 0xe4, 0xdb, 0xf2, 0xfe, 0x1c, 0x4a, 0x69, 0xe0, 0x44, 0xe6, 0x6e, - 0x00, 0xeb, 0xc7, 0x28, 0x4f, 0x03, 0x1f, 0xb3, 0x78, 0x3d, 0x35, 0x79, 0xad, 0xc5, 0xbc, 0x0c, - 0x8c, 0x2d, 0xb7, 0xef, 0xc1, 0x19, 0x07, 0xff, 0xe7, 0xcb, 0xc4, 0x02, 0x1f, 0x63, 0x4b, 0xe7, - 0xd4, 0xe5, 0x89, 0xef, 0x76, 0x15, 0xf1, 0xb0, 0xc4, 0xbe, 0xea, 0x6b, 0x69, 0xe2, 0xcf, 0x4c, - 0xe2, 0xeb, 0xa6, 0xa1, 0x31, 0xc8, 0x96, 0xf9, 0x2b, 0x58, 0xce, 0x40, 0x4f, 0xa6, 0xfe, 0x09, - 0x2c, 0x85, 0x1d, 0x97, 0xf5, 0x3a, 0x0d, 0xe4, 0xba, 0x60, 0xde, 0x2b, 0xea, 0xd8, 0xa9, 0x0e, - 0xb9, 0x3d, 0xd8, 0x52, 0x25, 0xdb, 0x3d, 0x21, 0x91, 0x67, 0xb5, 0xde, 0xaf, 0x4c, 0x1d, 0x9b, - 0x09, 0x1d, 0x63, 0x30, 0x5b, 0x25, 0x3f, 0xc3, 0xc3, 0x4c, 0xfc, 0x64, 0x2d, 0x9f, 0x41, 0x89, - 0x05, 0x07, 0xc8, 0x25, 0xbd, 0xa2, 0x4d, 0x22, 0x51, 0xe8, 0xa2, 0x0b, 0x9e, 0x11, 0x75, 0x29, - 0x3c, 0x38, 0x46, 0x39, 0x1d, 0x77, 0x94, 0x08, 0xd2, 0x6b, 0x75, 0x90, 0x49, 0xf4, 0x75, 0xbf, - 0x58, 0xf0, 0xe2, 0x80, 0x8b, 0x5a, 0x44, 0xc6, 0xb3, 0xaf, 0x99, 0x9e, 0xad, 0xc4, 0x9e, 0xdd, - 0xfd, 0xa9, 0x3f, 0xd1, 0xbd, 0xef, 0x39, 0x11, 0x36, 0xaa, 0xdc, 0x0e, 0xac, 0x8d, 0x65, 0x8f, - 0x88, 0xed, 0x99, 0xc4, 0x2a, 0x31, 0xb1, 0x34, 0xc4, 0x96, 0xdc, 0x1f, 0x39, 0xfd, 0x35, 0x3d, - 0x47, 0xbf, 0x85, 0xfc, 0x25, 0x91, 0xd7, 0xef, 0x30, 0xfd, 0x09, 0x38, 0x61, 0x07, 0xce, 0xb0, - 0xbe, 0xac, 0xef, 0xec, 0x27, 0xfc, 0xaf, 0x42, 0x59, 0xb5, 0xe4, 0x54, 0xee, 0xac, 0xce, 0x2d, - 0x21, 0xf3, 0x13, 0x99, 0x51, 0x17, 0x31, 0x68, 0x58, 0x75, 0x11, 0x03, 0x63, 0x2b, 0xfc, 0x5a, - 0x0f, 0xe4, 0x8b, 0xfe, 0x4b, 0x1e, 0x04, 0x57, 0xff, 0xff, 0x4d, 0x5b, 0x83, 0x05, 0xd9, 0xaf, - 0x53, 0x35, 0xdd, 0x23, 0x85, 0xf3, 0xb2, 0xaf, 0x87, 0x7d, 0xb4, 0x65, 0x24, 0x4f, 0xb2, 0xda, - 0x32, 0x92, 0x00, 0x5b, 0x51, 0x7f, 0xc5, 0x73, 0x76, 0x4a, 0xba, 0x12, 0xa3, 0x78, 0x36, 0x6b, - 0xc8, 0xe7, 0x47, 0x43, 0xde, 0xd9, 0x02, 0xa0, 0xa2, 0xee, 0x63, 0x1b, 0xd5, 0xd7, 0x56, 0x08, - 0xbf, 0x36, 0x2a, 0x0e, 0xc3, 0x40, 0xf4, 0x62, 0xa7, 0xa9, 0x59, 0xbd, 0xd8, 0x69, 0x88, 0xad, - 0x15, 0xff, 0xe4, 0xf4, 0xac, 0xfc, 0x81, 0x0a, 0x19, 0x70, 0xda, 0x24, 0xed, 0xa9, 0x6e, 0x34, - 0x4e, 0x15, 0xe6, 0x6f, 0x91, 0x0b, 0x1a, 0x30, 0x6d, 0x41, 0x71, 0xaf, 0x14, 0x11, 0x7e, 0x1d, - 0x46, 0xbd, 0xe1, 0x6d, 0x45, 0xd3, 0xa7, 0x1c, 0xf5, 0xaa, 0xac, 0x5d, 0x59, 0xf4, 0xe2, 0x80, - 0x7a, 0x04, 0x01, 0x6b, 0x0f, 0x22, 0xdb, 0x44, 0x65, 0x4e, 0xdb, 0x56, 0x54, 0xb1, 0xd0, 0x38, - 0xe1, 0x3c, 0x86, 0x62, 0x27, 0x10, 0xb2, 0xce, 0xb1, 0x89, 0x4c, 0x56, 0xe6, 0x75, 0x06, 0xa8, - 0x90, 0xa7, 0x23, 0xee, 0x6f, 0xf0, 0x71, 0xb6, 0xd2, 0x91, 0xbd, 0x5f, 0x9b, 0xf6, 0x6e, 0xc5, - 0xf6, 0x66, 0xe0, 0x6c, 0x3d, 0xfe, 0x45, 0xcf, 0x33, 0xbd, 0xd5, 0x21, 0xf1, 0x91, 0x8b, 0xe9, - 0x6d, 0x8c, 0x6f, 0x61, 0x23, 0xa3, 0xb4, 0xd5, 0x74, 0x36, 0x41, 0x77, 0x57, 0xf3, 0x86, 0x53, - 0xf9, 0x9e, 0xd4, 0x24, 0x4b, 0x5b, 0xab, 0x49, 0x82, 0x6c, 0xd5, 0x9c, 0xeb, 0xbe, 0x3e, 0xf4, - 0x62, 0x7f, 0x30, 0x95, 0xfd, 0x33, 0xec, 0xd2, 0x46, 0x51, 0xab, 0x2e, 0x6d, 0x60, 0x6c, 0x55, - 0xbc, 0xd6, 0x23, 0x7a, 0xe8, 0x81, 0x44, 0x36, 0x25, 0x21, 0x71, 0xdd, 0xa8, 0x3d, 0x4d, 0xa9, - 0x6e, 0xb8, 0x8e, 0x8d, 0xd7, 0xb5, 0x5a, 0xc7, 0xc6, 0x61, 0xb6, 0x36, 0xc5, 0xc7, 0xa6, 0x6d, - 0xb2, 0x3e, 0x36, 0x0d, 0xb3, 0xff, 0x62, 0x2a, 0x7a, 0x50, 0x9d, 0x1c, 0x8a, 0xf3, 0x5e, 0xa3, - 0xa3, 0x4a, 0x4c, 0xcb, 0xc8, 0xdf, 0x61, 0x7b, 0x52, 0xe9, 0x91, 0xa8, 0x6f, 0x4c, 0x51, 0x8f, - 0x93, 0xd3, 0x33, 0x03, 0x69, 0xab, 0xeb, 0x3b, 0x3d, 0x45, 0x2f, 0xfa, 0xaa, 0xbf, 0xd2, 0xae, - 0x7c, 0x87, 0xa0, 0x65, 0x28, 0xa8, 0xd1, 0x3f, 0xd4, 0x91, 0x97, 0xfd, 0xd1, 0x1a, 0x97, 0x2e, - 0x61, 0x35, 0xed, 0xd2, 0x10, 0x5b, 0xc6, 0x7f, 0xe7, 0x60, 0xf3, 0x18, 0xe5, 0x8b, 0xd1, 0x50, - 0x50, 0x36, 0x9e, 0x71, 0xf5, 0x4f, 0x52, 0xc8, 0xfe, 0x5b, 0xc8, 0xab, 0x23, 0xf4, 0x79, 0xa5, - 0xbd, 0x6a, 0x7c, 0xde, 0x44, 0x48, 0xed, 0x62, 0xd0, 0x45, 0x4f, 0xa3, 0x92, 0xda, 0x67, 0x52, - 0xda, 0x4b, 0x30, 0x43, 0xfd, 0xa8, 0xd3, 0xcd, 0x50, 0xdf, 0x7e, 0x2c, 0xba, 0xeb, 0x90, 0x57, - 0x07, 0x38, 0x0b, 0x90, 0xbf, 0x3c, 0x3f, 0xf2, 0xca, 0x1f, 0xa8, 0xbf, 0x4e, 0xcf, 0x0e, 0x8f, - 0xca, 0x39, 0xf7, 0x0d, 0x3c, 0x50, 0x2f, 0xe5, 0x8f, 0xe7, 0x67, 0xa7, 0xf7, 0xed, 0xc1, 0x2b, - 0x50, 0xd0, 0x3f, 0x60, 0x45, 0xdc, 0xc2, 0x8b, 0xfd, 0x67, 0xbf, 0xee, 0xb5, 0xa8, 0xbc, 0xee, - 0x35, 0x6a, 0xcd, 0xa0, 0xb3, 0x7b, 0x3d, 0xe8, 0x22, 0x6f, 0xeb, 0xf5, 0x71, 0xa7, 0x4d, 0x1a, - 0x62, 0x37, 0xe0, 0x34, 0x60, 0x3b, 0x02, 0xf9, 0x2d, 0xf2, 0xdd, 0xee, 0x4d, 0x6b, 0x57, 0x73, - 0x6f, 0xcc, 0xe9, 0x1f, 0xb8, 0x9e, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xa2, 0x2d, 0x9f, - 0x13, 0x13, 0x00, 0x00, +var File_query_proto protoreflect.FileDescriptor + +var file_query_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x1a, 0x1b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x6e, 0x64, 0x5f, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x6b, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x42, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x31, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x42, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x44, + 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x42, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, + 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x69, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x42, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, + 0x30, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x42, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, + 0x43, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, + 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x63, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x52, 0x0a, 0x0c, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x91, 0x01, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, + 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, + 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, + 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x22, 0x63, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x24, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, + 0x2f, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x29, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, + 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x46, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x22, 0x70, 0x0a, 0x1a, 0x47, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x12, 0x34, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x22, 0x51, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x75, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x58, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x26, 0x0a, 0x0e, 0x6e, 0x6f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6e, 0x6f, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0x69, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x67, 0x6d, 0x65, 0x6e, 0x74, + 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x67, 0x6d, 0x65, 0x6e, + 0x74, 0x65, 0x64, 0x22, 0x65, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x2c, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6d, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, + 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, + 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, + 0x65, 0x64, 0x67, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0e, 0x65, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, + 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x33, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x50, 0x61, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0x68, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x69, 0x0a, 0x17, 0x47, 0x65, + 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, + 0x65, 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x22, 0x6d, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x6f, + 0x66, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x32, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0xe8, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, + 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x28, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6f, + 0x6e, 0x6c, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, + 0x73, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x6d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x22, 0x77, 0x0a, 0x1e, 0x47, + 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x37, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x69, 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x22, 0x59, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, + 0x71, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x34, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x22, 0x59, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x71, 0x0a, + 0x1b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0x53, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x42, + 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x24, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x61, 0x64, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x56, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x56, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x75, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, + 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, + 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x75, 0x0a, + 0x1d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, + 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x36, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, + 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x22, 0x59, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x78, 0x49, 0x44, 0x73, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, + 0x7b, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x54, 0x78, 0x49, 0x44, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x78, 0x49, 0x44, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1c, + 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x41, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x78, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x22, + 0x6d, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x70, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xcb, + 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x1a, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, + 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x01, 0x22, 0x57, 0x0a, 0x0d, + 0x44, 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2d, + 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_query_proto_rawDescOnce sync.Once + file_query_proto_rawDescData = file_query_proto_rawDesc +) + +func file_query_proto_rawDescGZIP() []byte { + file_query_proto_rawDescOnce.Do(func() { + file_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_query_proto_rawDescData) + }) + return file_query_proto_rawDescData +} + +var file_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_query_proto_msgTypes = make([]protoimpl.MessageInfo, 45) +var file_query_proto_goTypes = []interface{}{ + (GetMostRecentUserOrNodeQuery_Type)(0), // 0: types.GetMostRecentUserOrNodeQuery.Type + (*GetDBStatusQueryEnvelope)(nil), // 1: types.GetDBStatusQueryEnvelope + (*GetDBStatusQuery)(nil), // 2: types.GetDBStatusQuery + (*GetDBIndexQueryEnvelope)(nil), // 3: types.GetDBIndexQueryEnvelope + (*GetDBIndexQuery)(nil), // 4: types.GetDBIndexQuery + (*GetDataQueryEnvelope)(nil), // 5: types.GetDataQueryEnvelope + (*GetDataQuery)(nil), // 6: types.GetDataQuery + (*GetDataRangeQuery)(nil), // 7: types.GetDataRangeQuery + (*GetUserQueryEnvelope)(nil), // 8: types.GetUserQueryEnvelope + (*GetUserQuery)(nil), // 9: types.GetUserQuery + (*GetConfigQueryEnvelope)(nil), // 10: types.GetConfigQueryEnvelope + (*GetConfigQuery)(nil), // 11: types.GetConfigQuery + (*GetNodeConfigQueryEnvelope)(nil), // 12: types.GetNodeConfigQueryEnvelope + (*GetNodeConfigQuery)(nil), // 13: types.GetNodeConfigQuery + (*GeConfigBlockQueryEnvelope)(nil), // 14: types.GeConfigBlockQueryEnvelope + (*GetConfigBlockQuery)(nil), // 15: types.GetConfigBlockQuery + (*GetClusterStatusQueryEnvelope)(nil), // 16: types.GetClusterStatusQueryEnvelope + (*GetClusterStatusQuery)(nil), // 17: types.GetClusterStatusQuery + (*GetBlockQuery)(nil), // 18: types.GetBlockQuery + (*GetBlockQueryEnvelope)(nil), // 19: types.GetBlockQueryEnvelope + (*GetLastBlockQuery)(nil), // 20: types.GetLastBlockQuery + (*GetLastBlockQueryEnvelope)(nil), // 21: types.GetLastBlockQueryEnvelope + (*GetLedgerPathQuery)(nil), // 22: types.GetLedgerPathQuery + (*GetLedgerPathQueryEnvelope)(nil), // 23: types.GetLedgerPathQueryEnvelope + (*GetTxProofQuery)(nil), // 24: types.GetTxProofQuery + (*GetTxProofQueryEnvelope)(nil), // 25: types.GetTxProofQueryEnvelope + (*GetDataProofQuery)(nil), // 26: types.GetDataProofQuery + (*GetDataProofQueryEnvelope)(nil), // 27: types.GetDataProofQueryEnvelope + (*GetHistoricalDataQuery)(nil), // 28: types.GetHistoricalDataQuery + (*GetHistoricalDataQueryEnvelope)(nil), // 29: types.GetHistoricalDataQueryEnvelope + (*GetDataReadersQuery)(nil), // 30: types.GetDataReadersQuery + (*GetDataReadersQueryEnvelope)(nil), // 31: types.GetDataReadersQueryEnvelope + (*GetDataWritersQuery)(nil), // 32: types.GetDataWritersQuery + (*GetDataWritersQueryEnvelope)(nil), // 33: types.GetDataWritersQueryEnvelope + (*GetDataReadByQuery)(nil), // 34: types.GetDataReadByQuery + (*GetDataReadByQueryEnvelope)(nil), // 35: types.GetDataReadByQueryEnvelope + (*GetDataWrittenByQuery)(nil), // 36: types.GetDataWrittenByQuery + (*GetDataDeletedByQuery)(nil), // 37: types.GetDataDeletedByQuery + (*GetDataDeletedByQueryEnvelope)(nil), // 38: types.GetDataDeletedByQueryEnvelope + (*GetDataWrittenByQueryEnvelope)(nil), // 39: types.GetDataWrittenByQueryEnvelope + (*GetTxIDsSubmittedByQuery)(nil), // 40: types.GetTxIDsSubmittedByQuery + (*GetTxIDsSubmittedByQueryEnvelope)(nil), // 41: types.GetTxIDsSubmittedByQueryEnvelope + (*GetTxReceiptQuery)(nil), // 42: types.GetTxReceiptQuery + (*GetTxReceiptQueryEnvelope)(nil), // 43: types.GetTxReceiptQueryEnvelope + (*GetMostRecentUserOrNodeQuery)(nil), // 44: types.GetMostRecentUserOrNodeQuery + (*DataJSONQuery)(nil), // 45: types.DataJSONQuery + (*Version)(nil), // 46: types.Version +} +var file_query_proto_depIdxs = []int32{ + 2, // 0: types.GetDBStatusQueryEnvelope.payload:type_name -> types.GetDBStatusQuery + 4, // 1: types.GetDBIndexQueryEnvelope.payload:type_name -> types.GetDBIndexQuery + 6, // 2: types.GetDataQueryEnvelope.payload:type_name -> types.GetDataQuery + 9, // 3: types.GetUserQueryEnvelope.payload:type_name -> types.GetUserQuery + 11, // 4: types.GetConfigQueryEnvelope.payload:type_name -> types.GetConfigQuery + 13, // 5: types.GetNodeConfigQueryEnvelope.payload:type_name -> types.GetNodeConfigQuery + 15, // 6: types.GeConfigBlockQueryEnvelope.payload:type_name -> types.GetConfigBlockQuery + 17, // 7: types.GetClusterStatusQueryEnvelope.payload:type_name -> types.GetClusterStatusQuery + 18, // 8: types.GetBlockQueryEnvelope.payload:type_name -> types.GetBlockQuery + 20, // 9: types.GetLastBlockQueryEnvelope.payload:type_name -> types.GetLastBlockQuery + 22, // 10: types.GetLedgerPathQueryEnvelope.payload:type_name -> types.GetLedgerPathQuery + 24, // 11: types.GetTxProofQueryEnvelope.payload:type_name -> types.GetTxProofQuery + 26, // 12: types.GetDataProofQueryEnvelope.payload:type_name -> types.GetDataProofQuery + 46, // 13: types.GetHistoricalDataQuery.version:type_name -> types.Version + 28, // 14: types.GetHistoricalDataQueryEnvelope.payload:type_name -> types.GetHistoricalDataQuery + 30, // 15: types.GetDataReadersQueryEnvelope.payload:type_name -> types.GetDataReadersQuery + 32, // 16: types.GetDataWritersQueryEnvelope.payload:type_name -> types.GetDataWritersQuery + 34, // 17: types.GetDataReadByQueryEnvelope.payload:type_name -> types.GetDataReadByQuery + 37, // 18: types.GetDataDeletedByQueryEnvelope.payload:type_name -> types.GetDataDeletedByQuery + 36, // 19: types.GetDataWrittenByQueryEnvelope.payload:type_name -> types.GetDataWrittenByQuery + 40, // 20: types.GetTxIDsSubmittedByQueryEnvelope.payload:type_name -> types.GetTxIDsSubmittedByQuery + 42, // 21: types.GetTxReceiptQueryEnvelope.payload:type_name -> types.GetTxReceiptQuery + 0, // 22: types.GetMostRecentUserOrNodeQuery.type:type_name -> types.GetMostRecentUserOrNodeQuery.Type + 46, // 23: types.GetMostRecentUserOrNodeQuery.version:type_name -> types.Version + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_query_proto_init() } +func file_query_proto_init() { + if File_query_proto != nil { + return + } + file_block_and_transaction_proto_init() + if !protoimpl.UnsafeEnabled { + file_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBStatusQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBStatusQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBIndexQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBIndexQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataRangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetNodeConfigQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetNodeConfigQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeConfigBlockQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigBlockQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterStatusQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterStatusQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLastBlockQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLastBlockQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLedgerPathQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLedgerPathQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxProofQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxProofQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProofQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProofQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHistoricalDataQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHistoricalDataQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadersQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadersQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWritersQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWritersQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadByQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadByQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWrittenByQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataDeletedByQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataDeletedByQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWrittenByQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxIDsSubmittedByQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxIDsSubmittedByQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxReceiptQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxReceiptQueryEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMostRecentUserOrNodeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_query_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataJSONQuery); 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_query_proto_rawDesc, + NumEnums: 1, + NumMessages: 45, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_query_proto_goTypes, + DependencyIndexes: file_query_proto_depIdxs, + EnumInfos: file_query_proto_enumTypes, + MessageInfos: file_query_proto_msgTypes, + }.Build() + File_query_proto = out.File + file_query_proto_rawDesc = nil + file_query_proto_goTypes = nil + file_query_proto_depIdxs = nil } diff --git a/pkg/types/response.pb.go b/pkg/types/response.pb.go index a9345f3b..81b7c973 100644 --- a/pkg/types/response.pb.go +++ b/pkg/types/response.pb.go @@ -1,912 +1,1063 @@ +// Copyright IBM Corp. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.15.8 // source: response.proto package types 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 ResponseHeader struct { - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{0} + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` } -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResponseHeader.Unmarshal(m, b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) -} -func (m *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) +func (x *ResponseHeader) Reset() { + *x = ResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ResponseHeader) XXX_Size() int { - return xxx_messageInfo_ResponseHeader.Size(m) + +func (x *ResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + +func (*ResponseHeader) ProtoMessage() {} + +func (x *ResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_response_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_ResponseHeader proto.InternalMessageInfo +// Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead. +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{0} +} -func (m *ResponseHeader) GetNodeId() string { - if m != nil { - return m.NodeId +func (x *ResponseHeader) GetNodeId() string { + if x != nil { + return x.NodeId } return "" } // GetDBStatus type GetDBStatusResponseEnvelope struct { - Response *GetDBStatusResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDBStatusResponseEnvelope) Reset() { *m = GetDBStatusResponseEnvelope{} } -func (m *GetDBStatusResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDBStatusResponseEnvelope) ProtoMessage() {} -func (*GetDBStatusResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{1} + Response *GetDBStatusResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDBStatusResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBStatusResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDBStatusResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBStatusResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDBStatusResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBStatusResponseEnvelope.Merge(m, src) +func (x *GetDBStatusResponseEnvelope) Reset() { + *x = GetDBStatusResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBStatusResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDBStatusResponseEnvelope.Size(m) + +func (x *GetDBStatusResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBStatusResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBStatusResponseEnvelope.DiscardUnknown(m) + +func (*GetDBStatusResponseEnvelope) ProtoMessage() {} + +func (x *GetDBStatusResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDBStatusResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDBStatusResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDBStatusResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{1} +} -func (m *GetDBStatusResponseEnvelope) GetResponse() *GetDBStatusResponse { - if m != nil { - return m.Response +func (x *GetDBStatusResponseEnvelope) GetResponse() *GetDBStatusResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDBStatusResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDBStatusResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDBStatusResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Exist bool `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDBStatusResponse) Reset() { *m = GetDBStatusResponse{} } -func (m *GetDBStatusResponse) String() string { return proto.CompactTextString(m) } -func (*GetDBStatusResponse) ProtoMessage() {} -func (*GetDBStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{2} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Exist bool `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"` } -func (m *GetDBStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBStatusResponse.Unmarshal(m, b) -} -func (m *GetDBStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBStatusResponse.Marshal(b, m, deterministic) -} -func (m *GetDBStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBStatusResponse.Merge(m, src) +func (x *GetDBStatusResponse) Reset() { + *x = GetDBStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBStatusResponse) XXX_Size() int { - return xxx_messageInfo_GetDBStatusResponse.Size(m) + +func (x *GetDBStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBStatusResponse.DiscardUnknown(m) + +func (*GetDBStatusResponse) ProtoMessage() {} + +func (x *GetDBStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDBStatusResponse proto.InternalMessageInfo +// Deprecated: Use GetDBStatusResponse.ProtoReflect.Descriptor instead. +func (*GetDBStatusResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{2} +} -func (m *GetDBStatusResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDBStatusResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDBStatusResponse) GetExist() bool { - if m != nil { - return m.Exist +func (x *GetDBStatusResponse) GetExist() bool { + if x != nil { + return x.Exist } return false } type GetDBIndexResponseEnvelope struct { - Response *GetDBIndexResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDBIndexResponseEnvelope) Reset() { *m = GetDBIndexResponseEnvelope{} } -func (m *GetDBIndexResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDBIndexResponseEnvelope) ProtoMessage() {} -func (*GetDBIndexResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{3} + Response *GetDBIndexResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDBIndexResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBIndexResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDBIndexResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBIndexResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDBIndexResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBIndexResponseEnvelope.Merge(m, src) +func (x *GetDBIndexResponseEnvelope) Reset() { + *x = GetDBIndexResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBIndexResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDBIndexResponseEnvelope.Size(m) + +func (x *GetDBIndexResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBIndexResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBIndexResponseEnvelope.DiscardUnknown(m) + +func (*GetDBIndexResponseEnvelope) ProtoMessage() {} + +func (x *GetDBIndexResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDBIndexResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDBIndexResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDBIndexResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{3} +} -func (m *GetDBIndexResponseEnvelope) GetResponse() *GetDBIndexResponse { - if m != nil { - return m.Response +func (x *GetDBIndexResponseEnvelope) GetResponse() *GetDBIndexResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDBIndexResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDBIndexResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDBIndexResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDBIndexResponse) Reset() { *m = GetDBIndexResponse{} } -func (m *GetDBIndexResponse) String() string { return proto.CompactTextString(m) } -func (*GetDBIndexResponse) ProtoMessage() {} -func (*GetDBIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{4} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` } -func (m *GetDBIndexResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDBIndexResponse.Unmarshal(m, b) -} -func (m *GetDBIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDBIndexResponse.Marshal(b, m, deterministic) -} -func (m *GetDBIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDBIndexResponse.Merge(m, src) +func (x *GetDBIndexResponse) Reset() { + *x = GetDBIndexResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDBIndexResponse) XXX_Size() int { - return xxx_messageInfo_GetDBIndexResponse.Size(m) + +func (x *GetDBIndexResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDBIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDBIndexResponse.DiscardUnknown(m) + +func (*GetDBIndexResponse) ProtoMessage() {} + +func (x *GetDBIndexResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDBIndexResponse proto.InternalMessageInfo +// Deprecated: Use GetDBIndexResponse.ProtoReflect.Descriptor instead. +func (*GetDBIndexResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{4} +} -func (m *GetDBIndexResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDBIndexResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDBIndexResponse) GetIndex() string { - if m != nil { - return m.Index +func (x *GetDBIndexResponse) GetIndex() string { + if x != nil { + return x.Index } return "" } // GetData type GetDataResponseEnvelope struct { - Response *GetDataResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataResponseEnvelope) Reset() { *m = GetDataResponseEnvelope{} } -func (m *GetDataResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataResponseEnvelope) ProtoMessage() {} -func (*GetDataResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{5} + Response *GetDataResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataResponseEnvelope.Merge(m, src) +func (x *GetDataResponseEnvelope) Reset() { + *x = GetDataResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataResponseEnvelope.Size(m) + +func (x *GetDataResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataResponseEnvelope.DiscardUnknown(m) + +func (*GetDataResponseEnvelope) ProtoMessage() {} + +func (x *GetDataResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{5} +} -func (m *GetDataResponseEnvelope) GetResponse() *GetDataResponse { - if m != nil { - return m.Response +func (x *GetDataResponseEnvelope) GetResponse() *GetDataResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataResponse) Reset() { *m = GetDataResponse{} } -func (m *GetDataResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataResponse) ProtoMessage() {} -func (*GetDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{6} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataResponse.Unmarshal(m, b) -} -func (m *GetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataResponse.Marshal(b, m, deterministic) -} -func (m *GetDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataResponse.Merge(m, src) +func (x *GetDataResponse) Reset() { + *x = GetDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataResponse) XXX_Size() int { - return xxx_messageInfo_GetDataResponse.Size(m) + +func (x *GetDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataResponse.DiscardUnknown(m) + +func (*GetDataResponse) ProtoMessage() {} + +func (x *GetDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataResponse proto.InternalMessageInfo +// Deprecated: Use GetDataResponse.ProtoReflect.Descriptor instead. +func (*GetDataResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{6} +} -func (m *GetDataResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataResponse) GetValue() []byte { - if m != nil { - return m.Value +func (x *GetDataResponse) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *GetDataResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetDataResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type GetDataRangeResponseEnvelope struct { - Response *GetDataRangeResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataRangeResponseEnvelope) Reset() { *m = GetDataRangeResponseEnvelope{} } -func (m *GetDataRangeResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataRangeResponseEnvelope) ProtoMessage() {} -func (*GetDataRangeResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{7} + Response *GetDataRangeResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataRangeResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataRangeResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataRangeResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataRangeResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataRangeResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataRangeResponseEnvelope.Merge(m, src) +func (x *GetDataRangeResponseEnvelope) Reset() { + *x = GetDataRangeResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataRangeResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataRangeResponseEnvelope.Size(m) + +func (x *GetDataRangeResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataRangeResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataRangeResponseEnvelope.DiscardUnknown(m) + +func (*GetDataRangeResponseEnvelope) ProtoMessage() {} + +func (x *GetDataRangeResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataRangeResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataRangeResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataRangeResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{7} +} -func (m *GetDataRangeResponseEnvelope) GetResponse() *GetDataRangeResponse { - if m != nil { - return m.Response +func (x *GetDataRangeResponseEnvelope) GetResponse() *GetDataRangeResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataRangeResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataRangeResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataRangeResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KVs []*KVWithMetadata `protobuf:"bytes,2,rep,name=KVs,proto3" json:"KVs,omitempty"` - PendingResult bool `protobuf:"varint,3,opt,name=pending_result,json=pendingResult,proto3" json:"pending_result,omitempty"` - NextStartKey string `protobuf:"bytes,4,opt,name=next_start_key,json=nextStartKey,proto3" json:"next_start_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDataRangeResponse) Reset() { *m = GetDataRangeResponse{} } -func (m *GetDataRangeResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataRangeResponse) ProtoMessage() {} -func (*GetDataRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{8} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataRangeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataRangeResponse.Unmarshal(m, b) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KVs []*KVWithMetadata `protobuf:"bytes,2,rep,name=KVs,proto3" json:"KVs,omitempty"` + PendingResult bool `protobuf:"varint,3,opt,name=pending_result,json=pendingResult,proto3" json:"pending_result,omitempty"` + NextStartKey string `protobuf:"bytes,4,opt,name=next_start_key,json=nextStartKey,proto3" json:"next_start_key,omitempty"` } -func (m *GetDataRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataRangeResponse.Marshal(b, m, deterministic) -} -func (m *GetDataRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataRangeResponse.Merge(m, src) + +func (x *GetDataRangeResponse) Reset() { + *x = GetDataRangeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataRangeResponse) XXX_Size() int { - return xxx_messageInfo_GetDataRangeResponse.Size(m) + +func (x *GetDataRangeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataRangeResponse.DiscardUnknown(m) + +func (*GetDataRangeResponse) ProtoMessage() {} + +func (x *GetDataRangeResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataRangeResponse proto.InternalMessageInfo +// Deprecated: Use GetDataRangeResponse.ProtoReflect.Descriptor instead. +func (*GetDataRangeResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{8} +} -func (m *GetDataRangeResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataRangeResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataRangeResponse) GetKVs() []*KVWithMetadata { - if m != nil { - return m.KVs +func (x *GetDataRangeResponse) GetKVs() []*KVWithMetadata { + if x != nil { + return x.KVs } return nil } -func (m *GetDataRangeResponse) GetPendingResult() bool { - if m != nil { - return m.PendingResult +func (x *GetDataRangeResponse) GetPendingResult() bool { + if x != nil { + return x.PendingResult } return false } -func (m *GetDataRangeResponse) GetNextStartKey() string { - if m != nil { - return m.NextStartKey +func (x *GetDataRangeResponse) GetNextStartKey() string { + if x != nil { + return x.NextStartKey } return "" } // GetUser type GetUserResponseEnvelope struct { - Response *GetUserResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetUserResponseEnvelope) Reset() { *m = GetUserResponseEnvelope{} } -func (m *GetUserResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetUserResponseEnvelope) ProtoMessage() {} -func (*GetUserResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{9} + Response *GetUserResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetUserResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserResponseEnvelope.Unmarshal(m, b) -} -func (m *GetUserResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetUserResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserResponseEnvelope.Merge(m, src) +func (x *GetUserResponseEnvelope) Reset() { + *x = GetUserResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetUserResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetUserResponseEnvelope.Size(m) + +func (x *GetUserResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserResponseEnvelope.DiscardUnknown(m) + +func (*GetUserResponseEnvelope) ProtoMessage() {} + +func (x *GetUserResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetUserResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetUserResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetUserResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{9} +} -func (m *GetUserResponseEnvelope) GetResponse() *GetUserResponse { - if m != nil { - return m.Response +func (x *GetUserResponseEnvelope) GetResponse() *GetUserResponse { + if x != nil { + return x.Response } return nil } -func (m *GetUserResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetUserResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetUserResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetUserResponse) Reset() { *m = GetUserResponse{} } -func (m *GetUserResponse) String() string { return proto.CompactTextString(m) } -func (*GetUserResponse) ProtoMessage() {} -func (*GetUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{10} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetUserResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUserResponse.Unmarshal(m, b) -} -func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUserResponse.Marshal(b, m, deterministic) -} -func (m *GetUserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserResponse.Merge(m, src) +func (x *GetUserResponse) Reset() { + *x = GetUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetUserResponse) XXX_Size() int { - return xxx_messageInfo_GetUserResponse.Size(m) + +func (x *GetUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserResponse.DiscardUnknown(m) + +func (*GetUserResponse) ProtoMessage() {} + +func (x *GetUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetUserResponse proto.InternalMessageInfo +// Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead. +func (*GetUserResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{10} +} -func (m *GetUserResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetUserResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetUserResponse) GetUser() *User { - if m != nil { - return m.User +func (x *GetUserResponse) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *GetUserResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetUserResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } // GetConfig type GetConfigResponseEnvelope struct { - Response *GetConfigResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigResponseEnvelope) Reset() { *m = GetConfigResponseEnvelope{} } -func (m *GetConfigResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetConfigResponseEnvelope) ProtoMessage() {} -func (*GetConfigResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{11} + Response *GetConfigResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetConfigResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigResponseEnvelope.Unmarshal(m, b) -} -func (m *GetConfigResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetConfigResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigResponseEnvelope.Merge(m, src) +func (x *GetConfigResponseEnvelope) Reset() { + *x = GetConfigResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetConfigResponseEnvelope.Size(m) + +func (x *GetConfigResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigResponseEnvelope.DiscardUnknown(m) + +func (*GetConfigResponseEnvelope) ProtoMessage() {} + +func (x *GetConfigResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetConfigResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetConfigResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetConfigResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{11} +} -func (m *GetConfigResponseEnvelope) GetResponse() *GetConfigResponse { - if m != nil { - return m.Response +func (x *GetConfigResponseEnvelope) GetResponse() *GetConfigResponse { + if x != nil { + return x.Response } return nil } -func (m *GetConfigResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetConfigResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Config *ClusterConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} } -func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetConfigResponse) ProtoMessage() {} -func (*GetConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{12} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Config *ClusterConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigResponse.Unmarshal(m, b) -} -func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigResponse.Marshal(b, m, deterministic) -} -func (m *GetConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigResponse.Merge(m, src) +func (x *GetConfigResponse) Reset() { + *x = GetConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigResponse) XXX_Size() int { - return xxx_messageInfo_GetConfigResponse.Size(m) + +func (x *GetConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigResponse.DiscardUnknown(m) + +func (*GetConfigResponse) ProtoMessage() {} + +func (x *GetConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetConfigResponse proto.InternalMessageInfo +// Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead. +func (*GetConfigResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{12} +} -func (m *GetConfigResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetConfigResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetConfigResponse) GetConfig() *ClusterConfig { - if m != nil { - return m.Config +func (x *GetConfigResponse) GetConfig() *ClusterConfig { + if x != nil { + return x.Config } return nil } -func (m *GetConfigResponse) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *GetConfigResponse) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } // GetNodeConfig type GetNodeConfigResponseEnvelope struct { - Response *GetNodeConfigResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetNodeConfigResponseEnvelope) Reset() { *m = GetNodeConfigResponseEnvelope{} } -func (m *GetNodeConfigResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetNodeConfigResponseEnvelope) ProtoMessage() {} -func (*GetNodeConfigResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{13} + Response *GetNodeConfigResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetNodeConfigResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetNodeConfigResponseEnvelope.Unmarshal(m, b) -} -func (m *GetNodeConfigResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetNodeConfigResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetNodeConfigResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetNodeConfigResponseEnvelope.Merge(m, src) +func (x *GetNodeConfigResponseEnvelope) Reset() { + *x = GetNodeConfigResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetNodeConfigResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetNodeConfigResponseEnvelope.Size(m) + +func (x *GetNodeConfigResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetNodeConfigResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetNodeConfigResponseEnvelope.DiscardUnknown(m) + +func (*GetNodeConfigResponseEnvelope) ProtoMessage() {} + +func (x *GetNodeConfigResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetNodeConfigResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetNodeConfigResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetNodeConfigResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{13} +} -func (m *GetNodeConfigResponseEnvelope) GetResponse() *GetNodeConfigResponse { - if m != nil { - return m.Response +func (x *GetNodeConfigResponseEnvelope) GetResponse() *GetNodeConfigResponse { + if x != nil { + return x.Response } return nil } -func (m *GetNodeConfigResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetNodeConfigResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetNodeConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - NodeConfig *NodeConfig `protobuf:"bytes,2,opt,name=node_config,json=nodeConfig,proto3" json:"node_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetNodeConfigResponse) Reset() { *m = GetNodeConfigResponse{} } -func (m *GetNodeConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetNodeConfigResponse) ProtoMessage() {} -func (*GetNodeConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{14} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + NodeConfig *NodeConfig `protobuf:"bytes,2,opt,name=node_config,json=nodeConfig,proto3" json:"node_config,omitempty"` } -func (m *GetNodeConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetNodeConfigResponse.Unmarshal(m, b) -} -func (m *GetNodeConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetNodeConfigResponse.Marshal(b, m, deterministic) -} -func (m *GetNodeConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetNodeConfigResponse.Merge(m, src) +func (x *GetNodeConfigResponse) Reset() { + *x = GetNodeConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetNodeConfigResponse) XXX_Size() int { - return xxx_messageInfo_GetNodeConfigResponse.Size(m) + +func (x *GetNodeConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetNodeConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetNodeConfigResponse.DiscardUnknown(m) + +func (*GetNodeConfigResponse) ProtoMessage() {} + +func (x *GetNodeConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetNodeConfigResponse proto.InternalMessageInfo +// Deprecated: Use GetNodeConfigResponse.ProtoReflect.Descriptor instead. +func (*GetNodeConfigResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{14} +} -func (m *GetNodeConfigResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetNodeConfigResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetNodeConfigResponse) GetNodeConfig() *NodeConfig { - if m != nil { - return m.NodeConfig +func (x *GetNodeConfigResponse) GetNodeConfig() *NodeConfig { + if x != nil { + return x.NodeConfig } return nil } // GetConfigBlock type GetConfigBlockResponseEnvelope struct { - Response *GetConfigBlockResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetConfigBlockResponseEnvelope) Reset() { *m = GetConfigBlockResponseEnvelope{} } -func (m *GetConfigBlockResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetConfigBlockResponseEnvelope) ProtoMessage() {} -func (*GetConfigBlockResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{15} + Response *GetConfigBlockResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetConfigBlockResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigBlockResponseEnvelope.Unmarshal(m, b) -} -func (m *GetConfigBlockResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigBlockResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetConfigBlockResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigBlockResponseEnvelope.Merge(m, src) +func (x *GetConfigBlockResponseEnvelope) Reset() { + *x = GetConfigBlockResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigBlockResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetConfigBlockResponseEnvelope.Size(m) + +func (x *GetConfigBlockResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigBlockResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigBlockResponseEnvelope.DiscardUnknown(m) + +func (*GetConfigBlockResponseEnvelope) ProtoMessage() {} + +func (x *GetConfigBlockResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetConfigBlockResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetConfigBlockResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetConfigBlockResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{15} +} -func (m *GetConfigBlockResponseEnvelope) GetResponse() *GetConfigBlockResponse { - if m != nil { - return m.Response +func (x *GetConfigBlockResponseEnvelope) GetResponse() *GetConfigBlockResponse { + if x != nil { + return x.Response } return nil } -func (m *GetConfigBlockResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetConfigBlockResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetConfigBlockResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // block bytes, marshaled with proto.Marshal - Block []byte `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Block []byte `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` } -func (m *GetConfigBlockResponse) Reset() { *m = GetConfigBlockResponse{} } -func (m *GetConfigBlockResponse) String() string { return proto.CompactTextString(m) } -func (*GetConfigBlockResponse) ProtoMessage() {} -func (*GetConfigBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{16} +func (x *GetConfigBlockResponse) Reset() { + *x = GetConfigBlockResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigBlockResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigBlockResponse.Unmarshal(m, b) -} -func (m *GetConfigBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigBlockResponse.Marshal(b, m, deterministic) -} -func (m *GetConfigBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigBlockResponse.Merge(m, src) +func (x *GetConfigBlockResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigBlockResponse) XXX_Size() int { - return xxx_messageInfo_GetConfigBlockResponse.Size(m) -} -func (m *GetConfigBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigBlockResponse.DiscardUnknown(m) + +func (*GetConfigBlockResponse) ProtoMessage() {} + +func (x *GetConfigBlockResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetConfigBlockResponse proto.InternalMessageInfo +// Deprecated: Use GetConfigBlockResponse.ProtoReflect.Descriptor instead. +func (*GetConfigBlockResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{16} +} -func (m *GetConfigBlockResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetConfigBlockResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetConfigBlockResponse) GetBlock() []byte { - if m != nil { - return m.Block +func (x *GetConfigBlockResponse) GetBlock() []byte { + if x != nil { + return x.Block } return nil } // GetClusterStatus type GetClusterStatusResponseEnvelope struct { - Response *GetClusterStatusResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetClusterStatusResponseEnvelope) Reset() { *m = GetClusterStatusResponseEnvelope{} } -func (m *GetClusterStatusResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetClusterStatusResponseEnvelope) ProtoMessage() {} -func (*GetClusterStatusResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{17} + Response *GetClusterStatusResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetClusterStatusResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetClusterStatusResponseEnvelope.Unmarshal(m, b) -} -func (m *GetClusterStatusResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetClusterStatusResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetClusterStatusResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterStatusResponseEnvelope.Merge(m, src) +func (x *GetClusterStatusResponseEnvelope) Reset() { + *x = GetClusterStatusResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetClusterStatusResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetClusterStatusResponseEnvelope.Size(m) + +func (x *GetClusterStatusResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetClusterStatusResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterStatusResponseEnvelope.DiscardUnknown(m) + +func (*GetClusterStatusResponseEnvelope) ProtoMessage() {} + +func (x *GetClusterStatusResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetClusterStatusResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetClusterStatusResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetClusterStatusResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{17} +} -func (m *GetClusterStatusResponseEnvelope) GetResponse() *GetClusterStatusResponse { - if m != nil { - return m.Response +func (x *GetClusterStatusResponseEnvelope) GetResponse() *GetClusterStatusResponse { + if x != nil { + return x.Response } return nil } -func (m *GetClusterStatusResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetClusterStatusResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetClusterStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The configuration of the nodes, the part from ClusterConfig accessible to every client. Nodes []*NodeConfig `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` @@ -915,1426 +1066,2575 @@ type GetClusterStatusResponse struct { // The leader ID, if it exists. Leader string `protobuf:"bytes,4,opt,name=Leader,proto3" json:"Leader,omitempty"` // The IDs of active nodes, including the leader. - Active []string `protobuf:"bytes,5,rep,name=Active,proto3" json:"Active,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Active []string `protobuf:"bytes,5,rep,name=Active,proto3" json:"Active,omitempty"` } -func (m *GetClusterStatusResponse) Reset() { *m = GetClusterStatusResponse{} } -func (m *GetClusterStatusResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterStatusResponse) ProtoMessage() {} -func (*GetClusterStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{18} +func (x *GetClusterStatusResponse) Reset() { + *x = GetClusterStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetClusterStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetClusterStatusResponse.Unmarshal(m, b) -} -func (m *GetClusterStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetClusterStatusResponse.Marshal(b, m, deterministic) -} -func (m *GetClusterStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterStatusResponse.Merge(m, src) -} -func (m *GetClusterStatusResponse) XXX_Size() int { - return xxx_messageInfo_GetClusterStatusResponse.Size(m) +func (x *GetClusterStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetClusterStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterStatusResponse.DiscardUnknown(m) + +func (*GetClusterStatusResponse) ProtoMessage() {} + +func (x *GetClusterStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetClusterStatusResponse proto.InternalMessageInfo +// Deprecated: Use GetClusterStatusResponse.ProtoReflect.Descriptor instead. +func (*GetClusterStatusResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{18} +} -func (m *GetClusterStatusResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetClusterStatusResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetClusterStatusResponse) GetNodes() []*NodeConfig { - if m != nil { - return m.Nodes +func (x *GetClusterStatusResponse) GetNodes() []*NodeConfig { + if x != nil { + return x.Nodes } return nil } -func (m *GetClusterStatusResponse) GetVersion() *Version { - if m != nil { - return m.Version +func (x *GetClusterStatusResponse) GetVersion() *Version { + if x != nil { + return x.Version } return nil } -func (m *GetClusterStatusResponse) GetLeader() string { - if m != nil { - return m.Leader +func (x *GetClusterStatusResponse) GetLeader() string { + if x != nil { + return x.Leader } return "" } -func (m *GetClusterStatusResponse) GetActive() []string { - if m != nil { - return m.Active +func (x *GetClusterStatusResponse) GetActive() []string { + if x != nil { + return x.Active } return nil } // GetBlock type GetBlockResponseEnvelope struct { - Response *GetBlockResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBlockResponseEnvelope) Reset() { *m = GetBlockResponseEnvelope{} } -func (m *GetBlockResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetBlockResponseEnvelope) ProtoMessage() {} -func (*GetBlockResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{19} + Response *GetBlockResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetBlockResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlockResponseEnvelope.Unmarshal(m, b) -} -func (m *GetBlockResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlockResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetBlockResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlockResponseEnvelope.Merge(m, src) +func (x *GetBlockResponseEnvelope) Reset() { + *x = GetBlockResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlockResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetBlockResponseEnvelope.Size(m) + +func (x *GetBlockResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlockResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlockResponseEnvelope.DiscardUnknown(m) + +func (*GetBlockResponseEnvelope) ProtoMessage() {} + +func (x *GetBlockResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetBlockResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetBlockResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetBlockResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{19} +} -func (m *GetBlockResponseEnvelope) GetResponse() *GetBlockResponse { - if m != nil { - return m.Response +func (x *GetBlockResponseEnvelope) GetResponse() *GetBlockResponse { + if x != nil { + return x.Response } return nil } -func (m *GetBlockResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetBlockResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetBlockResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - BlockHeader *BlockHeader `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBlockResponse) Reset() { *m = GetBlockResponse{} } -func (m *GetBlockResponse) String() string { return proto.CompactTextString(m) } -func (*GetBlockResponse) ProtoMessage() {} -func (*GetBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{20} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + BlockHeader *BlockHeader `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` } -func (m *GetBlockResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlockResponse.Unmarshal(m, b) -} -func (m *GetBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlockResponse.Marshal(b, m, deterministic) -} -func (m *GetBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlockResponse.Merge(m, src) +func (x *GetBlockResponse) Reset() { + *x = GetBlockResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlockResponse) XXX_Size() int { - return xxx_messageInfo_GetBlockResponse.Size(m) + +func (x *GetBlockResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlockResponse.DiscardUnknown(m) + +func (*GetBlockResponse) ProtoMessage() {} + +func (x *GetBlockResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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) } -var xxx_messageInfo_GetBlockResponse proto.InternalMessageInfo +// Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead. +func (*GetBlockResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{20} +} -func (m *GetBlockResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetBlockResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetBlockResponse) GetBlockHeader() *BlockHeader { - if m != nil { - return m.BlockHeader +func (x *GetBlockResponse) GetBlockHeader() *BlockHeader { + if x != nil { + return x.BlockHeader } return nil } // GetAugmentedBlockHeader type GetAugmentedBlockHeaderResponseEnvelope struct { - Response *GetAugmentedBlockHeaderResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetAugmentedBlockHeaderResponseEnvelope) Reset() { - *m = GetAugmentedBlockHeaderResponseEnvelope{} -} -func (m *GetAugmentedBlockHeaderResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetAugmentedBlockHeaderResponseEnvelope) ProtoMessage() {} -func (*GetAugmentedBlockHeaderResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{21} + Response *GetAugmentedBlockHeaderResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetAugmentedBlockHeaderResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetAugmentedBlockHeaderResponseEnvelope.Unmarshal(m, b) -} -func (m *GetAugmentedBlockHeaderResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetAugmentedBlockHeaderResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetAugmentedBlockHeaderResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAugmentedBlockHeaderResponseEnvelope.Merge(m, src) +func (x *GetAugmentedBlockHeaderResponseEnvelope) Reset() { + *x = GetAugmentedBlockHeaderResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetAugmentedBlockHeaderResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetAugmentedBlockHeaderResponseEnvelope.Size(m) + +func (x *GetAugmentedBlockHeaderResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetAugmentedBlockHeaderResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetAugmentedBlockHeaderResponseEnvelope.DiscardUnknown(m) + +func (*GetAugmentedBlockHeaderResponseEnvelope) ProtoMessage() {} + +func (x *GetAugmentedBlockHeaderResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetAugmentedBlockHeaderResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetAugmentedBlockHeaderResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetAugmentedBlockHeaderResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{21} +} -func (m *GetAugmentedBlockHeaderResponseEnvelope) GetResponse() *GetAugmentedBlockHeaderResponse { - if m != nil { - return m.Response +func (x *GetAugmentedBlockHeaderResponseEnvelope) GetResponse() *GetAugmentedBlockHeaderResponse { + if x != nil { + return x.Response } return nil } -func (m *GetAugmentedBlockHeaderResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetAugmentedBlockHeaderResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetAugmentedBlockHeaderResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - BlockHeader *AugmentedBlockHeader `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetAugmentedBlockHeaderResponse) Reset() { *m = GetAugmentedBlockHeaderResponse{} } -func (m *GetAugmentedBlockHeaderResponse) String() string { return proto.CompactTextString(m) } -func (*GetAugmentedBlockHeaderResponse) ProtoMessage() {} -func (*GetAugmentedBlockHeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{22} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + BlockHeader *AugmentedBlockHeader `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` } -func (m *GetAugmentedBlockHeaderResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetAugmentedBlockHeaderResponse.Unmarshal(m, b) -} -func (m *GetAugmentedBlockHeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetAugmentedBlockHeaderResponse.Marshal(b, m, deterministic) -} -func (m *GetAugmentedBlockHeaderResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAugmentedBlockHeaderResponse.Merge(m, src) +func (x *GetAugmentedBlockHeaderResponse) Reset() { + *x = GetAugmentedBlockHeaderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetAugmentedBlockHeaderResponse) XXX_Size() int { - return xxx_messageInfo_GetAugmentedBlockHeaderResponse.Size(m) + +func (x *GetAugmentedBlockHeaderResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetAugmentedBlockHeaderResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAugmentedBlockHeaderResponse.DiscardUnknown(m) + +func (*GetAugmentedBlockHeaderResponse) ProtoMessage() {} + +func (x *GetAugmentedBlockHeaderResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetAugmentedBlockHeaderResponse proto.InternalMessageInfo +// Deprecated: Use GetAugmentedBlockHeaderResponse.ProtoReflect.Descriptor instead. +func (*GetAugmentedBlockHeaderResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{22} +} -func (m *GetAugmentedBlockHeaderResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetAugmentedBlockHeaderResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetAugmentedBlockHeaderResponse) GetBlockHeader() *AugmentedBlockHeader { - if m != nil { - return m.BlockHeader +func (x *GetAugmentedBlockHeaderResponse) GetBlockHeader() *AugmentedBlockHeader { + if x != nil { + return x.BlockHeader } return nil } // GetLedgerPath type GetLedgerPathResponseEnvelope struct { - Response *GetLedgerPathResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetLedgerPathResponseEnvelope) Reset() { *m = GetLedgerPathResponseEnvelope{} } -func (m *GetLedgerPathResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetLedgerPathResponseEnvelope) ProtoMessage() {} -func (*GetLedgerPathResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{23} + Response *GetLedgerPathResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetLedgerPathResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLedgerPathResponseEnvelope.Unmarshal(m, b) -} -func (m *GetLedgerPathResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLedgerPathResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetLedgerPathResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLedgerPathResponseEnvelope.Merge(m, src) +func (x *GetLedgerPathResponseEnvelope) Reset() { + *x = GetLedgerPathResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLedgerPathResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetLedgerPathResponseEnvelope.Size(m) + +func (x *GetLedgerPathResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLedgerPathResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetLedgerPathResponseEnvelope.DiscardUnknown(m) + +func (*GetLedgerPathResponseEnvelope) ProtoMessage() {} + +func (x *GetLedgerPathResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetLedgerPathResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetLedgerPathResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetLedgerPathResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{23} +} -func (m *GetLedgerPathResponseEnvelope) GetResponse() *GetLedgerPathResponse { - if m != nil { - return m.Response +func (x *GetLedgerPathResponseEnvelope) GetResponse() *GetLedgerPathResponse { + if x != nil { + return x.Response } return nil } -func (m *GetLedgerPathResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetLedgerPathResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetLedgerPathResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - BlockHeaders []*BlockHeader `protobuf:"bytes,2,rep,name=block_headers,json=blockHeaders,proto3" json:"block_headers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetLedgerPathResponse) Reset() { *m = GetLedgerPathResponse{} } -func (m *GetLedgerPathResponse) String() string { return proto.CompactTextString(m) } -func (*GetLedgerPathResponse) ProtoMessage() {} -func (*GetLedgerPathResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{24} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + BlockHeaders []*BlockHeader `protobuf:"bytes,2,rep,name=block_headers,json=blockHeaders,proto3" json:"block_headers,omitempty"` } -func (m *GetLedgerPathResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLedgerPathResponse.Unmarshal(m, b) -} -func (m *GetLedgerPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLedgerPathResponse.Marshal(b, m, deterministic) -} -func (m *GetLedgerPathResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLedgerPathResponse.Merge(m, src) +func (x *GetLedgerPathResponse) Reset() { + *x = GetLedgerPathResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLedgerPathResponse) XXX_Size() int { - return xxx_messageInfo_GetLedgerPathResponse.Size(m) + +func (x *GetLedgerPathResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLedgerPathResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLedgerPathResponse.DiscardUnknown(m) + +func (*GetLedgerPathResponse) ProtoMessage() {} + +func (x *GetLedgerPathResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetLedgerPathResponse proto.InternalMessageInfo +// Deprecated: Use GetLedgerPathResponse.ProtoReflect.Descriptor instead. +func (*GetLedgerPathResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{24} +} -func (m *GetLedgerPathResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetLedgerPathResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetLedgerPathResponse) GetBlockHeaders() []*BlockHeader { - if m != nil { - return m.BlockHeaders +func (x *GetLedgerPathResponse) GetBlockHeaders() []*BlockHeader { + if x != nil { + return x.BlockHeaders } return nil } // GetTxProof type GetTxProofResponseEnvelope struct { - Response *GetTxProofResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxProofResponseEnvelope) Reset() { *m = GetTxProofResponseEnvelope{} } -func (m *GetTxProofResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTxProofResponseEnvelope) ProtoMessage() {} -func (*GetTxProofResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{25} + Response *GetTxProofResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetTxProofResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxProofResponseEnvelope.Unmarshal(m, b) -} -func (m *GetTxProofResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxProofResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTxProofResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxProofResponseEnvelope.Merge(m, src) +func (x *GetTxProofResponseEnvelope) Reset() { + *x = GetTxProofResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxProofResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTxProofResponseEnvelope.Size(m) + +func (x *GetTxProofResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxProofResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxProofResponseEnvelope.DiscardUnknown(m) + +func (*GetTxProofResponseEnvelope) ProtoMessage() {} + +func (x *GetTxProofResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetTxProofResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetTxProofResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetTxProofResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{25} +} -func (m *GetTxProofResponseEnvelope) GetResponse() *GetTxProofResponse { - if m != nil { - return m.Response +func (x *GetTxProofResponseEnvelope) GetResponse() *GetTxProofResponse { + if x != nil { + return x.Response } return nil } -func (m *GetTxProofResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetTxProofResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetTxProofResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxProofResponse) Reset() { *m = GetTxProofResponse{} } -func (m *GetTxProofResponse) String() string { return proto.CompactTextString(m) } -func (*GetTxProofResponse) ProtoMessage() {} -func (*GetTxProofResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{26} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` } -func (m *GetTxProofResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxProofResponse.Unmarshal(m, b) -} -func (m *GetTxProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxProofResponse.Marshal(b, m, deterministic) -} -func (m *GetTxProofResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxProofResponse.Merge(m, src) +func (x *GetTxProofResponse) Reset() { + *x = GetTxProofResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxProofResponse) XXX_Size() int { - return xxx_messageInfo_GetTxProofResponse.Size(m) + +func (x *GetTxProofResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxProofResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxProofResponse.DiscardUnknown(m) + +func (*GetTxProofResponse) ProtoMessage() {} + +func (x *GetTxProofResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetTxProofResponse proto.InternalMessageInfo +// Deprecated: Use GetTxProofResponse.ProtoReflect.Descriptor instead. +func (*GetTxProofResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{26} +} -func (m *GetTxProofResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetTxProofResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetTxProofResponse) GetHashes() [][]byte { - if m != nil { - return m.Hashes +func (x *GetTxProofResponse) GetHashes() [][]byte { + if x != nil { + return x.Hashes } return nil } // GetDataProof type GetDataProofResponseEnvelope struct { - Response *GetDataProofResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataProofResponseEnvelope) Reset() { *m = GetDataProofResponseEnvelope{} } -func (m *GetDataProofResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataProofResponseEnvelope) ProtoMessage() {} -func (*GetDataProofResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{27} + Response *GetDataProofResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataProofResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProofResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataProofResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProofResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataProofResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProofResponseEnvelope.Merge(m, src) +func (x *GetDataProofResponseEnvelope) Reset() { + *x = GetDataProofResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProofResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataProofResponseEnvelope.Size(m) + +func (x *GetDataProofResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProofResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProofResponseEnvelope.DiscardUnknown(m) + +func (*GetDataProofResponseEnvelope) ProtoMessage() {} + +func (x *GetDataProofResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataProofResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataProofResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataProofResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{27} +} -func (m *GetDataProofResponseEnvelope) GetResponse() *GetDataProofResponse { - if m != nil { - return m.Response +func (x *GetDataProofResponseEnvelope) GetResponse() *GetDataProofResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataProofResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataProofResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataProofResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Path []*MPTrieProofElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataProofResponse) Reset() { *m = GetDataProofResponse{} } -func (m *GetDataProofResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataProofResponse) ProtoMessage() {} -func (*GetDataProofResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{28} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Path []*MPTrieProofElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` } -func (m *GetDataProofResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProofResponse.Unmarshal(m, b) -} -func (m *GetDataProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProofResponse.Marshal(b, m, deterministic) -} -func (m *GetDataProofResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProofResponse.Merge(m, src) +func (x *GetDataProofResponse) Reset() { + *x = GetDataProofResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProofResponse) XXX_Size() int { - return xxx_messageInfo_GetDataProofResponse.Size(m) + +func (x *GetDataProofResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProofResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProofResponse.DiscardUnknown(m) + +func (*GetDataProofResponse) ProtoMessage() {} + +func (x *GetDataProofResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataProofResponse proto.InternalMessageInfo +// Deprecated: Use GetDataProofResponse.ProtoReflect.Descriptor instead. +func (*GetDataProofResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{28} +} -func (m *GetDataProofResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataProofResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataProofResponse) GetPath() []*MPTrieProofElement { - if m != nil { - return m.Path +func (x *GetDataProofResponse) GetPath() []*MPTrieProofElement { + if x != nil { + return x.Path } return nil } type MPTrieProofElement struct { - Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MPTrieProofElement) Reset() { *m = MPTrieProofElement{} } -func (m *MPTrieProofElement) String() string { return proto.CompactTextString(m) } -func (*MPTrieProofElement) ProtoMessage() {} -func (*MPTrieProofElement) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{29} + Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` } -func (m *MPTrieProofElement) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPTrieProofElement.Unmarshal(m, b) -} -func (m *MPTrieProofElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPTrieProofElement.Marshal(b, m, deterministic) -} -func (m *MPTrieProofElement) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPTrieProofElement.Merge(m, src) +func (x *MPTrieProofElement) Reset() { + *x = MPTrieProofElement{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MPTrieProofElement) XXX_Size() int { - return xxx_messageInfo_MPTrieProofElement.Size(m) + +func (x *MPTrieProofElement) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MPTrieProofElement) XXX_DiscardUnknown() { - xxx_messageInfo_MPTrieProofElement.DiscardUnknown(m) + +func (*MPTrieProofElement) ProtoMessage() {} + +func (x *MPTrieProofElement) ProtoReflect() protoreflect.Message { + mi := &file_response_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_MPTrieProofElement proto.InternalMessageInfo +// Deprecated: Use MPTrieProofElement.ProtoReflect.Descriptor instead. +func (*MPTrieProofElement) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{29} +} -func (m *MPTrieProofElement) GetHashes() [][]byte { - if m != nil { - return m.Hashes +func (x *MPTrieProofElement) GetHashes() [][]byte { + if x != nil { + return x.Hashes } return nil } // GetHistoricalData type GetHistoricalDataResponseEnvelope struct { - Response *GetHistoricalDataResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetHistoricalDataResponseEnvelope) Reset() { *m = GetHistoricalDataResponseEnvelope{} } -func (m *GetHistoricalDataResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetHistoricalDataResponseEnvelope) ProtoMessage() {} -func (*GetHistoricalDataResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{30} + Response *GetHistoricalDataResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetHistoricalDataResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetHistoricalDataResponseEnvelope.Unmarshal(m, b) -} -func (m *GetHistoricalDataResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetHistoricalDataResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetHistoricalDataResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHistoricalDataResponseEnvelope.Merge(m, src) +func (x *GetHistoricalDataResponseEnvelope) Reset() { + *x = GetHistoricalDataResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetHistoricalDataResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetHistoricalDataResponseEnvelope.Size(m) + +func (x *GetHistoricalDataResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetHistoricalDataResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetHistoricalDataResponseEnvelope.DiscardUnknown(m) + +func (*GetHistoricalDataResponseEnvelope) ProtoMessage() {} + +func (x *GetHistoricalDataResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetHistoricalDataResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetHistoricalDataResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetHistoricalDataResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{30} +} -func (m *GetHistoricalDataResponseEnvelope) GetResponse() *GetHistoricalDataResponse { - if m != nil { - return m.Response +func (x *GetHistoricalDataResponseEnvelope) GetResponse() *GetHistoricalDataResponse { + if x != nil { + return x.Response } return nil } -func (m *GetHistoricalDataResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetHistoricalDataResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetHistoricalDataResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Values []*ValueWithMetadata `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetHistoricalDataResponse) Reset() { *m = GetHistoricalDataResponse{} } -func (m *GetHistoricalDataResponse) String() string { return proto.CompactTextString(m) } -func (*GetHistoricalDataResponse) ProtoMessage() {} -func (*GetHistoricalDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{31} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Values []*ValueWithMetadata `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` } -func (m *GetHistoricalDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetHistoricalDataResponse.Unmarshal(m, b) -} -func (m *GetHistoricalDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetHistoricalDataResponse.Marshal(b, m, deterministic) -} -func (m *GetHistoricalDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHistoricalDataResponse.Merge(m, src) +func (x *GetHistoricalDataResponse) Reset() { + *x = GetHistoricalDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetHistoricalDataResponse) XXX_Size() int { - return xxx_messageInfo_GetHistoricalDataResponse.Size(m) + +func (x *GetHistoricalDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetHistoricalDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetHistoricalDataResponse.DiscardUnknown(m) + +func (*GetHistoricalDataResponse) ProtoMessage() {} + +func (x *GetHistoricalDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetHistoricalDataResponse proto.InternalMessageInfo +// Deprecated: Use GetHistoricalDataResponse.ProtoReflect.Descriptor instead. +func (*GetHistoricalDataResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{31} +} -func (m *GetHistoricalDataResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetHistoricalDataResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetHistoricalDataResponse) GetValues() []*ValueWithMetadata { - if m != nil { - return m.Values +func (x *GetHistoricalDataResponse) GetValues() []*ValueWithMetadata { + if x != nil { + return x.Values } return nil } // GetDataReaders type GetDataReadersResponseEnvelope struct { - Response *GetDataReadersResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataReadersResponseEnvelope) Reset() { *m = GetDataReadersResponseEnvelope{} } -func (m *GetDataReadersResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataReadersResponseEnvelope) ProtoMessage() {} -func (*GetDataReadersResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{32} + Response *GetDataReadersResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataReadersResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadersResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataReadersResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadersResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataReadersResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadersResponseEnvelope.Merge(m, src) +func (x *GetDataReadersResponseEnvelope) Reset() { + *x = GetDataReadersResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadersResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataReadersResponseEnvelope.Size(m) + +func (x *GetDataReadersResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadersResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadersResponseEnvelope.DiscardUnknown(m) + +func (*GetDataReadersResponseEnvelope) ProtoMessage() {} + +func (x *GetDataReadersResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataReadersResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataReadersResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataReadersResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{32} +} -func (m *GetDataReadersResponseEnvelope) GetResponse() *GetDataReadersResponse { - if m != nil { - return m.Response +func (x *GetDataReadersResponseEnvelope) GetResponse() *GetDataReadersResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataReadersResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataReadersResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataReadersResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ReadBy map[string]uint32 `protobuf:"bytes,2,rep,name=read_by,json=readBy,proto3" json:"read_by,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,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 *GetDataReadersResponse) Reset() { *m = GetDataReadersResponse{} } -func (m *GetDataReadersResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataReadersResponse) ProtoMessage() {} -func (*GetDataReadersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{33} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ReadBy map[string]uint32 `protobuf:"bytes,2,rep,name=read_by,json=readBy,proto3" json:"read_by,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } -func (m *GetDataReadersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataReadersResponse.Unmarshal(m, b) -} -func (m *GetDataReadersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataReadersResponse.Marshal(b, m, deterministic) -} -func (m *GetDataReadersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataReadersResponse.Merge(m, src) +func (x *GetDataReadersResponse) Reset() { + *x = GetDataReadersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataReadersResponse) XXX_Size() int { - return xxx_messageInfo_GetDataReadersResponse.Size(m) + +func (x *GetDataReadersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataReadersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataReadersResponse.DiscardUnknown(m) + +func (*GetDataReadersResponse) ProtoMessage() {} + +func (x *GetDataReadersResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_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_GetDataReadersResponse proto.InternalMessageInfo +// Deprecated: Use GetDataReadersResponse.ProtoReflect.Descriptor instead. +func (*GetDataReadersResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{33} +} -func (m *GetDataReadersResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataReadersResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataReadersResponse) GetReadBy() map[string]uint32 { - if m != nil { - return m.ReadBy +func (x *GetDataReadersResponse) GetReadBy() map[string]uint32 { + if x != nil { + return x.ReadBy } return nil } // GetDataWriters type GetDataWritersResponseEnvelope struct { - Response *GetDataWritersResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataWritersResponseEnvelope) Reset() { *m = GetDataWritersResponseEnvelope{} } -func (m *GetDataWritersResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataWritersResponseEnvelope) ProtoMessage() {} -func (*GetDataWritersResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{34} + Response *GetDataWritersResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataWritersResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWritersResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataWritersResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWritersResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataWritersResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWritersResponseEnvelope.Merge(m, src) +func (x *GetDataWritersResponseEnvelope) Reset() { + *x = GetDataWritersResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWritersResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataWritersResponseEnvelope.Size(m) + +func (x *GetDataWritersResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWritersResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWritersResponseEnvelope.DiscardUnknown(m) + +func (*GetDataWritersResponseEnvelope) ProtoMessage() {} + +func (x *GetDataWritersResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[34] + 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_GetDataWritersResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataWritersResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataWritersResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{34} +} -func (m *GetDataWritersResponseEnvelope) GetResponse() *GetDataWritersResponse { - if m != nil { - return m.Response +func (x *GetDataWritersResponseEnvelope) GetResponse() *GetDataWritersResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataWritersResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataWritersResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetDataWritersResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - WrittenBy map[string]uint32 `protobuf:"bytes,2,rep,name=written_by,json=writtenBy,proto3" json:"written_by,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,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 *GetDataWritersResponse) Reset() { *m = GetDataWritersResponse{} } -func (m *GetDataWritersResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataWritersResponse) ProtoMessage() {} -func (*GetDataWritersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{35} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + WrittenBy map[string]uint32 `protobuf:"bytes,2,rep,name=written_by,json=writtenBy,proto3" json:"written_by,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } -func (m *GetDataWritersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataWritersResponse.Unmarshal(m, b) -} -func (m *GetDataWritersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataWritersResponse.Marshal(b, m, deterministic) -} -func (m *GetDataWritersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataWritersResponse.Merge(m, src) +func (x *GetDataWritersResponse) Reset() { + *x = GetDataWritersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataWritersResponse) XXX_Size() int { - return xxx_messageInfo_GetDataWritersResponse.Size(m) + +func (x *GetDataWritersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataWritersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataWritersResponse.DiscardUnknown(m) + +func (*GetDataWritersResponse) ProtoMessage() {} + +func (x *GetDataWritersResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[35] + 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_GetDataWritersResponse proto.InternalMessageInfo +// Deprecated: Use GetDataWritersResponse.ProtoReflect.Descriptor instead. +func (*GetDataWritersResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{35} +} -func (m *GetDataWritersResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataWritersResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataWritersResponse) GetWrittenBy() map[string]uint32 { - if m != nil { - return m.WrittenBy +func (x *GetDataWritersResponse) GetWrittenBy() map[string]uint32 { + if x != nil { + return x.WrittenBy } return nil } // GetDataProvenance type GetDataProvenanceResponseEnvelope struct { - Response *GetDataProvenanceResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetDataProvenanceResponseEnvelope) Reset() { *m = GetDataProvenanceResponseEnvelope{} } -func (m *GetDataProvenanceResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetDataProvenanceResponseEnvelope) ProtoMessage() {} -func (*GetDataProvenanceResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{36} + Response *GetDataProvenanceResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetDataProvenanceResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProvenanceResponseEnvelope.Unmarshal(m, b) -} -func (m *GetDataProvenanceResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProvenanceResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetDataProvenanceResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProvenanceResponseEnvelope.Merge(m, src) +func (x *GetDataProvenanceResponseEnvelope) Reset() { + *x = GetDataProvenanceResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProvenanceResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetDataProvenanceResponseEnvelope.Size(m) + +func (x *GetDataProvenanceResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProvenanceResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProvenanceResponseEnvelope.DiscardUnknown(m) + +func (*GetDataProvenanceResponseEnvelope) ProtoMessage() {} + +func (x *GetDataProvenanceResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[36] + 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_GetDataProvenanceResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetDataProvenanceResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetDataProvenanceResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{36} +} -func (m *GetDataProvenanceResponseEnvelope) GetResponse() *GetDataProvenanceResponse { - if m != nil { - return m.Response +func (x *GetDataProvenanceResponseEnvelope) GetResponse() *GetDataProvenanceResponse { + if x != nil { + return x.Response } return nil } -func (m *GetDataProvenanceResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetDataProvenanceResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type KVsWithMetadata struct { - KVs []*KVWithMetadata `protobuf:"bytes,1,rep,name=KVs,proto3" json:"KVs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *KVsWithMetadata) Reset() { *m = KVsWithMetadata{} } -func (m *KVsWithMetadata) String() string { return proto.CompactTextString(m) } -func (*KVsWithMetadata) ProtoMessage() {} -func (*KVsWithMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{37} + KVs []*KVWithMetadata `protobuf:"bytes,1,rep,name=KVs,proto3" json:"KVs,omitempty"` } -func (m *KVsWithMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KVsWithMetadata.Unmarshal(m, b) -} -func (m *KVsWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KVsWithMetadata.Marshal(b, m, deterministic) -} -func (m *KVsWithMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVsWithMetadata.Merge(m, src) +func (x *KVsWithMetadata) Reset() { + *x = KVsWithMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *KVsWithMetadata) XXX_Size() int { - return xxx_messageInfo_KVsWithMetadata.Size(m) + +func (x *KVsWithMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KVsWithMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_KVsWithMetadata.DiscardUnknown(m) + +func (*KVsWithMetadata) ProtoMessage() {} + +func (x *KVsWithMetadata) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[37] + 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_KVsWithMetadata proto.InternalMessageInfo +// Deprecated: Use KVsWithMetadata.ProtoReflect.Descriptor instead. +func (*KVsWithMetadata) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{37} +} -func (m *KVsWithMetadata) GetKVs() []*KVWithMetadata { - if m != nil { - return m.KVs +func (x *KVsWithMetadata) GetKVs() []*KVWithMetadata { + if x != nil { + return x.KVs } return nil } type GetDataProvenanceResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - DBKeyValues map[string]*KVsWithMetadata `protobuf:"bytes,2,rep,name=DBKeyValues,proto3" json:"DBKeyValues,omitempty" protobuf_key:"bytes,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 *GetDataProvenanceResponse) Reset() { *m = GetDataProvenanceResponse{} } -func (m *GetDataProvenanceResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataProvenanceResponse) ProtoMessage() {} -func (*GetDataProvenanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{38} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + DBKeyValues map[string]*KVsWithMetadata `protobuf:"bytes,2,rep,name=DBKeyValues,proto3" json:"DBKeyValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *GetDataProvenanceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataProvenanceResponse.Unmarshal(m, b) -} -func (m *GetDataProvenanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataProvenanceResponse.Marshal(b, m, deterministic) -} -func (m *GetDataProvenanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataProvenanceResponse.Merge(m, src) +func (x *GetDataProvenanceResponse) Reset() { + *x = GetDataProvenanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetDataProvenanceResponse) XXX_Size() int { - return xxx_messageInfo_GetDataProvenanceResponse.Size(m) + +func (x *GetDataProvenanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDataProvenanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataProvenanceResponse.DiscardUnknown(m) + +func (*GetDataProvenanceResponse) ProtoMessage() {} + +func (x *GetDataProvenanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[38] + 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_GetDataProvenanceResponse proto.InternalMessageInfo +// Deprecated: Use GetDataProvenanceResponse.ProtoReflect.Descriptor instead. +func (*GetDataProvenanceResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{38} +} -func (m *GetDataProvenanceResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetDataProvenanceResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetDataProvenanceResponse) GetDBKeyValues() map[string]*KVsWithMetadata { - if m != nil { - return m.DBKeyValues +func (x *GetDataProvenanceResponse) GetDBKeyValues() map[string]*KVsWithMetadata { + if x != nil { + return x.DBKeyValues } return nil } // GetTxIDsSubmittedBy type GetTxIDsSubmittedByResponseEnvelope struct { - Response *GetTxIDsSubmittedByResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxIDsSubmittedByResponseEnvelope) Reset() { *m = GetTxIDsSubmittedByResponseEnvelope{} } -func (m *GetTxIDsSubmittedByResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*GetTxIDsSubmittedByResponseEnvelope) ProtoMessage() {} -func (*GetTxIDsSubmittedByResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{39} + Response *GetTxIDsSubmittedByResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *GetTxIDsSubmittedByResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxIDsSubmittedByResponseEnvelope.Unmarshal(m, b) -} -func (m *GetTxIDsSubmittedByResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxIDsSubmittedByResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *GetTxIDsSubmittedByResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxIDsSubmittedByResponseEnvelope.Merge(m, src) +func (x *GetTxIDsSubmittedByResponseEnvelope) Reset() { + *x = GetTxIDsSubmittedByResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxIDsSubmittedByResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_GetTxIDsSubmittedByResponseEnvelope.Size(m) + +func (x *GetTxIDsSubmittedByResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxIDsSubmittedByResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxIDsSubmittedByResponseEnvelope.DiscardUnknown(m) + +func (*GetTxIDsSubmittedByResponseEnvelope) ProtoMessage() {} + +func (x *GetTxIDsSubmittedByResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[39] + 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_GetTxIDsSubmittedByResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use GetTxIDsSubmittedByResponseEnvelope.ProtoReflect.Descriptor instead. +func (*GetTxIDsSubmittedByResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{39} +} -func (m *GetTxIDsSubmittedByResponseEnvelope) GetResponse() *GetTxIDsSubmittedByResponse { - if m != nil { - return m.Response +func (x *GetTxIDsSubmittedByResponseEnvelope) GetResponse() *GetTxIDsSubmittedByResponse { + if x != nil { + return x.Response } return nil } -func (m *GetTxIDsSubmittedByResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *GetTxIDsSubmittedByResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type GetTxIDsSubmittedByResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - TxIDs []string `protobuf:"bytes,2,rep,name=txIDs,proto3" json:"txIDs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTxIDsSubmittedByResponse) Reset() { *m = GetTxIDsSubmittedByResponse{} } -func (m *GetTxIDsSubmittedByResponse) String() string { return proto.CompactTextString(m) } -func (*GetTxIDsSubmittedByResponse) ProtoMessage() {} -func (*GetTxIDsSubmittedByResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{40} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TxIDs []string `protobuf:"bytes,2,rep,name=txIDs,proto3" json:"txIDs,omitempty"` } -func (m *GetTxIDsSubmittedByResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTxIDsSubmittedByResponse.Unmarshal(m, b) -} -func (m *GetTxIDsSubmittedByResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTxIDsSubmittedByResponse.Marshal(b, m, deterministic) -} -func (m *GetTxIDsSubmittedByResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTxIDsSubmittedByResponse.Merge(m, src) +func (x *GetTxIDsSubmittedByResponse) Reset() { + *x = GetTxIDsSubmittedByResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTxIDsSubmittedByResponse) XXX_Size() int { - return xxx_messageInfo_GetTxIDsSubmittedByResponse.Size(m) + +func (x *GetTxIDsSubmittedByResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTxIDsSubmittedByResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetTxIDsSubmittedByResponse.DiscardUnknown(m) + +func (*GetTxIDsSubmittedByResponse) ProtoMessage() {} + +func (x *GetTxIDsSubmittedByResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[40] + 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_GetTxIDsSubmittedByResponse proto.InternalMessageInfo +// Deprecated: Use GetTxIDsSubmittedByResponse.ProtoReflect.Descriptor instead. +func (*GetTxIDsSubmittedByResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{40} +} -func (m *GetTxIDsSubmittedByResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *GetTxIDsSubmittedByResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *GetTxIDsSubmittedByResponse) GetTxIDs() []string { - if m != nil { - return m.TxIDs +func (x *GetTxIDsSubmittedByResponse) GetTxIDs() []string { + if x != nil { + return x.TxIDs } return nil } type TxReceiptResponseEnvelope struct { - Response *TxReceiptResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxReceiptResponseEnvelope) Reset() { *m = TxReceiptResponseEnvelope{} } -func (m *TxReceiptResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*TxReceiptResponseEnvelope) ProtoMessage() {} -func (*TxReceiptResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{41} + Response *TxReceiptResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *TxReceiptResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxReceiptResponseEnvelope.Unmarshal(m, b) -} -func (m *TxReceiptResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxReceiptResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *TxReceiptResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxReceiptResponseEnvelope.Merge(m, src) +func (x *TxReceiptResponseEnvelope) Reset() { + *x = TxReceiptResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxReceiptResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_TxReceiptResponseEnvelope.Size(m) + +func (x *TxReceiptResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxReceiptResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_TxReceiptResponseEnvelope.DiscardUnknown(m) + +func (*TxReceiptResponseEnvelope) ProtoMessage() {} + +func (x *TxReceiptResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[41] + 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_TxReceiptResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use TxReceiptResponseEnvelope.ProtoReflect.Descriptor instead. +func (*TxReceiptResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{41} +} -func (m *TxReceiptResponseEnvelope) GetResponse() *TxReceiptResponse { - if m != nil { - return m.Response +func (x *TxReceiptResponseEnvelope) GetResponse() *TxReceiptResponse { + if x != nil { + return x.Response } return nil } -func (m *TxReceiptResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *TxReceiptResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type TxReceiptResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Receipt *TxReceipt `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxReceiptResponse) Reset() { *m = TxReceiptResponse{} } -func (m *TxReceiptResponse) String() string { return proto.CompactTextString(m) } -func (*TxReceiptResponse) ProtoMessage() {} -func (*TxReceiptResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{42} + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Receipt *TxReceipt `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"` } -func (m *TxReceiptResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxReceiptResponse.Unmarshal(m, b) -} -func (m *TxReceiptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxReceiptResponse.Marshal(b, m, deterministic) -} -func (m *TxReceiptResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxReceiptResponse.Merge(m, src) +func (x *TxReceiptResponse) Reset() { + *x = TxReceiptResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxReceiptResponse) XXX_Size() int { - return xxx_messageInfo_TxReceiptResponse.Size(m) + +func (x *TxReceiptResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxReceiptResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TxReceiptResponse.DiscardUnknown(m) + +func (*TxReceiptResponse) ProtoMessage() {} + +func (x *TxReceiptResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[42] + 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_TxReceiptResponse proto.InternalMessageInfo +// Deprecated: Use TxReceiptResponse.ProtoReflect.Descriptor instead. +func (*TxReceiptResponse) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{42} +} -func (m *TxReceiptResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header +func (x *TxReceiptResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header } return nil } -func (m *TxReceiptResponse) GetReceipt() *TxReceipt { - if m != nil { - return m.Receipt +func (x *TxReceiptResponse) GetReceipt() *TxReceipt { + if x != nil { + return x.Receipt } return nil } type DataQueryResponseEnvelope struct { - Response *DataQueryResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DataQueryResponseEnvelope) Reset() { *m = DataQueryResponseEnvelope{} } -func (m *DataQueryResponseEnvelope) String() string { return proto.CompactTextString(m) } -func (*DataQueryResponseEnvelope) ProtoMessage() {} -func (*DataQueryResponseEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{43} + Response *DataQueryResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *DataQueryResponseEnvelope) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataQueryResponseEnvelope.Unmarshal(m, b) -} -func (m *DataQueryResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataQueryResponseEnvelope.Marshal(b, m, deterministic) -} -func (m *DataQueryResponseEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataQueryResponseEnvelope.Merge(m, src) +func (x *DataQueryResponseEnvelope) Reset() { + *x = DataQueryResponseEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DataQueryResponseEnvelope) XXX_Size() int { - return xxx_messageInfo_DataQueryResponseEnvelope.Size(m) + +func (x *DataQueryResponseEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataQueryResponseEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_DataQueryResponseEnvelope.DiscardUnknown(m) + +func (*DataQueryResponseEnvelope) ProtoMessage() {} + +func (x *DataQueryResponseEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[43] + 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_DataQueryResponseEnvelope proto.InternalMessageInfo +// Deprecated: Use DataQueryResponseEnvelope.ProtoReflect.Descriptor instead. +func (*DataQueryResponseEnvelope) Descriptor() ([]byte, []int) { + return file_response_proto_rawDescGZIP(), []int{43} +} -func (m *DataQueryResponseEnvelope) GetResponse() *DataQueryResponse { - if m != nil { - return m.Response +func (x *DataQueryResponseEnvelope) GetResponse() *DataQueryResponse { + if x != nil { + return x.Response } return nil } -func (m *DataQueryResponseEnvelope) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *DataQueryResponseEnvelope) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type DataQueryResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KVs []*KVWithMetadata `protobuf:"bytes,2,rep,name=KVs,proto3" json:"KVs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KVs []*KVWithMetadata `protobuf:"bytes,2,rep,name=KVs,proto3" json:"KVs,omitempty"` } -func (m *DataQueryResponse) Reset() { *m = DataQueryResponse{} } -func (m *DataQueryResponse) String() string { return proto.CompactTextString(m) } -func (*DataQueryResponse) ProtoMessage() {} +func (x *DataQueryResponse) Reset() { + *x = DataQueryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_response_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DataQueryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataQueryResponse) ProtoMessage() {} + +func (x *DataQueryResponse) ProtoReflect() protoreflect.Message { + mi := &file_response_proto_msgTypes[44] + 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 DataQueryResponse.ProtoReflect.Descriptor instead. func (*DataQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fbc901015fa5021, []int{44} -} - -func (m *DataQueryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataQueryResponse.Unmarshal(m, b) -} -func (m *DataQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataQueryResponse.Marshal(b, m, deterministic) -} -func (m *DataQueryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataQueryResponse.Merge(m, src) -} -func (m *DataQueryResponse) XXX_Size() int { - return xxx_messageInfo_DataQueryResponse.Size(m) -} -func (m *DataQueryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DataQueryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DataQueryResponse proto.InternalMessageInfo - -func (m *DataQueryResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *DataQueryResponse) GetKVs() []*KVWithMetadata { - if m != nil { - return m.KVs - } - return nil -} - -func init() { - proto.RegisterType((*ResponseHeader)(nil), "types.ResponseHeader") - proto.RegisterType((*GetDBStatusResponseEnvelope)(nil), "types.GetDBStatusResponseEnvelope") - proto.RegisterType((*GetDBStatusResponse)(nil), "types.GetDBStatusResponse") - proto.RegisterType((*GetDBIndexResponseEnvelope)(nil), "types.GetDBIndexResponseEnvelope") - proto.RegisterType((*GetDBIndexResponse)(nil), "types.GetDBIndexResponse") - proto.RegisterType((*GetDataResponseEnvelope)(nil), "types.GetDataResponseEnvelope") - proto.RegisterType((*GetDataResponse)(nil), "types.GetDataResponse") - proto.RegisterType((*GetDataRangeResponseEnvelope)(nil), "types.GetDataRangeResponseEnvelope") - proto.RegisterType((*GetDataRangeResponse)(nil), "types.GetDataRangeResponse") - proto.RegisterType((*GetUserResponseEnvelope)(nil), "types.GetUserResponseEnvelope") - proto.RegisterType((*GetUserResponse)(nil), "types.GetUserResponse") - proto.RegisterType((*GetConfigResponseEnvelope)(nil), "types.GetConfigResponseEnvelope") - proto.RegisterType((*GetConfigResponse)(nil), "types.GetConfigResponse") - proto.RegisterType((*GetNodeConfigResponseEnvelope)(nil), "types.GetNodeConfigResponseEnvelope") - proto.RegisterType((*GetNodeConfigResponse)(nil), "types.GetNodeConfigResponse") - proto.RegisterType((*GetConfigBlockResponseEnvelope)(nil), "types.GetConfigBlockResponseEnvelope") - proto.RegisterType((*GetConfigBlockResponse)(nil), "types.GetConfigBlockResponse") - proto.RegisterType((*GetClusterStatusResponseEnvelope)(nil), "types.GetClusterStatusResponseEnvelope") - proto.RegisterType((*GetClusterStatusResponse)(nil), "types.GetClusterStatusResponse") - proto.RegisterType((*GetBlockResponseEnvelope)(nil), "types.GetBlockResponseEnvelope") - proto.RegisterType((*GetBlockResponse)(nil), "types.GetBlockResponse") - proto.RegisterType((*GetAugmentedBlockHeaderResponseEnvelope)(nil), "types.GetAugmentedBlockHeaderResponseEnvelope") - proto.RegisterType((*GetAugmentedBlockHeaderResponse)(nil), "types.GetAugmentedBlockHeaderResponse") - proto.RegisterType((*GetLedgerPathResponseEnvelope)(nil), "types.GetLedgerPathResponseEnvelope") - proto.RegisterType((*GetLedgerPathResponse)(nil), "types.GetLedgerPathResponse") - proto.RegisterType((*GetTxProofResponseEnvelope)(nil), "types.GetTxProofResponseEnvelope") - proto.RegisterType((*GetTxProofResponse)(nil), "types.GetTxProofResponse") - proto.RegisterType((*GetDataProofResponseEnvelope)(nil), "types.GetDataProofResponseEnvelope") - proto.RegisterType((*GetDataProofResponse)(nil), "types.GetDataProofResponse") - proto.RegisterType((*MPTrieProofElement)(nil), "types.MPTrieProofElement") - proto.RegisterType((*GetHistoricalDataResponseEnvelope)(nil), "types.GetHistoricalDataResponseEnvelope") - proto.RegisterType((*GetHistoricalDataResponse)(nil), "types.GetHistoricalDataResponse") - proto.RegisterType((*GetDataReadersResponseEnvelope)(nil), "types.GetDataReadersResponseEnvelope") - proto.RegisterType((*GetDataReadersResponse)(nil), "types.GetDataReadersResponse") - proto.RegisterMapType((map[string]uint32)(nil), "types.GetDataReadersResponse.ReadByEntry") - proto.RegisterType((*GetDataWritersResponseEnvelope)(nil), "types.GetDataWritersResponseEnvelope") - proto.RegisterType((*GetDataWritersResponse)(nil), "types.GetDataWritersResponse") - proto.RegisterMapType((map[string]uint32)(nil), "types.GetDataWritersResponse.WrittenByEntry") - proto.RegisterType((*GetDataProvenanceResponseEnvelope)(nil), "types.GetDataProvenanceResponseEnvelope") - proto.RegisterType((*KVsWithMetadata)(nil), "types.KVsWithMetadata") - proto.RegisterType((*GetDataProvenanceResponse)(nil), "types.GetDataProvenanceResponse") - proto.RegisterMapType((map[string]*KVsWithMetadata)(nil), "types.GetDataProvenanceResponse.DBKeyValuesEntry") - proto.RegisterType((*GetTxIDsSubmittedByResponseEnvelope)(nil), "types.GetTxIDsSubmittedByResponseEnvelope") - proto.RegisterType((*GetTxIDsSubmittedByResponse)(nil), "types.GetTxIDsSubmittedByResponse") - proto.RegisterType((*TxReceiptResponseEnvelope)(nil), "types.TxReceiptResponseEnvelope") - proto.RegisterType((*TxReceiptResponse)(nil), "types.TxReceiptResponse") - proto.RegisterType((*DataQueryResponseEnvelope)(nil), "types.DataQueryResponseEnvelope") - proto.RegisterType((*DataQueryResponse)(nil), "types.DataQueryResponse") -} - -func init() { proto.RegisterFile("response.proto", fileDescriptor_0fbc901015fa5021) } - -var fileDescriptor_0fbc901015fa5021 = []byte{ - // 1315 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5d, 0x6f, 0xdb, 0x36, - 0x14, 0x85, 0x9a, 0xc6, 0x4d, 0xae, 0x53, 0x37, 0x51, 0xdb, 0xd4, 0x75, 0xd2, 0xc5, 0xd3, 0x3e, - 0x9a, 0x6e, 0x89, 0xb3, 0xa5, 0xed, 0xfa, 0xb1, 0xa2, 0x40, 0xdd, 0x04, 0x69, 0xe0, 0x76, 0xc8, - 0x94, 0xcc, 0xc1, 0x3a, 0x0c, 0x86, 0x6c, 0xdd, 0xda, 0x42, 0x1c, 0xc9, 0xa3, 0x28, 0xc7, 0x1e, - 0x36, 0xf4, 0xa1, 0x8f, 0x03, 0x86, 0xfd, 0x81, 0xfd, 0x92, 0xbd, 0xef, 0x69, 0x4f, 0xfb, 0x33, - 0x7b, 0x1d, 0x44, 0x51, 0x36, 0x6d, 0x2a, 0x89, 0xe8, 0x61, 0x6f, 0x26, 0x75, 0xcf, 0x31, 0xcf, - 0xb9, 0x97, 0xd4, 0xa5, 0x20, 0x47, 0xd0, 0xef, 0x78, 0xae, 0x8f, 0xa5, 0x0e, 0xf1, 0xa8, 0xa7, - 0x4f, 0xd3, 0x7e, 0x07, 0xfd, 0xc2, 0xd5, 0x86, 0xe7, 0xbe, 0x71, 0x9a, 0x01, 0xb1, 0xa8, 0xe3, - 0xb9, 0xd1, 0xb3, 0xc2, 0x52, 0xbd, 0xed, 0x35, 0x8e, 0x6a, 0x96, 0x6b, 0xd7, 0x28, 0xb1, 0x5c, - 0xdf, 0x6a, 0x0c, 0x1f, 0x1a, 0x77, 0x20, 0x67, 0x72, 0xaa, 0x17, 0x68, 0xd9, 0x48, 0xf4, 0x1b, - 0x70, 0xc9, 0xf5, 0x6c, 0xac, 0x39, 0x76, 0x5e, 0x2b, 0x6a, 0xab, 0xb3, 0x66, 0x26, 0x1c, 0xee, - 0xda, 0x86, 0x0f, 0x4b, 0x3b, 0x48, 0xb7, 0xca, 0xfb, 0xd4, 0xa2, 0x81, 0x1f, 0xa3, 0xb6, 0xdd, - 0x2e, 0xb6, 0xbd, 0x0e, 0xea, 0x5f, 0xc0, 0x4c, 0xbc, 0x28, 0x06, 0xcc, 0x6e, 0x16, 0x4a, 0x6c, - 0x55, 0xa5, 0x04, 0x94, 0x39, 0x88, 0xd5, 0x97, 0x61, 0xd6, 0x77, 0x9a, 0xae, 0x45, 0x03, 0x82, - 0xf9, 0x0b, 0x45, 0x6d, 0x75, 0xce, 0x1c, 0x4e, 0x18, 0xaf, 0xe1, 0x6a, 0x02, 0x5c, 0x5f, 0x87, - 0x4c, 0x8b, 0x2d, 0x97, 0xff, 0xd5, 0x75, 0xfe, 0x57, 0xa3, 0x5a, 0x4c, 0x1e, 0xa4, 0x5f, 0x83, - 0x69, 0xec, 0x39, 0x3e, 0x65, 0xfc, 0x33, 0x66, 0x34, 0x30, 0x7e, 0x80, 0x02, 0xe3, 0xde, 0x75, - 0x6d, 0xec, 0x49, 0x7a, 0xee, 0x4b, 0x7a, 0x6e, 0x8a, 0x7a, 0x46, 0x40, 0xa9, 0xe5, 0x7c, 0x0b, - 0xba, 0x8c, 0x9e, 0x40, 0x8d, 0x13, 0xe2, 0x19, 0xfd, 0xac, 0x19, 0x0d, 0x8c, 0x23, 0xb8, 0x11, - 0x52, 0x5b, 0xd4, 0x92, 0xa4, 0x6c, 0x4a, 0x52, 0x16, 0x05, 0x29, 0x02, 0x22, 0xb5, 0x8e, 0x77, - 0x1a, 0x5c, 0x19, 0xc3, 0x4e, 0xa0, 0xa2, 0x6b, 0xb5, 0x83, 0x98, 0x3c, 0x1a, 0xe8, 0x9f, 0xc2, - 0xcc, 0x31, 0x52, 0xcb, 0xb6, 0xa8, 0x95, 0x9f, 0x62, 0x34, 0x57, 0x38, 0xcd, 0x2b, 0x3e, 0x6d, - 0x0e, 0x02, 0x8c, 0x00, 0x96, 0xe3, 0x45, 0x58, 0x6e, 0x13, 0x25, 0xdd, 0x0f, 0x24, 0xdd, 0x4b, - 0x63, 0xba, 0x45, 0x58, 0x6a, 0xf1, 0x7f, 0x68, 0x70, 0x2d, 0x89, 0x40, 0xd5, 0x81, 0xdb, 0x30, - 0x55, 0xa9, 0xfa, 0xf9, 0x0b, 0xc5, 0x29, 0x21, 0xb6, 0x52, 0x3d, 0x74, 0x68, 0x6b, 0x20, 0x36, - 0x8c, 0xd0, 0x3f, 0x82, 0x5c, 0x07, 0x5d, 0xdb, 0x71, 0x9b, 0x35, 0x82, 0x7e, 0xd0, 0xa6, 0xcc, - 0x9a, 0x19, 0xf3, 0x32, 0x9f, 0x35, 0xd9, 0xa4, 0xfe, 0x21, 0xe4, 0x5c, 0xec, 0xd1, 0x9a, 0x4f, - 0x2d, 0x42, 0x6b, 0x47, 0xd8, 0xcf, 0x5f, 0x64, 0x05, 0x32, 0x17, 0xce, 0xee, 0x87, 0x93, 0x15, - 0xec, 0xf3, 0x3a, 0xf9, 0xc6, 0x47, 0xa2, 0x56, 0x27, 0x22, 0x22, 0xb5, 0x55, 0xbf, 0x46, 0x75, - 0x22, 0x62, 0x55, 0x5d, 0x5a, 0x81, 0x8b, 0x81, 0x8f, 0x84, 0x71, 0x67, 0x37, 0xb3, 0x3c, 0x98, - 0x31, 0xb2, 0x07, 0x6a, 0x25, 0xe3, 0xc1, 0xcd, 0x1d, 0xa4, 0xcf, 0xd9, 0x31, 0x29, 0xe9, 0xbf, - 0x27, 0xe9, 0xcf, 0x0f, 0xf5, 0x8f, 0x62, 0x52, 0x3b, 0xf0, 0xbb, 0x06, 0x0b, 0x12, 0x5a, 0xd5, - 0x83, 0x35, 0xc8, 0x44, 0x27, 0x3b, 0x77, 0xe1, 0x1a, 0x0f, 0x7f, 0xde, 0x0e, 0x7c, 0x8a, 0x84, - 0x93, 0xf3, 0x18, 0x35, 0x43, 0x4e, 0xe0, 0xd6, 0x0e, 0xd2, 0xaf, 0x3c, 0x1b, 0x4f, 0x31, 0xe5, - 0xa1, 0x64, 0xca, 0xf2, 0xd0, 0x14, 0x19, 0x97, 0xda, 0x98, 0x1f, 0xe1, 0x7a, 0x22, 0x81, 0xaa, - 0x37, 0x9b, 0x90, 0x65, 0xef, 0xab, 0x11, 0x83, 0x16, 0x38, 0x46, 0xa0, 0x07, 0x77, 0xf0, 0xdb, - 0xe8, 0xc3, 0x7b, 0x83, 0x9c, 0x94, 0xc3, 0xb7, 0xa3, 0xa4, 0xfa, 0x91, 0xa4, 0xfa, 0xd6, 0x78, - 0x29, 0x8c, 0x00, 0x53, 0xcb, 0xfe, 0x1e, 0x16, 0x93, 0x19, 0x26, 0x38, 0x3f, 0xd9, 0x8b, 0x3d, - 0x3e, 0x3f, 0xd9, 0xc0, 0xf8, 0x19, 0x8a, 0x21, 0x7d, 0x54, 0x17, 0xa7, 0xbc, 0xa9, 0xbf, 0x94, - 0xb4, 0xad, 0x08, 0xda, 0x92, 0xa0, 0xa9, 0xd5, 0xfd, 0xa5, 0x41, 0xfe, 0x34, 0x12, 0xf5, 0xe3, - 0x71, 0x3a, 0x4c, 0x59, 0x7c, 0x40, 0x26, 0xa4, 0x34, 0x7a, 0xae, 0xaf, 0xc2, 0xa5, 0x2e, 0x12, - 0xdf, 0xf1, 0x5c, 0x5e, 0xee, 0x39, 0x1e, 0x5a, 0x8d, 0x66, 0xcd, 0xf8, 0xb1, 0xbe, 0x08, 0x99, - 0x97, 0xd1, 0x0a, 0xa2, 0x93, 0x91, 0x8f, 0xc2, 0xf9, 0x67, 0x0d, 0xea, 0x74, 0x31, 0x3f, 0x5d, - 0x9c, 0x0a, 0xe7, 0xa3, 0x91, 0x71, 0xcc, 0xd4, 0x24, 0x57, 0xc8, 0x5d, 0xc9, 0xc5, 0x1b, 0x43, - 0x17, 0x27, 0xab, 0x8d, 0x1e, 0xcc, 0x8f, 0x63, 0x55, 0x4d, 0xbb, 0x0f, 0x73, 0x51, 0xbb, 0xc7, - 0x41, 0xd1, 0x76, 0xd0, 0x39, 0x88, 0x51, 0x73, 0x44, 0xb6, 0x3e, 0x1c, 0x18, 0xbf, 0x68, 0x70, - 0x7b, 0x07, 0xe9, 0xb3, 0xa0, 0x79, 0x8c, 0x2e, 0x45, 0x5b, 0x0c, 0x1c, 0x17, 0x5e, 0x96, 0x84, - 0x7f, 0x3c, 0x14, 0x7e, 0x16, 0x43, 0x6a, 0x1f, 0x7e, 0xd3, 0x60, 0xe5, 0x1c, 0x2e, 0x55, 0x5f, - 0x9e, 0x26, 0xfa, 0x12, 0xb7, 0x03, 0x89, 0xff, 0x34, 0x62, 0x50, 0x74, 0x4c, 0xbe, 0x44, 0xbb, - 0x89, 0x64, 0xcf, 0xa2, 0x2d, 0xb5, 0x63, 0x52, 0xc6, 0xa5, 0xf6, 0xe2, 0x2d, 0x3b, 0x26, 0x65, - 0x02, 0x55, 0x03, 0x1e, 0xc0, 0x65, 0xd1, 0x80, 0x78, 0x57, 0x25, 0x55, 0xc6, 0x9c, 0x20, 0xdc, - 0xe7, 0x5d, 0xf2, 0x41, 0x6f, 0x8f, 0x78, 0xde, 0x1b, 0xb5, 0x2e, 0x79, 0x0c, 0x94, 0x5a, 0xf3, - 0x77, 0xac, 0x4b, 0x1e, 0x43, 0xab, 0x0a, 0x5e, 0x84, 0x4c, 0xcb, 0xf2, 0x5b, 0xfc, 0xfc, 0x98, - 0x33, 0xf9, 0x48, 0x68, 0x1a, 0x93, 0x15, 0x9d, 0xdb, 0x34, 0x4e, 0xa6, 0x89, 0x0e, 0x7a, 0xc6, - 0xff, 0xa4, 0x6a, 0x1d, 0x2e, 0x76, 0x2c, 0xda, 0xe2, 0xd9, 0x8b, 0xbd, 0x7e, 0xb5, 0x77, 0x40, - 0x1c, 0x64, 0xc4, 0xdb, 0x6d, 0x0c, 0x4b, 0xd9, 0x64, 0x61, 0xc6, 0x1a, 0xe8, 0xf2, 0x33, 0xc1, - 0x1a, 0x6d, 0xc4, 0x9a, 0xb7, 0xf0, 0xfe, 0x0e, 0xd2, 0x17, 0x8e, 0x4f, 0x3d, 0xe2, 0x34, 0xac, - 0x76, 0xe2, 0x65, 0xe2, 0x89, 0xe4, 0x4f, 0x71, 0xe8, 0x4f, 0x32, 0x36, 0xb5, 0x49, 0x3f, 0xb1, - 0xee, 0x2c, 0x99, 0x44, 0xd5, 0xa9, 0xcf, 0x20, 0xc3, 0xae, 0x14, 0x71, 0xa5, 0xc7, 0xad, 0x5c, - 0x35, 0x9c, 0x1c, 0xe9, 0xb1, 0x79, 0x1c, 0xef, 0x0a, 0xa2, 0xff, 0x64, 0xb5, 0xaf, 0xd6, 0x15, - 0x24, 0x00, 0x53, 0x0b, 0xff, 0x53, 0x63, 0x6d, 0x41, 0x02, 0x85, 0xaa, 0xec, 0x32, 0x5c, 0x22, - 0x68, 0xd9, 0xb5, 0x7a, 0x9f, 0xeb, 0xbe, 0x73, 0xe6, 0x0a, 0x4b, 0xe1, 0xb8, 0xdc, 0xdf, 0x76, - 0x29, 0xe9, 0x9b, 0x19, 0xc2, 0x06, 0x85, 0x47, 0x90, 0x15, 0xa6, 0xf5, 0x79, 0x98, 0x0a, 0x2f, - 0x13, 0xd1, 0xd7, 0x80, 0xf0, 0xe7, 0xe8, 0xdd, 0xed, 0x32, 0xbf, 0xbb, 0x3d, 0xbe, 0xf0, 0x50, - 0x13, 0x3c, 0x3c, 0x24, 0x0e, 0x9d, 0xc8, 0xc3, 0x31, 0x60, 0x6a, 0x0f, 0xff, 0x1e, 0x7a, 0x38, - 0x46, 0xa1, 0xea, 0x61, 0x05, 0xe0, 0x84, 0x38, 0x94, 0xa2, 0x3b, 0xb4, 0x71, 0xed, 0xcc, 0x45, - 0x96, 0x0e, 0xa3, 0xf8, 0xd8, 0xc9, 0xd9, 0x93, 0x78, 0x5c, 0x78, 0x02, 0xb9, 0xd1, 0x87, 0x4a, - 0x7e, 0x46, 0x5b, 0x92, 0x1f, 0x1b, 0x5d, 0x74, 0x2d, 0xb7, 0x81, 0x6a, 0x5b, 0x32, 0x19, 0x9b, - 0xda, 0xd5, 0xc7, 0x70, 0xa5, 0x52, 0xf5, 0xc5, 0xfd, 0x12, 0xdf, 0x5b, 0xb5, 0xf3, 0xee, 0xad, - 0xc6, 0x3f, 0x1a, 0xdb, 0xcf, 0xc9, 0x2b, 0x50, 0x4d, 0xca, 0x3e, 0x64, 0xb7, 0xca, 0x15, 0xec, - 0x57, 0xc5, 0x4d, 0xfd, 0xf9, 0x79, 0x3a, 0x4b, 0x02, 0x26, 0x4a, 0x8d, 0xc8, 0x52, 0xa8, 0xc2, - 0xfc, 0x78, 0x40, 0x42, 0x7a, 0xd6, 0xc4, 0xf4, 0x0c, 0x2f, 0xc5, 0x63, 0xbe, 0x88, 0x69, 0x7b, - 0xa7, 0xc1, 0x07, 0xec, 0x15, 0xb6, 0xbb, 0xe5, 0xef, 0x07, 0xf5, 0xe3, 0x30, 0xff, 0x76, 0xb9, - 0x2f, 0x65, 0xee, 0xa9, 0x94, 0x39, 0x43, 0x7c, 0x7d, 0x26, 0xa3, 0x53, 0xe7, 0xae, 0xce, 0xbe, - 0xd8, 0x9d, 0x46, 0x33, 0xc1, 0x85, 0x83, 0x86, 0x54, 0xcc, 0xfa, 0x59, 0x33, 0x1a, 0x84, 0x17, - 0xea, 0x83, 0x9e, 0x89, 0x0d, 0x74, 0x3a, 0x54, 0xe1, 0x42, 0x2d, 0x61, 0x52, 0x8b, 0x72, 0x61, - 0x41, 0x02, 0xab, 0x4a, 0xf9, 0x24, 0x3c, 0x24, 0x19, 0x03, 0x4f, 0xe9, 0xbc, 0xb4, 0xac, 0x38, - 0x20, 0x14, 0x18, 0x96, 0xd6, 0xd7, 0x01, 0x92, 0xbe, 0x82, 0x40, 0x09, 0x93, 0x5a, 0xe0, 0x11, - 0x2c, 0x48, 0xe0, 0xff, 0xeb, 0xd3, 0x52, 0xf9, 0xde, 0xeb, 0xcd, 0xa6, 0x43, 0x5b, 0x41, 0xbd, - 0xd4, 0xf0, 0x8e, 0x37, 0x5a, 0xfd, 0x0e, 0x92, 0x36, 0xeb, 0x35, 0xd7, 0xdb, 0x56, 0xdd, 0xdf, - 0xf0, 0x88, 0xe3, 0xb9, 0xeb, 0x3e, 0x92, 0x2e, 0x92, 0x8d, 0xce, 0x51, 0x73, 0x83, 0x31, 0xd5, - 0x33, 0xec, 0xe3, 0xf1, 0xdd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xca, 0xb5, 0x8d, 0x87, - 0x16, 0x00, 0x00, + return file_response_proto_rawDescGZIP(), []int{44} +} + +func (x *DataQueryResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *DataQueryResponse) GetKVs() []*KVWithMetadata { + if x != nil { + return x.KVs + } + return nil +} + +var File_response_proto protoreflect.FileDescriptor + +var file_response_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x29, 0x0a, 0x0e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x22, 0x73, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x42, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x42, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x5a, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x44, 0x42, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x78, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x22, 0x71, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x44, 0x42, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x59, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, + 0x42, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, + 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x22, 0x6b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x32, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0x83, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x75, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xbb, 0x01, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x03, 0x4b, 0x56, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x56, 0x57, 0x69, 0x74, + 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x03, 0x4b, 0x56, 0x73, 0x12, 0x25, + 0x0a, 0x0e, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, + 0x65, 0x78, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x6b, 0x0a, 0x17, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6f, 0x0a, 0x19, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x2c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x77, 0x0a, 0x1d, 0x47, 0x65, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x22, 0x7a, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x0b, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, + 0x79, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, + 0x65, 0x12, 0x39, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x5d, 0x0a, 0x16, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x7d, 0x0a, 0x20, 0x47, 0x65, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3b, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x28, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x16, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x78, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x22, 0x8b, 0x01, 0x0a, 0x27, 0x47, 0x65, 0x74, 0x41, 0x75, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x65, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x08, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x67, 0x6d, 0x65, 0x6e, + 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x90, + 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x41, 0x75, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x3e, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x41, 0x75, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x22, 0x77, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x7f, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x71, 0x0a, 0x1a, 0x47, + 0x65, 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x5b, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x1c, 0x47, + 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x22, 0x74, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x4d, 0x50, 0x54, 0x72, 0x69, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x45, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x2c, 0x0a, 0x12, 0x4d, 0x50, 0x54, 0x72, + 0x69, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, + 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, + 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x7c, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x79, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0xc6, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x42, + 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x61, 0x64, 0x42, 0x79, 0x1a, 0x39, + 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x42, 0x79, 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, 0x0d, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x79, 0x0a, 0x1e, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4b, + 0x0a, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x09, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x79, 0x1a, 0x3c, 0x0a, 0x0e, 0x57, + 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x79, 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, 0x0d, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7f, 0x0a, 0x21, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3c, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x3a, 0x0a, 0x0f, 0x4b, 0x56, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x0a, + 0x03, 0x4b, 0x56, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x4b, 0x56, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x03, 0x4b, 0x56, 0x73, 0x22, 0xf7, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x53, 0x0a, 0x0b, 0x44, 0x42, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x42, 0x4b, 0x65, 0x79, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x44, 0x42, 0x4b, + 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x56, 0x0a, 0x10, 0x44, 0x42, 0x4b, 0x65, + 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x56, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x83, 0x01, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x54, 0x78, 0x49, 0x44, 0x73, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x49, 0x44, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x62, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x54, 0x78, 0x49, + 0x44, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x22, 0x6f, 0x0a, 0x19, 0x54, 0x78, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x6e, 0x0a, 0x11, 0x54, + 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x70, 0x74, 0x52, 0x07, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x6f, 0x0a, 0x19, 0x44, + 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x6b, 0x0a, 0x11, + 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x27, 0x0a, 0x03, 0x4b, 0x56, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x56, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x03, 0x4b, 0x56, 0x73, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, + 0x67, 0x65, 0x72, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6f, 0x72, 0x69, 0x6f, 0x6e, 0x2d, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_response_proto_rawDescOnce sync.Once + file_response_proto_rawDescData = file_response_proto_rawDesc +) + +func file_response_proto_rawDescGZIP() []byte { + file_response_proto_rawDescOnce.Do(func() { + file_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_response_proto_rawDescData) + }) + return file_response_proto_rawDescData +} + +var file_response_proto_msgTypes = make([]protoimpl.MessageInfo, 48) +var file_response_proto_goTypes = []interface{}{ + (*ResponseHeader)(nil), // 0: types.ResponseHeader + (*GetDBStatusResponseEnvelope)(nil), // 1: types.GetDBStatusResponseEnvelope + (*GetDBStatusResponse)(nil), // 2: types.GetDBStatusResponse + (*GetDBIndexResponseEnvelope)(nil), // 3: types.GetDBIndexResponseEnvelope + (*GetDBIndexResponse)(nil), // 4: types.GetDBIndexResponse + (*GetDataResponseEnvelope)(nil), // 5: types.GetDataResponseEnvelope + (*GetDataResponse)(nil), // 6: types.GetDataResponse + (*GetDataRangeResponseEnvelope)(nil), // 7: types.GetDataRangeResponseEnvelope + (*GetDataRangeResponse)(nil), // 8: types.GetDataRangeResponse + (*GetUserResponseEnvelope)(nil), // 9: types.GetUserResponseEnvelope + (*GetUserResponse)(nil), // 10: types.GetUserResponse + (*GetConfigResponseEnvelope)(nil), // 11: types.GetConfigResponseEnvelope + (*GetConfigResponse)(nil), // 12: types.GetConfigResponse + (*GetNodeConfigResponseEnvelope)(nil), // 13: types.GetNodeConfigResponseEnvelope + (*GetNodeConfigResponse)(nil), // 14: types.GetNodeConfigResponse + (*GetConfigBlockResponseEnvelope)(nil), // 15: types.GetConfigBlockResponseEnvelope + (*GetConfigBlockResponse)(nil), // 16: types.GetConfigBlockResponse + (*GetClusterStatusResponseEnvelope)(nil), // 17: types.GetClusterStatusResponseEnvelope + (*GetClusterStatusResponse)(nil), // 18: types.GetClusterStatusResponse + (*GetBlockResponseEnvelope)(nil), // 19: types.GetBlockResponseEnvelope + (*GetBlockResponse)(nil), // 20: types.GetBlockResponse + (*GetAugmentedBlockHeaderResponseEnvelope)(nil), // 21: types.GetAugmentedBlockHeaderResponseEnvelope + (*GetAugmentedBlockHeaderResponse)(nil), // 22: types.GetAugmentedBlockHeaderResponse + (*GetLedgerPathResponseEnvelope)(nil), // 23: types.GetLedgerPathResponseEnvelope + (*GetLedgerPathResponse)(nil), // 24: types.GetLedgerPathResponse + (*GetTxProofResponseEnvelope)(nil), // 25: types.GetTxProofResponseEnvelope + (*GetTxProofResponse)(nil), // 26: types.GetTxProofResponse + (*GetDataProofResponseEnvelope)(nil), // 27: types.GetDataProofResponseEnvelope + (*GetDataProofResponse)(nil), // 28: types.GetDataProofResponse + (*MPTrieProofElement)(nil), // 29: types.MPTrieProofElement + (*GetHistoricalDataResponseEnvelope)(nil), // 30: types.GetHistoricalDataResponseEnvelope + (*GetHistoricalDataResponse)(nil), // 31: types.GetHistoricalDataResponse + (*GetDataReadersResponseEnvelope)(nil), // 32: types.GetDataReadersResponseEnvelope + (*GetDataReadersResponse)(nil), // 33: types.GetDataReadersResponse + (*GetDataWritersResponseEnvelope)(nil), // 34: types.GetDataWritersResponseEnvelope + (*GetDataWritersResponse)(nil), // 35: types.GetDataWritersResponse + (*GetDataProvenanceResponseEnvelope)(nil), // 36: types.GetDataProvenanceResponseEnvelope + (*KVsWithMetadata)(nil), // 37: types.KVsWithMetadata + (*GetDataProvenanceResponse)(nil), // 38: types.GetDataProvenanceResponse + (*GetTxIDsSubmittedByResponseEnvelope)(nil), // 39: types.GetTxIDsSubmittedByResponseEnvelope + (*GetTxIDsSubmittedByResponse)(nil), // 40: types.GetTxIDsSubmittedByResponse + (*TxReceiptResponseEnvelope)(nil), // 41: types.TxReceiptResponseEnvelope + (*TxReceiptResponse)(nil), // 42: types.TxReceiptResponse + (*DataQueryResponseEnvelope)(nil), // 43: types.DataQueryResponseEnvelope + (*DataQueryResponse)(nil), // 44: types.DataQueryResponse + nil, // 45: types.GetDataReadersResponse.ReadByEntry + nil, // 46: types.GetDataWritersResponse.WrittenByEntry + nil, // 47: types.GetDataProvenanceResponse.DBKeyValuesEntry + (*Metadata)(nil), // 48: types.Metadata + (*KVWithMetadata)(nil), // 49: types.KVWithMetadata + (*User)(nil), // 50: types.User + (*ClusterConfig)(nil), // 51: types.ClusterConfig + (*NodeConfig)(nil), // 52: types.NodeConfig + (*Version)(nil), // 53: types.Version + (*BlockHeader)(nil), // 54: types.BlockHeader + (*AugmentedBlockHeader)(nil), // 55: types.AugmentedBlockHeader + (*ValueWithMetadata)(nil), // 56: types.ValueWithMetadata + (*TxReceipt)(nil), // 57: types.TxReceipt +} +var file_response_proto_depIdxs = []int32{ + 2, // 0: types.GetDBStatusResponseEnvelope.response:type_name -> types.GetDBStatusResponse + 0, // 1: types.GetDBStatusResponse.header:type_name -> types.ResponseHeader + 4, // 2: types.GetDBIndexResponseEnvelope.response:type_name -> types.GetDBIndexResponse + 0, // 3: types.GetDBIndexResponse.header:type_name -> types.ResponseHeader + 6, // 4: types.GetDataResponseEnvelope.response:type_name -> types.GetDataResponse + 0, // 5: types.GetDataResponse.header:type_name -> types.ResponseHeader + 48, // 6: types.GetDataResponse.metadata:type_name -> types.Metadata + 8, // 7: types.GetDataRangeResponseEnvelope.response:type_name -> types.GetDataRangeResponse + 0, // 8: types.GetDataRangeResponse.header:type_name -> types.ResponseHeader + 49, // 9: types.GetDataRangeResponse.KVs:type_name -> types.KVWithMetadata + 10, // 10: types.GetUserResponseEnvelope.response:type_name -> types.GetUserResponse + 0, // 11: types.GetUserResponse.header:type_name -> types.ResponseHeader + 50, // 12: types.GetUserResponse.user:type_name -> types.User + 48, // 13: types.GetUserResponse.metadata:type_name -> types.Metadata + 12, // 14: types.GetConfigResponseEnvelope.response:type_name -> types.GetConfigResponse + 0, // 15: types.GetConfigResponse.header:type_name -> types.ResponseHeader + 51, // 16: types.GetConfigResponse.config:type_name -> types.ClusterConfig + 48, // 17: types.GetConfigResponse.metadata:type_name -> types.Metadata + 14, // 18: types.GetNodeConfigResponseEnvelope.response:type_name -> types.GetNodeConfigResponse + 0, // 19: types.GetNodeConfigResponse.header:type_name -> types.ResponseHeader + 52, // 20: types.GetNodeConfigResponse.node_config:type_name -> types.NodeConfig + 16, // 21: types.GetConfigBlockResponseEnvelope.response:type_name -> types.GetConfigBlockResponse + 0, // 22: types.GetConfigBlockResponse.header:type_name -> types.ResponseHeader + 18, // 23: types.GetClusterStatusResponseEnvelope.response:type_name -> types.GetClusterStatusResponse + 0, // 24: types.GetClusterStatusResponse.header:type_name -> types.ResponseHeader + 52, // 25: types.GetClusterStatusResponse.nodes:type_name -> types.NodeConfig + 53, // 26: types.GetClusterStatusResponse.version:type_name -> types.Version + 20, // 27: types.GetBlockResponseEnvelope.response:type_name -> types.GetBlockResponse + 0, // 28: types.GetBlockResponse.header:type_name -> types.ResponseHeader + 54, // 29: types.GetBlockResponse.block_header:type_name -> types.BlockHeader + 22, // 30: types.GetAugmentedBlockHeaderResponseEnvelope.response:type_name -> types.GetAugmentedBlockHeaderResponse + 0, // 31: types.GetAugmentedBlockHeaderResponse.header:type_name -> types.ResponseHeader + 55, // 32: types.GetAugmentedBlockHeaderResponse.block_header:type_name -> types.AugmentedBlockHeader + 24, // 33: types.GetLedgerPathResponseEnvelope.response:type_name -> types.GetLedgerPathResponse + 0, // 34: types.GetLedgerPathResponse.header:type_name -> types.ResponseHeader + 54, // 35: types.GetLedgerPathResponse.block_headers:type_name -> types.BlockHeader + 26, // 36: types.GetTxProofResponseEnvelope.response:type_name -> types.GetTxProofResponse + 0, // 37: types.GetTxProofResponse.header:type_name -> types.ResponseHeader + 28, // 38: types.GetDataProofResponseEnvelope.response:type_name -> types.GetDataProofResponse + 0, // 39: types.GetDataProofResponse.header:type_name -> types.ResponseHeader + 29, // 40: types.GetDataProofResponse.path:type_name -> types.MPTrieProofElement + 31, // 41: types.GetHistoricalDataResponseEnvelope.response:type_name -> types.GetHistoricalDataResponse + 0, // 42: types.GetHistoricalDataResponse.header:type_name -> types.ResponseHeader + 56, // 43: types.GetHistoricalDataResponse.values:type_name -> types.ValueWithMetadata + 33, // 44: types.GetDataReadersResponseEnvelope.response:type_name -> types.GetDataReadersResponse + 0, // 45: types.GetDataReadersResponse.header:type_name -> types.ResponseHeader + 45, // 46: types.GetDataReadersResponse.read_by:type_name -> types.GetDataReadersResponse.ReadByEntry + 35, // 47: types.GetDataWritersResponseEnvelope.response:type_name -> types.GetDataWritersResponse + 0, // 48: types.GetDataWritersResponse.header:type_name -> types.ResponseHeader + 46, // 49: types.GetDataWritersResponse.written_by:type_name -> types.GetDataWritersResponse.WrittenByEntry + 38, // 50: types.GetDataProvenanceResponseEnvelope.response:type_name -> types.GetDataProvenanceResponse + 49, // 51: types.KVsWithMetadata.KVs:type_name -> types.KVWithMetadata + 0, // 52: types.GetDataProvenanceResponse.header:type_name -> types.ResponseHeader + 47, // 53: types.GetDataProvenanceResponse.DBKeyValues:type_name -> types.GetDataProvenanceResponse.DBKeyValuesEntry + 40, // 54: types.GetTxIDsSubmittedByResponseEnvelope.response:type_name -> types.GetTxIDsSubmittedByResponse + 0, // 55: types.GetTxIDsSubmittedByResponse.header:type_name -> types.ResponseHeader + 42, // 56: types.TxReceiptResponseEnvelope.response:type_name -> types.TxReceiptResponse + 0, // 57: types.TxReceiptResponse.header:type_name -> types.ResponseHeader + 57, // 58: types.TxReceiptResponse.receipt:type_name -> types.TxReceipt + 44, // 59: types.DataQueryResponseEnvelope.response:type_name -> types.DataQueryResponse + 0, // 60: types.DataQueryResponse.header:type_name -> types.ResponseHeader + 49, // 61: types.DataQueryResponse.KVs:type_name -> types.KVWithMetadata + 37, // 62: types.GetDataProvenanceResponse.DBKeyValuesEntry.value:type_name -> types.KVsWithMetadata + 63, // [63:63] is the sub-list for method output_type + 63, // [63:63] is the sub-list for method input_type + 63, // [63:63] is the sub-list for extension type_name + 63, // [63:63] is the sub-list for extension extendee + 0, // [0:63] is the sub-list for field type_name +} + +func init() { file_response_proto_init() } +func file_response_proto_init() { + if File_response_proto != nil { + return + } + file_configuration_proto_init() + file_block_and_transaction_proto_init() + if !protoimpl.UnsafeEnabled { + file_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBStatusResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBIndexResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDBIndexResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataRangeResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataRangeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetNodeConfigResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetNodeConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigBlockResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigBlockResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterStatusResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAugmentedBlockHeaderResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAugmentedBlockHeaderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLedgerPathResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLedgerPathResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxProofResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxProofResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProofResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProofResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MPTrieProofElement); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHistoricalDataResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHistoricalDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadersResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataReadersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWritersResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataWritersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProvenanceResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KVsWithMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataProvenanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxIDsSubmittedByResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTxIDsSubmittedByResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxReceiptResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxReceiptResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataQueryResponseEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_response_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataQueryResponse); 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_response_proto_rawDesc, + NumEnums: 0, + NumMessages: 48, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_response_proto_goTypes, + DependencyIndexes: file_response_proto_depIdxs, + MessageInfos: file_response_proto_msgTypes, + }.Build() + File_response_proto = out.File + file_response_proto_rawDesc = nil + file_response_proto_goTypes = nil + file_response_proto_depIdxs = nil } diff --git a/scripts/compile_go_protos.sh b/scripts/compile_go_protos.sh index 98081026..474f3a4f 100755 --- a/scripts/compile_go_protos.sh +++ b/scripts/compile_go_protos.sh @@ -6,7 +6,7 @@ cd protos mkdir -p ../pkg/types for protos in $(find . -name '*.proto' -exec dirname {} \; | sort -u); do - protoc \ + protoc \ --proto_path . \ --go_out=../pkg/types \ --go_opt=paths=source_relative \ @@ -14,7 +14,7 @@ for protos in $(find . -name '*.proto' -exec dirname {} \; | sort -u); do done cd ../internal/blockstore -protoc \ + protoc \ --proto_path . \ --proto_path ../../protos \ --go_out=. \ diff --git a/test/data/data_tx_test.go b/test/data/data_tx_test.go index 7a13e656..03a6477d 100644 --- a/test/data/data_tx_test.go +++ b/test/data/data_tx_test.go @@ -442,11 +442,8 @@ func TestDataTx(t *testing.T) { } _, err = s.SubmitTransaction(t, constants.PostDataTx, &types.DataTxEnvelope{ - Payload: dataTx, - Signatures: map[string][]byte{"alice": testutils.SignatureFromTx(t, aliceSigner, dataTx), "bob": testutils.SignatureFromTx(t, bobSigner, dataTx)}, - XXX_NoUnkeyedLiteral: struct{}{}, - XXX_unrecognized: []byte{}, - XXX_sizecache: 0, + Payload: dataTx, + Signatures: map[string][]byte{"alice": testutils.SignatureFromTx(t, aliceSigner, dataTx), "bob": testutils.SignatureFromTx(t, bobSigner, dataTx)}, }) require.NoError(t, err) diff --git a/test/queries/json_queries_test.go b/test/queries/json_queries_test.go index 29aa1dc3..bfe6f20f 100644 --- a/test/queries/json_queries_test.go +++ b/test/queries/json_queries_test.go @@ -5,6 +5,8 @@ package queries import ( "io/ioutil" + "os" + "sort" "testing" "time" @@ -13,6 +15,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/hyperledger-labs/orion-server/test/setup" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) func TestJSONQueries(t *testing.T) { @@ -28,6 +31,7 @@ func TestJSONQueries(t *testing.T) { BaseNodePort: nPort, BasePeerPort: pPort, } + defer os.RemoveAll(dir) c, err := setup.NewCluster(setupConfig) require.NoError(t, err) defer c.ShutdownAndCleanup() @@ -108,62 +112,78 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVsForAlice := []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte(v1JSON), - Metadata: defaultMetadata, - }, - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, + expectedKVsForAlice := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), }, - { - Key: "key6", - Value: []byte(v6JSON), - Metadata: defaultMetadata, + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte(v1JSON), + Metadata: defaultMetadata, + }, + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, + { + Key: "key6", + Value: []byte(v6JSON), + Metadata: defaultMetadata, + }, }, } - expectedKVsForBob := []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte(v1JSON), - Metadata: defaultMetadata, + expectedKVsForBob := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), }, - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, - }, - { - Key: "key5", - Value: []byte(v5JSON), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"bob": true}, + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte(v1JSON), + Metadata: defaultMetadata, + }, + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, + { + Key: "key5", + Value: []byte(v5JSON), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"bob": true}, + }, }, }, - }, - { - Key: "key6", - Value: []byte(v6JSON), - Metadata: defaultMetadata, + { + Key: "key6", + Value: []byte(v6JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVsForAlice, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVsForAlice, resp.GetResponse())) resp, err = s.ExecuteJSONQuery(t, "bob", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVsForBob, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVsForBob, resp.GetResponse())) }) t.Run("equal on string", func(t *testing.T) { @@ -174,17 +194,22 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVs := []*types.KVWithMetadata{ - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, + expectedKVs := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + KVs: []*types.KVWithMetadata{ + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVs, resp.GetResponse().KVs) + require.True(t, proto.Equal(expectedKVs, resp.GetResponse())) }) t.Run("equal on number", func(t *testing.T) { @@ -195,17 +220,22 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVs := []*types.KVWithMetadata{ - { - Key: "key6", - Value: []byte(v6JSON), - Metadata: defaultMetadata, + expectedKVs := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + KVs: []*types.KVWithMetadata{ + { + Key: "key6", + Value: []byte(v6JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVs, resp.GetResponse().KVs) + require.True(t, proto.Equal(expectedKVs, resp.GetResponse())) }) t.Run("not equal on number", func(t *testing.T) { @@ -218,52 +248,69 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVsForAlice := []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte(v1JSON), - Metadata: defaultMetadata, + + expectedKVsForAlice := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), }, - { - Key: "key2", - Value: []byte(v2JSON), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte(v1JSON), + Metadata: defaultMetadata, + }, + { + Key: "key2", + Value: []byte(v2JSON), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, }, } - expectedKVsForBob := []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte(v1JSON), - Metadata: defaultMetadata, + expectedKVsForBob := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), }, - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte(v1JSON), + Metadata: defaultMetadata, + }, + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVsForAlice, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVsForAlice, resp.GetResponse())) resp, err = s.ExecuteJSONQuery(t, "bob", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVsForBob, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVsForBob, resp.GetResponse())) }) t.Run("multiple conditions with and", func(t *testing.T) { @@ -286,22 +333,30 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVs := []*types.KVWithMetadata{ - { - Key: "key3", - Value: []byte(v3JSON), - Metadata: defaultMetadata, + expectedKVs := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), }, - { - Key: "key6", - Value: []byte(v6JSON), - Metadata: defaultMetadata, + KVs: []*types.KVWithMetadata{ + { + Key: "key3", + Value: []byte(v3JSON), + Metadata: defaultMetadata, + }, + { + Key: "key6", + Value: []byte(v6JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVs, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVs, resp.GetResponse())) }) t.Run("multiple conditions with or", func(t *testing.T) { @@ -324,30 +379,38 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVs := []*types.KVWithMetadata{ - { - Key: "key2", - Value: []byte(v2JSON), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + expectedKVs := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + KVs: []*types.KVWithMetadata{ + { + Key: "key2", + Value: []byte(v2JSON), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Key: "key4", - Value: []byte(v4JSON), - Metadata: defaultMetadata, + { + Key: "key4", + Value: []byte(v4JSON), + Metadata: defaultMetadata, + }, }, } resp, err := s.ExecuteJSONQuery(t, "alice", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVs, resp.GetResponse().KVs) + sort.Slice(resp.GetResponse().KVs, func(i, j int) bool { + return resp.GetResponse().KVs[i].GetKey() < resp.GetResponse().KVs[j].GetKey() + }) + require.True(t, proto.Equal(expectedKVs, resp.GetResponse())) }) t.Run("multiple conditions with or and neq", func(t *testing.T) { @@ -369,17 +432,22 @@ func TestJSONQueries(t *testing.T) { } } ` - expectedKVs := []*types.KVWithMetadata{ - { - Key: "key5", - Value: []byte(v5JSON), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"bob": true}, + expectedKVs := &types.DataQueryResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + KVs: []*types.KVWithMetadata{ + { + Key: "key5", + Value: []byte(v5JSON), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"bob": true}, + }, }, }, }, @@ -387,7 +455,7 @@ func TestJSONQueries(t *testing.T) { resp, err := s.ExecuteJSONQuery(t, "bob", "db1", query) require.NoError(t, err) - require.ElementsMatch(t, expectedKVs, resp.GetResponse().KVs) + require.True(t, proto.Equal(expectedKVs, resp.GetResponse())) }) t.Run("bad selector", func(t *testing.T) { diff --git a/test/queries/port_allocation.go b/test/queries/port_allocation.go index d772ebed..27df2a6a 100644 --- a/test/queries/port_allocation.go +++ b/test/queries/port_allocation.go @@ -27,4 +27,3 @@ func getPorts(num uint32) (node uint32, peer uint32) { return } - diff --git a/test/queries/provenance_test.go b/test/queries/provenance_test.go index 2eb8e354..57c08fdd 100644 --- a/test/queries/provenance_test.go +++ b/test/queries/provenance_test.go @@ -5,6 +5,7 @@ package queries import ( "io/ioutil" + "sort" "testing" "time" @@ -13,6 +14,7 @@ import ( "github.com/hyperledger-labs/orion-server/pkg/types" "github.com/hyperledger-labs/orion-server/test/setup" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) func TestProvenanceQueries(t *testing.T) { @@ -28,6 +30,7 @@ func TestProvenanceQueries(t *testing.T) { BaseNodePort: nPort, BasePeerPort: pPort, } + // defer os.RemoveAll(dir) c, err := setup.NewCluster(setupConfig) require.NoError(t, err) defer c.ShutdownAndCleanup() @@ -77,84 +80,105 @@ func TestProvenanceQueries(t *testing.T) { prepareDataForProvenanceQueries(t, s) t.Run("Get all values", func(t *testing.T) { - expectedKey1Values := []*types.ValueWithMetadata{ - { - Value: []byte("key1value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + expectedKey1Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key1value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, - }, - { - Value: []byte("key1value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + { + Value: []byte("key1value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, - }, - { - Value: []byte("key1value3"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 8, - TxNum: 0, + { + Value: []byte("key1value3"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 8, + TxNum: 0, + }, }, }, }, } resp, err := s.GetAllValues(t, "db1", "key1", "admin") require.NoError(t, err) - require.ElementsMatch(t, expectedKey1Values, resp.GetResponse().GetValues()) - - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key2value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + sort.Slice(resp.GetResponse().GetValues(), func(i, j int) bool { + return resp.GetResponse().GetValues()[i].Metadata.Version.BlockNum < resp.GetResponse().GetValues()[j].Metadata.Version.BlockNum + }) + require.True(t, proto.Equal(expectedKey1Values, resp.GetResponse())) + + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key2value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Value: []byte("key2value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 6, - TxNum: 0, + { + Value: []byte("key2value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 6, + TxNum: 0, + }, }, }, - }, - { - Value: []byte("key2value3"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 7, - TxNum: 0, + { + Value: []byte("key2value3"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 7, + TxNum: 0, + }, }, }, }, } resp, err = s.GetAllValues(t, "db1", "key2", "admin") require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + sort.Slice(resp.GetResponse().GetValues(), func(i, j int) bool { + return resp.GetResponse().GetValues()[i].Metadata.Version.BlockNum < resp.GetResponse().GetValues()[j].Metadata.Version.BlockNum + }) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) }) t.Run("Get value at", func(t *testing.T) { - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key2value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 6, - TxNum: 0, + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key2value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 6, + TxNum: 0, + }, }, }, }, @@ -166,17 +190,22 @@ func TestProvenanceQueries(t *testing.T) { } resp, err := s.GetValueAt(t, "db1", "key2", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) }) t.Run("Get next values", func(t *testing.T) { - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key2value3"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 7, - TxNum: 0, + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key2value3"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 7, + TxNum: 0, + }, }, }, }, @@ -188,7 +217,7 @@ func TestProvenanceQueries(t *testing.T) { } resp, err := s.GetNextValues(t, "db1", "key2", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) ver = &types.Version{ BlockNum: 7, @@ -200,22 +229,27 @@ func TestProvenanceQueries(t *testing.T) { }) t.Run("Get next values with gap due to deletes", func(t *testing.T) { - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key1value2"), // deleted - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key1value2"), // deleted + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, - }, - { - Value: []byte("key1value3"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 8, - TxNum: 0, + { + Value: []byte("key1value3"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 8, + TxNum: 0, + }, }, }, }, @@ -227,29 +261,37 @@ func TestProvenanceQueries(t *testing.T) { } resp, err := s.GetNextValues(t, "db1", "key1", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + sort.Slice(resp.GetResponse().GetValues(), func(i, j int) bool { + return resp.GetResponse().GetValues()[i].Metadata.Version.BlockNum < resp.GetResponse().GetValues()[j].Metadata.Version.BlockNum + }) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) }) t.Run("Get previous values", func(t *testing.T) { - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key2value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key2value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Value: []byte("key2value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 6, - TxNum: 0, + { + Value: []byte("key2value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 6, + TxNum: 0, + }, }, }, }, @@ -261,7 +303,10 @@ func TestProvenanceQueries(t *testing.T) { } resp, err := s.GetPreviousValues(t, "db1", "key2", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + sort.Slice(resp.GetResponse().GetValues(), func(i, j int) bool { + return resp.GetResponse().GetValues()[i].Metadata.Version.BlockNum < resp.GetResponse().GetValues()[j].Metadata.Version.BlockNum + }) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) ver = &types.Version{ BlockNum: 4, @@ -273,22 +318,27 @@ func TestProvenanceQueries(t *testing.T) { }) t.Run("Get previous values with gap due to deletes", func(t *testing.T) { - expectedKey2Values := []*types.ValueWithMetadata{ - { - Value: []byte("key1value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + expectedKey2Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key1value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, - }, - { - Value: []byte("key1value2"), // deleted - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + { + Value: []byte("key1value2"), // deleted + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, }, @@ -300,20 +350,28 @@ func TestProvenanceQueries(t *testing.T) { } resp, err := s.GetPreviousValues(t, "db1", "key1", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey2Values, resp.GetResponse().GetValues()) + sort.Slice(resp.GetResponse().GetValues(), func(i, j int) bool { + return resp.GetResponse().GetValues()[i].Metadata.Version.BlockNum < resp.GetResponse().GetValues()[j].Metadata.Version.BlockNum + }) + require.True(t, proto.Equal(expectedKey2Values, resp.GetResponse())) }) t.Run("Get Most Recent Value at or Below", func(t *testing.T) { - expectedKey3Values := []*types.ValueWithMetadata{ - { - Value: []byte("key3value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 7, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + expectedKey3Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key3value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 7, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, }, @@ -328,7 +386,8 @@ func TestProvenanceQueries(t *testing.T) { // implemented ACL in the provenance store resp, err := s.GetMostRecentValueAtOrBelow(t, "db2", "key3", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey3Values, resp.GetResponse().GetValues()) + require.True(t, proto.Equal(expectedKey3Values, resp.GetResponse())) + // require.ElementsMatch(t, expectedKey3Values, resp.GetResponse().GetValues()) ver = &types.Version{ BlockNum: 7, @@ -336,15 +395,20 @@ func TestProvenanceQueries(t *testing.T) { } resp, err = s.GetMostRecentValueAtOrBelow(t, "db2", "key3", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey3Values, resp.GetResponse().GetValues()) - - expectedKey3Values = []*types.ValueWithMetadata{ - { - Value: []byte("key3value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + require.True(t, proto.Equal(expectedKey3Values, resp.GetResponse())) + + expectedKey3Values = &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key3value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, }, @@ -356,17 +420,22 @@ func TestProvenanceQueries(t *testing.T) { } resp, err = s.GetMostRecentValueAtOrBelow(t, "db2", "key3", "admin", ver) require.NoError(t, err) - require.ElementsMatch(t, expectedKey3Values, resp.GetResponse().GetValues()) + require.True(t, proto.Equal(expectedKey3Values, resp.GetResponse())) }) t.Run("Get Deleted Values", func(t *testing.T) { - expectedKey1Values := []*types.ValueWithMetadata{ - { - Value: []byte("key1value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + expectedKey1Values := &types.GetHistoricalDataResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + Values: []*types.ValueWithMetadata{ + { + Value: []byte("key1value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, }, @@ -374,57 +443,62 @@ func TestProvenanceQueries(t *testing.T) { resp, err := s.GetDeletedValues(t, "db1", "key1", "admin") require.NoError(t, err) - require.ElementsMatch(t, expectedKey1Values, resp.GetResponse().GetValues()) + require.True(t, proto.Equal(expectedKey1Values, resp.GetResponse())) }) t.Run("Get Values Read By", func(t *testing.T) { - expectedAliceReads := map[string]*types.KVsWithMetadata{ - "db1": { - KVs: []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte("key1value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + expectedAliceReads := &types.GetDataProvenanceResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + DBKeyValues: map[string]*types.KVsWithMetadata{ + "db1": { + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte("key1value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, - }, - { - Key: "key2", - Value: []byte("key2value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + { + Key: "key2", + Value: []byte("key2value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Key: "key2", - Value: []byte("key2value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 6, - TxNum: 0, + { + Key: "key2", + Value: []byte("key2value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 6, + TxNum: 0, + }, }, }, }, }, - }, - "db2": { - KVs: []*types.KVWithMetadata{ - { - Key: "key3", - Value: []byte("key3value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + "db2": { + KVs: []*types.KVWithMetadata{ + { + Key: "key3", + Value: []byte("key3value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, }, @@ -436,84 +510,89 @@ func TestProvenanceQueries(t *testing.T) { require.NoError(t, err) actualDBsKVs := resp.GetResponse().GetDBKeyValues() require.NotNil(t, actualDBsKVs) - require.Len(t, actualDBsKVs, len(expectedAliceReads)) + require.Len(t, actualDBsKVs, len(expectedAliceReads.DBKeyValues)) - for dbName, expectedKVs := range expectedAliceReads { - require.ElementsMatch(t, expectedKVs.KVs, actualDBsKVs[dbName].KVs) + for dbName, expectedKVs := range expectedAliceReads.DBKeyValues { + require.True(t, proto.Equal(expectedKVs, resp.GetResponse().GetDBKeyValues()[dbName])) } }) t.Run("Get Values Written By", func(t *testing.T) { - expectedAliceWrites := map[string]*types.KVsWithMetadata{ - "db1": { - KVs: []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte("key1value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + expectedAliceWrites := &types.GetDataProvenanceResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + DBKeyValues: map[string]*types.KVsWithMetadata{ + "db1": { + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte("key1value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, - }, - { - Key: "key2", - Value: []byte("key2value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + { + Key: "key2", + Value: []byte("key2value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, - }, - { - Key: "key2", - Value: []byte("key2value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 6, - TxNum: 0, + { + Key: "key2", + Value: []byte("key2value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 6, + TxNum: 0, + }, }, }, - }, - { - Key: "key2", - Value: []byte("key2value3"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 7, - TxNum: 0, + { + Key: "key2", + Value: []byte("key2value3"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 7, + TxNum: 0, + }, }, }, }, }, - }, - "db2": { - KVs: []*types.KVWithMetadata{ - { - Key: "key3", - Value: []byte("key3value1"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 4, - TxNum: 0, + "db2": { + KVs: []*types.KVWithMetadata{ + { + Key: "key3", + Value: []byte("key3value1"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 4, + TxNum: 0, + }, }, }, - }, - { - Key: "key3", - Value: []byte("key3value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 7, - TxNum: 0, - }, - AccessControl: &types.AccessControl{ - ReadWriteUsers: map[string]bool{"alice": true}, + { + Key: "key3", + Value: []byte("key3value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 7, + TxNum: 0, + }, + AccessControl: &types.AccessControl{ + ReadWriteUsers: map[string]bool{"alice": true}, + }, }, }, }, @@ -525,24 +604,29 @@ func TestProvenanceQueries(t *testing.T) { require.NoError(t, err) actualDBsKVs := resp.GetResponse().GetDBKeyValues() require.NotNil(t, actualDBsKVs) - require.Len(t, actualDBsKVs, len(expectedAliceWrites)) + require.Len(t, actualDBsKVs, len(expectedAliceWrites.DBKeyValues)) - for dbName, expectedKVs := range expectedAliceWrites { - require.ElementsMatch(t, expectedKVs.KVs, actualDBsKVs[dbName].KVs) + for dbName, expectedKVs := range expectedAliceWrites.DBKeyValues { + require.True(t, proto.Equal(expectedKVs, resp.GetResponse().GetDBKeyValues()[dbName])) } }) t.Run("Get Values Deleted By", func(t *testing.T) { - expectedAliceDeletes := map[string]*types.KVsWithMetadata{ - "db1": { - KVs: []*types.KVWithMetadata{ - { - Key: "key1", - Value: []byte("key1value2"), - Metadata: &types.Metadata{ - Version: &types.Version{ - BlockNum: 5, - TxNum: 0, + expectedAliceDeletes := &types.GetDataProvenanceResponse{ + Header: &types.ResponseHeader{ + NodeId: s.ID(), + }, + DBKeyValues: map[string]*types.KVsWithMetadata{ + "db1": { + KVs: []*types.KVWithMetadata{ + { + Key: "key1", + Value: []byte("key1value2"), + Metadata: &types.Metadata{ + Version: &types.Version{ + BlockNum: 5, + TxNum: 0, + }, }, }, }, @@ -554,10 +638,10 @@ func TestProvenanceQueries(t *testing.T) { require.NoError(t, err) actualDBsKVs := resp.GetResponse().GetDBKeyValues() require.NotNil(t, actualDBsKVs) - require.Len(t, actualDBsKVs, len(expectedAliceDeletes)) + require.Len(t, actualDBsKVs, len(expectedAliceDeletes.DBKeyValues)) - for dbName, expectedKVs := range expectedAliceDeletes { - require.ElementsMatch(t, expectedKVs.KVs, actualDBsKVs[dbName].KVs) + for dbName, expectedKVs := range expectedAliceDeletes.DBKeyValues { + require.True(t, proto.Equal(expectedKVs, resp.GetResponse().GetDBKeyValues()[dbName])) } }) diff --git a/test/queries/range_query_test.go b/test/queries/range_query_test.go index fb652018..5208e137 100644 --- a/test/queries/range_query_test.go +++ b/test/queries/range_query_test.go @@ -7,6 +7,7 @@ import ( "fmt" "io/ioutil" "math" + "os" "testing" "time" @@ -37,6 +38,7 @@ func TestRangeQueriesWithUserLimit(t *testing.T) { BasePeerPort: pPort, ServersQueryLimit: math.MaxInt64, } + defer os.RemoveAll(dir) c, err := setup.NewCluster(setupConfig) require.NoError(t, err) defer c.ShutdownAndCleanup() diff --git a/test/setup/server_setup.go b/test/setup/server_setup.go index 0fe442ce..09497b24 100644 --- a/test/setup/server_setup.go +++ b/test/setup/server_setup.go @@ -8,6 +8,7 @@ import ( "encoding/json" "fmt" "io" + "io/ioutil" "log" "net/http" "os" @@ -33,6 +34,7 @@ import ( "github.com/onsi/gomega/gbytes" "github.com/pkg/errors" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/encoding/protojson" ) // Server holds parameters related to the server @@ -1052,13 +1054,18 @@ func (s *Server) SubmitTransaction(t *testing.T, urlPath string, tx interface{}) return nil, errors.Errorf("failed to submit transaction, server returned: status: %s, message: %s", response.Status, errMsg) } - txResponseEnvelope := &types.TxReceiptResponseEnvelope{} - err = json.NewDecoder(response.Body).Decode(txResponseEnvelope) + requestBody, err := ioutil.ReadAll(response.Body) if err != nil { t.Errorf("error: %s", err) return nil, err } + txResponseEnvelope := &types.TxReceiptResponseEnvelope{} + if err := protojson.Unmarshal(requestBody, txResponseEnvelope); err != nil { + t.Errorf("error: %s", err) + return nil, err + } + // TODO validate server signature receipt := txResponseEnvelope.GetResponse().GetReceipt() @@ -1108,7 +1115,13 @@ func (s *Server) SubmitTransactionAsync(t *testing.T, urlPath string, tx interfa } txResponseEnvelope := &types.TxReceiptResponseEnvelope{} - err = json.NewDecoder(response.Body).Decode(txResponseEnvelope) + responseBytes, err := ioutil.ReadAll(response.Body) + if err != nil { + t.Errorf("error: %s", err) + return err + } + + err = protojson.Unmarshal(responseBytes, txResponseEnvelope) if err != nil { t.Errorf("error: %s", err) return err @@ -1161,11 +1174,16 @@ func (s *Server) SetConfigTx(t *testing.T, newConfig *types.ClusterConfig, versi return txID, nil, errors.Errorf("failed to submit transaction, server returned: status: %s, message: %s", response.Status, errMsg) } - txResponseEnvelope := &types.TxReceiptResponseEnvelope{} - err = json.NewDecoder(response.Body).Decode(txResponseEnvelope) + requestBody, err := ioutil.ReadAll(response.Body) if err != nil { t.Errorf("error: %s", err) - return txID, nil, err + return "", nil, err + } + + txResponseEnvelope := &types.TxReceiptResponseEnvelope{} + if err := protojson.Unmarshal(requestBody, txResponseEnvelope); err != nil { + t.Errorf("error: %s", err) + return "", nil, err } receipt := txResponseEnvelope.GetResponse().GetReceipt()