diff --git a/.github/workflows/buf-lint.yml b/.github/workflows/buf-lint.yml index 018c90572312..69583e368e0f 100644 --- a/.github/workflows/buf-lint.yml +++ b/.github/workflows/buf-lint.yml @@ -14,4 +14,4 @@ jobs: - uses: bufbuild/buf-setup-action@v1.3.1 - uses: bufbuild/buf-lint-action@v1 with: - input: 'api' + input: 'proto' diff --git a/api/keystore/gkeystore/keystore_client.go b/api/keystore/gkeystore/keystore_client.go index 41828c5227e2..2bb6b80399ee 100644 --- a/api/keystore/gkeystore/keystore_client.go +++ b/api/keystore/gkeystore/keystore_client.go @@ -9,23 +9,24 @@ import ( "github.com/hashicorp/go-plugin" "github.com/ava-labs/avalanchego/api/keystore" - "github.com/ava-labs/avalanchego/api/proto/gkeystoreproto" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/database/encdb" "github.com/ava-labs/avalanchego/database/rpcdb" + + keystorepb "github.com/ava-labs/avalanchego/proto/pb/keystore" + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" ) var _ keystore.BlockchainKeystore = &Client{} // Client is a snow.Keystore that talks over RPC. type Client struct { - client gkeystoreproto.KeystoreClient + client keystorepb.KeystoreClient broker *plugin.GRPCBroker } // NewClient returns a keystore instance connected to a remote keystore instance -func NewClient(client gkeystoreproto.KeystoreClient, broker *plugin.GRPCBroker) *Client { +func NewClient(client keystorepb.KeystoreClient, broker *plugin.GRPCBroker) *Client { return &Client{ client: client, broker: broker, @@ -41,7 +42,7 @@ func (c *Client) GetDatabase(username, password string) (*encdb.Database, error) } func (c *Client) GetRawDatabase(username, password string) (database.Database, error) { - resp, err := c.client.GetDatabase(context.Background(), &gkeystoreproto.GetDatabaseRequest{ + resp, err := c.client.GetDatabase(context.Background(), &keystorepb.GetDatabaseRequest{ Username: username, Password: password, }) @@ -54,6 +55,6 @@ func (c *Client) GetRawDatabase(username, password string) (database.Database, e return nil, err } - dbClient := rpcdb.NewClient(rpcdbproto.NewDatabaseClient(dbConn)) + dbClient := rpcdb.NewClient(rpcdbpb.NewDatabaseClient(dbConn)) return dbClient, err } diff --git a/api/keystore/gkeystore/keystore_server.go b/api/keystore/gkeystore/keystore_server.go index cbd8e3ecf619..0c4960166379 100644 --- a/api/keystore/gkeystore/keystore_server.go +++ b/api/keystore/gkeystore/keystore_server.go @@ -11,19 +11,20 @@ import ( "github.com/hashicorp/go-plugin" "github.com/ava-labs/avalanchego/api/keystore" - "github.com/ava-labs/avalanchego/api/proto/gkeystoreproto" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/database/rpcdb" "github.com/ava-labs/avalanchego/utils/math" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + + keystorepb "github.com/ava-labs/avalanchego/proto/pb/keystore" + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" ) -var _ gkeystoreproto.KeystoreServer = &Server{} +var _ keystorepb.KeystoreServer = &Server{} // Server is a snow.Keystore that is managed over RPC. type Server struct { - gkeystoreproto.UnimplementedKeystoreServer + keystorepb.UnimplementedKeystoreServer ks keystore.BlockchainKeystore broker *plugin.GRPCBroker } @@ -38,8 +39,8 @@ func NewServer(ks keystore.BlockchainKeystore, broker *plugin.GRPCBroker) *Serve func (s *Server) GetDatabase( _ context.Context, - req *gkeystoreproto.GetDatabaseRequest, -) (*gkeystoreproto.GetDatabaseResponse, error) { + req *keystorepb.GetDatabaseRequest, +) (*keystorepb.GetDatabaseResponse, error) { db, err := s.ks.GetRawDatabase(req.Username, req.Password) if err != nil { return nil, err @@ -57,10 +58,10 @@ func (s *Server) GetDatabase( server := grpc.NewServer(opts...) closer.closer.Add(server) db := rpcdb.NewServer(&closer) - rpcdbproto.RegisterDatabaseServer(server, db) + rpcdbpb.RegisterDatabaseServer(server, db) return server }) - return &gkeystoreproto.GetDatabaseResponse{DbServer: dbBrokerID}, nil + return &keystorepb.GetDatabaseResponse{DbServer: dbBrokerID}, nil } type dbCloser struct { diff --git a/api/proto/appsenderproto/appsender.pb.go b/api/proto/appsenderproto/appsender.pb.go deleted file mode 100644 index 70b2e636922d..000000000000 --- a/api/proto/appsenderproto/appsender.pb.go +++ /dev/null @@ -1,427 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: appsenderproto/appsender.proto - -package appsenderproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -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 SendAppRequestMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The nodes to send this request to - NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` - // The ID of this request - RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // The request body - Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` -} - -func (x *SendAppRequestMsg) Reset() { - *x = SendAppRequestMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_appsenderproto_appsender_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendAppRequestMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendAppRequestMsg) ProtoMessage() {} - -func (x *SendAppRequestMsg) ProtoReflect() protoreflect.Message { - mi := &file_appsenderproto_appsender_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendAppRequestMsg.ProtoReflect.Descriptor instead. -func (*SendAppRequestMsg) Descriptor() ([]byte, []int) { - return file_appsenderproto_appsender_proto_rawDescGZIP(), []int{0} -} - -func (x *SendAppRequestMsg) GetNodeIds() [][]byte { - if x != nil { - return x.NodeIds - } - return nil -} - -func (x *SendAppRequestMsg) GetRequestId() uint32 { - if x != nil { - return x.RequestId - } - return 0 -} - -func (x *SendAppRequestMsg) GetRequest() []byte { - if x != nil { - return x.Request - } - return nil -} - -type SendAppResponseMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The node to send a response to - NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // ID of this request - RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // The response body - Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` -} - -func (x *SendAppResponseMsg) Reset() { - *x = SendAppResponseMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_appsenderproto_appsender_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendAppResponseMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendAppResponseMsg) ProtoMessage() {} - -func (x *SendAppResponseMsg) ProtoReflect() protoreflect.Message { - mi := &file_appsenderproto_appsender_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) -} - -// Deprecated: Use SendAppResponseMsg.ProtoReflect.Descriptor instead. -func (*SendAppResponseMsg) Descriptor() ([]byte, []int) { - return file_appsenderproto_appsender_proto_rawDescGZIP(), []int{1} -} - -func (x *SendAppResponseMsg) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *SendAppResponseMsg) GetRequestId() uint32 { - if x != nil { - return x.RequestId - } - return 0 -} - -func (x *SendAppResponseMsg) GetResponse() []byte { - if x != nil { - return x.Response - } - return nil -} - -type SendAppGossipMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The message body - Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *SendAppGossipMsg) Reset() { - *x = SendAppGossipMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_appsenderproto_appsender_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendAppGossipMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendAppGossipMsg) ProtoMessage() {} - -func (x *SendAppGossipMsg) ProtoReflect() protoreflect.Message { - mi := &file_appsenderproto_appsender_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) -} - -// Deprecated: Use SendAppGossipMsg.ProtoReflect.Descriptor instead. -func (*SendAppGossipMsg) Descriptor() ([]byte, []int) { - return file_appsenderproto_appsender_proto_rawDescGZIP(), []int{2} -} - -func (x *SendAppGossipMsg) GetMsg() []byte { - if x != nil { - return x.Msg - } - return nil -} - -type SendAppGossipSpecificMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The nodes to send this request to - NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` - // The message body - Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *SendAppGossipSpecificMsg) Reset() { - *x = SendAppGossipSpecificMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_appsenderproto_appsender_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendAppGossipSpecificMsg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendAppGossipSpecificMsg) ProtoMessage() {} - -func (x *SendAppGossipSpecificMsg) ProtoReflect() protoreflect.Message { - mi := &file_appsenderproto_appsender_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) -} - -// Deprecated: Use SendAppGossipSpecificMsg.ProtoReflect.Descriptor instead. -func (*SendAppGossipSpecificMsg) Descriptor() ([]byte, []int) { - return file_appsenderproto_appsender_proto_rawDescGZIP(), []int{3} -} - -func (x *SendAppGossipSpecificMsg) GetNodeIds() [][]byte { - if x != nil { - return x.NodeIds - } - return nil -} - -func (x *SendAppGossipSpecificMsg) GetMsg() []byte { - if x != nil { - return x.Msg - } - return nil -} - -var File_appsenderproto_appsender_proto protoreflect.FileDescriptor - -var file_appsenderproto_appsender_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, - 0x11, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, - 0x73, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x68, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, - 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, - 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x24, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, - 0x70, 0x4d, 0x73, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x47, 0x0a, 0x18, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, - 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x4d, - 0x73, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x10, 0x0a, - 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, - 0xcd, 0x02, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x4b, 0x0a, - 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x21, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, - 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4d, 0x0a, 0x0f, 0x53, 0x65, - 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x2e, - 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, - 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, - 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x0d, 0x53, 0x65, 0x6e, - 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x70, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6e, 0x64, - 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x59, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, - 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x12, 0x28, 0x2e, - 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, - 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, 0x65, 0x63, - 0x69, 0x66, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, - 0x4d, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, - 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, - 0x67, 0x6f, 0x2f, 0x73, 0x6e, 0x6f, 0x77, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x2f, - 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_appsenderproto_appsender_proto_rawDescOnce sync.Once - file_appsenderproto_appsender_proto_rawDescData = file_appsenderproto_appsender_proto_rawDesc -) - -func file_appsenderproto_appsender_proto_rawDescGZIP() []byte { - file_appsenderproto_appsender_proto_rawDescOnce.Do(func() { - file_appsenderproto_appsender_proto_rawDescData = protoimpl.X.CompressGZIP(file_appsenderproto_appsender_proto_rawDescData) - }) - return file_appsenderproto_appsender_proto_rawDescData -} - -var file_appsenderproto_appsender_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_appsenderproto_appsender_proto_goTypes = []interface{}{ - (*SendAppRequestMsg)(nil), // 0: appsenderproto.SendAppRequestMsg - (*SendAppResponseMsg)(nil), // 1: appsenderproto.SendAppResponseMsg - (*SendAppGossipMsg)(nil), // 2: appsenderproto.SendAppGossipMsg - (*SendAppGossipSpecificMsg)(nil), // 3: appsenderproto.SendAppGossipSpecificMsg - (*emptypb.Empty)(nil), // 4: google.protobuf.Empty -} -var file_appsenderproto_appsender_proto_depIdxs = []int32{ - 0, // 0: appsenderproto.AppSender.SendAppRequest:input_type -> appsenderproto.SendAppRequestMsg - 1, // 1: appsenderproto.AppSender.SendAppResponse:input_type -> appsenderproto.SendAppResponseMsg - 2, // 2: appsenderproto.AppSender.SendAppGossip:input_type -> appsenderproto.SendAppGossipMsg - 3, // 3: appsenderproto.AppSender.SendAppGossipSpecific:input_type -> appsenderproto.SendAppGossipSpecificMsg - 4, // 4: appsenderproto.AppSender.SendAppRequest:output_type -> google.protobuf.Empty - 4, // 5: appsenderproto.AppSender.SendAppResponse:output_type -> google.protobuf.Empty - 4, // 6: appsenderproto.AppSender.SendAppGossip:output_type -> google.protobuf.Empty - 4, // 7: appsenderproto.AppSender.SendAppGossipSpecific:output_type -> google.protobuf.Empty - 4, // [4:8] is the sub-list for method output_type - 0, // [0:4] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_appsenderproto_appsender_proto_init() } -func file_appsenderproto_appsender_proto_init() { - if File_appsenderproto_appsender_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_appsenderproto_appsender_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAppRequestMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_appsenderproto_appsender_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAppResponseMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_appsenderproto_appsender_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAppGossipMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_appsenderproto_appsender_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAppGossipSpecificMsg); 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_appsenderproto_appsender_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_appsenderproto_appsender_proto_goTypes, - DependencyIndexes: file_appsenderproto_appsender_proto_depIdxs, - MessageInfos: file_appsenderproto_appsender_proto_msgTypes, - }.Build() - File_appsenderproto_appsender_proto = out.File - file_appsenderproto_appsender_proto_rawDesc = nil - file_appsenderproto_appsender_proto_goTypes = nil - file_appsenderproto_appsender_proto_depIdxs = nil -} diff --git a/api/proto/galiasreaderproto/aliasreader.pb.go b/api/proto/galiasreaderproto/aliasreader.pb.go deleted file mode 100644 index d475e7395d6d..000000000000 --- a/api/proto/galiasreaderproto/aliasreader.pb.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: galiasreaderproto/aliasreader.proto - -package galiasreaderproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ID) Reset() { - *x = ID{} - if protoimpl.UnsafeEnabled { - mi := &file_galiasreaderproto_aliasreader_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ID) ProtoMessage() {} - -func (x *ID) ProtoReflect() protoreflect.Message { - mi := &file_galiasreaderproto_aliasreader_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ID.ProtoReflect.Descriptor instead. -func (*ID) Descriptor() ([]byte, []int) { - return file_galiasreaderproto_aliasreader_proto_rawDescGZIP(), []int{0} -} - -func (x *ID) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -type Alias struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` -} - -func (x *Alias) Reset() { - *x = Alias{} - if protoimpl.UnsafeEnabled { - mi := &file_galiasreaderproto_aliasreader_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Alias) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Alias) ProtoMessage() {} - -func (x *Alias) ProtoReflect() protoreflect.Message { - mi := &file_galiasreaderproto_aliasreader_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) -} - -// Deprecated: Use Alias.ProtoReflect.Descriptor instead. -func (*Alias) Descriptor() ([]byte, []int) { - return file_galiasreaderproto_aliasreader_proto_rawDescGZIP(), []int{1} -} - -func (x *Alias) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -type AliasList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Aliases []string `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` -} - -func (x *AliasList) Reset() { - *x = AliasList{} - if protoimpl.UnsafeEnabled { - mi := &file_galiasreaderproto_aliasreader_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AliasList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AliasList) ProtoMessage() {} - -func (x *AliasList) ProtoReflect() protoreflect.Message { - mi := &file_galiasreaderproto_aliasreader_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) -} - -// Deprecated: Use AliasList.ProtoReflect.Descriptor instead. -func (*AliasList) Descriptor() ([]byte, []int) { - return file_galiasreaderproto_aliasreader_proto_rawDescGZIP(), []int{2} -} - -func (x *AliasList) GetAliases() []string { - if x != nil { - return x.Aliases - } - return nil -} - -var File_galiasreaderproto_aliasreader_proto protoreflect.FileDescriptor - -var file_galiasreaderproto_aliasreader_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x02, 0x49, 0x44, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1d, - 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x25, 0x0a, - 0x09, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x65, 0x73, 0x32, 0xc9, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x06, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x12, 0x18, - 0x2e, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0x15, 0x2e, 0x67, 0x61, 0x6c, 0x69, 0x61, - 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x44, 0x12, - 0x3f, 0x0a, 0x0c, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, - 0x15, 0x2e, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x44, 0x1a, 0x18, 0x2e, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, - 0x12, 0x3e, 0x0a, 0x07, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x15, 0x2e, 0x67, 0x61, - 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x49, 0x44, 0x1a, 0x1c, 0x2e, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, - 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, - 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, - 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_galiasreaderproto_aliasreader_proto_rawDescOnce sync.Once - file_galiasreaderproto_aliasreader_proto_rawDescData = file_galiasreaderproto_aliasreader_proto_rawDesc -) - -func file_galiasreaderproto_aliasreader_proto_rawDescGZIP() []byte { - file_galiasreaderproto_aliasreader_proto_rawDescOnce.Do(func() { - file_galiasreaderproto_aliasreader_proto_rawDescData = protoimpl.X.CompressGZIP(file_galiasreaderproto_aliasreader_proto_rawDescData) - }) - return file_galiasreaderproto_aliasreader_proto_rawDescData -} - -var file_galiasreaderproto_aliasreader_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_galiasreaderproto_aliasreader_proto_goTypes = []interface{}{ - (*ID)(nil), // 0: galiasreaderproto.ID - (*Alias)(nil), // 1: galiasreaderproto.Alias - (*AliasList)(nil), // 2: galiasreaderproto.AliasList -} -var file_galiasreaderproto_aliasreader_proto_depIdxs = []int32{ - 1, // 0: galiasreaderproto.AliasReader.Lookup:input_type -> galiasreaderproto.Alias - 0, // 1: galiasreaderproto.AliasReader.PrimaryAlias:input_type -> galiasreaderproto.ID - 0, // 2: galiasreaderproto.AliasReader.Aliases:input_type -> galiasreaderproto.ID - 0, // 3: galiasreaderproto.AliasReader.Lookup:output_type -> galiasreaderproto.ID - 1, // 4: galiasreaderproto.AliasReader.PrimaryAlias:output_type -> galiasreaderproto.Alias - 2, // 5: galiasreaderproto.AliasReader.Aliases:output_type -> galiasreaderproto.AliasList - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_galiasreaderproto_aliasreader_proto_init() } -func file_galiasreaderproto_aliasreader_proto_init() { - if File_galiasreaderproto_aliasreader_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_galiasreaderproto_aliasreader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_galiasreaderproto_aliasreader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Alias); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_galiasreaderproto_aliasreader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AliasList); 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_galiasreaderproto_aliasreader_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_galiasreaderproto_aliasreader_proto_goTypes, - DependencyIndexes: file_galiasreaderproto_aliasreader_proto_depIdxs, - MessageInfos: file_galiasreaderproto_aliasreader_proto_msgTypes, - }.Build() - File_galiasreaderproto_aliasreader_proto = out.File - file_galiasreaderproto_aliasreader_proto_rawDesc = nil - file_galiasreaderproto_aliasreader_proto_goTypes = nil - file_galiasreaderproto_aliasreader_proto_depIdxs = nil -} diff --git a/api/proto/gkeystoreproto/keystore.pb.go b/api/proto/gkeystoreproto/keystore.pb.go deleted file mode 100644 index c12ab17ee0fb..000000000000 --- a/api/proto/gkeystoreproto/keystore.pb.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: gkeystoreproto/keystore.proto - -package gkeystoreproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetDatabaseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *GetDatabaseRequest) Reset() { - *x = GetDatabaseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gkeystoreproto_keystore_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDatabaseRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDatabaseRequest) ProtoMessage() {} - -func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_gkeystoreproto_keystore_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDatabaseRequest.ProtoReflect.Descriptor instead. -func (*GetDatabaseRequest) Descriptor() ([]byte, []int) { - return file_gkeystoreproto_keystore_proto_rawDescGZIP(), []int{0} -} - -func (x *GetDatabaseRequest) GetUsername() string { - if x != nil { - return x.Username - } - return "" -} - -func (x *GetDatabaseRequest) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -type GetDatabaseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DbServer uint32 `protobuf:"varint,1,opt,name=db_server,json=dbServer,proto3" json:"db_server,omitempty"` -} - -func (x *GetDatabaseResponse) Reset() { - *x = GetDatabaseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gkeystoreproto_keystore_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDatabaseResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDatabaseResponse) ProtoMessage() {} - -func (x *GetDatabaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_gkeystoreproto_keystore_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) -} - -// Deprecated: Use GetDatabaseResponse.ProtoReflect.Descriptor instead. -func (*GetDatabaseResponse) Descriptor() ([]byte, []int) { - return file_gkeystoreproto_keystore_proto_rawDescGZIP(), []int{1} -} - -func (x *GetDatabaseResponse) GetDbServer() uint32 { - if x != nil { - return x.DbServer - } - return 0 -} - -var File_gkeystoreproto_keystore_proto protoreflect.FileDescriptor - -var file_gkeystoreproto_keystore_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x67, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0e, 0x67, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x4c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x32, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x62, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x32, 0x62, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x56, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x67, - 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x67, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6b, 0x65, 0x79, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x67, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, - 0x67, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_gkeystoreproto_keystore_proto_rawDescOnce sync.Once - file_gkeystoreproto_keystore_proto_rawDescData = file_gkeystoreproto_keystore_proto_rawDesc -) - -func file_gkeystoreproto_keystore_proto_rawDescGZIP() []byte { - file_gkeystoreproto_keystore_proto_rawDescOnce.Do(func() { - file_gkeystoreproto_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(file_gkeystoreproto_keystore_proto_rawDescData) - }) - return file_gkeystoreproto_keystore_proto_rawDescData -} - -var file_gkeystoreproto_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gkeystoreproto_keystore_proto_goTypes = []interface{}{ - (*GetDatabaseRequest)(nil), // 0: gkeystoreproto.GetDatabaseRequest - (*GetDatabaseResponse)(nil), // 1: gkeystoreproto.GetDatabaseResponse -} -var file_gkeystoreproto_keystore_proto_depIdxs = []int32{ - 0, // 0: gkeystoreproto.Keystore.GetDatabase:input_type -> gkeystoreproto.GetDatabaseRequest - 1, // 1: gkeystoreproto.Keystore.GetDatabase:output_type -> gkeystoreproto.GetDatabaseResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_gkeystoreproto_keystore_proto_init() } -func file_gkeystoreproto_keystore_proto_init() { - if File_gkeystoreproto_keystore_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_gkeystoreproto_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDatabaseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gkeystoreproto_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDatabaseResponse); 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_gkeystoreproto_keystore_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_gkeystoreproto_keystore_proto_goTypes, - DependencyIndexes: file_gkeystoreproto_keystore_proto_depIdxs, - MessageInfos: file_gkeystoreproto_keystore_proto_msgTypes, - }.Build() - File_gkeystoreproto_keystore_proto = out.File - file_gkeystoreproto_keystore_proto_rawDesc = nil - file_gkeystoreproto_keystore_proto_goTypes = nil - file_gkeystoreproto_keystore_proto_depIdxs = nil -} diff --git a/api/proto/greaderproto/reader.pb.go b/api/proto/greaderproto/reader.pb.go deleted file mode 100644 index d8bd580b7df8..000000000000 --- a/api/proto/greaderproto/reader.pb.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: greaderproto/reader.proto - -package greaderproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ReadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // length is the request in bytes - Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` -} - -func (x *ReadRequest) Reset() { - *x = ReadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_greaderproto_reader_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReadRequest) ProtoMessage() {} - -func (x *ReadRequest) ProtoReflect() protoreflect.Message { - mi := &file_greaderproto_reader_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. -func (*ReadRequest) Descriptor() ([]byte, []int) { - return file_greaderproto_reader_proto_rawDescGZIP(), []int{0} -} - -func (x *ReadRequest) GetLength() int32 { - if x != nil { - return x.Length - } - return 0 -} - -type ReadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // read is the payload in bytes - Read []byte `protobuf:"bytes,1,opt,name=read,proto3" json:"read,omitempty"` - // error is an error message - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - // errored is true if an error has been set - Errored bool `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"` -} - -func (x *ReadResponse) Reset() { - *x = ReadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_greaderproto_reader_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReadResponse) ProtoMessage() {} - -func (x *ReadResponse) ProtoReflect() protoreflect.Message { - mi := &file_greaderproto_reader_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) -} - -// Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. -func (*ReadResponse) Descriptor() ([]byte, []int) { - return file_greaderproto_reader_proto_rawDescGZIP(), []int{1} -} - -func (x *ReadResponse) GetRead() []byte { - if x != nil { - return x.Read - } - return nil -} - -func (x *ReadResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -func (x *ReadResponse) GetErrored() bool { - if x != nil { - return x.Errored - } - return false -} - -var File_greaderproto_reader_proto protoreflect.FileDescriptor - -var file_greaderproto_reader_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x67, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x65, 0x61, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x22, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x72, 0x65, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x65, 0x64, 0x32, 0x47, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, - 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x32, 0x5a, - 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, - 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_greaderproto_reader_proto_rawDescOnce sync.Once - file_greaderproto_reader_proto_rawDescData = file_greaderproto_reader_proto_rawDesc -) - -func file_greaderproto_reader_proto_rawDescGZIP() []byte { - file_greaderproto_reader_proto_rawDescOnce.Do(func() { - file_greaderproto_reader_proto_rawDescData = protoimpl.X.CompressGZIP(file_greaderproto_reader_proto_rawDescData) - }) - return file_greaderproto_reader_proto_rawDescData -} - -var file_greaderproto_reader_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_greaderproto_reader_proto_goTypes = []interface{}{ - (*ReadRequest)(nil), // 0: greaderproto.ReadRequest - (*ReadResponse)(nil), // 1: greaderproto.ReadResponse -} -var file_greaderproto_reader_proto_depIdxs = []int32{ - 0, // 0: greaderproto.Reader.Read:input_type -> greaderproto.ReadRequest - 1, // 1: greaderproto.Reader.Read:output_type -> greaderproto.ReadResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_greaderproto_reader_proto_init() } -func file_greaderproto_reader_proto_init() { - if File_greaderproto_reader_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_greaderproto_reader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_greaderproto_reader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResponse); 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_greaderproto_reader_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_greaderproto_reader_proto_goTypes, - DependencyIndexes: file_greaderproto_reader_proto_depIdxs, - MessageInfos: file_greaderproto_reader_proto_msgTypes, - }.Build() - File_greaderproto_reader_proto = out.File - file_greaderproto_reader_proto_rawDesc = nil - file_greaderproto_reader_proto_goTypes = nil - file_greaderproto_reader_proto_depIdxs = nil -} diff --git a/api/proto/gresponsewriterproto/responsewriter.pb.go b/api/proto/gresponsewriterproto/responsewriter.pb.go deleted file mode 100644 index 09d8cbbae8cf..000000000000 --- a/api/proto/gresponsewriterproto/responsewriter.pb.go +++ /dev/null @@ -1,521 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: gresponsewriterproto/responsewriter.proto - -package gresponsewriterproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -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 Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // key is a element key in a key value pair - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // values are a list of strings coresponding to the key - Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` -} - -func (x *Header) Reset() { - *x = Header{} - if protoimpl.UnsafeEnabled { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Header) ProtoMessage() {} - -func (x *Header) ProtoReflect() protoreflect.Message { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Header.ProtoReflect.Descriptor instead. -func (*Header) Descriptor() ([]byte, []int) { - return file_gresponsewriterproto_responsewriter_proto_rawDescGZIP(), []int{0} -} - -func (x *Header) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Header) GetValues() []string { - if x != nil { - return x.Values - } - return nil -} - -type WriteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // headers represents the key-value pairs in an HTTP header - Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - // payload is the write request in bytes - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *WriteRequest) Reset() { - *x = WriteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteRequest) ProtoMessage() {} - -func (x *WriteRequest) ProtoReflect() protoreflect.Message { - mi := &file_gresponsewriterproto_responsewriter_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) -} - -// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. -func (*WriteRequest) Descriptor() ([]byte, []int) { - return file_gresponsewriterproto_responsewriter_proto_rawDescGZIP(), []int{1} -} - -func (x *WriteRequest) GetHeaders() []*Header { - if x != nil { - return x.Headers - } - return nil -} - -func (x *WriteRequest) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -type WriteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // written is the number of bytes written in body - Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` -} - -func (x *WriteResponse) Reset() { - *x = WriteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteResponse) ProtoMessage() {} - -func (x *WriteResponse) ProtoReflect() protoreflect.Message { - mi := &file_gresponsewriterproto_responsewriter_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) -} - -// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. -func (*WriteResponse) Descriptor() ([]byte, []int) { - return file_gresponsewriterproto_responsewriter_proto_rawDescGZIP(), []int{2} -} - -func (x *WriteResponse) GetWritten() int32 { - if x != nil { - return x.Written - } - return 0 -} - -type WriteHeaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // headers represents the key-value pairs in an HTTP header - Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - // status_code must be a valid HTTP 1xx-5xx status code - StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` -} - -func (x *WriteHeaderRequest) Reset() { - *x = WriteHeaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteHeaderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteHeaderRequest) ProtoMessage() {} - -func (x *WriteHeaderRequest) ProtoReflect() protoreflect.Message { - mi := &file_gresponsewriterproto_responsewriter_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) -} - -// Deprecated: Use WriteHeaderRequest.ProtoReflect.Descriptor instead. -func (*WriteHeaderRequest) Descriptor() ([]byte, []int) { - return file_gresponsewriterproto_responsewriter_proto_rawDescGZIP(), []int{3} -} - -func (x *WriteHeaderRequest) GetHeaders() []*Header { - if x != nil { - return x.Headers - } - return nil -} - -func (x *WriteHeaderRequest) GetStatusCode() int32 { - if x != nil { - return x.StatusCode - } - return 0 -} - -type HijackResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalNetwork string `protobuf:"bytes,2,opt,name=local_network,json=localNetwork,proto3" json:"local_network,omitempty"` - // local_string is string form of address - LocalString string `protobuf:"bytes,3,opt,name=local_string,json=localString,proto3" json:"local_string,omitempty"` - // remote_network is the name of the network (for example, "tcp", "udp") - RemoteNetwork string `protobuf:"bytes,4,opt,name=remote_network,json=remoteNetwork,proto3" json:"remote_network,omitempty"` - // remote_string is string form of address - RemoteString string `protobuf:"bytes,5,opt,name=remote_string,json=remoteString,proto3" json:"remote_string,omitempty"` - // conn_read_writer_server is the stream id of the gRPC server - // serving the Conn, Reader and Writer services which facilitate - // Hijacking, - ConnReadWriterServer uint32 `protobuf:"varint,8,opt,name=conn_read_writer_server,json=connReadWriterServer,proto3" json:"conn_read_writer_server,omitempty"` -} - -func (x *HijackResponse) Reset() { - *x = HijackResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gresponsewriterproto_responsewriter_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HijackResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HijackResponse) ProtoMessage() {} - -func (x *HijackResponse) ProtoReflect() protoreflect.Message { - mi := &file_gresponsewriterproto_responsewriter_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) -} - -// Deprecated: Use HijackResponse.ProtoReflect.Descriptor instead. -func (*HijackResponse) Descriptor() ([]byte, []int) { - return file_gresponsewriterproto_responsewriter_proto_rawDescGZIP(), []int{4} -} - -func (x *HijackResponse) GetLocalNetwork() string { - if x != nil { - return x.LocalNetwork - } - return "" -} - -func (x *HijackResponse) GetLocalString() string { - if x != nil { - return x.LocalString - } - return "" -} - -func (x *HijackResponse) GetRemoteNetwork() string { - if x != nil { - return x.RemoteNetwork - } - return "" -} - -func (x *HijackResponse) GetRemoteString() string { - if x != nil { - return x.RemoteString - } - return "" -} - -func (x *HijackResponse) GetConnReadWriterServer() uint32 { - if x != nil { - return x.ConnReadWriterServer - } - return 0 -} - -var File_gresponsewriterproto_responsewriter_proto protoreflect.FileDescriptor - -var file_gresponsewriterproto_responsewriter_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, - 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x29, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x22, - 0x6d, 0x0a, 0x12, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0xed, - 0x01, 0x0a, 0x0e, 0x48, 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, - 0x6f, 0x74, 0x65, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x6e, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x52, 0x65, 0x61, 0x64, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x01, - 0x10, 0x02, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x32, 0xac, - 0x02, 0x0a, 0x06, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x05, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, - 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0b, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x67, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x37, 0x0a, 0x05, - 0x46, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x06, 0x48, 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, - 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3a, 0x5a, - 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, - 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_gresponsewriterproto_responsewriter_proto_rawDescOnce sync.Once - file_gresponsewriterproto_responsewriter_proto_rawDescData = file_gresponsewriterproto_responsewriter_proto_rawDesc -) - -func file_gresponsewriterproto_responsewriter_proto_rawDescGZIP() []byte { - file_gresponsewriterproto_responsewriter_proto_rawDescOnce.Do(func() { - file_gresponsewriterproto_responsewriter_proto_rawDescData = protoimpl.X.CompressGZIP(file_gresponsewriterproto_responsewriter_proto_rawDescData) - }) - return file_gresponsewriterproto_responsewriter_proto_rawDescData -} - -var file_gresponsewriterproto_responsewriter_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_gresponsewriterproto_responsewriter_proto_goTypes = []interface{}{ - (*Header)(nil), // 0: gresponsewriterproto.Header - (*WriteRequest)(nil), // 1: gresponsewriterproto.WriteRequest - (*WriteResponse)(nil), // 2: gresponsewriterproto.WriteResponse - (*WriteHeaderRequest)(nil), // 3: gresponsewriterproto.WriteHeaderRequest - (*HijackResponse)(nil), // 4: gresponsewriterproto.HijackResponse - (*emptypb.Empty)(nil), // 5: google.protobuf.Empty -} -var file_gresponsewriterproto_responsewriter_proto_depIdxs = []int32{ - 0, // 0: gresponsewriterproto.WriteRequest.headers:type_name -> gresponsewriterproto.Header - 0, // 1: gresponsewriterproto.WriteHeaderRequest.headers:type_name -> gresponsewriterproto.Header - 1, // 2: gresponsewriterproto.Writer.Write:input_type -> gresponsewriterproto.WriteRequest - 3, // 3: gresponsewriterproto.Writer.WriteHeader:input_type -> gresponsewriterproto.WriteHeaderRequest - 5, // 4: gresponsewriterproto.Writer.Flush:input_type -> google.protobuf.Empty - 5, // 5: gresponsewriterproto.Writer.Hijack:input_type -> google.protobuf.Empty - 2, // 6: gresponsewriterproto.Writer.Write:output_type -> gresponsewriterproto.WriteResponse - 5, // 7: gresponsewriterproto.Writer.WriteHeader:output_type -> google.protobuf.Empty - 5, // 8: gresponsewriterproto.Writer.Flush:output_type -> google.protobuf.Empty - 4, // 9: gresponsewriterproto.Writer.Hijack:output_type -> gresponsewriterproto.HijackResponse - 6, // [6:10] is the sub-list for method output_type - 2, // [2:6] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_gresponsewriterproto_responsewriter_proto_init() } -func file_gresponsewriterproto_responsewriter_proto_init() { - if File_gresponsewriterproto_responsewriter_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_gresponsewriterproto_responsewriter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Header); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gresponsewriterproto_responsewriter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gresponsewriterproto_responsewriter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gresponsewriterproto_responsewriter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteHeaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gresponsewriterproto_responsewriter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HijackResponse); 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_gresponsewriterproto_responsewriter_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_gresponsewriterproto_responsewriter_proto_goTypes, - DependencyIndexes: file_gresponsewriterproto_responsewriter_proto_depIdxs, - MessageInfos: file_gresponsewriterproto_responsewriter_proto_msgTypes, - }.Build() - File_gresponsewriterproto_responsewriter_proto = out.File - file_gresponsewriterproto_responsewriter_proto_rawDesc = nil - file_gresponsewriterproto_responsewriter_proto_goTypes = nil - file_gresponsewriterproto_responsewriter_proto_depIdxs = nil -} diff --git a/api/proto/gsubnetlookupproto/subnetlookup.pb.go b/api/proto/gsubnetlookupproto/subnetlookup.pb.go deleted file mode 100644 index 33eae6ef0113..000000000000 --- a/api/proto/gsubnetlookupproto/subnetlookup.pb.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: gsubnetlookupproto/subnetlookup.proto - -package gsubnetlookupproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 SubnetIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (x *SubnetIDRequest) Reset() { - *x = SubnetIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gsubnetlookupproto_subnetlookup_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SubnetIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SubnetIDRequest) ProtoMessage() {} - -func (x *SubnetIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_gsubnetlookupproto_subnetlookup_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SubnetIDRequest.ProtoReflect.Descriptor instead. -func (*SubnetIDRequest) Descriptor() ([]byte, []int) { - return file_gsubnetlookupproto_subnetlookup_proto_rawDescGZIP(), []int{0} -} - -func (x *SubnetIDRequest) GetChainId() []byte { - if x != nil { - return x.ChainId - } - return nil -} - -type SubnetIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *SubnetIDResponse) Reset() { - *x = SubnetIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gsubnetlookupproto_subnetlookup_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SubnetIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SubnetIDResponse) ProtoMessage() {} - -func (x *SubnetIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_gsubnetlookupproto_subnetlookup_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) -} - -// Deprecated: Use SubnetIDResponse.ProtoReflect.Descriptor instead. -func (*SubnetIDResponse) Descriptor() ([]byte, []int) { - return file_gsubnetlookupproto_subnetlookup_proto_rawDescGZIP(), []int{1} -} - -func (x *SubnetIDResponse) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -var File_gsubnetlookupproto_subnetlookup_proto protoreflect.FileDescriptor - -var file_gsubnetlookupproto_subnetlookup_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x67, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, - 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x0f, 0x53, - 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, - 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x53, 0x75, 0x62, - 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x32, 0x65, 0x0a, - 0x0c, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x12, 0x55, 0x0a, - 0x08, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x12, 0x23, 0x2e, 0x67, 0x73, 0x75, 0x62, - 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, - 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x67, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x73, 0x75, 0x62, - 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_gsubnetlookupproto_subnetlookup_proto_rawDescOnce sync.Once - file_gsubnetlookupproto_subnetlookup_proto_rawDescData = file_gsubnetlookupproto_subnetlookup_proto_rawDesc -) - -func file_gsubnetlookupproto_subnetlookup_proto_rawDescGZIP() []byte { - file_gsubnetlookupproto_subnetlookup_proto_rawDescOnce.Do(func() { - file_gsubnetlookupproto_subnetlookup_proto_rawDescData = protoimpl.X.CompressGZIP(file_gsubnetlookupproto_subnetlookup_proto_rawDescData) - }) - return file_gsubnetlookupproto_subnetlookup_proto_rawDescData -} - -var file_gsubnetlookupproto_subnetlookup_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gsubnetlookupproto_subnetlookup_proto_goTypes = []interface{}{ - (*SubnetIDRequest)(nil), // 0: gsubnetlookupproto.SubnetIDRequest - (*SubnetIDResponse)(nil), // 1: gsubnetlookupproto.SubnetIDResponse -} -var file_gsubnetlookupproto_subnetlookup_proto_depIdxs = []int32{ - 0, // 0: gsubnetlookupproto.SubnetLookup.SubnetID:input_type -> gsubnetlookupproto.SubnetIDRequest - 1, // 1: gsubnetlookupproto.SubnetLookup.SubnetID:output_type -> gsubnetlookupproto.SubnetIDResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_gsubnetlookupproto_subnetlookup_proto_init() } -func file_gsubnetlookupproto_subnetlookup_proto_init() { - if File_gsubnetlookupproto_subnetlookup_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_gsubnetlookupproto_subnetlookup_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gsubnetlookupproto_subnetlookup_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetIDResponse); 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_gsubnetlookupproto_subnetlookup_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_gsubnetlookupproto_subnetlookup_proto_goTypes, - DependencyIndexes: file_gsubnetlookupproto_subnetlookup_proto_depIdxs, - MessageInfos: file_gsubnetlookupproto_subnetlookup_proto_msgTypes, - }.Build() - File_gsubnetlookupproto_subnetlookup_proto = out.File - file_gsubnetlookupproto_subnetlookup_proto_rawDesc = nil - file_gsubnetlookupproto_subnetlookup_proto_goTypes = nil - file_gsubnetlookupproto_subnetlookup_proto_depIdxs = nil -} diff --git a/api/proto/gwriterproto/writer.pb.go b/api/proto/gwriterproto/writer.pb.go deleted file mode 100644 index 2565273c2a19..000000000000 --- a/api/proto/gwriterproto/writer.pb.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: gwriterproto/writer.proto - -package gwriterproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 WriteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // payload is the write request in bytes - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *WriteRequest) Reset() { - *x = WriteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gwriterproto_writer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteRequest) ProtoMessage() {} - -func (x *WriteRequest) ProtoReflect() protoreflect.Message { - mi := &file_gwriterproto_writer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. -func (*WriteRequest) Descriptor() ([]byte, []int) { - return file_gwriterproto_writer_proto_rawDescGZIP(), []int{0} -} - -func (x *WriteRequest) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -type WriteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // written is the length of payload in bytes - Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` - // error is an error message - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - // errored is true if an error has been set - Errored bool `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"` -} - -func (x *WriteResponse) Reset() { - *x = WriteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gwriterproto_writer_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WriteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WriteResponse) ProtoMessage() {} - -func (x *WriteResponse) ProtoReflect() protoreflect.Message { - mi := &file_gwriterproto_writer_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) -} - -// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. -func (*WriteResponse) Descriptor() ([]byte, []int) { - return file_gwriterproto_writer_proto_rawDescGZIP(), []int{1} -} - -func (x *WriteResponse) GetWritten() int32 { - if x != nil { - return x.Written - } - return 0 -} - -func (x *WriteResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -func (x *WriteResponse) GetErrored() bool { - if x != nil { - return x.Errored - } - return false -} - -var File_gwriterproto_writer_proto protoreflect.FileDescriptor - -var file_gwriterproto_writer_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x67, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, 0x0c, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x22, 0x59, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x12, 0x14, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x32, 0x4a, - 0x0a, 0x06, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x12, 0x1a, 0x2e, 0x67, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x67, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, - 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x67, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_gwriterproto_writer_proto_rawDescOnce sync.Once - file_gwriterproto_writer_proto_rawDescData = file_gwriterproto_writer_proto_rawDesc -) - -func file_gwriterproto_writer_proto_rawDescGZIP() []byte { - file_gwriterproto_writer_proto_rawDescOnce.Do(func() { - file_gwriterproto_writer_proto_rawDescData = protoimpl.X.CompressGZIP(file_gwriterproto_writer_proto_rawDescData) - }) - return file_gwriterproto_writer_proto_rawDescData -} - -var file_gwriterproto_writer_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_gwriterproto_writer_proto_goTypes = []interface{}{ - (*WriteRequest)(nil), // 0: gwriterproto.WriteRequest - (*WriteResponse)(nil), // 1: gwriterproto.WriteResponse -} -var file_gwriterproto_writer_proto_depIdxs = []int32{ - 0, // 0: gwriterproto.Writer.Write:input_type -> gwriterproto.WriteRequest - 1, // 1: gwriterproto.Writer.Write:output_type -> gwriterproto.WriteResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_gwriterproto_writer_proto_init() } -func file_gwriterproto_writer_proto_init() { - if File_gwriterproto_writer_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_gwriterproto_writer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gwriterproto_writer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteResponse); 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_gwriterproto_writer_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_gwriterproto_writer_proto_goTypes, - DependencyIndexes: file_gwriterproto_writer_proto_depIdxs, - MessageInfos: file_gwriterproto_writer_proto_msgTypes, - }.Build() - File_gwriterproto_writer_proto = out.File - file_gwriterproto_writer_proto_rawDesc = nil - file_gwriterproto_writer_proto_goTypes = nil - file_gwriterproto_writer_proto_depIdxs = nil -} diff --git a/api/proto/messengerproto/messenger.pb.go b/api/proto/messengerproto/messenger.pb.go deleted file mode 100644 index 8c466e37dada..000000000000 --- a/api/proto/messengerproto/messenger.pb.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: messengerproto/messenger.proto - -package messengerproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 NotifyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message uint32 `protobuf:"varint,1,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *NotifyRequest) Reset() { - *x = NotifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messengerproto_messenger_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NotifyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotifyRequest) ProtoMessage() {} - -func (x *NotifyRequest) ProtoReflect() protoreflect.Message { - mi := &file_messengerproto_messenger_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead. -func (*NotifyRequest) Descriptor() ([]byte, []int) { - return file_messengerproto_messenger_proto_rawDescGZIP(), []int{0} -} - -func (x *NotifyRequest) GetMessage() uint32 { - if x != nil { - return x.Message - } - return 0 -} - -type NotifyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NotifyResponse) Reset() { - *x = NotifyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_messengerproto_messenger_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NotifyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotifyResponse) ProtoMessage() {} - -func (x *NotifyResponse) ProtoReflect() protoreflect.Message { - mi := &file_messengerproto_messenger_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) -} - -// Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead. -func (*NotifyResponse) Descriptor() ([]byte, []int) { - return file_messengerproto_messenger_proto_rawDescGZIP(), []int{1} -} - -var File_messengerproto_messenger_proto protoreflect.FileDescriptor - -var file_messengerproto_messenger_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x29, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x54, 0x0a, - 0x09, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x06, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x79, 0x12, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x65, - 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_messengerproto_messenger_proto_rawDescOnce sync.Once - file_messengerproto_messenger_proto_rawDescData = file_messengerproto_messenger_proto_rawDesc -) - -func file_messengerproto_messenger_proto_rawDescGZIP() []byte { - file_messengerproto_messenger_proto_rawDescOnce.Do(func() { - file_messengerproto_messenger_proto_rawDescData = protoimpl.X.CompressGZIP(file_messengerproto_messenger_proto_rawDescData) - }) - return file_messengerproto_messenger_proto_rawDescData -} - -var file_messengerproto_messenger_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_messengerproto_messenger_proto_goTypes = []interface{}{ - (*NotifyRequest)(nil), // 0: messengerproto.NotifyRequest - (*NotifyResponse)(nil), // 1: messengerproto.NotifyResponse -} -var file_messengerproto_messenger_proto_depIdxs = []int32{ - 0, // 0: messengerproto.Messenger.Notify:input_type -> messengerproto.NotifyRequest - 1, // 1: messengerproto.Messenger.Notify:output_type -> messengerproto.NotifyResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_messengerproto_messenger_proto_init() } -func file_messengerproto_messenger_proto_init() { - if File_messengerproto_messenger_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_messengerproto_messenger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messengerproto_messenger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotifyResponse); 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_messengerproto_messenger_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_messengerproto_messenger_proto_goTypes, - DependencyIndexes: file_messengerproto_messenger_proto_depIdxs, - MessageInfos: file_messengerproto_messenger_proto_msgTypes, - }.Build() - File_messengerproto_messenger_proto = out.File - file_messengerproto_messenger_proto_rawDesc = nil - file_messengerproto_messenger_proto_goTypes = nil - file_messengerproto_messenger_proto_depIdxs = nil -} diff --git a/api/proto/pluginproto/plugin.pb.go b/api/proto/pluginproto/plugin.pb.go deleted file mode 100644 index 333eea484f58..000000000000 --- a/api/proto/pluginproto/plugin.pb.go +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc (unknown) -// source: pluginproto/plugin.proto - -package pluginproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -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 ExitCodeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` -} - -func (x *ExitCodeResponse) Reset() { - *x = ExitCodeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginproto_plugin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExitCodeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExitCodeResponse) ProtoMessage() {} - -func (x *ExitCodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_pluginproto_plugin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExitCodeResponse.ProtoReflect.Descriptor instead. -func (*ExitCodeResponse) Descriptor() ([]byte, []int) { - return file_pluginproto_plugin_proto_rawDescGZIP(), []int{0} -} - -func (x *ExitCodeResponse) GetExitCode() int32 { - if x != nil { - return x.ExitCode - } - return 0 -} - -var File_pluginproto_plugin_proto protoreflect.FileDescriptor - -var file_pluginproto_plugin_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x10, 0x45, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, - 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, - 0x74, 0x43, 0x6f, 0x64, 0x65, 0x32, 0xba, 0x01, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x37, - 0x0a, 0x05, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x45, 0x78, 0x69, 0x74, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1d, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x43, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x53, 0x74, - 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pluginproto_plugin_proto_rawDescOnce sync.Once - file_pluginproto_plugin_proto_rawDescData = file_pluginproto_plugin_proto_rawDesc -) - -func file_pluginproto_plugin_proto_rawDescGZIP() []byte { - file_pluginproto_plugin_proto_rawDescOnce.Do(func() { - file_pluginproto_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_pluginproto_plugin_proto_rawDescData) - }) - return file_pluginproto_plugin_proto_rawDescData -} - -var file_pluginproto_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pluginproto_plugin_proto_goTypes = []interface{}{ - (*ExitCodeResponse)(nil), // 0: pluginproto.ExitCodeResponse - (*emptypb.Empty)(nil), // 1: google.protobuf.Empty -} -var file_pluginproto_plugin_proto_depIdxs = []int32{ - 1, // 0: pluginproto.Node.Start:input_type -> google.protobuf.Empty - 1, // 1: pluginproto.Node.ExitCode:input_type -> google.protobuf.Empty - 1, // 2: pluginproto.Node.Stop:input_type -> google.protobuf.Empty - 1, // 3: pluginproto.Node.Start:output_type -> google.protobuf.Empty - 0, // 4: pluginproto.Node.ExitCode:output_type -> pluginproto.ExitCodeResponse - 1, // 5: pluginproto.Node.Stop:output_type -> google.protobuf.Empty - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pluginproto_plugin_proto_init() } -func file_pluginproto_plugin_proto_init() { - if File_pluginproto_plugin_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_pluginproto_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExitCodeResponse); 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_pluginproto_plugin_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_pluginproto_plugin_proto_goTypes, - DependencyIndexes: file_pluginproto_plugin_proto_depIdxs, - MessageInfos: file_pluginproto_plugin_proto_msgTypes, - }.Build() - File_pluginproto_plugin_proto = out.File - file_pluginproto_plugin_proto_rawDesc = nil - file_pluginproto_plugin_proto_goTypes = nil - file_pluginproto_plugin_proto_depIdxs = nil -} diff --git a/app/plugin/plugin.go b/app/plugin/plugin.go index 1329740f126b..493e91e19590 100644 --- a/app/plugin/plugin.go +++ b/app/plugin/plugin.go @@ -10,8 +10,9 @@ import ( "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/proto/pluginproto" "github.com/ava-labs/avalanchego/app" + + pluginpb "github.com/ava-labs/avalanchego/proto/pb/plugin" ) const Name = "nodeProcess" @@ -45,11 +46,11 @@ func New(app app.App) plugin.Plugin { // GRPCServer registers a new GRPC server. func (p *appPlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error { - pluginproto.RegisterNodeServer(s, NewServer(p.app)) + pluginpb.RegisterNodeServer(s, NewServer(p.app)) return nil } // GRPCClient returns a new GRPC client func (p *appPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) { - return NewClient(pluginproto.NewNodeClient(c)), nil + return NewClient(pluginpb.NewNodeClient(c)), nil } diff --git a/app/plugin/plugin_client.go b/app/plugin/plugin_client.go index a0d83b91a505..37f25a387b58 100644 --- a/app/plugin/plugin_client.go +++ b/app/plugin/plugin_client.go @@ -8,15 +8,15 @@ import ( "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/pluginproto" + pluginpb "github.com/ava-labs/avalanchego/proto/pb/plugin" ) type Client struct { - client pluginproto.NodeClient + client pluginpb.NodeClient } // NewServer returns an app instance connected to a remote app instance -func NewClient(node pluginproto.NodeClient) *Client { +func NewClient(node pluginpb.NodeClient) *Client { return &Client{ client: node, } diff --git a/app/plugin/plugin_server.go b/app/plugin/plugin_server.go index 9f7e558b3f44..54ff0b4d7fb6 100644 --- a/app/plugin/plugin_server.go +++ b/app/plugin/plugin_server.go @@ -8,13 +8,14 @@ import ( "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/pluginproto" "github.com/ava-labs/avalanchego/app" + + pluginpb "github.com/ava-labs/avalanchego/proto/pb/plugin" ) // Server wraps a node so it can be served with the hashicorp plugin harness type Server struct { - pluginproto.UnimplementedNodeServer + pluginpb.UnimplementedNodeServer app app.App } @@ -32,9 +33,9 @@ func (s *Server) Stop(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { return &emptypb.Empty{}, s.app.Stop() } -func (s *Server) ExitCode(context.Context, *emptypb.Empty) (*pluginproto.ExitCodeResponse, error) { +func (s *Server) ExitCode(context.Context, *emptypb.Empty) (*pluginpb.ExitCodeResponse, error) { exitCode, err := s.app.ExitCode() - return &pluginproto.ExitCodeResponse{ + return &pluginpb.ExitCodeResponse{ ExitCode: int32(exitCode), }, err } diff --git a/chains/atomic/gsharedmemory/filtered_batch.go b/chains/atomic/gsharedmemory/filtered_batch.go index 0f0a0fbfa745..3f3bd5193c54 100644 --- a/chains/atomic/gsharedmemory/filtered_batch.go +++ b/chains/atomic/gsharedmemory/filtered_batch.go @@ -4,7 +4,7 @@ package gsharedmemory import ( - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" ) type filteredBatch struct { @@ -26,11 +26,11 @@ func (b *filteredBatch) Delete(key []byte) error { return nil } -func (b *filteredBatch) PutRequests() []*gsharedmemoryproto.BatchPut { - reqs := make([]*gsharedmemoryproto.BatchPut, len(b.writes)) +func (b *filteredBatch) PutRequests() []*sharedmemorypb.BatchPut { + reqs := make([]*sharedmemorypb.BatchPut, len(b.writes)) i := 0 for keyStr, value := range b.writes { - reqs[i] = &gsharedmemoryproto.BatchPut{ + reqs[i] = &sharedmemorypb.BatchPut{ Key: []byte(keyStr), Value: value, } @@ -39,11 +39,11 @@ func (b *filteredBatch) PutRequests() []*gsharedmemoryproto.BatchPut { return reqs } -func (b *filteredBatch) DeleteRequests() []*gsharedmemoryproto.BatchDelete { - reqs := make([]*gsharedmemoryproto.BatchDelete, len(b.deletes)) +func (b *filteredBatch) DeleteRequests() []*sharedmemorypb.BatchDelete { + reqs := make([]*sharedmemorypb.BatchDelete, len(b.deletes)) i := 0 for keyStr := range b.deletes { - reqs[i] = &gsharedmemoryproto.BatchDelete{ + reqs[i] = &sharedmemorypb.BatchDelete{ Key: []byte(keyStr), } i++ diff --git a/chains/atomic/gsharedmemory/shared_memory_client.go b/chains/atomic/gsharedmemory/shared_memory_client.go index 86a184ccb222..8fe14b34e8b1 100644 --- a/chains/atomic/gsharedmemory/shared_memory_client.go +++ b/chains/atomic/gsharedmemory/shared_memory_client.go @@ -8,11 +8,12 @@ import ( stdatomic "sync/atomic" - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/units" + + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" ) const ( @@ -27,18 +28,18 @@ var _ atomic.SharedMemory = &Client{} // Client is atomic.SharedMemory that talks over RPC. type Client struct { - client gsharedmemoryproto.SharedMemoryClient + client sharedmemorypb.SharedMemoryClient uniqueID int64 } // NewClient returns shared memory connected to remote shared memory -func NewClient(client gsharedmemoryproto.SharedMemoryClient) *Client { +func NewClient(client sharedmemorypb.SharedMemoryClient) *Client { return &Client{client: client} } func (c *Client) Get(peerChainID ids.ID, keys [][]byte) ([][]byte, error) { - req := &gsharedmemoryproto.GetRequest{ + req := &sharedmemorypb.GetRequest{ PeerChainId: peerChainID[:], Id: stdatomic.AddInt64(&c.uniqueID, 1), Continues: true, @@ -95,7 +96,7 @@ func (c *Client) Indexed( []byte, error, ) { - req := &gsharedmemoryproto.IndexedRequest{ + req := &sharedmemorypb.IndexedRequest{ PeerChainId: peerChainID[:], StartTrait: startTrait, StartKey: startKey, @@ -151,7 +152,7 @@ func (c *Client) Indexed( } func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.Batch) error { - req := &gsharedmemoryproto.ApplyRequest{ + req := &sharedmemorypb.ApplyRequest{ Continues: true, Id: stdatomic.AddInt64(&c.uniqueID, 1), } @@ -160,7 +161,7 @@ func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.B for key, value := range requests { key := key - chainReq := &gsharedmemoryproto.AtomicRequest{ + chainReq := &sharedmemorypb.AtomicRequest{ PeerChainId: key[:], } req.Requests = append(req.Requests, chainReq) @@ -178,14 +179,14 @@ func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.B return err } - chainReq = &gsharedmemoryproto.AtomicRequest{ + chainReq = &sharedmemorypb.AtomicRequest{ PeerChainId: key[:], } - req.Requests = []*gsharedmemoryproto.AtomicRequest{chainReq} + req.Requests = []*sharedmemorypb.AtomicRequest{chainReq} } currentSize += sizeChange - chainReq.PutRequests = append(chainReq.PutRequests, &gsharedmemoryproto.Element{ + chainReq.PutRequests = append(chainReq.PutRequests, &sharedmemorypb.Element{ Key: v.Key, Value: v.Value, Traits: v.Traits, @@ -201,10 +202,10 @@ func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.B return err } - chainReq = &gsharedmemoryproto.AtomicRequest{ + chainReq = &sharedmemorypb.AtomicRequest{ PeerChainId: key[:], } - req.Requests = []*gsharedmemoryproto.AtomicRequest{chainReq} + req.Requests = []*sharedmemorypb.AtomicRequest{chainReq} } currentSize += sizeChange @@ -235,10 +236,10 @@ func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.B return nil } -func (c *Client) makeBatches(rawBatches []database.Batch, currentSize int) ([][]*gsharedmemoryproto.Batch, error) { - batchGroups := [][]*gsharedmemoryproto.Batch(nil) - currentBatchGroup := []*gsharedmemoryproto.Batch(nil) - currentBatch := &gsharedmemoryproto.Batch{ +func (c *Client) makeBatches(rawBatches []database.Batch, currentSize int) ([][]*sharedmemorypb.Batch, error) { + batchGroups := [][]*sharedmemorypb.Batch(nil) + currentBatchGroup := []*sharedmemorypb.Batch(nil) + currentBatch := &sharedmemorypb.Batch{ Id: stdatomic.AddInt64(&c.uniqueID, 1), } for _, batch := range rawBatches { @@ -264,7 +265,7 @@ func (c *Client) makeBatches(rawBatches []database.Batch, currentSize int) ([][] currentSize = 0 currentBatchGroup = nil - currentBatch = &gsharedmemoryproto.Batch{ + currentBatch = &sharedmemorypb.Batch{ Id: currentBatch.Id, } } @@ -285,7 +286,7 @@ func (c *Client) makeBatches(rawBatches []database.Batch, currentSize int) ([][] currentSize = 0 currentBatchGroup = nil - currentBatch = &gsharedmemoryproto.Batch{ + currentBatch = &sharedmemorypb.Batch{ Id: currentBatch.Id, } } @@ -296,7 +297,7 @@ func (c *Client) makeBatches(rawBatches []database.Batch, currentSize int) ([][] if len(currentBatch.Deletes)+len(currentBatch.Puts) > 0 { currentBatchGroup = append(currentBatchGroup, currentBatch) } - currentBatch = &gsharedmemoryproto.Batch{ + currentBatch = &sharedmemorypb.Batch{ Id: stdatomic.AddInt64(&c.uniqueID, 1), } } diff --git a/chains/atomic/gsharedmemory/shared_memory_server.go b/chains/atomic/gsharedmemory/shared_memory_server.go index a9b600bdfd0a..5c2cd2c9f36b 100644 --- a/chains/atomic/gsharedmemory/shared_memory_server.go +++ b/chains/atomic/gsharedmemory/shared_memory_server.go @@ -7,17 +7,18 @@ import ( "context" "sync" - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/ids" + + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" ) -var _ gsharedmemoryproto.SharedMemoryServer = &Server{} +var _ sharedmemorypb.SharedMemoryServer = &Server{} // Server is shared memory that is managed over RPC. type Server struct { - gsharedmemoryproto.UnimplementedSharedMemoryServer + sharedmemorypb.UnimplementedSharedMemoryServer sm atomic.SharedMemory db database.Database @@ -52,8 +53,8 @@ type getRequest struct { func (s *Server) Get( _ context.Context, - req *gsharedmemoryproto.GetRequest, -) (*gsharedmemoryproto.GetResponse, error) { + req *sharedmemorypb.GetRequest, +) (*sharedmemorypb.GetResponse, error) { s.getsLock.Lock() defer s.getsLock.Unlock() @@ -74,7 +75,7 @@ func (s *Server) Get( if req.Continues { s.gets[req.Id] = get - return &gsharedmemoryproto.GetResponse{}, nil + return &sharedmemorypb.GetResponse{}, nil } if !get.executed { @@ -89,7 +90,7 @@ func (s *Server) Get( } currentSize := 0 - resp := &gsharedmemoryproto.GetResponse{} + resp := &sharedmemorypb.GetResponse{} for i, value := range get.remainingValues { sizeChange := baseElementSize + len(value) if newSize := currentSize + sizeChange; newSize > maxBatchSize && i > 0 { @@ -126,8 +127,8 @@ type indexedRequest struct { func (s *Server) Indexed( _ context.Context, - req *gsharedmemoryproto.IndexedRequest, -) (*gsharedmemoryproto.IndexedResponse, error) { + req *sharedmemorypb.IndexedRequest, +) (*sharedmemorypb.IndexedResponse, error) { s.indexedLock.Lock() defer s.indexedLock.Unlock() @@ -151,7 +152,7 @@ func (s *Server) Indexed( if req.Continues { s.indexed[req.Id] = indexed - return &gsharedmemoryproto.IndexedResponse{}, nil + return &sharedmemorypb.IndexedResponse{}, nil } if !indexed.executed { @@ -174,7 +175,7 @@ func (s *Server) Indexed( } currentSize := 0 - resp := &gsharedmemoryproto.IndexedResponse{ + resp := &sharedmemorypb.IndexedResponse{ LastTrait: indexed.lastTrait, LastKey: indexed.lastKey, } @@ -208,8 +209,8 @@ type applyRequest struct { func (s *Server) Apply( _ context.Context, - req *gsharedmemoryproto.ApplyRequest, -) (*gsharedmemoryproto.ApplyResponse, error) { + req *sharedmemorypb.ApplyRequest, +) (*sharedmemorypb.ApplyResponse, error) { s.applyLock.Lock() defer s.applyLock.Unlock() @@ -233,7 +234,7 @@ func (s *Server) Apply( if req.Continues { s.apply[req.Id] = apply - return &gsharedmemoryproto.ApplyResponse{}, nil + return &sharedmemorypb.ApplyResponse{}, nil } delete(s.apply, req.Id) @@ -245,12 +246,12 @@ func (s *Server) Apply( i++ } - return &gsharedmemoryproto.ApplyResponse{}, s.sm.Apply(apply.requests, batches...) + return &sharedmemorypb.ApplyResponse{}, s.sm.Apply(apply.requests, batches...) } func (s *Server) parseRequests( requests map[ids.ID]*atomic.Requests, - rawRequests []*gsharedmemoryproto.AtomicRequest, + rawRequests []*sharedmemorypb.AtomicRequest, ) error { for _, value := range rawRequests { peerChainID, err := ids.ToID(value.PeerChainId) @@ -280,7 +281,7 @@ func (s *Server) parseRequests( func (s *Server) parseBatches( batches map[int64]database.Batch, - rawBatches []*gsharedmemoryproto.Batch, + rawBatches []*sharedmemorypb.Batch, ) error { for _, reqBatch := range rawBatches { batch, exists := batches[reqBatch.Id] diff --git a/chains/atomic/gsharedmemory/shared_memory_test.go b/chains/atomic/gsharedmemory/shared_memory_test.go index 589101e92cc2..581fbb2923f1 100644 --- a/chains/atomic/gsharedmemory/shared_memory_test.go +++ b/chains/atomic/gsharedmemory/shared_memory_test.go @@ -10,10 +10,10 @@ import ( "testing" "github.com/stretchr/testify/assert" + "google.golang.org/grpc" "google.golang.org/grpc/test/bufconn" - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/database/memdb" @@ -21,6 +21,8 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/logging" "github.com/ava-labs/avalanchego/utils/units" + + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" ) const ( @@ -58,7 +60,7 @@ func TestInterface(t *testing.T) { func wrapSharedMemory(t *testing.T, sm atomic.SharedMemory, db database.Database) (atomic.SharedMemory, io.Closer) { listener := bufconn.Listen(bufSize) server := grpc.NewServer() - gsharedmemoryproto.RegisterSharedMemoryServer(server, NewServer(sm, db)) + sharedmemorypb.RegisterSharedMemoryServer(server, NewServer(sm, db)) go func() { if err := server.Serve(listener); err != nil { t.Logf("Server exited with error: %v", err) @@ -77,6 +79,6 @@ func wrapSharedMemory(t *testing.T, sm atomic.SharedMemory, db database.Database t.Fatalf("Failed to dial: %s", err) } - rpcsm := NewClient(gsharedmemoryproto.NewSharedMemoryClient(conn)) + rpcsm := NewClient(sharedmemorypb.NewSharedMemoryClient(conn)) return rpcsm, conn } diff --git a/database/rpcdb/db_client.go b/database/rpcdb/db_client.go index d81e6899ca85..ea43a1eca150 100644 --- a/database/rpcdb/db_client.go +++ b/database/rpcdb/db_client.go @@ -8,12 +8,13 @@ import ( "golang.org/x/net/context" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/database/nodb" "github.com/ava-labs/avalanchego/utils" "github.com/ava-labs/avalanchego/utils/units" "github.com/ava-labs/avalanchego/utils/wrappers" + + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" ) const ( @@ -32,20 +33,20 @@ var ( // DatabaseClient is an implementation of database that talks over RPC. type DatabaseClient struct { - client rpcdbproto.DatabaseClient + client rpcdbpb.DatabaseClient closed utils.AtomicBool batchIndex int64 } // NewClient returns a database instance connected to a remote database instance -func NewClient(client rpcdbproto.DatabaseClient) *DatabaseClient { +func NewClient(client rpcdbpb.DatabaseClient) *DatabaseClient { return &DatabaseClient{client: client} } // Has attempts to return if the database has a key with the provided value. func (db *DatabaseClient) Has(key []byte) (bool, error) { - resp, err := db.client.Has(context.Background(), &rpcdbproto.HasRequest{ + resp, err := db.client.Has(context.Background(), &rpcdbpb.HasRequest{ Key: key, }) if err != nil { @@ -56,7 +57,7 @@ func (db *DatabaseClient) Has(key []byte) (bool, error) { // Get attempts to return the value that was mapped to the key that was provided func (db *DatabaseClient) Get(key []byte) ([]byte, error) { - resp, err := db.client.Get(context.Background(), &rpcdbproto.GetRequest{ + resp, err := db.client.Get(context.Background(), &rpcdbpb.GetRequest{ Key: key, }) if err != nil { @@ -67,7 +68,7 @@ func (db *DatabaseClient) Get(key []byte) ([]byte, error) { // Put attempts to set the value this key maps to func (db *DatabaseClient) Put(key, value []byte) error { - resp, err := db.client.Put(context.Background(), &rpcdbproto.PutRequest{ + resp, err := db.client.Put(context.Background(), &rpcdbpb.PutRequest{ Key: key, Value: value, }) @@ -79,7 +80,7 @@ func (db *DatabaseClient) Put(key, value []byte) error { // Delete attempts to remove any mapping from the key func (db *DatabaseClient) Delete(key []byte) error { - resp, err := db.client.Delete(context.Background(), &rpcdbproto.DeleteRequest{ + resp, err := db.client.Delete(context.Background(), &rpcdbpb.DeleteRequest{ Key: key, }) if err != nil { @@ -105,7 +106,7 @@ func (db *DatabaseClient) NewIteratorWithPrefix(prefix []byte) database.Iterator // NewIteratorWithStartAndPrefix returns a new empty iterator func (db *DatabaseClient) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator { - resp, err := db.client.NewIteratorWithStartAndPrefix(context.Background(), &rpcdbproto.NewIteratorWithStartAndPrefixRequest{ + resp, err := db.client.NewIteratorWithStartAndPrefix(context.Background(), &rpcdbpb.NewIteratorWithStartAndPrefixRequest{ Start: start, Prefix: prefix, }) @@ -120,7 +121,7 @@ func (db *DatabaseClient) NewIteratorWithStartAndPrefix(start, prefix []byte) da // Stat attempts to return the statistic of this database func (db *DatabaseClient) Stat(property string) (string, error) { - resp, err := db.client.Stat(context.Background(), &rpcdbproto.StatRequest{ + resp, err := db.client.Stat(context.Background(), &rpcdbpb.StatRequest{ Property: property, }) if err != nil { @@ -131,7 +132,7 @@ func (db *DatabaseClient) Stat(property string) (string, error) { // Compact attempts to optimize the space utilization in the provided range func (db *DatabaseClient) Compact(start, limit []byte) error { - resp, err := db.client.Compact(context.Background(), &rpcdbproto.CompactRequest{ + resp, err := db.client.Compact(context.Background(), &rpcdbpb.CompactRequest{ Start: start, Limit: limit, }) @@ -144,7 +145,7 @@ func (db *DatabaseClient) Compact(start, limit []byte) error { // Close attempts to close the database func (db *DatabaseClient) Close() error { db.closed.SetValue(true) - resp, err := db.client.Close(context.Background(), &rpcdbproto.CloseRequest{}) + resp, err := db.client.Close(context.Background(), &rpcdbpb.CloseRequest{}) if err != nil { return err } @@ -178,7 +179,7 @@ func (b *batch) Delete(key []byte) error { func (b *batch) Size() int { return b.size } func (b *batch) Write() error { - request := &rpcdbproto.WriteBatchRequest{ + request := &rpcdbpb.WriteBatchRequest{ Id: atomic.AddInt64(&b.db.batchIndex, 1), Continues: true, } @@ -208,11 +209,11 @@ func (b *batch) Write() error { currentSize += sizeChange if kv.delete { - request.Deletes = append(request.Deletes, &rpcdbproto.DeleteRequest{ + request.Deletes = append(request.Deletes, &rpcdbpb.DeleteRequest{ Key: kv.key, }) } else { - request.Puts = append(request.Puts, &rpcdbproto.PutRequest{ + request.Puts = append(request.Puts, &rpcdbpb.PutRequest{ Key: kv.key, Value: kv.value, }) @@ -255,7 +256,7 @@ type iterator struct { db *DatabaseClient id uint64 - data []*rpcdbproto.PutRequest + data []*rpcdbpb.PutRequest errs wrappers.Errs } @@ -273,7 +274,7 @@ func (it *iterator) Next() bool { return true } - resp, err := it.db.client.IteratorNext(context.Background(), &rpcdbproto.IteratorNextRequest{ + resp, err := it.db.client.IteratorNext(context.Background(), &rpcdbpb.IteratorNextRequest{ Id: it.id, }) if err != nil { @@ -290,7 +291,7 @@ func (it *iterator) Error() error { return it.errs.Err } - resp, err := it.db.client.IteratorError(context.Background(), &rpcdbproto.IteratorErrorRequest{ + resp, err := it.db.client.IteratorError(context.Background(), &rpcdbpb.IteratorErrorRequest{ Id: it.id, }) if err != nil { @@ -319,7 +320,7 @@ func (it *iterator) Value() []byte { // Release frees any resources held by the iterator func (it *iterator) Release() { - resp, err := it.db.client.IteratorRelease(context.Background(), &rpcdbproto.IteratorReleaseRequest{ + resp, err := it.db.client.IteratorRelease(context.Background(), &rpcdbpb.IteratorReleaseRequest{ Id: it.id, }) if err != nil { diff --git a/database/rpcdb/db_server.go b/database/rpcdb/db_server.go index 9aa3af3e7d69..aa2a6a41cadf 100644 --- a/database/rpcdb/db_server.go +++ b/database/rpcdb/db_server.go @@ -9,15 +9,16 @@ import ( "golang.org/x/net/context" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" "github.com/ava-labs/avalanchego/database" + + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" ) var errUnknownIterator = errors.New("unknown iterator") // DatabaseServer is a database that is managed over RPC. type DatabaseServer struct { - rpcdbproto.UnimplementedDatabaseServer + rpcdbpb.UnimplementedDatabaseServer lock sync.Mutex db database.Database batches map[int64]database.Batch @@ -36,40 +37,40 @@ func NewServer(db database.Database) *DatabaseServer { } // Has delegates the Has call to the managed database and returns the result -func (db *DatabaseServer) Has(_ context.Context, req *rpcdbproto.HasRequest) (*rpcdbproto.HasResponse, error) { +func (db *DatabaseServer) Has(_ context.Context, req *rpcdbpb.HasRequest) (*rpcdbpb.HasResponse, error) { has, err := db.db.Has(req.Key) - return &rpcdbproto.HasResponse{ + return &rpcdbpb.HasResponse{ Has: has, Err: errorToErrCode[err], }, errorToRPCError(err) } // Get delegates the Get call to the managed database and returns the result -func (db *DatabaseServer) Get(_ context.Context, req *rpcdbproto.GetRequest) (*rpcdbproto.GetResponse, error) { +func (db *DatabaseServer) Get(_ context.Context, req *rpcdbpb.GetRequest) (*rpcdbpb.GetResponse, error) { value, err := db.db.Get(req.Key) - return &rpcdbproto.GetResponse{ + return &rpcdbpb.GetResponse{ Value: value, Err: errorToErrCode[err], }, errorToRPCError(err) } // Put delegates the Put call to the managed database and returns the result -func (db *DatabaseServer) Put(_ context.Context, req *rpcdbproto.PutRequest) (*rpcdbproto.PutResponse, error) { +func (db *DatabaseServer) Put(_ context.Context, req *rpcdbpb.PutRequest) (*rpcdbpb.PutResponse, error) { err := db.db.Put(req.Key, req.Value) - return &rpcdbproto.PutResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.PutResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // Delete delegates the Delete call to the managed database and returns the // result -func (db *DatabaseServer) Delete(_ context.Context, req *rpcdbproto.DeleteRequest) (*rpcdbproto.DeleteResponse, error) { +func (db *DatabaseServer) Delete(_ context.Context, req *rpcdbpb.DeleteRequest) (*rpcdbpb.DeleteResponse, error) { err := db.db.Delete(req.Key) - return &rpcdbproto.DeleteResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.DeleteResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // Stat delegates the Stat call to the managed database and returns the result -func (db *DatabaseServer) Stat(_ context.Context, req *rpcdbproto.StatRequest) (*rpcdbproto.StatResponse, error) { +func (db *DatabaseServer) Stat(_ context.Context, req *rpcdbpb.StatRequest) (*rpcdbpb.StatResponse, error) { stat, err := db.db.Stat(req.Property) - return &rpcdbproto.StatResponse{ + return &rpcdbpb.StatResponse{ Stat: stat, Err: errorToErrCode[err], }, errorToRPCError(err) @@ -77,20 +78,20 @@ func (db *DatabaseServer) Stat(_ context.Context, req *rpcdbproto.StatRequest) ( // Compact delegates the Compact call to the managed database and returns the // result -func (db *DatabaseServer) Compact(_ context.Context, req *rpcdbproto.CompactRequest) (*rpcdbproto.CompactResponse, error) { +func (db *DatabaseServer) Compact(_ context.Context, req *rpcdbpb.CompactRequest) (*rpcdbpb.CompactResponse, error) { err := db.db.Compact(req.Start, req.Limit) - return &rpcdbproto.CompactResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.CompactResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // Close delegates the Close call to the managed database and returns the result -func (db *DatabaseServer) Close(context.Context, *rpcdbproto.CloseRequest) (*rpcdbproto.CloseResponse, error) { +func (db *DatabaseServer) Close(context.Context, *rpcdbpb.CloseRequest) (*rpcdbpb.CloseResponse, error) { err := db.db.Close() - return &rpcdbproto.CloseResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.CloseResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // WriteBatch takes in a set of key-value pairs and atomically writes them to // the internal database -func (db *DatabaseServer) WriteBatch(_ context.Context, req *rpcdbproto.WriteBatchRequest) (*rpcdbproto.WriteBatchResponse, error) { +func (db *DatabaseServer) WriteBatch(_ context.Context, req *rpcdbpb.WriteBatchRequest) (*rpcdbpb.WriteBatchResponse, error) { db.lock.Lock() defer db.lock.Unlock() @@ -104,7 +105,7 @@ func (db *DatabaseServer) WriteBatch(_ context.Context, req *rpcdbproto.WriteBat // Because we are reporting an error, we free the allocated batch. delete(db.batches, req.Id) - return &rpcdbproto.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } } @@ -113,23 +114,23 @@ func (db *DatabaseServer) WriteBatch(_ context.Context, req *rpcdbproto.WriteBat // Because we are reporting an error, we free the allocated batch. delete(db.batches, req.Id) - return &rpcdbproto.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } } if req.Continues { db.batches[req.Id] = batch - return &rpcdbproto.WriteBatchResponse{}, nil + return &rpcdbpb.WriteBatchResponse{}, nil } delete(db.batches, req.Id) err := batch.Write() - return &rpcdbproto.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.WriteBatchResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // NewIteratorWithStartAndPrefix allocates an iterator and returns the iterator // ID -func (db *DatabaseServer) NewIteratorWithStartAndPrefix(_ context.Context, req *rpcdbproto.NewIteratorWithStartAndPrefixRequest) (*rpcdbproto.NewIteratorWithStartAndPrefixResponse, error) { +func (db *DatabaseServer) NewIteratorWithStartAndPrefix(_ context.Context, req *rpcdbpb.NewIteratorWithStartAndPrefixRequest) (*rpcdbpb.NewIteratorWithStartAndPrefixResponse, error) { db.lock.Lock() defer db.lock.Unlock() @@ -138,11 +139,11 @@ func (db *DatabaseServer) NewIteratorWithStartAndPrefix(_ context.Context, req * db.iterators[id] = it db.nextIteratorID++ - return &rpcdbproto.NewIteratorWithStartAndPrefixResponse{Id: id}, nil + return &rpcdbpb.NewIteratorWithStartAndPrefixResponse{Id: id}, nil } // IteratorNext attempts to call next on the requested iterator -func (db *DatabaseServer) IteratorNext(_ context.Context, req *rpcdbproto.IteratorNextRequest) (*rpcdbproto.IteratorNextResponse, error) { +func (db *DatabaseServer) IteratorNext(_ context.Context, req *rpcdbpb.IteratorNextRequest) (*rpcdbpb.IteratorNextResponse, error) { db.lock.Lock() defer db.lock.Unlock() @@ -152,23 +153,23 @@ func (db *DatabaseServer) IteratorNext(_ context.Context, req *rpcdbproto.Iterat } size := 0 - data := []*rpcdbproto.PutRequest(nil) + data := []*rpcdbpb.PutRequest(nil) for size < maxBatchSize && it.Next() { key := it.Key() value := it.Value() size += len(key) + len(value) - data = append(data, &rpcdbproto.PutRequest{ + data = append(data, &rpcdbpb.PutRequest{ Key: key, Value: value, }) } - return &rpcdbproto.IteratorNextResponse{Data: data}, nil + return &rpcdbpb.IteratorNextResponse{Data: data}, nil } // IteratorError attempts to report any errors that occurred during iteration -func (db *DatabaseServer) IteratorError(_ context.Context, req *rpcdbproto.IteratorErrorRequest) (*rpcdbproto.IteratorErrorResponse, error) { +func (db *DatabaseServer) IteratorError(_ context.Context, req *rpcdbpb.IteratorErrorRequest) (*rpcdbpb.IteratorErrorResponse, error) { db.lock.Lock() defer db.lock.Unlock() @@ -177,21 +178,21 @@ func (db *DatabaseServer) IteratorError(_ context.Context, req *rpcdbproto.Itera return nil, errUnknownIterator } err := it.Error() - return &rpcdbproto.IteratorErrorResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.IteratorErrorResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } // IteratorRelease attempts to release the resources allocated to an iterator -func (db *DatabaseServer) IteratorRelease(_ context.Context, req *rpcdbproto.IteratorReleaseRequest) (*rpcdbproto.IteratorReleaseResponse, error) { +func (db *DatabaseServer) IteratorRelease(_ context.Context, req *rpcdbpb.IteratorReleaseRequest) (*rpcdbpb.IteratorReleaseResponse, error) { db.lock.Lock() defer db.lock.Unlock() it, exists := db.iterators[req.Id] if !exists { - return &rpcdbproto.IteratorReleaseResponse{Err: 0}, nil + return &rpcdbpb.IteratorReleaseResponse{Err: 0}, nil } delete(db.iterators, req.Id) err := it.Error() it.Release() - return &rpcdbproto.IteratorReleaseResponse{Err: errorToErrCode[err]}, errorToRPCError(err) + return &rpcdbpb.IteratorReleaseResponse{Err: errorToErrCode[err]}, errorToRPCError(err) } diff --git a/database/rpcdb/db_test.go b/database/rpcdb/db_test.go index e266fa7d2eb8..31e03acabab8 100644 --- a/database/rpcdb/db_test.go +++ b/database/rpcdb/db_test.go @@ -12,9 +12,10 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/test/bufconn" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/database/memdb" + + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" ) const ( @@ -24,7 +25,7 @@ const ( func setupDB(t testing.TB) (database.Database, func()) { listener := bufconn.Listen(bufSize) server := grpc.NewServer() - rpcdbproto.RegisterDatabaseServer(server, NewServer(memdb.New())) + rpcdbpb.RegisterDatabaseServer(server, NewServer(memdb.New())) go func() { if err := server.Serve(listener); err != nil { t.Logf("Server exited with error: %v", err) @@ -43,7 +44,7 @@ func setupDB(t testing.TB) (database.Database, func()) { t.Fatalf("Failed to dial: %s", err) } - db := NewClient(rpcdbproto.NewDatabaseClient(conn)) + db := NewClient(rpcdbpb.NewDatabaseClient(conn)) close := func() { server.Stop() diff --git a/ids/galiasreader/alias_reader_client.go b/ids/galiasreader/alias_reader_client.go index 2737a8d21300..a5a095560da0 100644 --- a/ids/galiasreader/alias_reader_client.go +++ b/ids/galiasreader/alias_reader_client.go @@ -6,25 +6,26 @@ package galiasreader import ( "context" - "github.com/ava-labs/avalanchego/api/proto/galiasreaderproto" "github.com/ava-labs/avalanchego/ids" + + aliasreaderpb "github.com/ava-labs/avalanchego/proto/pb/aliasreader" ) var _ ids.AliaserReader = &Client{} // Client implements alias lookups that talk over RPC. type Client struct { - client galiasreaderproto.AliasReaderClient + client aliasreaderpb.AliasReaderClient } // NewClient returns an alias lookup instance connected to a remote alias lookup // instance -func NewClient(client galiasreaderproto.AliasReaderClient) *Client { +func NewClient(client aliasreaderpb.AliasReaderClient) *Client { return &Client{client: client} } func (c *Client) Lookup(alias string) (ids.ID, error) { - resp, err := c.client.Lookup(context.Background(), &galiasreaderproto.Alias{ + resp, err := c.client.Lookup(context.Background(), &aliasreaderpb.Alias{ Alias: alias, }) if err != nil { @@ -34,7 +35,7 @@ func (c *Client) Lookup(alias string) (ids.ID, error) { } func (c *Client) PrimaryAlias(id ids.ID) (string, error) { - resp, err := c.client.PrimaryAlias(context.Background(), &galiasreaderproto.ID{ + resp, err := c.client.PrimaryAlias(context.Background(), &aliasreaderpb.ID{ Id: id[:], }) if err != nil { @@ -44,7 +45,7 @@ func (c *Client) PrimaryAlias(id ids.ID) (string, error) { } func (c *Client) Aliases(id ids.ID) ([]string, error) { - resp, err := c.client.Aliases(context.Background(), &galiasreaderproto.ID{ + resp, err := c.client.Aliases(context.Background(), &aliasreaderpb.ID{ Id: id[:], }) if err != nil { diff --git a/ids/galiasreader/alias_reader_server.go b/ids/galiasreader/alias_reader_server.go index 41b07dcfc88a..5f2e85d4eb84 100644 --- a/ids/galiasreader/alias_reader_server.go +++ b/ids/galiasreader/alias_reader_server.go @@ -6,15 +6,16 @@ package galiasreader import ( "context" - "github.com/ava-labs/avalanchego/api/proto/galiasreaderproto" "github.com/ava-labs/avalanchego/ids" + + aliasreaderpb "github.com/ava-labs/avalanchego/proto/pb/aliasreader" ) -var _ galiasreaderproto.AliasReaderServer = &Server{} +var _ aliasreaderpb.AliasReaderServer = &Server{} // Server enables alias lookups over RPC. type Server struct { - galiasreaderproto.UnimplementedAliasReaderServer + aliasreaderpb.UnimplementedAliasReaderServer aliaser ids.AliaserReader } @@ -25,41 +26,41 @@ func NewServer(aliaser ids.AliaserReader) *Server { func (s *Server) Lookup( _ context.Context, - req *galiasreaderproto.Alias, -) (*galiasreaderproto.ID, error) { + req *aliasreaderpb.Alias, +) (*aliasreaderpb.ID, error) { id, err := s.aliaser.Lookup(req.Alias) if err != nil { return nil, err } - return &galiasreaderproto.ID{ + return &aliasreaderpb.ID{ Id: id[:], }, nil } func (s *Server) PrimaryAlias( _ context.Context, - req *galiasreaderproto.ID, -) (*galiasreaderproto.Alias, error) { + req *aliasreaderpb.ID, +) (*aliasreaderpb.Alias, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err } alias, err := s.aliaser.PrimaryAlias(id) - return &galiasreaderproto.Alias{ + return &aliasreaderpb.Alias{ Alias: alias, }, err } func (s *Server) Aliases( _ context.Context, - req *galiasreaderproto.ID, -) (*galiasreaderproto.AliasList, error) { + req *aliasreaderpb.ID, +) (*aliasreaderpb.AliasList, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err } aliases, err := s.aliaser.Aliases(id) - return &galiasreaderproto.AliasList{ + return &aliasreaderpb.AliasList{ Aliases: aliases, }, err } diff --git a/ids/galiasreader/alias_reader_test.go b/ids/galiasreader/alias_reader_test.go index f17af7810937..667320a6447e 100644 --- a/ids/galiasreader/alias_reader_test.go +++ b/ids/galiasreader/alias_reader_test.go @@ -7,15 +7,16 @@ import ( "net" "testing" + "github.com/stretchr/testify/assert" + "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/test/bufconn" - "github.com/stretchr/testify/assert" - - "github.com/ava-labs/avalanchego/api/proto/galiasreaderproto" "github.com/ava-labs/avalanchego/ids" + + aliasreaderpb "github.com/ava-labs/avalanchego/proto/pb/aliasreader" ) const ( @@ -28,7 +29,7 @@ func TestInterface(t *testing.T) { listener := bufconn.Listen(bufSize) server := grpc.NewServer() w := ids.NewAliaser() - galiasreaderproto.RegisterAliasReaderServer(server, NewServer(w)) + aliasreaderpb.RegisterAliasReaderServer(server, NewServer(w)) go func() { if err := server.Serve(listener); err != nil { t.Logf("Server exited with error: %v", err) @@ -45,7 +46,7 @@ func TestInterface(t *testing.T) { conn, err := grpc.DialContext(ctx, "", dialer, grpc.WithInsecure()) assert.NoError(err) - r := NewClient(galiasreaderproto.NewAliasReaderClient(conn)) + r := NewClient(aliasreaderpb.NewAliasReaderClient(conn)) test(assert, r, w) server.Stop() diff --git a/api/README.md b/proto/README.md similarity index 97% rename from api/README.md rename to proto/README.md index 0938b1e08e11..fd003bf2545c 100644 --- a/api/README.md +++ b/proto/README.md @@ -1,5 +1,4 @@ -# Avalanche API - +# Avalanche gRPC ## buf Protobuf files are hosted at [https://buf.build/ava-labs/avalanchego](https://buf.build/ava-labs/avalanchego) and can be used as dependencies in other projects. diff --git a/api/galiasreaderproto/aliasreader.proto b/proto/aliasreader/aliasreader.proto similarity index 73% rename from api/galiasreaderproto/aliasreader.proto rename to proto/aliasreader/aliasreader.proto index 0b6f05a5dfd0..970ad597577c 100644 --- a/api/galiasreaderproto/aliasreader.proto +++ b/proto/aliasreader/aliasreader.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package galiasreaderproto; +package aliasreader; -option go_package = "github.com/ava-labs/avalanchego/api/galiasreaderproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/aliasreader"; message ID { bytes id = 1; diff --git a/api/appsenderproto/appsender.proto b/proto/appsender/appsender.proto similarity index 88% rename from api/appsenderproto/appsender.proto rename to proto/appsender/appsender.proto index 7541d35e998b..7362616b8bad 100644 --- a/api/appsenderproto/appsender.proto +++ b/proto/appsender/appsender.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package appsenderproto; +package appsender; import "google/protobuf/empty.proto"; -option go_package = "github.com/ava-labs/avalanchego/snow/engine/common/appsender/appsenderproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/appsender"; message SendAppRequestMsg { // The nodes to send this request to diff --git a/api/buf.gen.yaml b/proto/buf.gen.yaml similarity index 79% rename from api/buf.gen.yaml rename to proto/buf.gen.yaml index a4d5ba557bd4..046f039cacd3 100644 --- a/api/buf.gen.yaml +++ b/proto/buf.gen.yaml @@ -1,8 +1,8 @@ version: v1 plugins: - name: go - out: proto + out: pb opt: paths=source_relative - name: go-grpc - out: proto + out: pb opt: paths=source_relative diff --git a/api/buf.lock b/proto/buf.lock similarity index 100% rename from api/buf.lock rename to proto/buf.lock diff --git a/api/buf.yaml b/proto/buf.yaml similarity index 93% rename from api/buf.yaml rename to proto/buf.yaml index 3c22545276a7..6d6c7c1ec594 100644 --- a/api/buf.yaml +++ b/proto/buf.yaml @@ -16,8 +16,8 @@ lint: ignore: # TODO: how will fixing this affect functionality. Multiple fields are used as the request # or response type for multiple RPCs - - galiasreaderproto/aliasreader.proto - - gconnproto/conn.proto + - aliasreader/aliasreader.proto + - net/conn/conn.proto # allows RPC requests or responses to be google.protobuf.Empty messages. This can be set if you # want to allow messages to be void forever, that is they will never take any parameters. rpc_allow_google_protobuf_empty_requests: true diff --git a/api/ghttpproto/http.proto b/proto/http/http.proto similarity index 98% rename from api/ghttpproto/http.proto rename to proto/http/http.proto index ac916751f519..1c0dfc7d3fd2 100644 --- a/api/ghttpproto/http.proto +++ b/proto/http/http.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package ghttpproto; +package http; import "google/protobuf/empty.proto"; -option go_package = "github.com/ava-labs/avalanchego/api/ghttpproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/http"; service HTTP { // Handle wraps http1 over http2 and provides support for websockets by implementing diff --git a/api/gresponsewriterproto/responsewriter.proto b/proto/http/responsewriter/responsewriter.proto similarity index 94% rename from api/gresponsewriterproto/responsewriter.proto rename to proto/http/responsewriter/responsewriter.proto index fcd676d8b51f..18e8e09aee12 100644 --- a/api/gresponsewriterproto/responsewriter.proto +++ b/proto/http/responsewriter/responsewriter.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package gresponsewriterproto; +package http.responsewriter; import "google/protobuf/empty.proto"; -option go_package = "github.com/ava-labs/avalanchego/api/gresponsewriterproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/http/responsewriter"; // Writer is an http.ResponseWriter see: https://pkg.go.dev/net/http#ResponseWriter service Writer { diff --git a/api/greaderproto/reader.proto b/proto/io/reader/reader.proto similarity index 81% rename from api/greaderproto/reader.proto rename to proto/io/reader/reader.proto index ca545dedbacb..f4de89b0cc0f 100644 --- a/api/greaderproto/reader.proto +++ b/proto/io/reader/reader.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package greaderproto; +package io.reader; -option go_package = "github.com/ava-labs/avalanchego/api/greaderproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/io/reader"; // Reader is an io.Reader see: https://pkg.go.dev/io#Reader service Reader { diff --git a/api/gwriterproto/writer.proto b/proto/io/writer/writer.proto similarity index 84% rename from api/gwriterproto/writer.proto rename to proto/io/writer/writer.proto index 26df0fcefe15..6036436628cd 100644 --- a/api/gwriterproto/writer.proto +++ b/proto/io/writer/writer.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package gwriterproto; +package io.writer; -option go_package = "github.com/ava-labs/avalanchego/api/gwriterproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/io/writer"; // Writer see: io.Writer https://pkg.go.dev/io#Writer service Writer { diff --git a/api/gkeystoreproto/keystore.proto b/proto/keystore/keystore.proto similarity index 67% rename from api/gkeystoreproto/keystore.proto rename to proto/keystore/keystore.proto index 7ea0ab3a47f0..0da034507f5c 100644 --- a/api/gkeystoreproto/keystore.proto +++ b/proto/keystore/keystore.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package gkeystoreproto; +package keystore; -option go_package = "github.com/ava-labs/avalanchego/api/keystore/gkeystore/gkeystoreproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/keystore"; message GetDatabaseRequest { string username = 1; diff --git a/api/messengerproto/messenger.proto b/proto/messenger/messenger.proto similarity index 63% rename from api/messengerproto/messenger.proto rename to proto/messenger/messenger.proto index 1b048d622280..31e417db51e4 100644 --- a/api/messengerproto/messenger.proto +++ b/proto/messenger/messenger.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package messengerproto; +package messenger; -option go_package = "github.com/ava-labs/avalanchego/api/messengerproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/messenger"; message NotifyRequest { uint32 message = 1; diff --git a/api/gconnproto/conn.proto b/proto/net/conn/conn.proto similarity index 94% rename from api/gconnproto/conn.proto rename to proto/net/conn/conn.proto index 35c41a712520..5839c8a39fae 100644 --- a/api/gconnproto/conn.proto +++ b/proto/net/conn/conn.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package gconnproto; +package net.conn; import "google/protobuf/empty.proto"; -option go_package = "github.com/ava-labs/avalanchego/api/gconnproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/net/conn"; // Conn is a net.Conn see: https://pkg.go.dev/net#Conn service Conn { diff --git a/proto/pb/aliasreader/aliasreader.pb.go b/proto/pb/aliasreader/aliasreader.pb.go new file mode 100644 index 000000000000..24ef52271c01 --- /dev/null +++ b/proto/pb/aliasreader/aliasreader.pb.go @@ -0,0 +1,285 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: aliasreader/aliasreader.proto + +package aliasreader + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 ID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ID) Reset() { + *x = ID{} + if protoimpl.UnsafeEnabled { + mi := &file_aliasreader_aliasreader_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ID) ProtoMessage() {} + +func (x *ID) ProtoReflect() protoreflect.Message { + mi := &file_aliasreader_aliasreader_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ID.ProtoReflect.Descriptor instead. +func (*ID) Descriptor() ([]byte, []int) { + return file_aliasreader_aliasreader_proto_rawDescGZIP(), []int{0} +} + +func (x *ID) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +type Alias struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *Alias) Reset() { + *x = Alias{} + if protoimpl.UnsafeEnabled { + mi := &file_aliasreader_aliasreader_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Alias) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Alias) ProtoMessage() {} + +func (x *Alias) ProtoReflect() protoreflect.Message { + mi := &file_aliasreader_aliasreader_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) +} + +// Deprecated: Use Alias.ProtoReflect.Descriptor instead. +func (*Alias) Descriptor() ([]byte, []int) { + return file_aliasreader_aliasreader_proto_rawDescGZIP(), []int{1} +} + +func (x *Alias) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +type AliasList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Aliases []string `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` +} + +func (x *AliasList) Reset() { + *x = AliasList{} + if protoimpl.UnsafeEnabled { + mi := &file_aliasreader_aliasreader_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AliasList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AliasList) ProtoMessage() {} + +func (x *AliasList) ProtoReflect() protoreflect.Message { + mi := &file_aliasreader_aliasreader_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) +} + +// Deprecated: Use AliasList.ProtoReflect.Descriptor instead. +func (*AliasList) Descriptor() ([]byte, []int) { + return file_aliasreader_aliasreader_proto_rawDescGZIP(), []int{2} +} + +func (x *AliasList) GetAliases() []string { + if x != nil { + return x.Aliases + } + return nil +} + +var File_aliasreader_aliasreader_proto protoreflect.FileDescriptor + +var file_aliasreader_aliasreader_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x14, 0x0a, 0x02, + 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, + 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x22, 0x25, 0x0a, 0x09, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x32, 0xa5, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x06, 0x4c, 0x6f, 0x6f, 0x6b, + 0x75, 0x70, 0x12, 0x12, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0x0f, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x2e, 0x49, 0x44, 0x12, 0x33, 0x0a, 0x0c, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x0f, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x49, 0x44, 0x1a, 0x12, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x32, 0x0a, 0x07, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x0f, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x72, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, + 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, + 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x61, 0x6c, 0x69, + 0x61, 0x73, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aliasreader_aliasreader_proto_rawDescOnce sync.Once + file_aliasreader_aliasreader_proto_rawDescData = file_aliasreader_aliasreader_proto_rawDesc +) + +func file_aliasreader_aliasreader_proto_rawDescGZIP() []byte { + file_aliasreader_aliasreader_proto_rawDescOnce.Do(func() { + file_aliasreader_aliasreader_proto_rawDescData = protoimpl.X.CompressGZIP(file_aliasreader_aliasreader_proto_rawDescData) + }) + return file_aliasreader_aliasreader_proto_rawDescData +} + +var file_aliasreader_aliasreader_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_aliasreader_aliasreader_proto_goTypes = []interface{}{ + (*ID)(nil), // 0: aliasreader.ID + (*Alias)(nil), // 1: aliasreader.Alias + (*AliasList)(nil), // 2: aliasreader.AliasList +} +var file_aliasreader_aliasreader_proto_depIdxs = []int32{ + 1, // 0: aliasreader.AliasReader.Lookup:input_type -> aliasreader.Alias + 0, // 1: aliasreader.AliasReader.PrimaryAlias:input_type -> aliasreader.ID + 0, // 2: aliasreader.AliasReader.Aliases:input_type -> aliasreader.ID + 0, // 3: aliasreader.AliasReader.Lookup:output_type -> aliasreader.ID + 1, // 4: aliasreader.AliasReader.PrimaryAlias:output_type -> aliasreader.Alias + 2, // 5: aliasreader.AliasReader.Aliases:output_type -> aliasreader.AliasList + 3, // [3:6] is the sub-list for method output_type + 0, // [0:3] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aliasreader_aliasreader_proto_init() } +func file_aliasreader_aliasreader_proto_init() { + if File_aliasreader_aliasreader_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_aliasreader_aliasreader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aliasreader_aliasreader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Alias); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_aliasreader_aliasreader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AliasList); 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_aliasreader_aliasreader_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_aliasreader_aliasreader_proto_goTypes, + DependencyIndexes: file_aliasreader_aliasreader_proto_depIdxs, + MessageInfos: file_aliasreader_aliasreader_proto_msgTypes, + }.Build() + File_aliasreader_aliasreader_proto = out.File + file_aliasreader_aliasreader_proto_rawDesc = nil + file_aliasreader_aliasreader_proto_goTypes = nil + file_aliasreader_aliasreader_proto_depIdxs = nil +} diff --git a/api/proto/galiasreaderproto/aliasreader_grpc.pb.go b/proto/pb/aliasreader/aliasreader_grpc.pb.go similarity index 90% rename from api/proto/galiasreaderproto/aliasreader_grpc.pb.go rename to proto/pb/aliasreader/aliasreader_grpc.pb.go index 8bf4dfdf3cee..030e6851d622 100644 --- a/api/proto/galiasreaderproto/aliasreader_grpc.pb.go +++ b/proto/pb/aliasreader/aliasreader_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: galiasreaderproto/aliasreader.proto +// source: aliasreader/aliasreader.proto -package galiasreaderproto +package aliasreader import ( context "context" @@ -37,7 +37,7 @@ func NewAliasReaderClient(cc grpc.ClientConnInterface) AliasReaderClient { func (c *aliasReaderClient) Lookup(ctx context.Context, in *Alias, opts ...grpc.CallOption) (*ID, error) { out := new(ID) - err := c.cc.Invoke(ctx, "/galiasreaderproto.AliasReader/Lookup", in, out, opts...) + err := c.cc.Invoke(ctx, "/aliasreader.AliasReader/Lookup", in, out, opts...) if err != nil { return nil, err } @@ -46,7 +46,7 @@ func (c *aliasReaderClient) Lookup(ctx context.Context, in *Alias, opts ...grpc. func (c *aliasReaderClient) PrimaryAlias(ctx context.Context, in *ID, opts ...grpc.CallOption) (*Alias, error) { out := new(Alias) - err := c.cc.Invoke(ctx, "/galiasreaderproto.AliasReader/PrimaryAlias", in, out, opts...) + err := c.cc.Invoke(ctx, "/aliasreader.AliasReader/PrimaryAlias", in, out, opts...) if err != nil { return nil, err } @@ -55,7 +55,7 @@ func (c *aliasReaderClient) PrimaryAlias(ctx context.Context, in *ID, opts ...gr func (c *aliasReaderClient) Aliases(ctx context.Context, in *ID, opts ...grpc.CallOption) (*AliasList, error) { out := new(AliasList) - err := c.cc.Invoke(ctx, "/galiasreaderproto.AliasReader/Aliases", in, out, opts...) + err := c.cc.Invoke(ctx, "/aliasreader.AliasReader/Aliases", in, out, opts...) if err != nil { return nil, err } @@ -108,7 +108,7 @@ func _AliasReader_Lookup_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/galiasreaderproto.AliasReader/Lookup", + FullMethod: "/aliasreader.AliasReader/Lookup", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AliasReaderServer).Lookup(ctx, req.(*Alias)) @@ -126,7 +126,7 @@ func _AliasReader_PrimaryAlias_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/galiasreaderproto.AliasReader/PrimaryAlias", + FullMethod: "/aliasreader.AliasReader/PrimaryAlias", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AliasReaderServer).PrimaryAlias(ctx, req.(*ID)) @@ -144,7 +144,7 @@ func _AliasReader_Aliases_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/galiasreaderproto.AliasReader/Aliases", + FullMethod: "/aliasreader.AliasReader/Aliases", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AliasReaderServer).Aliases(ctx, req.(*ID)) @@ -156,7 +156,7 @@ func _AliasReader_Aliases_Handler(srv interface{}, ctx context.Context, dec func // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AliasReader_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "galiasreaderproto.AliasReader", + ServiceName: "aliasreader.AliasReader", HandlerType: (*AliasReaderServer)(nil), Methods: []grpc.MethodDesc{ { @@ -173,5 +173,5 @@ var AliasReader_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "galiasreaderproto/aliasreader.proto", + Metadata: "aliasreader/aliasreader.proto", } diff --git a/proto/pb/appsender/appsender.pb.go b/proto/pb/appsender/appsender.pb.go new file mode 100644 index 000000000000..1d8f875cb11c --- /dev/null +++ b/proto/pb/appsender/appsender.pb.go @@ -0,0 +1,423 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: appsender/appsender.proto + +package appsender + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +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 SendAppRequestMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The nodes to send this request to + NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` + // The ID of this request + RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The request body + Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` +} + +func (x *SendAppRequestMsg) Reset() { + *x = SendAppRequestMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_appsender_appsender_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendAppRequestMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendAppRequestMsg) ProtoMessage() {} + +func (x *SendAppRequestMsg) ProtoReflect() protoreflect.Message { + mi := &file_appsender_appsender_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendAppRequestMsg.ProtoReflect.Descriptor instead. +func (*SendAppRequestMsg) Descriptor() ([]byte, []int) { + return file_appsender_appsender_proto_rawDescGZIP(), []int{0} +} + +func (x *SendAppRequestMsg) GetNodeIds() [][]byte { + if x != nil { + return x.NodeIds + } + return nil +} + +func (x *SendAppRequestMsg) GetRequestId() uint32 { + if x != nil { + return x.RequestId + } + return 0 +} + +func (x *SendAppRequestMsg) GetRequest() []byte { + if x != nil { + return x.Request + } + return nil +} + +type SendAppResponseMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The node to send a response to + NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // ID of this request + RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The response body + Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` +} + +func (x *SendAppResponseMsg) Reset() { + *x = SendAppResponseMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_appsender_appsender_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendAppResponseMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendAppResponseMsg) ProtoMessage() {} + +func (x *SendAppResponseMsg) ProtoReflect() protoreflect.Message { + mi := &file_appsender_appsender_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) +} + +// Deprecated: Use SendAppResponseMsg.ProtoReflect.Descriptor instead. +func (*SendAppResponseMsg) Descriptor() ([]byte, []int) { + return file_appsender_appsender_proto_rawDescGZIP(), []int{1} +} + +func (x *SendAppResponseMsg) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *SendAppResponseMsg) GetRequestId() uint32 { + if x != nil { + return x.RequestId + } + return 0 +} + +func (x *SendAppResponseMsg) GetResponse() []byte { + if x != nil { + return x.Response + } + return nil +} + +type SendAppGossipMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The message body + Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *SendAppGossipMsg) Reset() { + *x = SendAppGossipMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_appsender_appsender_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendAppGossipMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendAppGossipMsg) ProtoMessage() {} + +func (x *SendAppGossipMsg) ProtoReflect() protoreflect.Message { + mi := &file_appsender_appsender_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) +} + +// Deprecated: Use SendAppGossipMsg.ProtoReflect.Descriptor instead. +func (*SendAppGossipMsg) Descriptor() ([]byte, []int) { + return file_appsender_appsender_proto_rawDescGZIP(), []int{2} +} + +func (x *SendAppGossipMsg) GetMsg() []byte { + if x != nil { + return x.Msg + } + return nil +} + +type SendAppGossipSpecificMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The nodes to send this request to + NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` + // The message body + Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *SendAppGossipSpecificMsg) Reset() { + *x = SendAppGossipSpecificMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_appsender_appsender_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendAppGossipSpecificMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendAppGossipSpecificMsg) ProtoMessage() {} + +func (x *SendAppGossipSpecificMsg) ProtoReflect() protoreflect.Message { + mi := &file_appsender_appsender_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) +} + +// Deprecated: Use SendAppGossipSpecificMsg.ProtoReflect.Descriptor instead. +func (*SendAppGossipSpecificMsg) Descriptor() ([]byte, []int) { + return file_appsender_appsender_proto_rawDescGZIP(), []int{3} +} + +func (x *SendAppGossipSpecificMsg) GetNodeIds() [][]byte { + if x != nil { + return x.NodeIds + } + return nil +} + +func (x *SendAppGossipSpecificMsg) GetMsg() []byte { + if x != nil { + return x.Msg + } + return nil +} + +var File_appsender_appsender_proto protoreflect.FileDescriptor + +var file_appsender_appsender_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, 0x70, 0x70, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x68, 0x0a, 0x12, + 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, + 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, + 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x47, 0x0a, 0x18, + 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, 0x65, + 0x63, 0x69, 0x66, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0xb9, 0x02, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x53, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x0f, 0x53, + 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, + 0x2e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, + 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x44, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, + 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, + 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x15, 0x53, + 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, 0x65, 0x63, + 0x69, 0x66, 0x69, 0x63, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x61, 0x70, + 0x70, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_appsender_appsender_proto_rawDescOnce sync.Once + file_appsender_appsender_proto_rawDescData = file_appsender_appsender_proto_rawDesc +) + +func file_appsender_appsender_proto_rawDescGZIP() []byte { + file_appsender_appsender_proto_rawDescOnce.Do(func() { + file_appsender_appsender_proto_rawDescData = protoimpl.X.CompressGZIP(file_appsender_appsender_proto_rawDescData) + }) + return file_appsender_appsender_proto_rawDescData +} + +var file_appsender_appsender_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_appsender_appsender_proto_goTypes = []interface{}{ + (*SendAppRequestMsg)(nil), // 0: appsender.SendAppRequestMsg + (*SendAppResponseMsg)(nil), // 1: appsender.SendAppResponseMsg + (*SendAppGossipMsg)(nil), // 2: appsender.SendAppGossipMsg + (*SendAppGossipSpecificMsg)(nil), // 3: appsender.SendAppGossipSpecificMsg + (*emptypb.Empty)(nil), // 4: google.protobuf.Empty +} +var file_appsender_appsender_proto_depIdxs = []int32{ + 0, // 0: appsender.AppSender.SendAppRequest:input_type -> appsender.SendAppRequestMsg + 1, // 1: appsender.AppSender.SendAppResponse:input_type -> appsender.SendAppResponseMsg + 2, // 2: appsender.AppSender.SendAppGossip:input_type -> appsender.SendAppGossipMsg + 3, // 3: appsender.AppSender.SendAppGossipSpecific:input_type -> appsender.SendAppGossipSpecificMsg + 4, // 4: appsender.AppSender.SendAppRequest:output_type -> google.protobuf.Empty + 4, // 5: appsender.AppSender.SendAppResponse:output_type -> google.protobuf.Empty + 4, // 6: appsender.AppSender.SendAppGossip:output_type -> google.protobuf.Empty + 4, // 7: appsender.AppSender.SendAppGossipSpecific:output_type -> google.protobuf.Empty + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_appsender_appsender_proto_init() } +func file_appsender_appsender_proto_init() { + if File_appsender_appsender_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_appsender_appsender_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendAppRequestMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_appsender_appsender_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendAppResponseMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_appsender_appsender_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendAppGossipMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_appsender_appsender_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendAppGossipSpecificMsg); 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_appsender_appsender_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_appsender_appsender_proto_goTypes, + DependencyIndexes: file_appsender_appsender_proto_depIdxs, + MessageInfos: file_appsender_appsender_proto_msgTypes, + }.Build() + File_appsender_appsender_proto = out.File + file_appsender_appsender_proto_rawDesc = nil + file_appsender_appsender_proto_goTypes = nil + file_appsender_appsender_proto_depIdxs = nil +} diff --git a/api/proto/appsenderproto/appsender_grpc.pb.go b/proto/pb/appsender/appsender_grpc.pb.go similarity index 90% rename from api/proto/appsenderproto/appsender_grpc.pb.go rename to proto/pb/appsender/appsender_grpc.pb.go index 7da945519376..f1636130aa21 100644 --- a/api/proto/appsenderproto/appsender_grpc.pb.go +++ b/proto/pb/appsender/appsender_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: appsenderproto/appsender.proto +// source: appsender/appsender.proto -package appsenderproto +package appsender import ( context "context" @@ -39,7 +39,7 @@ func NewAppSenderClient(cc grpc.ClientConnInterface) AppSenderClient { func (c *appSenderClient) SendAppRequest(ctx context.Context, in *SendAppRequestMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/appsenderproto.AppSender/SendAppRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/appsender.AppSender/SendAppRequest", in, out, opts...) if err != nil { return nil, err } @@ -48,7 +48,7 @@ func (c *appSenderClient) SendAppRequest(ctx context.Context, in *SendAppRequest func (c *appSenderClient) SendAppResponse(ctx context.Context, in *SendAppResponseMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/appsenderproto.AppSender/SendAppResponse", in, out, opts...) + err := c.cc.Invoke(ctx, "/appsender.AppSender/SendAppResponse", in, out, opts...) if err != nil { return nil, err } @@ -57,7 +57,7 @@ func (c *appSenderClient) SendAppResponse(ctx context.Context, in *SendAppRespon func (c *appSenderClient) SendAppGossip(ctx context.Context, in *SendAppGossipMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/appsenderproto.AppSender/SendAppGossip", in, out, opts...) + err := c.cc.Invoke(ctx, "/appsender.AppSender/SendAppGossip", in, out, opts...) if err != nil { return nil, err } @@ -66,7 +66,7 @@ func (c *appSenderClient) SendAppGossip(ctx context.Context, in *SendAppGossipMs func (c *appSenderClient) SendAppGossipSpecific(ctx context.Context, in *SendAppGossipSpecificMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/appsenderproto.AppSender/SendAppGossipSpecific", in, out, opts...) + err := c.cc.Invoke(ctx, "/appsender.AppSender/SendAppGossipSpecific", in, out, opts...) if err != nil { return nil, err } @@ -123,7 +123,7 @@ func _AppSender_SendAppRequest_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/appsenderproto.AppSender/SendAppRequest", + FullMethod: "/appsender.AppSender/SendAppRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppSenderServer).SendAppRequest(ctx, req.(*SendAppRequestMsg)) @@ -141,7 +141,7 @@ func _AppSender_SendAppResponse_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/appsenderproto.AppSender/SendAppResponse", + FullMethod: "/appsender.AppSender/SendAppResponse", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppSenderServer).SendAppResponse(ctx, req.(*SendAppResponseMsg)) @@ -159,7 +159,7 @@ func _AppSender_SendAppGossip_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/appsenderproto.AppSender/SendAppGossip", + FullMethod: "/appsender.AppSender/SendAppGossip", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppSenderServer).SendAppGossip(ctx, req.(*SendAppGossipMsg)) @@ -177,7 +177,7 @@ func _AppSender_SendAppGossipSpecific_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/appsenderproto.AppSender/SendAppGossipSpecific", + FullMethod: "/appsender.AppSender/SendAppGossipSpecific", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppSenderServer).SendAppGossipSpecific(ctx, req.(*SendAppGossipSpecificMsg)) @@ -189,7 +189,7 @@ func _AppSender_SendAppGossipSpecific_Handler(srv interface{}, ctx context.Conte // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AppSender_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "appsenderproto.AppSender", + ServiceName: "appsender.AppSender", HandlerType: (*AppSenderServer)(nil), Methods: []grpc.MethodDesc{ { @@ -210,5 +210,5 @@ var AppSender_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "appsenderproto/appsender.proto", + Metadata: "appsender/appsender.proto", } diff --git a/api/proto/ghttpproto/http.pb.go b/proto/pb/http/http.pb.go similarity index 57% rename from api/proto/ghttpproto/http.pb.go rename to proto/pb/http/http.pb.go index 3413b129bd51..69e2f4c96e67 100644 --- a/api/proto/ghttpproto/http.pb.go +++ b/proto/pb/http/http.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: ghttpproto/http.proto +// source: http/http.proto -package ghttpproto +package http import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -50,7 +50,7 @@ type URL struct { func (x *URL) Reset() { *x = URL{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[0] + mi := &file_http_http_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63,7 +63,7 @@ func (x *URL) String() string { func (*URL) ProtoMessage() {} func (x *URL) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[0] + mi := &file_http_http_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -76,7 +76,7 @@ func (x *URL) ProtoReflect() protoreflect.Message { // Deprecated: Use URL.ProtoReflect.Descriptor instead. func (*URL) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{0} + return file_http_http_proto_rawDescGZIP(), []int{0} } func (x *URL) GetScheme() string { @@ -159,7 +159,7 @@ type Userinfo struct { func (x *Userinfo) Reset() { *x = Userinfo{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[1] + mi := &file_http_http_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -172,7 +172,7 @@ func (x *Userinfo) String() string { func (*Userinfo) ProtoMessage() {} func (x *Userinfo) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[1] + mi := &file_http_http_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -185,7 +185,7 @@ func (x *Userinfo) ProtoReflect() protoreflect.Message { // Deprecated: Use Userinfo.ProtoReflect.Descriptor instead. func (*Userinfo) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{1} + return file_http_http_proto_rawDescGZIP(), []int{1} } func (x *Userinfo) GetUsername() string { @@ -223,7 +223,7 @@ type Element struct { func (x *Element) Reset() { *x = Element{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[2] + mi := &file_http_http_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -236,7 +236,7 @@ func (x *Element) String() string { func (*Element) ProtoMessage() {} func (x *Element) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[2] + mi := &file_http_http_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -249,7 +249,7 @@ func (x *Element) ProtoReflect() protoreflect.Message { // Deprecated: Use Element.ProtoReflect.Descriptor instead. func (*Element) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{2} + return file_http_http_proto_rawDescGZIP(), []int{2} } func (x *Element) GetKey() string { @@ -278,7 +278,7 @@ type Certificates struct { func (x *Certificates) Reset() { *x = Certificates{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[3] + mi := &file_http_http_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -291,7 +291,7 @@ func (x *Certificates) String() string { func (*Certificates) ProtoMessage() {} func (x *Certificates) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[3] + mi := &file_http_http_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -304,7 +304,7 @@ func (x *Certificates) ProtoReflect() protoreflect.Message { // Deprecated: Use Certificates.ProtoReflect.Descriptor instead. func (*Certificates) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{3} + return file_http_http_proto_rawDescGZIP(), []int{3} } func (x *Certificates) GetCert() [][]byte { @@ -352,7 +352,7 @@ type ConnectionState struct { func (x *ConnectionState) Reset() { *x = ConnectionState{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[4] + mi := &file_http_http_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -365,7 +365,7 @@ func (x *ConnectionState) String() string { func (*ConnectionState) ProtoMessage() {} func (x *ConnectionState) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[4] + mi := &file_http_http_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -378,7 +378,7 @@ func (x *ConnectionState) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectionState.ProtoReflect.Descriptor instead. func (*ConnectionState) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{4} + return file_http_http_proto_rawDescGZIP(), []int{4} } func (x *ConnectionState) GetVersion() uint32 { @@ -500,7 +500,7 @@ type Request struct { func (x *Request) Reset() { *x = Request{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[5] + mi := &file_http_http_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -513,7 +513,7 @@ func (x *Request) String() string { func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[5] + mi := &file_http_http_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -526,7 +526,7 @@ func (x *Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Request.ProtoReflect.Descriptor instead. func (*Request) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{5} + return file_http_http_proto_rawDescGZIP(), []int{5} } func (x *Request) GetMethod() string { @@ -656,7 +656,7 @@ type ResponseWriter struct { func (x *ResponseWriter) Reset() { *x = ResponseWriter{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[6] + mi := &file_http_http_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -669,7 +669,7 @@ func (x *ResponseWriter) String() string { func (*ResponseWriter) ProtoMessage() {} func (x *ResponseWriter) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[6] + mi := &file_http_http_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -682,7 +682,7 @@ func (x *ResponseWriter) ProtoReflect() protoreflect.Message { // Deprecated: Use ResponseWriter.ProtoReflect.Descriptor instead. func (*ResponseWriter) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{6} + return file_http_http_proto_rawDescGZIP(), []int{6} } func (x *ResponseWriter) GetId() uint32 { @@ -713,7 +713,7 @@ type HTTPRequest struct { func (x *HTTPRequest) Reset() { *x = HTTPRequest{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[7] + mi := &file_http_http_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -726,7 +726,7 @@ func (x *HTTPRequest) String() string { func (*HTTPRequest) ProtoMessage() {} func (x *HTTPRequest) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[7] + mi := &file_http_http_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -739,7 +739,7 @@ func (x *HTTPRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HTTPRequest.ProtoReflect.Descriptor instead. func (*HTTPRequest) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{7} + return file_http_http_proto_rawDescGZIP(), []int{7} } func (x *HTTPRequest) GetResponseWriter() *ResponseWriter { @@ -775,7 +775,7 @@ type HandleSimpleHTTPRequest struct { func (x *HandleSimpleHTTPRequest) Reset() { *x = HandleSimpleHTTPRequest{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[8] + mi := &file_http_http_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -788,7 +788,7 @@ func (x *HandleSimpleHTTPRequest) String() string { func (*HandleSimpleHTTPRequest) ProtoMessage() {} func (x *HandleSimpleHTTPRequest) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[8] + mi := &file_http_http_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -801,7 +801,7 @@ func (x *HandleSimpleHTTPRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HandleSimpleHTTPRequest.ProtoReflect.Descriptor instead. func (*HandleSimpleHTTPRequest) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{8} + return file_http_http_proto_rawDescGZIP(), []int{8} } func (x *HandleSimpleHTTPRequest) GetMethod() string { @@ -849,7 +849,7 @@ type HandleSimpleHTTPResponse struct { func (x *HandleSimpleHTTPResponse) Reset() { *x = HandleSimpleHTTPResponse{} if protoimpl.UnsafeEnabled { - mi := &file_ghttpproto_http_proto_msgTypes[9] + mi := &file_http_http_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -862,7 +862,7 @@ func (x *HandleSimpleHTTPResponse) String() string { func (*HandleSimpleHTTPResponse) ProtoMessage() {} func (x *HandleSimpleHTTPResponse) ProtoReflect() protoreflect.Message { - mi := &file_ghttpproto_http_proto_msgTypes[9] + mi := &file_http_http_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -875,7 +875,7 @@ func (x *HandleSimpleHTTPResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HandleSimpleHTTPResponse.ProtoReflect.Descriptor instead. func (*HandleSimpleHTTPResponse) Descriptor() ([]byte, []int) { - return file_ghttpproto_http_proto_rawDescGZIP(), []int{9} + return file_http_http_proto_rawDescGZIP(), []int{9} } func (x *HandleSimpleHTTPResponse) GetCode() int32 { @@ -899,196 +899,189 @@ func (x *HandleSimpleHTTPResponse) GetBody() []byte { return nil } -var File_ghttpproto_http_proto protoreflect.FileDescriptor - -var file_ghttpproto_http_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x74, 0x74, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xfc, 0x01, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, - 0x77, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x61, - 0x77, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x63, - 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x61, 0x77, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x22, - 0x65, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, - 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x53, 0x65, 0x74, 0x22, 0x33, 0x0a, 0x07, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x65, 0x72, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x22, - 0xed, 0x03, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, - 0x12, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x68, 0x61, 0x6e, 0x64, 0x73, - 0x68, 0x61, 0x6b, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x64, 0x69, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x09, 0x64, 0x69, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, - 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0b, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x2f, - 0x0a, 0x13, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6e, 0x65, 0x67, - 0x6f, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x45, 0x0a, 0x11, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x68, - 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x10, 0x70, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x42, 0x0a, 0x1d, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, - 0x0c, 0x52, 0x1b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x23, - 0x0a, 0x0d, 0x6f, 0x63, 0x73, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6f, 0x63, 0x73, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x0c, 0x10, 0x0d, 0x22, - 0xb4, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x21, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0f, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x52, - 0x4c, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x2b, - 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, - 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, - 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x09, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, - 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, - 0x12, 0x30, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x46, 0x6f, - 0x72, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, - 0x72, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x10, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x22, 0x4d, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x0b, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x07, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x68, - 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x86, 0x01, 0x0a, 0x17, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, - 0x2d, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, - 0x64, 0x79, 0x22, 0x71, 0x0a, 0x18, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, - 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x62, 0x6f, 0x64, 0x79, 0x32, 0x9c, 0x01, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x12, 0x39, - 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x59, 0x0a, 0x0c, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x67, 0x68, 0x74, 0x74, - 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, - 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x67, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x68, 0x74, 0x74, - 0x70, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_http_http_proto protoreflect.FileDescriptor + +var file_http_http_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf6, 0x01, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x22, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x74, 0x74, + 0x70, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x77, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x61, 0x77, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x61, 0x77, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x65, 0x0a, + 0x08, 0x55, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x53, 0x65, 0x74, 0x22, 0x33, 0x0a, 0x07, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x43, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x72, + 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x22, 0xe1, 0x03, + 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x68, + 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, + 0x6b, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x69, + 0x64, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, + 0x64, 0x69, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x69, 0x70, + 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0b, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x13, + 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6e, 0x65, 0x67, 0x6f, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, + 0x0a, 0x11, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x68, 0x74, 0x74, 0x70, + 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x10, 0x70, + 0x65, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, + 0x3b, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x0e, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x42, 0x0a, 0x1d, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x1b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, + 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x63, 0x73, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6f, 0x63, 0x73, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x0c, 0x10, + 0x0d, 0x22, 0x96, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1b, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x55, 0x52, 0x4c, 0x52, 0x03, 0x75, + 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x5f, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x68, 0x74, 0x74, + 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x11, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, + 0x67, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, + 0x72, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, + 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, + 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x68, 0x74, + 0x74, 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, + 0x12, 0x2a, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x12, 0x21, 0x0a, 0x0c, + 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x0d, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, + 0x69, 0x12, 0x27, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x22, 0x47, 0x0a, 0x0e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x68, + 0x74, 0x74, 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x22, 0x75, 0x0a, 0x0b, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, 0x74, + 0x74, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x72, 0x12, 0x27, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x17, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x27, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x6b, 0x0a, + 0x18, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, + 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, + 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x32, 0x8a, 0x01, 0x0a, 0x04, 0x48, + 0x54, 0x54, 0x50, 0x12, 0x33, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x11, 0x2e, + 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4d, 0x0a, 0x0c, 0x48, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x1d, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, + 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, + 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x70, 0x62, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_ghttpproto_http_proto_rawDescOnce sync.Once - file_ghttpproto_http_proto_rawDescData = file_ghttpproto_http_proto_rawDesc + file_http_http_proto_rawDescOnce sync.Once + file_http_http_proto_rawDescData = file_http_http_proto_rawDesc ) -func file_ghttpproto_http_proto_rawDescGZIP() []byte { - file_ghttpproto_http_proto_rawDescOnce.Do(func() { - file_ghttpproto_http_proto_rawDescData = protoimpl.X.CompressGZIP(file_ghttpproto_http_proto_rawDescData) +func file_http_http_proto_rawDescGZIP() []byte { + file_http_http_proto_rawDescOnce.Do(func() { + file_http_http_proto_rawDescData = protoimpl.X.CompressGZIP(file_http_http_proto_rawDescData) }) - return file_ghttpproto_http_proto_rawDescData -} - -var file_ghttpproto_http_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_ghttpproto_http_proto_goTypes = []interface{}{ - (*URL)(nil), // 0: ghttpproto.URL - (*Userinfo)(nil), // 1: ghttpproto.Userinfo - (*Element)(nil), // 2: ghttpproto.Element - (*Certificates)(nil), // 3: ghttpproto.Certificates - (*ConnectionState)(nil), // 4: ghttpproto.ConnectionState - (*Request)(nil), // 5: ghttpproto.Request - (*ResponseWriter)(nil), // 6: ghttpproto.ResponseWriter - (*HTTPRequest)(nil), // 7: ghttpproto.HTTPRequest - (*HandleSimpleHTTPRequest)(nil), // 8: ghttpproto.HandleSimpleHTTPRequest - (*HandleSimpleHTTPResponse)(nil), // 9: ghttpproto.HandleSimpleHTTPResponse + return file_http_http_proto_rawDescData +} + +var file_http_http_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_http_http_proto_goTypes = []interface{}{ + (*URL)(nil), // 0: http.URL + (*Userinfo)(nil), // 1: http.Userinfo + (*Element)(nil), // 2: http.Element + (*Certificates)(nil), // 3: http.Certificates + (*ConnectionState)(nil), // 4: http.ConnectionState + (*Request)(nil), // 5: http.Request + (*ResponseWriter)(nil), // 6: http.ResponseWriter + (*HTTPRequest)(nil), // 7: http.HTTPRequest + (*HandleSimpleHTTPRequest)(nil), // 8: http.HandleSimpleHTTPRequest + (*HandleSimpleHTTPResponse)(nil), // 9: http.HandleSimpleHTTPResponse (*emptypb.Empty)(nil), // 10: google.protobuf.Empty } -var file_ghttpproto_http_proto_depIdxs = []int32{ - 1, // 0: ghttpproto.URL.user:type_name -> ghttpproto.Userinfo - 3, // 1: ghttpproto.ConnectionState.peer_certificates:type_name -> ghttpproto.Certificates - 3, // 2: ghttpproto.ConnectionState.verified_chains:type_name -> ghttpproto.Certificates - 0, // 3: ghttpproto.Request.url:type_name -> ghttpproto.URL - 2, // 4: ghttpproto.Request.header:type_name -> ghttpproto.Element - 2, // 5: ghttpproto.Request.form:type_name -> ghttpproto.Element - 2, // 6: ghttpproto.Request.post_form:type_name -> ghttpproto.Element - 4, // 7: ghttpproto.Request.tls:type_name -> ghttpproto.ConnectionState - 2, // 8: ghttpproto.ResponseWriter.header:type_name -> ghttpproto.Element - 6, // 9: ghttpproto.HTTPRequest.response_writer:type_name -> ghttpproto.ResponseWriter - 5, // 10: ghttpproto.HTTPRequest.request:type_name -> ghttpproto.Request - 2, // 11: ghttpproto.HandleSimpleHTTPRequest.headers:type_name -> ghttpproto.Element - 2, // 12: ghttpproto.HandleSimpleHTTPResponse.headers:type_name -> ghttpproto.Element - 7, // 13: ghttpproto.HTTP.Handle:input_type -> ghttpproto.HTTPRequest - 8, // 14: ghttpproto.HTTP.HandleSimple:input_type -> ghttpproto.HandleSimpleHTTPRequest - 10, // 15: ghttpproto.HTTP.Handle:output_type -> google.protobuf.Empty - 9, // 16: ghttpproto.HTTP.HandleSimple:output_type -> ghttpproto.HandleSimpleHTTPResponse +var file_http_http_proto_depIdxs = []int32{ + 1, // 0: http.URL.user:type_name -> http.Userinfo + 3, // 1: http.ConnectionState.peer_certificates:type_name -> http.Certificates + 3, // 2: http.ConnectionState.verified_chains:type_name -> http.Certificates + 0, // 3: http.Request.url:type_name -> http.URL + 2, // 4: http.Request.header:type_name -> http.Element + 2, // 5: http.Request.form:type_name -> http.Element + 2, // 6: http.Request.post_form:type_name -> http.Element + 4, // 7: http.Request.tls:type_name -> http.ConnectionState + 2, // 8: http.ResponseWriter.header:type_name -> http.Element + 6, // 9: http.HTTPRequest.response_writer:type_name -> http.ResponseWriter + 5, // 10: http.HTTPRequest.request:type_name -> http.Request + 2, // 11: http.HandleSimpleHTTPRequest.headers:type_name -> http.Element + 2, // 12: http.HandleSimpleHTTPResponse.headers:type_name -> http.Element + 7, // 13: http.HTTP.Handle:input_type -> http.HTTPRequest + 8, // 14: http.HTTP.HandleSimple:input_type -> http.HandleSimpleHTTPRequest + 10, // 15: http.HTTP.Handle:output_type -> google.protobuf.Empty + 9, // 16: http.HTTP.HandleSimple:output_type -> http.HandleSimpleHTTPResponse 15, // [15:17] is the sub-list for method output_type 13, // [13:15] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name @@ -1096,13 +1089,13 @@ var file_ghttpproto_http_proto_depIdxs = []int32{ 0, // [0:13] is the sub-list for field type_name } -func init() { file_ghttpproto_http_proto_init() } -func file_ghttpproto_http_proto_init() { - if File_ghttpproto_http_proto != nil { +func init() { file_http_http_proto_init() } +func file_http_http_proto_init() { + if File_http_http_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_ghttpproto_http_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*URL); i { case 0: return &v.state @@ -1114,7 +1107,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Userinfo); i { case 0: return &v.state @@ -1126,7 +1119,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Element); i { case 0: return &v.state @@ -1138,7 +1131,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Certificates); i { case 0: return &v.state @@ -1150,7 +1143,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConnectionState); i { case 0: return &v.state @@ -1162,7 +1155,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Request); i { case 0: return &v.state @@ -1174,7 +1167,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResponseWriter); i { case 0: return &v.state @@ -1186,7 +1179,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HTTPRequest); i { case 0: return &v.state @@ -1198,7 +1191,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HandleSimpleHTTPRequest); i { case 0: return &v.state @@ -1210,7 +1203,7 @@ func file_ghttpproto_http_proto_init() { return nil } } - file_ghttpproto_http_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_http_http_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HandleSimpleHTTPResponse); i { case 0: return &v.state @@ -1227,18 +1220,18 @@ func file_ghttpproto_http_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ghttpproto_http_proto_rawDesc, + RawDescriptor: file_http_http_proto_rawDesc, NumEnums: 0, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_ghttpproto_http_proto_goTypes, - DependencyIndexes: file_ghttpproto_http_proto_depIdxs, - MessageInfos: file_ghttpproto_http_proto_msgTypes, + GoTypes: file_http_http_proto_goTypes, + DependencyIndexes: file_http_http_proto_depIdxs, + MessageInfos: file_http_http_proto_msgTypes, }.Build() - File_ghttpproto_http_proto = out.File - file_ghttpproto_http_proto_rawDesc = nil - file_ghttpproto_http_proto_goTypes = nil - file_ghttpproto_http_proto_depIdxs = nil + File_http_http_proto = out.File + file_http_http_proto_rawDesc = nil + file_http_http_proto_goTypes = nil + file_http_http_proto_depIdxs = nil } diff --git a/api/proto/ghttpproto/http_grpc.pb.go b/proto/pb/http/http_grpc.pb.go similarity index 93% rename from api/proto/ghttpproto/http_grpc.pb.go rename to proto/pb/http/http_grpc.pb.go index 3d3a91f68abb..bdea7061b957 100644 --- a/api/proto/ghttpproto/http_grpc.pb.go +++ b/proto/pb/http/http_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: ghttpproto/http.proto +// source: http/http.proto -package ghttpproto +package http import ( context "context" @@ -43,7 +43,7 @@ func NewHTTPClient(cc grpc.ClientConnInterface) HTTPClient { func (c *hTTPClient) Handle(ctx context.Context, in *HTTPRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/ghttpproto.HTTP/Handle", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.HTTP/Handle", in, out, opts...) if err != nil { return nil, err } @@ -52,7 +52,7 @@ func (c *hTTPClient) Handle(ctx context.Context, in *HTTPRequest, opts ...grpc.C func (c *hTTPClient) HandleSimple(ctx context.Context, in *HandleSimpleHTTPRequest, opts ...grpc.CallOption) (*HandleSimpleHTTPResponse, error) { out := new(HandleSimpleHTTPResponse) - err := c.cc.Invoke(ctx, "/ghttpproto.HTTP/HandleSimple", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.HTTP/HandleSimple", in, out, opts...) if err != nil { return nil, err } @@ -107,7 +107,7 @@ func _HTTP_Handle_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ghttpproto.HTTP/Handle", + FullMethod: "/http.HTTP/Handle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPServer).Handle(ctx, req.(*HTTPRequest)) @@ -125,7 +125,7 @@ func _HTTP_HandleSimple_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ghttpproto.HTTP/HandleSimple", + FullMethod: "/http.HTTP/HandleSimple", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPServer).HandleSimple(ctx, req.(*HandleSimpleHTTPRequest)) @@ -137,7 +137,7 @@ func _HTTP_HandleSimple_Handler(srv interface{}, ctx context.Context, dec func(i // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var HTTP_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "ghttpproto.HTTP", + ServiceName: "http.HTTP", HandlerType: (*HTTPServer)(nil), Methods: []grpc.MethodDesc{ { @@ -150,5 +150,5 @@ var HTTP_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "ghttpproto/http.proto", + Metadata: "http/http.proto", } diff --git a/proto/pb/http/responsewriter/responsewriter.pb.go b/proto/pb/http/responsewriter/responsewriter.pb.go new file mode 100644 index 000000000000..ad2a857d50cc --- /dev/null +++ b/proto/pb/http/responsewriter/responsewriter.pb.go @@ -0,0 +1,520 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: http/responsewriter/responsewriter.proto + +package responsewriter + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +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 Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key is a element key in a key value pair + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // values are a list of strings coresponding to the key + Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *Header) Reset() { + *x = Header{} + if protoimpl.UnsafeEnabled { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Header) ProtoMessage() {} + +func (x *Header) ProtoReflect() protoreflect.Message { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Header.ProtoReflect.Descriptor instead. +func (*Header) Descriptor() ([]byte, []int) { + return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{0} +} + +func (x *Header) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Header) GetValues() []string { + if x != nil { + return x.Values + } + return nil +} + +type WriteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // headers represents the key-value pairs in an HTTP header + Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + // payload is the write request in bytes + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (x *WriteRequest) Reset() { + *x = WriteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteRequest) ProtoMessage() {} + +func (x *WriteRequest) ProtoReflect() protoreflect.Message { + mi := &file_http_responsewriter_responsewriter_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) +} + +// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. +func (*WriteRequest) Descriptor() ([]byte, []int) { + return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{1} +} + +func (x *WriteRequest) GetHeaders() []*Header { + if x != nil { + return x.Headers + } + return nil +} + +func (x *WriteRequest) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type WriteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // written is the number of bytes written in body + Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` +} + +func (x *WriteResponse) Reset() { + *x = WriteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteResponse) ProtoMessage() {} + +func (x *WriteResponse) ProtoReflect() protoreflect.Message { + mi := &file_http_responsewriter_responsewriter_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) +} + +// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. +func (*WriteResponse) Descriptor() ([]byte, []int) { + return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{2} +} + +func (x *WriteResponse) GetWritten() int32 { + if x != nil { + return x.Written + } + return 0 +} + +type WriteHeaderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // headers represents the key-value pairs in an HTTP header + Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + // status_code must be a valid HTTP 1xx-5xx status code + StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` +} + +func (x *WriteHeaderRequest) Reset() { + *x = WriteHeaderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteHeaderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteHeaderRequest) ProtoMessage() {} + +func (x *WriteHeaderRequest) ProtoReflect() protoreflect.Message { + mi := &file_http_responsewriter_responsewriter_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) +} + +// Deprecated: Use WriteHeaderRequest.ProtoReflect.Descriptor instead. +func (*WriteHeaderRequest) Descriptor() ([]byte, []int) { + return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{3} +} + +func (x *WriteHeaderRequest) GetHeaders() []*Header { + if x != nil { + return x.Headers + } + return nil +} + +func (x *WriteHeaderRequest) GetStatusCode() int32 { + if x != nil { + return x.StatusCode + } + return 0 +} + +type HijackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LocalNetwork string `protobuf:"bytes,2,opt,name=local_network,json=localNetwork,proto3" json:"local_network,omitempty"` + // local_string is string form of address + LocalString string `protobuf:"bytes,3,opt,name=local_string,json=localString,proto3" json:"local_string,omitempty"` + // remote_network is the name of the network (for example, "tcp", "udp") + RemoteNetwork string `protobuf:"bytes,4,opt,name=remote_network,json=remoteNetwork,proto3" json:"remote_network,omitempty"` + // remote_string is string form of address + RemoteString string `protobuf:"bytes,5,opt,name=remote_string,json=remoteString,proto3" json:"remote_string,omitempty"` + // conn_read_writer_server is the stream id of the gRPC server + // serving the Conn, Reader and Writer services which facilitate + // Hijacking, + ConnReadWriterServer uint32 `protobuf:"varint,8,opt,name=conn_read_writer_server,json=connReadWriterServer,proto3" json:"conn_read_writer_server,omitempty"` +} + +func (x *HijackResponse) Reset() { + *x = HijackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_http_responsewriter_responsewriter_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HijackResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HijackResponse) ProtoMessage() {} + +func (x *HijackResponse) ProtoReflect() protoreflect.Message { + mi := &file_http_responsewriter_responsewriter_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) +} + +// Deprecated: Use HijackResponse.ProtoReflect.Descriptor instead. +func (*HijackResponse) Descriptor() ([]byte, []int) { + return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{4} +} + +func (x *HijackResponse) GetLocalNetwork() string { + if x != nil { + return x.LocalNetwork + } + return "" +} + +func (x *HijackResponse) GetLocalString() string { + if x != nil { + return x.LocalString + } + return "" +} + +func (x *HijackResponse) GetRemoteNetwork() string { + if x != nil { + return x.RemoteNetwork + } + return "" +} + +func (x *HijackResponse) GetRemoteString() string { + if x != nil { + return x.RemoteString + } + return "" +} + +func (x *HijackResponse) GetConnReadWriterServer() uint32 { + if x != nil { + return x.ConnReadWriterServer + } + return 0 +} + +var File_http_responsewriter_responsewriter_proto protoreflect.FileDescriptor + +var file_http_responsewriter_responsewriter_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x68, 0x74, 0x74, 0x70, + 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x1a, + 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x06, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x22, 0x5f, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x35, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x22, 0x29, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x12, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x0e, 0x48, + 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x12, 0x35, 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, + 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x32, 0xa8, 0x02, 0x0a, 0x06, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x21, + 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x45, + 0x0a, 0x06, 0x48, 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x1a, 0x23, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, + 0x62, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_http_responsewriter_responsewriter_proto_rawDescOnce sync.Once + file_http_responsewriter_responsewriter_proto_rawDescData = file_http_responsewriter_responsewriter_proto_rawDesc +) + +func file_http_responsewriter_responsewriter_proto_rawDescGZIP() []byte { + file_http_responsewriter_responsewriter_proto_rawDescOnce.Do(func() { + file_http_responsewriter_responsewriter_proto_rawDescData = protoimpl.X.CompressGZIP(file_http_responsewriter_responsewriter_proto_rawDescData) + }) + return file_http_responsewriter_responsewriter_proto_rawDescData +} + +var file_http_responsewriter_responsewriter_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_http_responsewriter_responsewriter_proto_goTypes = []interface{}{ + (*Header)(nil), // 0: http.responsewriter.Header + (*WriteRequest)(nil), // 1: http.responsewriter.WriteRequest + (*WriteResponse)(nil), // 2: http.responsewriter.WriteResponse + (*WriteHeaderRequest)(nil), // 3: http.responsewriter.WriteHeaderRequest + (*HijackResponse)(nil), // 4: http.responsewriter.HijackResponse + (*emptypb.Empty)(nil), // 5: google.protobuf.Empty +} +var file_http_responsewriter_responsewriter_proto_depIdxs = []int32{ + 0, // 0: http.responsewriter.WriteRequest.headers:type_name -> http.responsewriter.Header + 0, // 1: http.responsewriter.WriteHeaderRequest.headers:type_name -> http.responsewriter.Header + 1, // 2: http.responsewriter.Writer.Write:input_type -> http.responsewriter.WriteRequest + 3, // 3: http.responsewriter.Writer.WriteHeader:input_type -> http.responsewriter.WriteHeaderRequest + 5, // 4: http.responsewriter.Writer.Flush:input_type -> google.protobuf.Empty + 5, // 5: http.responsewriter.Writer.Hijack:input_type -> google.protobuf.Empty + 2, // 6: http.responsewriter.Writer.Write:output_type -> http.responsewriter.WriteResponse + 5, // 7: http.responsewriter.Writer.WriteHeader:output_type -> google.protobuf.Empty + 5, // 8: http.responsewriter.Writer.Flush:output_type -> google.protobuf.Empty + 4, // 9: http.responsewriter.Writer.Hijack:output_type -> http.responsewriter.HijackResponse + 6, // [6:10] is the sub-list for method output_type + 2, // [2:6] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_http_responsewriter_responsewriter_proto_init() } +func file_http_responsewriter_responsewriter_proto_init() { + if File_http_responsewriter_responsewriter_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_http_responsewriter_responsewriter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_http_responsewriter_responsewriter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_http_responsewriter_responsewriter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_http_responsewriter_responsewriter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteHeaderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_http_responsewriter_responsewriter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HijackResponse); 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_http_responsewriter_responsewriter_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_http_responsewriter_responsewriter_proto_goTypes, + DependencyIndexes: file_http_responsewriter_responsewriter_proto_depIdxs, + MessageInfos: file_http_responsewriter_responsewriter_proto_msgTypes, + }.Build() + File_http_responsewriter_responsewriter_proto = out.File + file_http_responsewriter_responsewriter_proto_rawDesc = nil + file_http_responsewriter_responsewriter_proto_goTypes = nil + file_http_responsewriter_responsewriter_proto_depIdxs = nil +} diff --git a/api/proto/gresponsewriterproto/responsewriter_grpc.pb.go b/proto/pb/http/responsewriter/responsewriter_grpc.pb.go similarity index 91% rename from api/proto/gresponsewriterproto/responsewriter_grpc.pb.go rename to proto/pb/http/responsewriter/responsewriter_grpc.pb.go index 81152b1975f1..8e3f438c1ca0 100644 --- a/api/proto/gresponsewriterproto/responsewriter_grpc.pb.go +++ b/proto/pb/http/responsewriter/responsewriter_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gresponsewriterproto/responsewriter.proto +// source: http/responsewriter/responsewriter.proto -package gresponsewriterproto +package responsewriter import ( context "context" @@ -44,7 +44,7 @@ func NewWriterClient(cc grpc.ClientConnInterface) WriterClient { func (c *writerClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { out := new(WriteResponse) - err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Write", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.responsewriter.Writer/Write", in, out, opts...) if err != nil { return nil, err } @@ -53,7 +53,7 @@ func (c *writerClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc func (c *writerClient) WriteHeader(ctx context.Context, in *WriteHeaderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/WriteHeader", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.responsewriter.Writer/WriteHeader", in, out, opts...) if err != nil { return nil, err } @@ -62,7 +62,7 @@ func (c *writerClient) WriteHeader(ctx context.Context, in *WriteHeaderRequest, func (c *writerClient) Flush(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Flush", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.responsewriter.Writer/Flush", in, out, opts...) if err != nil { return nil, err } @@ -71,7 +71,7 @@ func (c *writerClient) Flush(ctx context.Context, in *emptypb.Empty, opts ...grp func (c *writerClient) Hijack(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HijackResponse, error) { out := new(HijackResponse) - err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Hijack", in, out, opts...) + err := c.cc.Invoke(ctx, "/http.responsewriter.Writer/Hijack", in, out, opts...) if err != nil { return nil, err } @@ -133,7 +133,7 @@ func _Writer_Write_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gresponsewriterproto.Writer/Write", + FullMethod: "/http.responsewriter.Writer/Write", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriterServer).Write(ctx, req.(*WriteRequest)) @@ -151,7 +151,7 @@ func _Writer_WriteHeader_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gresponsewriterproto.Writer/WriteHeader", + FullMethod: "/http.responsewriter.Writer/WriteHeader", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriterServer).WriteHeader(ctx, req.(*WriteHeaderRequest)) @@ -169,7 +169,7 @@ func _Writer_Flush_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gresponsewriterproto.Writer/Flush", + FullMethod: "/http.responsewriter.Writer/Flush", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriterServer).Flush(ctx, req.(*emptypb.Empty)) @@ -187,7 +187,7 @@ func _Writer_Hijack_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gresponsewriterproto.Writer/Hijack", + FullMethod: "/http.responsewriter.Writer/Hijack", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriterServer).Hijack(ctx, req.(*emptypb.Empty)) @@ -199,7 +199,7 @@ func _Writer_Hijack_Handler(srv interface{}, ctx context.Context, dec func(inter // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Writer_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gresponsewriterproto.Writer", + ServiceName: "http.responsewriter.Writer", HandlerType: (*WriterServer)(nil), Methods: []grpc.MethodDesc{ { @@ -220,5 +220,5 @@ var Writer_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gresponsewriterproto/responsewriter.proto", + Metadata: "http/responsewriter/responsewriter.proto", } diff --git a/proto/pb/io/reader/reader.pb.go b/proto/pb/io/reader/reader.pb.go new file mode 100644 index 000000000000..6cca97f9c44c --- /dev/null +++ b/proto/pb/io/reader/reader.pb.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: io/reader/reader.proto + +package reader + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 ReadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // length is the request in bytes + Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` +} + +func (x *ReadRequest) Reset() { + *x = ReadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_io_reader_reader_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadRequest) ProtoMessage() {} + +func (x *ReadRequest) ProtoReflect() protoreflect.Message { + mi := &file_io_reader_reader_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. +func (*ReadRequest) Descriptor() ([]byte, []int) { + return file_io_reader_reader_proto_rawDescGZIP(), []int{0} +} + +func (x *ReadRequest) GetLength() int32 { + if x != nil { + return x.Length + } + return 0 +} + +type ReadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // read is the payload in bytes + Read []byte `protobuf:"bytes,1,opt,name=read,proto3" json:"read,omitempty"` + // error is an error message + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + // errored is true if an error has been set + Errored bool `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"` +} + +func (x *ReadResponse) Reset() { + *x = ReadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_io_reader_reader_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadResponse) ProtoMessage() {} + +func (x *ReadResponse) ProtoReflect() protoreflect.Message { + mi := &file_io_reader_reader_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) +} + +// Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. +func (*ReadResponse) Descriptor() ([]byte, []int) { + return file_io_reader_reader_proto_rawDescGZIP(), []int{1} +} + +func (x *ReadResponse) GetRead() []byte { + if x != nil { + return x.Read + } + return nil +} + +func (x *ReadResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *ReadResponse) GetErrored() bool { + if x != nil { + return x.Errored + } + return false +} + +var File_io_reader_reader_proto protoreflect.FileDescriptor + +var file_io_reader_reader_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x69, 0x6f, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x69, 0x6f, 0x2e, 0x72, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x52, 0x0a, 0x0c, 0x52, 0x65, + 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, + 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x32, 0x41, + 0x0a, 0x06, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, + 0x12, 0x16, 0x2e, 0x69, 0x6f, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x69, 0x6f, 0x2e, 0x72, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x69, 0x6f, + 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_io_reader_reader_proto_rawDescOnce sync.Once + file_io_reader_reader_proto_rawDescData = file_io_reader_reader_proto_rawDesc +) + +func file_io_reader_reader_proto_rawDescGZIP() []byte { + file_io_reader_reader_proto_rawDescOnce.Do(func() { + file_io_reader_reader_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_reader_reader_proto_rawDescData) + }) + return file_io_reader_reader_proto_rawDescData +} + +var file_io_reader_reader_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_io_reader_reader_proto_goTypes = []interface{}{ + (*ReadRequest)(nil), // 0: io.reader.ReadRequest + (*ReadResponse)(nil), // 1: io.reader.ReadResponse +} +var file_io_reader_reader_proto_depIdxs = []int32{ + 0, // 0: io.reader.Reader.Read:input_type -> io.reader.ReadRequest + 1, // 1: io.reader.Reader.Read:output_type -> io.reader.ReadResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_io_reader_reader_proto_init() } +func file_io_reader_reader_proto_init() { + if File_io_reader_reader_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_io_reader_reader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_io_reader_reader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadResponse); 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_io_reader_reader_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_io_reader_reader_proto_goTypes, + DependencyIndexes: file_io_reader_reader_proto_depIdxs, + MessageInfos: file_io_reader_reader_proto_msgTypes, + }.Build() + File_io_reader_reader_proto = out.File + file_io_reader_reader_proto_rawDesc = nil + file_io_reader_reader_proto_goTypes = nil + file_io_reader_reader_proto_depIdxs = nil +} diff --git a/api/proto/greaderproto/reader_grpc.pb.go b/proto/pb/io/reader/reader_grpc.pb.go similarity index 92% rename from api/proto/greaderproto/reader_grpc.pb.go rename to proto/pb/io/reader/reader_grpc.pb.go index 42e9cac66324..55e3e2db52f7 100644 --- a/api/proto/greaderproto/reader_grpc.pb.go +++ b/proto/pb/io/reader/reader_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: greaderproto/reader.proto +// source: io/reader/reader.proto -package greaderproto +package reader import ( context "context" @@ -35,7 +35,7 @@ func NewReaderClient(cc grpc.ClientConnInterface) ReaderClient { func (c *readerClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { out := new(ReadResponse) - err := c.cc.Invoke(ctx, "/greaderproto.Reader/Read", in, out, opts...) + err := c.cc.Invoke(ctx, "/io.reader.Reader/Read", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func _Reader_Read_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greaderproto.Reader/Read", + FullMethod: "/io.reader.Reader/Read", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ReaderServer).Read(ctx, req.(*ReadRequest)) @@ -92,7 +92,7 @@ func _Reader_Read_Handler(srv interface{}, ctx context.Context, dec func(interfa // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Reader_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "greaderproto.Reader", + ServiceName: "io.reader.Reader", HandlerType: (*ReaderServer)(nil), Methods: []grpc.MethodDesc{ { @@ -101,5 +101,5 @@ var Reader_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "greaderproto/reader.proto", + Metadata: "io/reader/reader.proto", } diff --git a/proto/pb/io/writer/writer.pb.go b/proto/pb/io/writer/writer.pb.go new file mode 100644 index 000000000000..5c5b2b9a3b39 --- /dev/null +++ b/proto/pb/io/writer/writer.pb.go @@ -0,0 +1,237 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: io/writer/writer.proto + +package writer + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 WriteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // payload is the write request in bytes + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (x *WriteRequest) Reset() { + *x = WriteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_io_writer_writer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteRequest) ProtoMessage() {} + +func (x *WriteRequest) ProtoReflect() protoreflect.Message { + mi := &file_io_writer_writer_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. +func (*WriteRequest) Descriptor() ([]byte, []int) { + return file_io_writer_writer_proto_rawDescGZIP(), []int{0} +} + +func (x *WriteRequest) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type WriteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // written is the length of payload in bytes + Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` + // error is an error message + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + // errored is true if an error has been set + Errored bool `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"` +} + +func (x *WriteResponse) Reset() { + *x = WriteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_io_writer_writer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteResponse) ProtoMessage() {} + +func (x *WriteResponse) ProtoReflect() protoreflect.Message { + mi := &file_io_writer_writer_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) +} + +// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. +func (*WriteResponse) Descriptor() ([]byte, []int) { + return file_io_writer_writer_proto_rawDescGZIP(), []int{1} +} + +func (x *WriteResponse) GetWritten() int32 { + if x != nil { + return x.Written + } + return 0 +} + +func (x *WriteResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *WriteResponse) GetErrored() bool { + if x != nil { + return x.Errored + } + return false +} + +var File_io_writer_writer_proto protoreflect.FileDescriptor + +var file_io_writer_writer_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x69, 0x6f, 0x2f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, 0x77, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x69, 0x6f, 0x2e, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x22, 0x28, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x59, 0x0a, + 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, + 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x32, 0x44, 0x0a, 0x06, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x69, 0x6f, + 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x69, 0x6f, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, + 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x34, + 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, + 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, + 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x69, 0x6f, 0x2f, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_io_writer_writer_proto_rawDescOnce sync.Once + file_io_writer_writer_proto_rawDescData = file_io_writer_writer_proto_rawDesc +) + +func file_io_writer_writer_proto_rawDescGZIP() []byte { + file_io_writer_writer_proto_rawDescOnce.Do(func() { + file_io_writer_writer_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_writer_writer_proto_rawDescData) + }) + return file_io_writer_writer_proto_rawDescData +} + +var file_io_writer_writer_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_io_writer_writer_proto_goTypes = []interface{}{ + (*WriteRequest)(nil), // 0: io.writer.WriteRequest + (*WriteResponse)(nil), // 1: io.writer.WriteResponse +} +var file_io_writer_writer_proto_depIdxs = []int32{ + 0, // 0: io.writer.Writer.Write:input_type -> io.writer.WriteRequest + 1, // 1: io.writer.Writer.Write:output_type -> io.writer.WriteResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_io_writer_writer_proto_init() } +func file_io_writer_writer_proto_init() { + if File_io_writer_writer_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_io_writer_writer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_io_writer_writer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteResponse); 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_io_writer_writer_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_io_writer_writer_proto_goTypes, + DependencyIndexes: file_io_writer_writer_proto_depIdxs, + MessageInfos: file_io_writer_writer_proto_msgTypes, + }.Build() + File_io_writer_writer_proto = out.File + file_io_writer_writer_proto_rawDesc = nil + file_io_writer_writer_proto_goTypes = nil + file_io_writer_writer_proto_depIdxs = nil +} diff --git a/api/proto/gwriterproto/writer_grpc.pb.go b/proto/pb/io/writer/writer_grpc.pb.go similarity index 93% rename from api/proto/gwriterproto/writer_grpc.pb.go rename to proto/pb/io/writer/writer_grpc.pb.go index 521034c2b40d..f61c741fa1f7 100644 --- a/api/proto/gwriterproto/writer_grpc.pb.go +++ b/proto/pb/io/writer/writer_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gwriterproto/writer.proto +// source: io/writer/writer.proto -package gwriterproto +package writer import ( context "context" @@ -36,7 +36,7 @@ func NewWriterClient(cc grpc.ClientConnInterface) WriterClient { func (c *writerClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { out := new(WriteResponse) - err := c.cc.Invoke(ctx, "/gwriterproto.Writer/Write", in, out, opts...) + err := c.cc.Invoke(ctx, "/io.writer.Writer/Write", in, out, opts...) if err != nil { return nil, err } @@ -82,7 +82,7 @@ func _Writer_Write_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gwriterproto.Writer/Write", + FullMethod: "/io.writer.Writer/Write", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriterServer).Write(ctx, req.(*WriteRequest)) @@ -94,7 +94,7 @@ func _Writer_Write_Handler(srv interface{}, ctx context.Context, dec func(interf // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Writer_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gwriterproto.Writer", + ServiceName: "io.writer.Writer", HandlerType: (*WriterServer)(nil), Methods: []grpc.MethodDesc{ { @@ -103,5 +103,5 @@ var Writer_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gwriterproto/writer.proto", + Metadata: "io/writer/writer.proto", } diff --git a/proto/pb/keystore/keystore.pb.go b/proto/pb/keystore/keystore.pb.go new file mode 100644 index 000000000000..84c78b035ce9 --- /dev/null +++ b/proto/pb/keystore/keystore.pb.go @@ -0,0 +1,226 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: keystore/keystore.proto + +package keystore + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 GetDatabaseRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *GetDatabaseRequest) Reset() { + *x = GetDatabaseRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_keystore_keystore_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDatabaseRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDatabaseRequest) ProtoMessage() {} + +func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message { + mi := &file_keystore_keystore_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDatabaseRequest.ProtoReflect.Descriptor instead. +func (*GetDatabaseRequest) Descriptor() ([]byte, []int) { + return file_keystore_keystore_proto_rawDescGZIP(), []int{0} +} + +func (x *GetDatabaseRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *GetDatabaseRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type GetDatabaseResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DbServer uint32 `protobuf:"varint,1,opt,name=db_server,json=dbServer,proto3" json:"db_server,omitempty"` +} + +func (x *GetDatabaseResponse) Reset() { + *x = GetDatabaseResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_keystore_keystore_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDatabaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDatabaseResponse) ProtoMessage() {} + +func (x *GetDatabaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_keystore_keystore_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) +} + +// Deprecated: Use GetDatabaseResponse.ProtoReflect.Descriptor instead. +func (*GetDatabaseResponse) Descriptor() ([]byte, []int) { + return file_keystore_keystore_proto_rawDescGZIP(), []int{1} +} + +func (x *GetDatabaseResponse) GetDbServer() uint32 { + if x != nil { + return x.DbServer + } + return 0 +} + +var File_keystore_keystore_proto protoreflect.FileDescriptor + +var file_keystore_keystore_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x22, 0x4c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x22, 0x32, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x62, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, 0x62, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x32, 0x56, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x12, 0x1c, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, + 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, + 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_keystore_keystore_proto_rawDescOnce sync.Once + file_keystore_keystore_proto_rawDescData = file_keystore_keystore_proto_rawDesc +) + +func file_keystore_keystore_proto_rawDescGZIP() []byte { + file_keystore_keystore_proto_rawDescOnce.Do(func() { + file_keystore_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(file_keystore_keystore_proto_rawDescData) + }) + return file_keystore_keystore_proto_rawDescData +} + +var file_keystore_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_keystore_keystore_proto_goTypes = []interface{}{ + (*GetDatabaseRequest)(nil), // 0: keystore.GetDatabaseRequest + (*GetDatabaseResponse)(nil), // 1: keystore.GetDatabaseResponse +} +var file_keystore_keystore_proto_depIdxs = []int32{ + 0, // 0: keystore.Keystore.GetDatabase:input_type -> keystore.GetDatabaseRequest + 1, // 1: keystore.Keystore.GetDatabase:output_type -> keystore.GetDatabaseResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_keystore_keystore_proto_init() } +func file_keystore_keystore_proto_init() { + if File_keystore_keystore_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_keystore_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDatabaseRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_keystore_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDatabaseResponse); 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_keystore_keystore_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_keystore_keystore_proto_goTypes, + DependencyIndexes: file_keystore_keystore_proto_depIdxs, + MessageInfos: file_keystore_keystore_proto_msgTypes, + }.Build() + File_keystore_keystore_proto = out.File + file_keystore_keystore_proto_rawDesc = nil + file_keystore_keystore_proto_goTypes = nil + file_keystore_keystore_proto_depIdxs = nil +} diff --git a/api/proto/gkeystoreproto/keystore_grpc.pb.go b/proto/pb/keystore/keystore_grpc.pb.go similarity index 92% rename from api/proto/gkeystoreproto/keystore_grpc.pb.go rename to proto/pb/keystore/keystore_grpc.pb.go index e83f8a9ac581..a44bddf2cac7 100644 --- a/api/proto/gkeystoreproto/keystore_grpc.pb.go +++ b/proto/pb/keystore/keystore_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gkeystoreproto/keystore.proto +// source: keystore/keystore.proto -package gkeystoreproto +package keystore import ( context "context" @@ -35,7 +35,7 @@ func NewKeystoreClient(cc grpc.ClientConnInterface) KeystoreClient { func (c *keystoreClient) GetDatabase(ctx context.Context, in *GetDatabaseRequest, opts ...grpc.CallOption) (*GetDatabaseResponse, error) { out := new(GetDatabaseResponse) - err := c.cc.Invoke(ctx, "/gkeystoreproto.Keystore/GetDatabase", in, out, opts...) + err := c.cc.Invoke(ctx, "/keystore.Keystore/GetDatabase", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func _Keystore_GetDatabase_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gkeystoreproto.Keystore/GetDatabase", + FullMethod: "/keystore.Keystore/GetDatabase", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KeystoreServer).GetDatabase(ctx, req.(*GetDatabaseRequest)) @@ -92,7 +92,7 @@ func _Keystore_GetDatabase_Handler(srv interface{}, ctx context.Context, dec fun // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Keystore_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gkeystoreproto.Keystore", + ServiceName: "keystore.Keystore", HandlerType: (*KeystoreServer)(nil), Methods: []grpc.MethodDesc{ { @@ -101,5 +101,5 @@ var Keystore_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gkeystoreproto/keystore.proto", + Metadata: "keystore/keystore.proto", } diff --git a/proto/pb/messenger/messenger.pb.go b/proto/pb/messenger/messenger.pb.go new file mode 100644 index 000000000000..0963bd8cccae --- /dev/null +++ b/proto/pb/messenger/messenger.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: messenger/messenger.proto + +package messenger + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 NotifyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message uint32 `protobuf:"varint,1,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *NotifyRequest) Reset() { + *x = NotifyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_messenger_messenger_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotifyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotifyRequest) ProtoMessage() {} + +func (x *NotifyRequest) ProtoReflect() protoreflect.Message { + mi := &file_messenger_messenger_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead. +func (*NotifyRequest) Descriptor() ([]byte, []int) { + return file_messenger_messenger_proto_rawDescGZIP(), []int{0} +} + +func (x *NotifyRequest) GetMessage() uint32 { + if x != nil { + return x.Message + } + return 0 +} + +type NotifyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NotifyResponse) Reset() { + *x = NotifyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_messenger_messenger_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotifyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotifyResponse) ProtoMessage() {} + +func (x *NotifyResponse) ProtoReflect() protoreflect.Message { + mi := &file_messenger_messenger_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) +} + +// Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead. +func (*NotifyResponse) Descriptor() ([]byte, []int) { + return file_messenger_messenger_proto_rawDescGZIP(), []int{1} +} + +var File_messenger_messenger_proto protoreflect.FileDescriptor + +var file_messenger_messenger_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2f, 0x6d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6d, 0x65, 0x73, + 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x22, 0x29, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x32, 0x4a, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, + 0x12, 0x3d, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x12, 0x18, 0x2e, 0x6d, 0x65, 0x73, + 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, + 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, + 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_messenger_messenger_proto_rawDescOnce sync.Once + file_messenger_messenger_proto_rawDescData = file_messenger_messenger_proto_rawDesc +) + +func file_messenger_messenger_proto_rawDescGZIP() []byte { + file_messenger_messenger_proto_rawDescOnce.Do(func() { + file_messenger_messenger_proto_rawDescData = protoimpl.X.CompressGZIP(file_messenger_messenger_proto_rawDescData) + }) + return file_messenger_messenger_proto_rawDescData +} + +var file_messenger_messenger_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_messenger_messenger_proto_goTypes = []interface{}{ + (*NotifyRequest)(nil), // 0: messenger.NotifyRequest + (*NotifyResponse)(nil), // 1: messenger.NotifyResponse +} +var file_messenger_messenger_proto_depIdxs = []int32{ + 0, // 0: messenger.Messenger.Notify:input_type -> messenger.NotifyRequest + 1, // 1: messenger.Messenger.Notify:output_type -> messenger.NotifyResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_messenger_messenger_proto_init() } +func file_messenger_messenger_proto_init() { + if File_messenger_messenger_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_messenger_messenger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_messenger_messenger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyResponse); 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_messenger_messenger_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_messenger_messenger_proto_goTypes, + DependencyIndexes: file_messenger_messenger_proto_depIdxs, + MessageInfos: file_messenger_messenger_proto_msgTypes, + }.Build() + File_messenger_messenger_proto = out.File + file_messenger_messenger_proto_rawDesc = nil + file_messenger_messenger_proto_goTypes = nil + file_messenger_messenger_proto_depIdxs = nil +} diff --git a/api/proto/messengerproto/messenger_grpc.pb.go b/proto/pb/messenger/messenger_grpc.pb.go similarity index 92% rename from api/proto/messengerproto/messenger_grpc.pb.go rename to proto/pb/messenger/messenger_grpc.pb.go index a20a4318e87f..b7073a03fc63 100644 --- a/api/proto/messengerproto/messenger_grpc.pb.go +++ b/proto/pb/messenger/messenger_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: messengerproto/messenger.proto +// source: messenger/messenger.proto -package messengerproto +package messenger import ( context "context" @@ -35,7 +35,7 @@ func NewMessengerClient(cc grpc.ClientConnInterface) MessengerClient { func (c *messengerClient) Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error) { out := new(NotifyResponse) - err := c.cc.Invoke(ctx, "/messengerproto.Messenger/Notify", in, out, opts...) + err := c.cc.Invoke(ctx, "/messenger.Messenger/Notify", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func _Messenger_Notify_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/messengerproto.Messenger/Notify", + FullMethod: "/messenger.Messenger/Notify", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessengerServer).Notify(ctx, req.(*NotifyRequest)) @@ -92,7 +92,7 @@ func _Messenger_Notify_Handler(srv interface{}, ctx context.Context, dec func(in // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Messenger_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "messengerproto.Messenger", + ServiceName: "messenger.Messenger", HandlerType: (*MessengerServer)(nil), Methods: []grpc.MethodDesc{ { @@ -101,5 +101,5 @@ var Messenger_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "messengerproto/messenger.proto", + Metadata: "messenger/messenger.proto", } diff --git a/api/proto/gconnproto/conn.pb.go b/proto/pb/net/conn/conn.pb.go similarity index 50% rename from api/proto/gconnproto/conn.pb.go rename to proto/pb/net/conn/conn.pb.go index 394b24ffb797..796992248679 100644 --- a/api/proto/gconnproto/conn.pb.go +++ b/proto/pb/net/conn/conn.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: gconnproto/conn.proto +// source: net/conn/conn.proto -package gconnproto +package conn import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -33,7 +33,7 @@ type ReadRequest struct { func (x *ReadRequest) Reset() { *x = ReadRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gconnproto_conn_proto_msgTypes[0] + mi := &file_net_conn_conn_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -46,7 +46,7 @@ func (x *ReadRequest) String() string { func (*ReadRequest) ProtoMessage() {} func (x *ReadRequest) ProtoReflect() protoreflect.Message { - mi := &file_gconnproto_conn_proto_msgTypes[0] + mi := &file_net_conn_conn_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -59,7 +59,7 @@ func (x *ReadRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. func (*ReadRequest) Descriptor() ([]byte, []int) { - return file_gconnproto_conn_proto_rawDescGZIP(), []int{0} + return file_net_conn_conn_proto_rawDescGZIP(), []int{0} } func (x *ReadRequest) GetLength() int32 { @@ -85,7 +85,7 @@ type ReadResponse struct { func (x *ReadResponse) Reset() { *x = ReadResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gconnproto_conn_proto_msgTypes[1] + mi := &file_net_conn_conn_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -98,7 +98,7 @@ func (x *ReadResponse) String() string { func (*ReadResponse) ProtoMessage() {} func (x *ReadResponse) ProtoReflect() protoreflect.Message { - mi := &file_gconnproto_conn_proto_msgTypes[1] + mi := &file_net_conn_conn_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -111,7 +111,7 @@ func (x *ReadResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. func (*ReadResponse) Descriptor() ([]byte, []int) { - return file_gconnproto_conn_proto_rawDescGZIP(), []int{1} + return file_net_conn_conn_proto_rawDescGZIP(), []int{1} } func (x *ReadResponse) GetRead() []byte { @@ -147,7 +147,7 @@ type WriteRequest struct { func (x *WriteRequest) Reset() { *x = WriteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gconnproto_conn_proto_msgTypes[2] + mi := &file_net_conn_conn_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -160,7 +160,7 @@ func (x *WriteRequest) String() string { func (*WriteRequest) ProtoMessage() {} func (x *WriteRequest) ProtoReflect() protoreflect.Message { - mi := &file_gconnproto_conn_proto_msgTypes[2] + mi := &file_net_conn_conn_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -173,7 +173,7 @@ func (x *WriteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. func (*WriteRequest) Descriptor() ([]byte, []int) { - return file_gconnproto_conn_proto_rawDescGZIP(), []int{2} + return file_net_conn_conn_proto_rawDescGZIP(), []int{2} } func (x *WriteRequest) GetPayload() []byte { @@ -199,7 +199,7 @@ type WriteResponse struct { func (x *WriteResponse) Reset() { *x = WriteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gconnproto_conn_proto_msgTypes[3] + mi := &file_net_conn_conn_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -212,7 +212,7 @@ func (x *WriteResponse) String() string { func (*WriteResponse) ProtoMessage() {} func (x *WriteResponse) ProtoReflect() protoreflect.Message { - mi := &file_gconnproto_conn_proto_msgTypes[3] + mi := &file_net_conn_conn_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -225,7 +225,7 @@ func (x *WriteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. func (*WriteResponse) Descriptor() ([]byte, []int) { - return file_gconnproto_conn_proto_rawDescGZIP(), []int{3} + return file_net_conn_conn_proto_rawDescGZIP(), []int{3} } func (x *WriteResponse) GetLength() int32 { @@ -261,7 +261,7 @@ type SetDeadlineRequest struct { func (x *SetDeadlineRequest) Reset() { *x = SetDeadlineRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gconnproto_conn_proto_msgTypes[4] + mi := &file_net_conn_conn_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -274,7 +274,7 @@ func (x *SetDeadlineRequest) String() string { func (*SetDeadlineRequest) ProtoMessage() {} func (x *SetDeadlineRequest) ProtoReflect() protoreflect.Message { - mi := &file_gconnproto_conn_proto_msgTypes[4] + mi := &file_net_conn_conn_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -287,7 +287,7 @@ func (x *SetDeadlineRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetDeadlineRequest.ProtoReflect.Descriptor instead. func (*SetDeadlineRequest) Descriptor() ([]byte, []int) { - return file_gconnproto_conn_proto_rawDescGZIP(), []int{4} + return file_net_conn_conn_proto_rawDescGZIP(), []int{4} } func (x *SetDeadlineRequest) GetTime() []byte { @@ -297,97 +297,96 @@ func (x *SetDeadlineRequest) GetTime() []byte { return nil } -var File_gconnproto_conn_proto protoreflect.FileDescriptor - -var file_gconnproto_conn_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x0c, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x57, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x14, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x22, 0x28, - 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x32, 0x96, 0x03, 0x0a, 0x04, 0x43, 0x6f, 0x6e, - 0x6e, 0x12, 0x39, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x17, 0x2e, 0x67, 0x63, 0x6f, 0x6e, - 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x05, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x19, 0x2e, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x43, 0x6c, - 0x6f, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, - 0x6e, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x0f, 0x53, 0x65, - 0x74, 0x52, 0x65, 0x61, 0x64, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1e, 0x2e, - 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, +var File_net_conn_conn_proto protoreflect.FileDescriptor + +var file_net_conn_conn_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x1a, + 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x0b, + 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x22, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, + 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x22, 0x57, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x12, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x74, 0x69, 0x6d, 0x65, 0x32, 0x88, 0x03, 0x0a, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x35, 0x0a, + 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x15, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6e, + 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x16, 0x2e, + 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, + 0x0a, 0x05, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, + 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1c, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, + 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x47, 0x0a, 0x0f, + 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, + 0x1c, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x63, 0x6f, 0x6e, - 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x63, 0x6f, 0x6e, 0x6e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1c, 0x2e, 0x6e, 0x65, 0x74, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, + 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, + 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x6e, 0x65, 0x74, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_gconnproto_conn_proto_rawDescOnce sync.Once - file_gconnproto_conn_proto_rawDescData = file_gconnproto_conn_proto_rawDesc + file_net_conn_conn_proto_rawDescOnce sync.Once + file_net_conn_conn_proto_rawDescData = file_net_conn_conn_proto_rawDesc ) -func file_gconnproto_conn_proto_rawDescGZIP() []byte { - file_gconnproto_conn_proto_rawDescOnce.Do(func() { - file_gconnproto_conn_proto_rawDescData = protoimpl.X.CompressGZIP(file_gconnproto_conn_proto_rawDescData) +func file_net_conn_conn_proto_rawDescGZIP() []byte { + file_net_conn_conn_proto_rawDescOnce.Do(func() { + file_net_conn_conn_proto_rawDescData = protoimpl.X.CompressGZIP(file_net_conn_conn_proto_rawDescData) }) - return file_gconnproto_conn_proto_rawDescData + return file_net_conn_conn_proto_rawDescData } -var file_gconnproto_conn_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_gconnproto_conn_proto_goTypes = []interface{}{ - (*ReadRequest)(nil), // 0: gconnproto.ReadRequest - (*ReadResponse)(nil), // 1: gconnproto.ReadResponse - (*WriteRequest)(nil), // 2: gconnproto.WriteRequest - (*WriteResponse)(nil), // 3: gconnproto.WriteResponse - (*SetDeadlineRequest)(nil), // 4: gconnproto.SetDeadlineRequest +var file_net_conn_conn_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_net_conn_conn_proto_goTypes = []interface{}{ + (*ReadRequest)(nil), // 0: net.conn.ReadRequest + (*ReadResponse)(nil), // 1: net.conn.ReadResponse + (*WriteRequest)(nil), // 2: net.conn.WriteRequest + (*WriteResponse)(nil), // 3: net.conn.WriteResponse + (*SetDeadlineRequest)(nil), // 4: net.conn.SetDeadlineRequest (*emptypb.Empty)(nil), // 5: google.protobuf.Empty } -var file_gconnproto_conn_proto_depIdxs = []int32{ - 0, // 0: gconnproto.Conn.Read:input_type -> gconnproto.ReadRequest - 2, // 1: gconnproto.Conn.Write:input_type -> gconnproto.WriteRequest - 5, // 2: gconnproto.Conn.Close:input_type -> google.protobuf.Empty - 4, // 3: gconnproto.Conn.SetDeadline:input_type -> gconnproto.SetDeadlineRequest - 4, // 4: gconnproto.Conn.SetReadDeadline:input_type -> gconnproto.SetDeadlineRequest - 4, // 5: gconnproto.Conn.SetWriteDeadline:input_type -> gconnproto.SetDeadlineRequest - 1, // 6: gconnproto.Conn.Read:output_type -> gconnproto.ReadResponse - 3, // 7: gconnproto.Conn.Write:output_type -> gconnproto.WriteResponse - 5, // 8: gconnproto.Conn.Close:output_type -> google.protobuf.Empty - 5, // 9: gconnproto.Conn.SetDeadline:output_type -> google.protobuf.Empty - 5, // 10: gconnproto.Conn.SetReadDeadline:output_type -> google.protobuf.Empty - 5, // 11: gconnproto.Conn.SetWriteDeadline:output_type -> google.protobuf.Empty +var file_net_conn_conn_proto_depIdxs = []int32{ + 0, // 0: net.conn.Conn.Read:input_type -> net.conn.ReadRequest + 2, // 1: net.conn.Conn.Write:input_type -> net.conn.WriteRequest + 5, // 2: net.conn.Conn.Close:input_type -> google.protobuf.Empty + 4, // 3: net.conn.Conn.SetDeadline:input_type -> net.conn.SetDeadlineRequest + 4, // 4: net.conn.Conn.SetReadDeadline:input_type -> net.conn.SetDeadlineRequest + 4, // 5: net.conn.Conn.SetWriteDeadline:input_type -> net.conn.SetDeadlineRequest + 1, // 6: net.conn.Conn.Read:output_type -> net.conn.ReadResponse + 3, // 7: net.conn.Conn.Write:output_type -> net.conn.WriteResponse + 5, // 8: net.conn.Conn.Close:output_type -> google.protobuf.Empty + 5, // 9: net.conn.Conn.SetDeadline:output_type -> google.protobuf.Empty + 5, // 10: net.conn.Conn.SetReadDeadline:output_type -> google.protobuf.Empty + 5, // 11: net.conn.Conn.SetWriteDeadline:output_type -> google.protobuf.Empty 6, // [6:12] is the sub-list for method output_type 0, // [0:6] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -395,13 +394,13 @@ var file_gconnproto_conn_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_gconnproto_conn_proto_init() } -func file_gconnproto_conn_proto_init() { - if File_gconnproto_conn_proto != nil { +func init() { file_net_conn_conn_proto_init() } +func file_net_conn_conn_proto_init() { + if File_net_conn_conn_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_gconnproto_conn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_net_conn_conn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReadRequest); i { case 0: return &v.state @@ -413,7 +412,7 @@ func file_gconnproto_conn_proto_init() { return nil } } - file_gconnproto_conn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_net_conn_conn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReadResponse); i { case 0: return &v.state @@ -425,7 +424,7 @@ func file_gconnproto_conn_proto_init() { return nil } } - file_gconnproto_conn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_net_conn_conn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WriteRequest); i { case 0: return &v.state @@ -437,7 +436,7 @@ func file_gconnproto_conn_proto_init() { return nil } } - file_gconnproto_conn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_net_conn_conn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WriteResponse); i { case 0: return &v.state @@ -449,7 +448,7 @@ func file_gconnproto_conn_proto_init() { return nil } } - file_gconnproto_conn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_net_conn_conn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetDeadlineRequest); i { case 0: return &v.state @@ -466,18 +465,18 @@ func file_gconnproto_conn_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gconnproto_conn_proto_rawDesc, + RawDescriptor: file_net_conn_conn_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_gconnproto_conn_proto_goTypes, - DependencyIndexes: file_gconnproto_conn_proto_depIdxs, - MessageInfos: file_gconnproto_conn_proto_msgTypes, + GoTypes: file_net_conn_conn_proto_goTypes, + DependencyIndexes: file_net_conn_conn_proto_depIdxs, + MessageInfos: file_net_conn_conn_proto_msgTypes, }.Build() - File_gconnproto_conn_proto = out.File - file_gconnproto_conn_proto_rawDesc = nil - file_gconnproto_conn_proto_goTypes = nil - file_gconnproto_conn_proto_depIdxs = nil + File_net_conn_conn_proto = out.File + file_net_conn_conn_proto_rawDesc = nil + file_net_conn_conn_proto_goTypes = nil + file_net_conn_conn_proto_depIdxs = nil } diff --git a/api/proto/gconnproto/conn_grpc.pb.go b/proto/pb/net/conn/conn_grpc.pb.go similarity index 92% rename from api/proto/gconnproto/conn_grpc.pb.go rename to proto/pb/net/conn/conn_grpc.pb.go index 3fd9bdb7c764..3239ef83e816 100644 --- a/api/proto/gconnproto/conn_grpc.pb.go +++ b/proto/pb/net/conn/conn_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gconnproto/conn.proto +// source: net/conn/conn.proto -package gconnproto +package conn import ( context "context" @@ -50,7 +50,7 @@ func NewConnClient(cc grpc.ClientConnInterface) ConnClient { func (c *connClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) { out := new(ReadResponse) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/Read", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/Read", in, out, opts...) if err != nil { return nil, err } @@ -59,7 +59,7 @@ func (c *connClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.Cal func (c *connClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { out := new(WriteResponse) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/Write", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/Write", in, out, opts...) if err != nil { return nil, err } @@ -68,7 +68,7 @@ func (c *connClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.C func (c *connClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/Close", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/Close", in, out, opts...) if err != nil { return nil, err } @@ -77,7 +77,7 @@ func (c *connClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc. func (c *connClient) SetDeadline(ctx context.Context, in *SetDeadlineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/SetDeadline", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/SetDeadline", in, out, opts...) if err != nil { return nil, err } @@ -86,7 +86,7 @@ func (c *connClient) SetDeadline(ctx context.Context, in *SetDeadlineRequest, op func (c *connClient) SetReadDeadline(ctx context.Context, in *SetDeadlineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/SetReadDeadline", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/SetReadDeadline", in, out, opts...) if err != nil { return nil, err } @@ -95,7 +95,7 @@ func (c *connClient) SetReadDeadline(ctx context.Context, in *SetDeadlineRequest func (c *connClient) SetWriteDeadline(ctx context.Context, in *SetDeadlineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/gconnproto.Conn/SetWriteDeadline", in, out, opts...) + err := c.cc.Invoke(ctx, "/net.conn.Conn/SetWriteDeadline", in, out, opts...) if err != nil { return nil, err } @@ -169,7 +169,7 @@ func _Conn_Read_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/Read", + FullMethod: "/net.conn.Conn/Read", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).Read(ctx, req.(*ReadRequest)) @@ -187,7 +187,7 @@ func _Conn_Write_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/Write", + FullMethod: "/net.conn.Conn/Write", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).Write(ctx, req.(*WriteRequest)) @@ -205,7 +205,7 @@ func _Conn_Close_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/Close", + FullMethod: "/net.conn.Conn/Close", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).Close(ctx, req.(*emptypb.Empty)) @@ -223,7 +223,7 @@ func _Conn_SetDeadline_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/SetDeadline", + FullMethod: "/net.conn.Conn/SetDeadline", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).SetDeadline(ctx, req.(*SetDeadlineRequest)) @@ -241,7 +241,7 @@ func _Conn_SetReadDeadline_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/SetReadDeadline", + FullMethod: "/net.conn.Conn/SetReadDeadline", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).SetReadDeadline(ctx, req.(*SetDeadlineRequest)) @@ -259,7 +259,7 @@ func _Conn_SetWriteDeadline_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gconnproto.Conn/SetWriteDeadline", + FullMethod: "/net.conn.Conn/SetWriteDeadline", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConnServer).SetWriteDeadline(ctx, req.(*SetDeadlineRequest)) @@ -271,7 +271,7 @@ func _Conn_SetWriteDeadline_Handler(srv interface{}, ctx context.Context, dec fu // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Conn_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gconnproto.Conn", + ServiceName: "net.conn.Conn", HandlerType: (*ConnServer)(nil), Methods: []grpc.MethodDesc{ { @@ -300,5 +300,5 @@ var Conn_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gconnproto/conn.proto", + Metadata: "net/conn/conn.proto", } diff --git a/proto/pb/plugin/plugin.pb.go b/proto/pb/plugin/plugin.pb.go new file mode 100644 index 000000000000..9c4c110eebc2 --- /dev/null +++ b/proto/pb/plugin/plugin.pb.go @@ -0,0 +1,166 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: plugin/plugin.proto + +package plugin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +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 ExitCodeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` +} + +func (x *ExitCodeResponse) Reset() { + *x = ExitCodeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_plugin_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExitCodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExitCodeResponse) ProtoMessage() {} + +func (x *ExitCodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_plugin_plugin_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExitCodeResponse.ProtoReflect.Descriptor instead. +func (*ExitCodeResponse) Descriptor() ([]byte, []int) { + return file_plugin_plugin_proto_rawDescGZIP(), []int{0} +} + +func (x *ExitCodeResponse) GetExitCode() int32 { + if x != nil { + return x.ExitCode + } + return 0 +} + +var File_plugin_plugin_proto protoreflect.FileDescriptor + +var file_plugin_plugin_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x1a, 0x1b, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, + 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x10, 0x45, 0x78, + 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x32, 0xb5, 0x01, 0x0a, 0x04, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3c, 0x0a, + 0x08, 0x45, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x18, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x43, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x53, + 0x74, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_plugin_plugin_proto_rawDescOnce sync.Once + file_plugin_plugin_proto_rawDescData = file_plugin_plugin_proto_rawDesc +) + +func file_plugin_plugin_proto_rawDescGZIP() []byte { + file_plugin_plugin_proto_rawDescOnce.Do(func() { + file_plugin_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_plugin_plugin_proto_rawDescData) + }) + return file_plugin_plugin_proto_rawDescData +} + +var file_plugin_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_plugin_plugin_proto_goTypes = []interface{}{ + (*ExitCodeResponse)(nil), // 0: plugin.ExitCodeResponse + (*emptypb.Empty)(nil), // 1: google.protobuf.Empty +} +var file_plugin_plugin_proto_depIdxs = []int32{ + 1, // 0: plugin.Node.Start:input_type -> google.protobuf.Empty + 1, // 1: plugin.Node.ExitCode:input_type -> google.protobuf.Empty + 1, // 2: plugin.Node.Stop:input_type -> google.protobuf.Empty + 1, // 3: plugin.Node.Start:output_type -> google.protobuf.Empty + 0, // 4: plugin.Node.ExitCode:output_type -> plugin.ExitCodeResponse + 1, // 5: plugin.Node.Stop:output_type -> google.protobuf.Empty + 3, // [3:6] is the sub-list for method output_type + 0, // [0:3] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_plugin_plugin_proto_init() } +func file_plugin_plugin_proto_init() { + if File_plugin_plugin_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_plugin_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExitCodeResponse); 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_plugin_plugin_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_plugin_plugin_proto_goTypes, + DependencyIndexes: file_plugin_plugin_proto_depIdxs, + MessageInfos: file_plugin_plugin_proto_msgTypes, + }.Build() + File_plugin_plugin_proto = out.File + file_plugin_plugin_proto_rawDesc = nil + file_plugin_plugin_proto_goTypes = nil + file_plugin_plugin_proto_depIdxs = nil +} diff --git a/api/proto/pluginproto/plugin_grpc.pb.go b/proto/pb/plugin/plugin_grpc.pb.go similarity index 92% rename from api/proto/pluginproto/plugin_grpc.pb.go rename to proto/pb/plugin/plugin_grpc.pb.go index e46e80c5bf3a..7056dc0dda44 100644 --- a/api/proto/pluginproto/plugin_grpc.pb.go +++ b/proto/pb/plugin/plugin_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: pluginproto/plugin.proto +// source: plugin/plugin.proto -package pluginproto +package plugin import ( context "context" @@ -38,7 +38,7 @@ func NewNodeClient(cc grpc.ClientConnInterface) NodeClient { func (c *nodeClient) Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pluginproto.Node/Start", in, out, opts...) + err := c.cc.Invoke(ctx, "/plugin.Node/Start", in, out, opts...) if err != nil { return nil, err } @@ -47,7 +47,7 @@ func (c *nodeClient) Start(ctx context.Context, in *emptypb.Empty, opts ...grpc. func (c *nodeClient) ExitCode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ExitCodeResponse, error) { out := new(ExitCodeResponse) - err := c.cc.Invoke(ctx, "/pluginproto.Node/ExitCode", in, out, opts...) + err := c.cc.Invoke(ctx, "/plugin.Node/ExitCode", in, out, opts...) if err != nil { return nil, err } @@ -56,7 +56,7 @@ func (c *nodeClient) ExitCode(ctx context.Context, in *emptypb.Empty, opts ...gr func (c *nodeClient) Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pluginproto.Node/Stop", in, out, opts...) + err := c.cc.Invoke(ctx, "/plugin.Node/Stop", in, out, opts...) if err != nil { return nil, err } @@ -109,7 +109,7 @@ func _Node_Start_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pluginproto.Node/Start", + FullMethod: "/plugin.Node/Start", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeServer).Start(ctx, req.(*emptypb.Empty)) @@ -127,7 +127,7 @@ func _Node_ExitCode_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pluginproto.Node/ExitCode", + FullMethod: "/plugin.Node/ExitCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeServer).ExitCode(ctx, req.(*emptypb.Empty)) @@ -145,7 +145,7 @@ func _Node_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pluginproto.Node/Stop", + FullMethod: "/plugin.Node/Stop", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeServer).Stop(ctx, req.(*emptypb.Empty)) @@ -157,7 +157,7 @@ func _Node_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Node_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pluginproto.Node", + ServiceName: "plugin.Node", HandlerType: (*NodeServer)(nil), Methods: []grpc.MethodDesc{ { @@ -174,5 +174,5 @@ var Node_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "pluginproto/plugin.proto", + Metadata: "plugin/plugin.proto", } diff --git a/api/proto/rpcdbproto/database.pb.go b/proto/pb/rpcdb/rpcdb.pb.go similarity index 58% rename from api/proto/rpcdbproto/database.pb.go rename to proto/pb/rpcdb/rpcdb.pb.go index 16ecb42ab75c..512b135dac02 100644 --- a/api/proto/rpcdbproto/database.pb.go +++ b/proto/pb/rpcdb/rpcdb.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: rpcdbproto/database.proto +// source: rpcdb/rpcdb.proto -package rpcdbproto +package rpcdb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -31,7 +31,7 @@ type HasRequest struct { func (x *HasRequest) Reset() { *x = HasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[0] + mi := &file_rpcdb_rpcdb_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -44,7 +44,7 @@ func (x *HasRequest) String() string { func (*HasRequest) ProtoMessage() {} func (x *HasRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[0] + mi := &file_rpcdb_rpcdb_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -57,7 +57,7 @@ func (x *HasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HasRequest.ProtoReflect.Descriptor instead. func (*HasRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{0} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{0} } func (x *HasRequest) GetKey() []byte { @@ -79,7 +79,7 @@ type HasResponse struct { func (x *HasResponse) Reset() { *x = HasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[1] + mi := &file_rpcdb_rpcdb_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -92,7 +92,7 @@ func (x *HasResponse) String() string { func (*HasResponse) ProtoMessage() {} func (x *HasResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[1] + mi := &file_rpcdb_rpcdb_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -105,7 +105,7 @@ func (x *HasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HasResponse.ProtoReflect.Descriptor instead. func (*HasResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{1} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{1} } func (x *HasResponse) GetHas() bool { @@ -133,7 +133,7 @@ type GetRequest struct { func (x *GetRequest) Reset() { *x = GetRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[2] + mi := &file_rpcdb_rpcdb_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -146,7 +146,7 @@ func (x *GetRequest) String() string { func (*GetRequest) ProtoMessage() {} func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[2] + mi := &file_rpcdb_rpcdb_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -159,7 +159,7 @@ func (x *GetRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. func (*GetRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{2} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{2} } func (x *GetRequest) GetKey() []byte { @@ -181,7 +181,7 @@ type GetResponse struct { func (x *GetResponse) Reset() { *x = GetResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[3] + mi := &file_rpcdb_rpcdb_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -194,7 +194,7 @@ func (x *GetResponse) String() string { func (*GetResponse) ProtoMessage() {} func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[3] + mi := &file_rpcdb_rpcdb_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -207,7 +207,7 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. func (*GetResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{3} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{3} } func (x *GetResponse) GetValue() []byte { @@ -236,7 +236,7 @@ type PutRequest struct { func (x *PutRequest) Reset() { *x = PutRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[4] + mi := &file_rpcdb_rpcdb_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -249,7 +249,7 @@ func (x *PutRequest) String() string { func (*PutRequest) ProtoMessage() {} func (x *PutRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[4] + mi := &file_rpcdb_rpcdb_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -262,7 +262,7 @@ func (x *PutRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutRequest.ProtoReflect.Descriptor instead. func (*PutRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{4} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{4} } func (x *PutRequest) GetKey() []byte { @@ -290,7 +290,7 @@ type PutResponse struct { func (x *PutResponse) Reset() { *x = PutResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[5] + mi := &file_rpcdb_rpcdb_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -303,7 +303,7 @@ func (x *PutResponse) String() string { func (*PutResponse) ProtoMessage() {} func (x *PutResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[5] + mi := &file_rpcdb_rpcdb_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -316,7 +316,7 @@ func (x *PutResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutResponse.ProtoReflect.Descriptor instead. func (*PutResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{5} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{5} } func (x *PutResponse) GetErr() uint32 { @@ -337,7 +337,7 @@ type DeleteRequest struct { func (x *DeleteRequest) Reset() { *x = DeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[6] + mi := &file_rpcdb_rpcdb_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -350,7 +350,7 @@ func (x *DeleteRequest) String() string { func (*DeleteRequest) ProtoMessage() {} func (x *DeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[6] + mi := &file_rpcdb_rpcdb_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -363,7 +363,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. func (*DeleteRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{6} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{6} } func (x *DeleteRequest) GetKey() []byte { @@ -384,7 +384,7 @@ type DeleteResponse struct { func (x *DeleteResponse) Reset() { *x = DeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[7] + mi := &file_rpcdb_rpcdb_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -397,7 +397,7 @@ func (x *DeleteResponse) String() string { func (*DeleteResponse) ProtoMessage() {} func (x *DeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[7] + mi := &file_rpcdb_rpcdb_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -410,7 +410,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. func (*DeleteResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{7} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{7} } func (x *DeleteResponse) GetErr() uint32 { @@ -431,7 +431,7 @@ type StatRequest struct { func (x *StatRequest) Reset() { *x = StatRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[8] + mi := &file_rpcdb_rpcdb_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -444,7 +444,7 @@ func (x *StatRequest) String() string { func (*StatRequest) ProtoMessage() {} func (x *StatRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[8] + mi := &file_rpcdb_rpcdb_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -457,7 +457,7 @@ func (x *StatRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatRequest.ProtoReflect.Descriptor instead. func (*StatRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{8} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{8} } func (x *StatRequest) GetProperty() string { @@ -479,7 +479,7 @@ type StatResponse struct { func (x *StatResponse) Reset() { *x = StatResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[9] + mi := &file_rpcdb_rpcdb_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -492,7 +492,7 @@ func (x *StatResponse) String() string { func (*StatResponse) ProtoMessage() {} func (x *StatResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[9] + mi := &file_rpcdb_rpcdb_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -505,7 +505,7 @@ func (x *StatResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatResponse.ProtoReflect.Descriptor instead. func (*StatResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{9} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{9} } func (x *StatResponse) GetStat() string { @@ -534,7 +534,7 @@ type CompactRequest struct { func (x *CompactRequest) Reset() { *x = CompactRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[10] + mi := &file_rpcdb_rpcdb_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -547,7 +547,7 @@ func (x *CompactRequest) String() string { func (*CompactRequest) ProtoMessage() {} func (x *CompactRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[10] + mi := &file_rpcdb_rpcdb_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -560,7 +560,7 @@ func (x *CompactRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CompactRequest.ProtoReflect.Descriptor instead. func (*CompactRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{10} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{10} } func (x *CompactRequest) GetStart() []byte { @@ -588,7 +588,7 @@ type CompactResponse struct { func (x *CompactResponse) Reset() { *x = CompactResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[11] + mi := &file_rpcdb_rpcdb_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -601,7 +601,7 @@ func (x *CompactResponse) String() string { func (*CompactResponse) ProtoMessage() {} func (x *CompactResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[11] + mi := &file_rpcdb_rpcdb_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -614,7 +614,7 @@ func (x *CompactResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CompactResponse.ProtoReflect.Descriptor instead. func (*CompactResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{11} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{11} } func (x *CompactResponse) GetErr() uint32 { @@ -633,7 +633,7 @@ type CloseRequest struct { func (x *CloseRequest) Reset() { *x = CloseRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[12] + mi := &file_rpcdb_rpcdb_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -646,7 +646,7 @@ func (x *CloseRequest) String() string { func (*CloseRequest) ProtoMessage() {} func (x *CloseRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[12] + mi := &file_rpcdb_rpcdb_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -659,7 +659,7 @@ func (x *CloseRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead. func (*CloseRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{12} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{12} } type CloseResponse struct { @@ -673,7 +673,7 @@ type CloseResponse struct { func (x *CloseResponse) Reset() { *x = CloseResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[13] + mi := &file_rpcdb_rpcdb_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -686,7 +686,7 @@ func (x *CloseResponse) String() string { func (*CloseResponse) ProtoMessage() {} func (x *CloseResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[13] + mi := &file_rpcdb_rpcdb_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -699,7 +699,7 @@ func (x *CloseResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CloseResponse.ProtoReflect.Descriptor instead. func (*CloseResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{13} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{13} } func (x *CloseResponse) GetErr() uint32 { @@ -723,7 +723,7 @@ type WriteBatchRequest struct { func (x *WriteBatchRequest) Reset() { *x = WriteBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[14] + mi := &file_rpcdb_rpcdb_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -736,7 +736,7 @@ func (x *WriteBatchRequest) String() string { func (*WriteBatchRequest) ProtoMessage() {} func (x *WriteBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[14] + mi := &file_rpcdb_rpcdb_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -749,7 +749,7 @@ func (x *WriteBatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteBatchRequest.ProtoReflect.Descriptor instead. func (*WriteBatchRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{14} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{14} } func (x *WriteBatchRequest) GetPuts() []*PutRequest { @@ -791,7 +791,7 @@ type WriteBatchResponse struct { func (x *WriteBatchResponse) Reset() { *x = WriteBatchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[15] + mi := &file_rpcdb_rpcdb_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -804,7 +804,7 @@ func (x *WriteBatchResponse) String() string { func (*WriteBatchResponse) ProtoMessage() {} func (x *WriteBatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[15] + mi := &file_rpcdb_rpcdb_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -817,7 +817,7 @@ func (x *WriteBatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteBatchResponse.ProtoReflect.Descriptor instead. func (*WriteBatchResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{15} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{15} } func (x *WriteBatchResponse) GetErr() uint32 { @@ -836,7 +836,7 @@ type NewIteratorRequest struct { func (x *NewIteratorRequest) Reset() { *x = NewIteratorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[16] + mi := &file_rpcdb_rpcdb_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -849,7 +849,7 @@ func (x *NewIteratorRequest) String() string { func (*NewIteratorRequest) ProtoMessage() {} func (x *NewIteratorRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[16] + mi := &file_rpcdb_rpcdb_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -862,7 +862,7 @@ func (x *NewIteratorRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NewIteratorRequest.ProtoReflect.Descriptor instead. func (*NewIteratorRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{16} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{16} } type NewIteratorWithStartAndPrefixRequest struct { @@ -877,7 +877,7 @@ type NewIteratorWithStartAndPrefixRequest struct { func (x *NewIteratorWithStartAndPrefixRequest) Reset() { *x = NewIteratorWithStartAndPrefixRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[17] + mi := &file_rpcdb_rpcdb_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -890,7 +890,7 @@ func (x *NewIteratorWithStartAndPrefixRequest) String() string { func (*NewIteratorWithStartAndPrefixRequest) ProtoMessage() {} func (x *NewIteratorWithStartAndPrefixRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[17] + mi := &file_rpcdb_rpcdb_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -903,7 +903,7 @@ func (x *NewIteratorWithStartAndPrefixRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use NewIteratorWithStartAndPrefixRequest.ProtoReflect.Descriptor instead. func (*NewIteratorWithStartAndPrefixRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{17} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{17} } func (x *NewIteratorWithStartAndPrefixRequest) GetStart() []byte { @@ -931,7 +931,7 @@ type NewIteratorWithStartAndPrefixResponse struct { func (x *NewIteratorWithStartAndPrefixResponse) Reset() { *x = NewIteratorWithStartAndPrefixResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[18] + mi := &file_rpcdb_rpcdb_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -944,7 +944,7 @@ func (x *NewIteratorWithStartAndPrefixResponse) String() string { func (*NewIteratorWithStartAndPrefixResponse) ProtoMessage() {} func (x *NewIteratorWithStartAndPrefixResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[18] + mi := &file_rpcdb_rpcdb_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -957,7 +957,7 @@ func (x *NewIteratorWithStartAndPrefixResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use NewIteratorWithStartAndPrefixResponse.ProtoReflect.Descriptor instead. func (*NewIteratorWithStartAndPrefixResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{18} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{18} } func (x *NewIteratorWithStartAndPrefixResponse) GetId() uint64 { @@ -978,7 +978,7 @@ type IteratorNextRequest struct { func (x *IteratorNextRequest) Reset() { *x = IteratorNextRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[19] + mi := &file_rpcdb_rpcdb_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -991,7 +991,7 @@ func (x *IteratorNextRequest) String() string { func (*IteratorNextRequest) ProtoMessage() {} func (x *IteratorNextRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[19] + mi := &file_rpcdb_rpcdb_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1004,7 +1004,7 @@ func (x *IteratorNextRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorNextRequest.ProtoReflect.Descriptor instead. func (*IteratorNextRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{19} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{19} } func (x *IteratorNextRequest) GetId() uint64 { @@ -1025,7 +1025,7 @@ type IteratorNextResponse struct { func (x *IteratorNextResponse) Reset() { *x = IteratorNextResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[20] + mi := &file_rpcdb_rpcdb_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1038,7 +1038,7 @@ func (x *IteratorNextResponse) String() string { func (*IteratorNextResponse) ProtoMessage() {} func (x *IteratorNextResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[20] + mi := &file_rpcdb_rpcdb_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1051,7 +1051,7 @@ func (x *IteratorNextResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorNextResponse.ProtoReflect.Descriptor instead. func (*IteratorNextResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{20} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{20} } func (x *IteratorNextResponse) GetData() []*PutRequest { @@ -1072,7 +1072,7 @@ type IteratorErrorRequest struct { func (x *IteratorErrorRequest) Reset() { *x = IteratorErrorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[21] + mi := &file_rpcdb_rpcdb_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1085,7 +1085,7 @@ func (x *IteratorErrorRequest) String() string { func (*IteratorErrorRequest) ProtoMessage() {} func (x *IteratorErrorRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[21] + mi := &file_rpcdb_rpcdb_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1098,7 +1098,7 @@ func (x *IteratorErrorRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorErrorRequest.ProtoReflect.Descriptor instead. func (*IteratorErrorRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{21} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{21} } func (x *IteratorErrorRequest) GetId() uint64 { @@ -1119,7 +1119,7 @@ type IteratorErrorResponse struct { func (x *IteratorErrorResponse) Reset() { *x = IteratorErrorResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[22] + mi := &file_rpcdb_rpcdb_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1132,7 +1132,7 @@ func (x *IteratorErrorResponse) String() string { func (*IteratorErrorResponse) ProtoMessage() {} func (x *IteratorErrorResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[22] + mi := &file_rpcdb_rpcdb_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1145,7 +1145,7 @@ func (x *IteratorErrorResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorErrorResponse.ProtoReflect.Descriptor instead. func (*IteratorErrorResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{22} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{22} } func (x *IteratorErrorResponse) GetErr() uint32 { @@ -1166,7 +1166,7 @@ type IteratorReleaseRequest struct { func (x *IteratorReleaseRequest) Reset() { *x = IteratorReleaseRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[23] + mi := &file_rpcdb_rpcdb_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1179,7 +1179,7 @@ func (x *IteratorReleaseRequest) String() string { func (*IteratorReleaseRequest) ProtoMessage() {} func (x *IteratorReleaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[23] + mi := &file_rpcdb_rpcdb_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1192,7 +1192,7 @@ func (x *IteratorReleaseRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorReleaseRequest.ProtoReflect.Descriptor instead. func (*IteratorReleaseRequest) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{23} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{23} } func (x *IteratorReleaseRequest) GetId() uint64 { @@ -1213,7 +1213,7 @@ type IteratorReleaseResponse struct { func (x *IteratorReleaseResponse) Reset() { *x = IteratorReleaseResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpcdbproto_database_proto_msgTypes[24] + mi := &file_rpcdb_rpcdb_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1226,7 +1226,7 @@ func (x *IteratorReleaseResponse) String() string { func (*IteratorReleaseResponse) ProtoMessage() {} func (x *IteratorReleaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpcdbproto_database_proto_msgTypes[24] + mi := &file_rpcdb_rpcdb_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1239,7 +1239,7 @@ func (x *IteratorReleaseResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use IteratorReleaseResponse.ProtoReflect.Descriptor instead. func (*IteratorReleaseResponse) Descriptor() ([]byte, []int) { - return file_rpcdbproto_database_proto_rawDescGZIP(), []int{24} + return file_rpcdb_rpcdb_proto_rawDescGZIP(), []int{24} } func (x *IteratorReleaseResponse) GetErr() uint32 { @@ -1249,219 +1249,209 @@ func (x *IteratorReleaseResponse) GetErr() uint32 { return 0 } -var File_rpcdbproto_database_proto protoreflect.FileDescriptor - -var file_rpcdbproto_database_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x72, 0x70, 0x63, - 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x31, 0x0a, 0x0b, 0x48, 0x61, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x35, 0x0a, 0x0b, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, - 0x72, 0x22, 0x34, 0x0a, 0x0a, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 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, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x75, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x21, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x22, 0x0a, 0x0e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, - 0x29, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x34, 0x0a, 0x0c, 0x53, 0x74, - 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, - 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, - 0x22, 0x3c, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23, - 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, - 0x65, 0x72, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x21, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, +var File_rpcdb_rpcdb_proto protoreflect.FileDescriptor + +var file_rpcdb_rpcdb_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x72, 0x70, 0x63, 0x64, 0x62, 0x22, 0x1e, 0x0a, 0x0a, 0x48, 0x61, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x31, 0x0a, 0x0b, 0x48, 0x61, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, + 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x1e, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x35, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x03, 0x65, 0x72, 0x72, 0x22, 0x34, 0x0a, 0x0a, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 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, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x75, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x21, 0x0a, 0x0d, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x22, + 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, + 0x72, 0x72, 0x22, 0x29, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x34, 0x0a, + 0x0c, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x61, + 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, + 0x65, 0x72, 0x72, 0x22, 0x3c, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x22, 0x23, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x11, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, - 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x70, 0x63, - 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x04, 0x70, 0x75, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x64, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, - 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x26, 0x0a, 0x12, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, - 0x65, 0x72, 0x72, 0x22, 0x14, 0x0a, 0x12, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x24, 0x4e, 0x65, 0x77, - 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, - 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, - 0x37, 0x0a, 0x25, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, - 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x25, 0x0a, 0x13, 0x49, 0x74, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x21, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x98, 0x01, 0x0a, 0x11, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x25, 0x0a, 0x04, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x04, 0x70, 0x75, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, + 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, + 0x6e, 0x75, 0x65, 0x73, 0x22, 0x26, 0x0a, 0x12, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x14, 0x0a, 0x12, + 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x54, 0x0a, 0x24, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x37, 0x0a, 0x25, 0x4e, 0x65, 0x77, 0x49, + 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x25, 0x0a, 0x13, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3d, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x26, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x42, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x26, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x29, 0x0a, 0x15, 0x49, - 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x2b, 0x0a, 0x17, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, - 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, - 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x32, 0x89, 0x07, - 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x48, 0x61, - 0x73, 0x12, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, - 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x72, 0x70, 0x63, 0x64, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x64, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x17, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x50, 0x75, - 0x74, 0x12, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, - 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x72, 0x70, 0x63, 0x64, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x72, - 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x17, 0x2e, 0x72, 0x70, - 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, - 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x2e, 0x72, 0x70, 0x63, 0x64, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x70, - 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4b, 0x0a, 0x0a, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1d, - 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, - 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, - 0x0a, 0x1d, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, - 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, - 0x30, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x65, 0x77, - 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, - 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x4e, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0d, 0x49, 0x74, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x20, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x70, 0x63, - 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, - 0x0f, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x12, 0x22, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x74, + 0x29, 0x0a, 0x15, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x28, 0x0a, 0x16, 0x49, 0x74, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x17, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, + 0x72, 0x32, 0x90, 0x06, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x2c, + 0x0a, 0x03, 0x48, 0x61, 0x73, 0x12, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x48, 0x61, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, + 0x2e, 0x48, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, + 0x47, 0x65, 0x74, 0x12, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x50, 0x75, + 0x74, 0x12, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x50, 0x75, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x12, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x12, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x72, 0x70, + 0x63, 0x64, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x12, 0x15, 0x2e, 0x72, 0x70, + 0x63, 0x64, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x43, 0x6c, + 0x6f, 0x73, 0x65, 0x12, 0x13, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, + 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, + 0x0a, 0x0a, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x18, 0x2e, 0x72, + 0x70, 0x63, 0x64, 0x62, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7a, 0x0a, 0x1d, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, + 0x69, 0x78, 0x12, 0x2b, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x4e, 0x65, 0x77, 0x49, 0x74, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, + 0x6e, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x50, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, + 0x0c, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x2e, + 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, + 0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x70, 0x63, 0x64, + 0x62, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, + 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x49, 0x74, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, - 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x64, 0x62, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x72, 0x70, 0x63, 0x64, 0x62, 0x2e, 0x49, 0x74, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, + 0x2f, 0x72, 0x70, 0x63, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_rpcdbproto_database_proto_rawDescOnce sync.Once - file_rpcdbproto_database_proto_rawDescData = file_rpcdbproto_database_proto_rawDesc + file_rpcdb_rpcdb_proto_rawDescOnce sync.Once + file_rpcdb_rpcdb_proto_rawDescData = file_rpcdb_rpcdb_proto_rawDesc ) -func file_rpcdbproto_database_proto_rawDescGZIP() []byte { - file_rpcdbproto_database_proto_rawDescOnce.Do(func() { - file_rpcdbproto_database_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpcdbproto_database_proto_rawDescData) +func file_rpcdb_rpcdb_proto_rawDescGZIP() []byte { + file_rpcdb_rpcdb_proto_rawDescOnce.Do(func() { + file_rpcdb_rpcdb_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpcdb_rpcdb_proto_rawDescData) }) - return file_rpcdbproto_database_proto_rawDescData -} - -var file_rpcdbproto_database_proto_msgTypes = make([]protoimpl.MessageInfo, 25) -var file_rpcdbproto_database_proto_goTypes = []interface{}{ - (*HasRequest)(nil), // 0: rpcdbproto.HasRequest - (*HasResponse)(nil), // 1: rpcdbproto.HasResponse - (*GetRequest)(nil), // 2: rpcdbproto.GetRequest - (*GetResponse)(nil), // 3: rpcdbproto.GetResponse - (*PutRequest)(nil), // 4: rpcdbproto.PutRequest - (*PutResponse)(nil), // 5: rpcdbproto.PutResponse - (*DeleteRequest)(nil), // 6: rpcdbproto.DeleteRequest - (*DeleteResponse)(nil), // 7: rpcdbproto.DeleteResponse - (*StatRequest)(nil), // 8: rpcdbproto.StatRequest - (*StatResponse)(nil), // 9: rpcdbproto.StatResponse - (*CompactRequest)(nil), // 10: rpcdbproto.CompactRequest - (*CompactResponse)(nil), // 11: rpcdbproto.CompactResponse - (*CloseRequest)(nil), // 12: rpcdbproto.CloseRequest - (*CloseResponse)(nil), // 13: rpcdbproto.CloseResponse - (*WriteBatchRequest)(nil), // 14: rpcdbproto.WriteBatchRequest - (*WriteBatchResponse)(nil), // 15: rpcdbproto.WriteBatchResponse - (*NewIteratorRequest)(nil), // 16: rpcdbproto.NewIteratorRequest - (*NewIteratorWithStartAndPrefixRequest)(nil), // 17: rpcdbproto.NewIteratorWithStartAndPrefixRequest - (*NewIteratorWithStartAndPrefixResponse)(nil), // 18: rpcdbproto.NewIteratorWithStartAndPrefixResponse - (*IteratorNextRequest)(nil), // 19: rpcdbproto.IteratorNextRequest - (*IteratorNextResponse)(nil), // 20: rpcdbproto.IteratorNextResponse - (*IteratorErrorRequest)(nil), // 21: rpcdbproto.IteratorErrorRequest - (*IteratorErrorResponse)(nil), // 22: rpcdbproto.IteratorErrorResponse - (*IteratorReleaseRequest)(nil), // 23: rpcdbproto.IteratorReleaseRequest - (*IteratorReleaseResponse)(nil), // 24: rpcdbproto.IteratorReleaseResponse -} -var file_rpcdbproto_database_proto_depIdxs = []int32{ - 4, // 0: rpcdbproto.WriteBatchRequest.puts:type_name -> rpcdbproto.PutRequest - 6, // 1: rpcdbproto.WriteBatchRequest.deletes:type_name -> rpcdbproto.DeleteRequest - 4, // 2: rpcdbproto.IteratorNextResponse.data:type_name -> rpcdbproto.PutRequest - 0, // 3: rpcdbproto.Database.Has:input_type -> rpcdbproto.HasRequest - 2, // 4: rpcdbproto.Database.Get:input_type -> rpcdbproto.GetRequest - 4, // 5: rpcdbproto.Database.Put:input_type -> rpcdbproto.PutRequest - 6, // 6: rpcdbproto.Database.Delete:input_type -> rpcdbproto.DeleteRequest - 8, // 7: rpcdbproto.Database.Stat:input_type -> rpcdbproto.StatRequest - 10, // 8: rpcdbproto.Database.Compact:input_type -> rpcdbproto.CompactRequest - 12, // 9: rpcdbproto.Database.Close:input_type -> rpcdbproto.CloseRequest - 14, // 10: rpcdbproto.Database.WriteBatch:input_type -> rpcdbproto.WriteBatchRequest - 17, // 11: rpcdbproto.Database.NewIteratorWithStartAndPrefix:input_type -> rpcdbproto.NewIteratorWithStartAndPrefixRequest - 19, // 12: rpcdbproto.Database.IteratorNext:input_type -> rpcdbproto.IteratorNextRequest - 21, // 13: rpcdbproto.Database.IteratorError:input_type -> rpcdbproto.IteratorErrorRequest - 23, // 14: rpcdbproto.Database.IteratorRelease:input_type -> rpcdbproto.IteratorReleaseRequest - 1, // 15: rpcdbproto.Database.Has:output_type -> rpcdbproto.HasResponse - 3, // 16: rpcdbproto.Database.Get:output_type -> rpcdbproto.GetResponse - 5, // 17: rpcdbproto.Database.Put:output_type -> rpcdbproto.PutResponse - 7, // 18: rpcdbproto.Database.Delete:output_type -> rpcdbproto.DeleteResponse - 9, // 19: rpcdbproto.Database.Stat:output_type -> rpcdbproto.StatResponse - 11, // 20: rpcdbproto.Database.Compact:output_type -> rpcdbproto.CompactResponse - 13, // 21: rpcdbproto.Database.Close:output_type -> rpcdbproto.CloseResponse - 15, // 22: rpcdbproto.Database.WriteBatch:output_type -> rpcdbproto.WriteBatchResponse - 18, // 23: rpcdbproto.Database.NewIteratorWithStartAndPrefix:output_type -> rpcdbproto.NewIteratorWithStartAndPrefixResponse - 20, // 24: rpcdbproto.Database.IteratorNext:output_type -> rpcdbproto.IteratorNextResponse - 22, // 25: rpcdbproto.Database.IteratorError:output_type -> rpcdbproto.IteratorErrorResponse - 24, // 26: rpcdbproto.Database.IteratorRelease:output_type -> rpcdbproto.IteratorReleaseResponse + return file_rpcdb_rpcdb_proto_rawDescData +} + +var file_rpcdb_rpcdb_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_rpcdb_rpcdb_proto_goTypes = []interface{}{ + (*HasRequest)(nil), // 0: rpcdb.HasRequest + (*HasResponse)(nil), // 1: rpcdb.HasResponse + (*GetRequest)(nil), // 2: rpcdb.GetRequest + (*GetResponse)(nil), // 3: rpcdb.GetResponse + (*PutRequest)(nil), // 4: rpcdb.PutRequest + (*PutResponse)(nil), // 5: rpcdb.PutResponse + (*DeleteRequest)(nil), // 6: rpcdb.DeleteRequest + (*DeleteResponse)(nil), // 7: rpcdb.DeleteResponse + (*StatRequest)(nil), // 8: rpcdb.StatRequest + (*StatResponse)(nil), // 9: rpcdb.StatResponse + (*CompactRequest)(nil), // 10: rpcdb.CompactRequest + (*CompactResponse)(nil), // 11: rpcdb.CompactResponse + (*CloseRequest)(nil), // 12: rpcdb.CloseRequest + (*CloseResponse)(nil), // 13: rpcdb.CloseResponse + (*WriteBatchRequest)(nil), // 14: rpcdb.WriteBatchRequest + (*WriteBatchResponse)(nil), // 15: rpcdb.WriteBatchResponse + (*NewIteratorRequest)(nil), // 16: rpcdb.NewIteratorRequest + (*NewIteratorWithStartAndPrefixRequest)(nil), // 17: rpcdb.NewIteratorWithStartAndPrefixRequest + (*NewIteratorWithStartAndPrefixResponse)(nil), // 18: rpcdb.NewIteratorWithStartAndPrefixResponse + (*IteratorNextRequest)(nil), // 19: rpcdb.IteratorNextRequest + (*IteratorNextResponse)(nil), // 20: rpcdb.IteratorNextResponse + (*IteratorErrorRequest)(nil), // 21: rpcdb.IteratorErrorRequest + (*IteratorErrorResponse)(nil), // 22: rpcdb.IteratorErrorResponse + (*IteratorReleaseRequest)(nil), // 23: rpcdb.IteratorReleaseRequest + (*IteratorReleaseResponse)(nil), // 24: rpcdb.IteratorReleaseResponse +} +var file_rpcdb_rpcdb_proto_depIdxs = []int32{ + 4, // 0: rpcdb.WriteBatchRequest.puts:type_name -> rpcdb.PutRequest + 6, // 1: rpcdb.WriteBatchRequest.deletes:type_name -> rpcdb.DeleteRequest + 4, // 2: rpcdb.IteratorNextResponse.data:type_name -> rpcdb.PutRequest + 0, // 3: rpcdb.Database.Has:input_type -> rpcdb.HasRequest + 2, // 4: rpcdb.Database.Get:input_type -> rpcdb.GetRequest + 4, // 5: rpcdb.Database.Put:input_type -> rpcdb.PutRequest + 6, // 6: rpcdb.Database.Delete:input_type -> rpcdb.DeleteRequest + 8, // 7: rpcdb.Database.Stat:input_type -> rpcdb.StatRequest + 10, // 8: rpcdb.Database.Compact:input_type -> rpcdb.CompactRequest + 12, // 9: rpcdb.Database.Close:input_type -> rpcdb.CloseRequest + 14, // 10: rpcdb.Database.WriteBatch:input_type -> rpcdb.WriteBatchRequest + 17, // 11: rpcdb.Database.NewIteratorWithStartAndPrefix:input_type -> rpcdb.NewIteratorWithStartAndPrefixRequest + 19, // 12: rpcdb.Database.IteratorNext:input_type -> rpcdb.IteratorNextRequest + 21, // 13: rpcdb.Database.IteratorError:input_type -> rpcdb.IteratorErrorRequest + 23, // 14: rpcdb.Database.IteratorRelease:input_type -> rpcdb.IteratorReleaseRequest + 1, // 15: rpcdb.Database.Has:output_type -> rpcdb.HasResponse + 3, // 16: rpcdb.Database.Get:output_type -> rpcdb.GetResponse + 5, // 17: rpcdb.Database.Put:output_type -> rpcdb.PutResponse + 7, // 18: rpcdb.Database.Delete:output_type -> rpcdb.DeleteResponse + 9, // 19: rpcdb.Database.Stat:output_type -> rpcdb.StatResponse + 11, // 20: rpcdb.Database.Compact:output_type -> rpcdb.CompactResponse + 13, // 21: rpcdb.Database.Close:output_type -> rpcdb.CloseResponse + 15, // 22: rpcdb.Database.WriteBatch:output_type -> rpcdb.WriteBatchResponse + 18, // 23: rpcdb.Database.NewIteratorWithStartAndPrefix:output_type -> rpcdb.NewIteratorWithStartAndPrefixResponse + 20, // 24: rpcdb.Database.IteratorNext:output_type -> rpcdb.IteratorNextResponse + 22, // 25: rpcdb.Database.IteratorError:output_type -> rpcdb.IteratorErrorResponse + 24, // 26: rpcdb.Database.IteratorRelease:output_type -> rpcdb.IteratorReleaseResponse 15, // [15:27] is the sub-list for method output_type 3, // [3:15] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -1469,13 +1459,13 @@ var file_rpcdbproto_database_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_rpcdbproto_database_proto_init() } -func file_rpcdbproto_database_proto_init() { - if File_rpcdbproto_database_proto != nil { +func init() { file_rpcdb_rpcdb_proto_init() } +func file_rpcdb_rpcdb_proto_init() { + if File_rpcdb_rpcdb_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_rpcdbproto_database_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HasRequest); i { case 0: return &v.state @@ -1487,7 +1477,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HasResponse); i { case 0: return &v.state @@ -1499,7 +1489,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRequest); i { case 0: return &v.state @@ -1511,7 +1501,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetResponse); i { case 0: return &v.state @@ -1523,7 +1513,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PutRequest); i { case 0: return &v.state @@ -1535,7 +1525,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PutResponse); i { case 0: return &v.state @@ -1547,7 +1537,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteRequest); i { case 0: return &v.state @@ -1559,7 +1549,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteResponse); i { case 0: return &v.state @@ -1571,7 +1561,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatRequest); i { case 0: return &v.state @@ -1583,7 +1573,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatResponse); i { case 0: return &v.state @@ -1595,7 +1585,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CompactRequest); i { case 0: return &v.state @@ -1607,7 +1597,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CompactResponse); i { case 0: return &v.state @@ -1619,7 +1609,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CloseRequest); i { case 0: return &v.state @@ -1631,7 +1621,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CloseResponse); i { case 0: return &v.state @@ -1643,7 +1633,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WriteBatchRequest); i { case 0: return &v.state @@ -1655,7 +1645,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WriteBatchResponse); i { case 0: return &v.state @@ -1667,7 +1657,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NewIteratorRequest); i { case 0: return &v.state @@ -1679,7 +1669,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NewIteratorWithStartAndPrefixRequest); i { case 0: return &v.state @@ -1691,7 +1681,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NewIteratorWithStartAndPrefixResponse); i { case 0: return &v.state @@ -1703,7 +1693,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorNextRequest); i { case 0: return &v.state @@ -1715,7 +1705,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorNextResponse); i { case 0: return &v.state @@ -1727,7 +1717,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorErrorRequest); i { case 0: return &v.state @@ -1739,7 +1729,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorErrorResponse); i { case 0: return &v.state @@ -1751,7 +1741,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorReleaseRequest); i { case 0: return &v.state @@ -1763,7 +1753,7 @@ func file_rpcdbproto_database_proto_init() { return nil } } - file_rpcdbproto_database_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_rpcdb_rpcdb_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IteratorReleaseResponse); i { case 0: return &v.state @@ -1780,18 +1770,18 @@ func file_rpcdbproto_database_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rpcdbproto_database_proto_rawDesc, + RawDescriptor: file_rpcdb_rpcdb_proto_rawDesc, NumEnums: 0, NumMessages: 25, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_rpcdbproto_database_proto_goTypes, - DependencyIndexes: file_rpcdbproto_database_proto_depIdxs, - MessageInfos: file_rpcdbproto_database_proto_msgTypes, + GoTypes: file_rpcdb_rpcdb_proto_goTypes, + DependencyIndexes: file_rpcdb_rpcdb_proto_depIdxs, + MessageInfos: file_rpcdb_rpcdb_proto_msgTypes, }.Build() - File_rpcdbproto_database_proto = out.File - file_rpcdbproto_database_proto_rawDesc = nil - file_rpcdbproto_database_proto_goTypes = nil - file_rpcdbproto_database_proto_depIdxs = nil + File_rpcdb_rpcdb_proto = out.File + file_rpcdb_rpcdb_proto_rawDesc = nil + file_rpcdb_rpcdb_proto_goTypes = nil + file_rpcdb_rpcdb_proto_depIdxs = nil } diff --git a/api/proto/rpcdbproto/database_grpc.pb.go b/proto/pb/rpcdb/rpcdb_grpc.pb.go similarity index 91% rename from api/proto/rpcdbproto/database_grpc.pb.go rename to proto/pb/rpcdb/rpcdb_grpc.pb.go index cc7050778280..6b1cf30fa9c9 100644 --- a/api/proto/rpcdbproto/database_grpc.pb.go +++ b/proto/pb/rpcdb/rpcdb_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: rpcdbproto/database.proto +// source: rpcdb/rpcdb.proto -package rpcdbproto +package rpcdb import ( context "context" @@ -46,7 +46,7 @@ func NewDatabaseClient(cc grpc.ClientConnInterface) DatabaseClient { func (c *databaseClient) Has(ctx context.Context, in *HasRequest, opts ...grpc.CallOption) (*HasResponse, error) { out := new(HasResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Has", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Has", in, out, opts...) if err != nil { return nil, err } @@ -55,7 +55,7 @@ func (c *databaseClient) Has(ctx context.Context, in *HasRequest, opts ...grpc.C func (c *databaseClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Get", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Get", in, out, opts...) if err != nil { return nil, err } @@ -64,7 +64,7 @@ func (c *databaseClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.C func (c *databaseClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { out := new(PutResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Put", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Put", in, out, opts...) if err != nil { return nil, err } @@ -73,7 +73,7 @@ func (c *databaseClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.C func (c *databaseClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Delete", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Delete", in, out, opts...) if err != nil { return nil, err } @@ -82,7 +82,7 @@ func (c *databaseClient) Delete(ctx context.Context, in *DeleteRequest, opts ... func (c *databaseClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { out := new(StatResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Stat", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Stat", in, out, opts...) if err != nil { return nil, err } @@ -91,7 +91,7 @@ func (c *databaseClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc func (c *databaseClient) Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error) { out := new(CompactResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Compact", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Compact", in, out, opts...) if err != nil { return nil, err } @@ -100,7 +100,7 @@ func (c *databaseClient) Compact(ctx context.Context, in *CompactRequest, opts . func (c *databaseClient) Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error) { out := new(CloseResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/Close", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/Close", in, out, opts...) if err != nil { return nil, err } @@ -109,7 +109,7 @@ func (c *databaseClient) Close(ctx context.Context, in *CloseRequest, opts ...gr func (c *databaseClient) WriteBatch(ctx context.Context, in *WriteBatchRequest, opts ...grpc.CallOption) (*WriteBatchResponse, error) { out := new(WriteBatchResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/WriteBatch", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/WriteBatch", in, out, opts...) if err != nil { return nil, err } @@ -118,7 +118,7 @@ func (c *databaseClient) WriteBatch(ctx context.Context, in *WriteBatchRequest, func (c *databaseClient) NewIteratorWithStartAndPrefix(ctx context.Context, in *NewIteratorWithStartAndPrefixRequest, opts ...grpc.CallOption) (*NewIteratorWithStartAndPrefixResponse, error) { out := new(NewIteratorWithStartAndPrefixResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/NewIteratorWithStartAndPrefix", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/NewIteratorWithStartAndPrefix", in, out, opts...) if err != nil { return nil, err } @@ -127,7 +127,7 @@ func (c *databaseClient) NewIteratorWithStartAndPrefix(ctx context.Context, in * func (c *databaseClient) IteratorNext(ctx context.Context, in *IteratorNextRequest, opts ...grpc.CallOption) (*IteratorNextResponse, error) { out := new(IteratorNextResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/IteratorNext", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/IteratorNext", in, out, opts...) if err != nil { return nil, err } @@ -136,7 +136,7 @@ func (c *databaseClient) IteratorNext(ctx context.Context, in *IteratorNextReque func (c *databaseClient) IteratorError(ctx context.Context, in *IteratorErrorRequest, opts ...grpc.CallOption) (*IteratorErrorResponse, error) { out := new(IteratorErrorResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/IteratorError", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/IteratorError", in, out, opts...) if err != nil { return nil, err } @@ -145,7 +145,7 @@ func (c *databaseClient) IteratorError(ctx context.Context, in *IteratorErrorReq func (c *databaseClient) IteratorRelease(ctx context.Context, in *IteratorReleaseRequest, opts ...grpc.CallOption) (*IteratorReleaseResponse, error) { out := new(IteratorReleaseResponse) - err := c.cc.Invoke(ctx, "/rpcdbproto.Database/IteratorRelease", in, out, opts...) + err := c.cc.Invoke(ctx, "/rpcdb.Database/IteratorRelease", in, out, opts...) if err != nil { return nil, err } @@ -234,7 +234,7 @@ func _Database_Has_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Has", + FullMethod: "/rpcdb.Database/Has", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Has(ctx, req.(*HasRequest)) @@ -252,7 +252,7 @@ func _Database_Get_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Get", + FullMethod: "/rpcdb.Database/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Get(ctx, req.(*GetRequest)) @@ -270,7 +270,7 @@ func _Database_Put_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Put", + FullMethod: "/rpcdb.Database/Put", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Put(ctx, req.(*PutRequest)) @@ -288,7 +288,7 @@ func _Database_Delete_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Delete", + FullMethod: "/rpcdb.Database/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Delete(ctx, req.(*DeleteRequest)) @@ -306,7 +306,7 @@ func _Database_Stat_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Stat", + FullMethod: "/rpcdb.Database/Stat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Stat(ctx, req.(*StatRequest)) @@ -324,7 +324,7 @@ func _Database_Compact_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Compact", + FullMethod: "/rpcdb.Database/Compact", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Compact(ctx, req.(*CompactRequest)) @@ -342,7 +342,7 @@ func _Database_Close_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/Close", + FullMethod: "/rpcdb.Database/Close", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Close(ctx, req.(*CloseRequest)) @@ -360,7 +360,7 @@ func _Database_WriteBatch_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/WriteBatch", + FullMethod: "/rpcdb.Database/WriteBatch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).WriteBatch(ctx, req.(*WriteBatchRequest)) @@ -378,7 +378,7 @@ func _Database_NewIteratorWithStartAndPrefix_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/NewIteratorWithStartAndPrefix", + FullMethod: "/rpcdb.Database/NewIteratorWithStartAndPrefix", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).NewIteratorWithStartAndPrefix(ctx, req.(*NewIteratorWithStartAndPrefixRequest)) @@ -396,7 +396,7 @@ func _Database_IteratorNext_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/IteratorNext", + FullMethod: "/rpcdb.Database/IteratorNext", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).IteratorNext(ctx, req.(*IteratorNextRequest)) @@ -414,7 +414,7 @@ func _Database_IteratorError_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/IteratorError", + FullMethod: "/rpcdb.Database/IteratorError", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).IteratorError(ctx, req.(*IteratorErrorRequest)) @@ -432,7 +432,7 @@ func _Database_IteratorRelease_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcdbproto.Database/IteratorRelease", + FullMethod: "/rpcdb.Database/IteratorRelease", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).IteratorRelease(ctx, req.(*IteratorReleaseRequest)) @@ -444,7 +444,7 @@ func _Database_IteratorRelease_Handler(srv interface{}, ctx context.Context, dec // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Database_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "rpcdbproto.Database", + ServiceName: "rpcdb.Database", HandlerType: (*DatabaseServer)(nil), Methods: []grpc.MethodDesc{ { @@ -497,5 +497,5 @@ var Database_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "rpcdbproto/database.proto", + Metadata: "rpcdb/rpcdb.proto", } diff --git a/api/proto/gsharedmemoryproto/sharedmemory.pb.go b/proto/pb/sharedmemory/sharedmemory.pb.go similarity index 54% rename from api/proto/gsharedmemoryproto/sharedmemory.pb.go rename to proto/pb/sharedmemory/sharedmemory.pb.go index 05411b50de31..e199a1e274c0 100644 --- a/api/proto/gsharedmemoryproto/sharedmemory.pb.go +++ b/proto/pb/sharedmemory/sharedmemory.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: gsharedmemoryproto/sharedmemory.proto +// source: sharedmemory/sharedmemory.proto -package gsharedmemoryproto +package sharedmemory import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -32,7 +32,7 @@ type BatchPut struct { func (x *BatchPut) Reset() { *x = BatchPut{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[0] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -45,7 +45,7 @@ func (x *BatchPut) String() string { func (*BatchPut) ProtoMessage() {} func (x *BatchPut) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[0] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58,7 +58,7 @@ func (x *BatchPut) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchPut.ProtoReflect.Descriptor instead. func (*BatchPut) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{0} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{0} } func (x *BatchPut) GetKey() []byte { @@ -86,7 +86,7 @@ type BatchDelete struct { func (x *BatchDelete) Reset() { *x = BatchDelete{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[1] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -99,7 +99,7 @@ func (x *BatchDelete) String() string { func (*BatchDelete) ProtoMessage() {} func (x *BatchDelete) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[1] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -112,7 +112,7 @@ func (x *BatchDelete) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchDelete.ProtoReflect.Descriptor instead. func (*BatchDelete) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{1} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{1} } func (x *BatchDelete) GetKey() []byte { @@ -135,7 +135,7 @@ type Batch struct { func (x *Batch) Reset() { *x = Batch{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[2] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -148,7 +148,7 @@ func (x *Batch) String() string { func (*Batch) ProtoMessage() {} func (x *Batch) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[2] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -161,7 +161,7 @@ func (x *Batch) ProtoReflect() protoreflect.Message { // Deprecated: Use Batch.ProtoReflect.Descriptor instead. func (*Batch) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{2} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{2} } func (x *Batch) GetPuts() []*BatchPut { @@ -198,7 +198,7 @@ type AtomicRequest struct { func (x *AtomicRequest) Reset() { *x = AtomicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[3] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -211,7 +211,7 @@ func (x *AtomicRequest) String() string { func (*AtomicRequest) ProtoMessage() {} func (x *AtomicRequest) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[3] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -224,7 +224,7 @@ func (x *AtomicRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AtomicRequest.ProtoReflect.Descriptor instead. func (*AtomicRequest) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{3} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{3} } func (x *AtomicRequest) GetRemoveRequests() [][]byte { @@ -261,7 +261,7 @@ type Element struct { func (x *Element) Reset() { *x = Element{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[4] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -274,7 +274,7 @@ func (x *Element) String() string { func (*Element) ProtoMessage() {} func (x *Element) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[4] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -287,7 +287,7 @@ func (x *Element) ProtoReflect() protoreflect.Message { // Deprecated: Use Element.ProtoReflect.Descriptor instead. func (*Element) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{4} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{4} } func (x *Element) GetKey() []byte { @@ -325,7 +325,7 @@ type GetRequest struct { func (x *GetRequest) Reset() { *x = GetRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[5] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -338,7 +338,7 @@ func (x *GetRequest) String() string { func (*GetRequest) ProtoMessage() {} func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[5] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -351,7 +351,7 @@ func (x *GetRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. func (*GetRequest) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{5} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{5} } func (x *GetRequest) GetPeerChainId() []byte { @@ -394,7 +394,7 @@ type GetResponse struct { func (x *GetResponse) Reset() { *x = GetResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[6] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -407,7 +407,7 @@ func (x *GetResponse) String() string { func (*GetResponse) ProtoMessage() {} func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[6] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -420,7 +420,7 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. func (*GetResponse) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{6} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{6} } func (x *GetResponse) GetValues() [][]byte { @@ -454,7 +454,7 @@ type IndexedRequest struct { func (x *IndexedRequest) Reset() { *x = IndexedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[7] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -467,7 +467,7 @@ func (x *IndexedRequest) String() string { func (*IndexedRequest) ProtoMessage() {} func (x *IndexedRequest) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[7] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -480,7 +480,7 @@ func (x *IndexedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use IndexedRequest.ProtoReflect.Descriptor instead. func (*IndexedRequest) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{7} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{7} } func (x *IndexedRequest) GetPeerChainId() []byte { @@ -546,7 +546,7 @@ type IndexedResponse struct { func (x *IndexedResponse) Reset() { *x = IndexedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[8] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -559,7 +559,7 @@ func (x *IndexedResponse) String() string { func (*IndexedResponse) ProtoMessage() {} func (x *IndexedResponse) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[8] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -572,7 +572,7 @@ func (x *IndexedResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use IndexedResponse.ProtoReflect.Descriptor instead. func (*IndexedResponse) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{8} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{8} } func (x *IndexedResponse) GetValues() [][]byte { @@ -617,7 +617,7 @@ type ApplyRequest struct { func (x *ApplyRequest) Reset() { *x = ApplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[9] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -630,7 +630,7 @@ func (x *ApplyRequest) String() string { func (*ApplyRequest) ProtoMessage() {} func (x *ApplyRequest) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[9] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -643,7 +643,7 @@ func (x *ApplyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead. func (*ApplyRequest) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{9} + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{9} } func (x *ApplyRequest) GetRequests() []*AtomicRequest { @@ -683,7 +683,7 @@ type ApplyResponse struct { func (x *ApplyResponse) Reset() { *x = ApplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[10] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -696,7 +696,7 @@ func (x *ApplyResponse) String() string { func (*ApplyResponse) ProtoMessage() {} func (x *ApplyResponse) ProtoReflect() protoreflect.Message { - mi := &file_gsharedmemoryproto_sharedmemory_proto_msgTypes[10] + mi := &file_sharedmemory_sharedmemory_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -709,149 +709,144 @@ func (x *ApplyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead. func (*ApplyResponse) Descriptor() ([]byte, []int) { - return file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP(), []int{10} -} - -var File_gsharedmemoryproto_sharedmemory_proto protoreflect.FileDescriptor - -var file_gsharedmemoryproto_sharedmemory_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, - 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x08, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 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, 0x22, - 0x1f, 0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x22, 0x84, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x04, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x04, 0x70, 0x75, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x07, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x07, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x9c, 0x01, 0x0a, 0x0d, 0x41, 0x74, 0x6f, 0x6d, - 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x07, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 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, 0x16, 0x0a, 0x06, 0x74, 0x72, 0x61, - 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, - 0x73, 0x22, 0x72, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x22, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0c, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, - 0x6e, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, - 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0xce, 0x01, 0x0a, 0x0e, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, - 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, - 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x0f, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, - 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x74, 0x72, 0x61, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6c, 0x61, 0x73, - 0x74, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x65, - 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, - 0xb0, 0x01, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x3d, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, - 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, - 0x33, 0x0a, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, - 0x65, 0x73, 0x22, 0x0f, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xf8, 0x01, 0x0a, 0x0c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x4d, 0x65, - 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x67, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x07, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x12, 0x22, 0x2e, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4c, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x2e, 0x67, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x38, - 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, - 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, - 0x6f, 0x72, 0x79, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + return file_sharedmemory_sharedmemory_proto_rawDescGZIP(), []int{10} +} + +var File_sharedmemory_sharedmemory_proto protoreflect.FileDescriptor + +var file_sharedmemory_sharedmemory_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, + 0x32, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 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, 0x22, 0x1f, 0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x22, 0x78, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x2a, 0x0a, + 0x04, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x50, 0x75, 0x74, 0x52, 0x04, 0x70, 0x75, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x96, + 0x01, 0x0a, 0x0d, 0x41, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x0c, 0x70, 0x75, 0x74, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x45, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x07, 0x45, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 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, 0x16, 0x0a, 0x06, 0x74, 0x72, + 0x61, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, + 0x74, 0x73, 0x22, 0x72, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0c, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, + 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, + 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0xce, 0x01, 0x0a, 0x0e, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, + 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, + 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, + 0x0f, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x74, 0x72, 0x61, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6c, 0x61, + 0x73, 0x74, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x4b, + 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, + 0x22, 0xa4, 0x01, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x37, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, + 0x72, 0x79, 0x2e, 0x41, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, + 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x73, 0x22, 0x0f, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd4, 0x01, 0x0a, 0x0c, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x03, 0x47, 0x65, 0x74, + 0x12, 0x18, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x07, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, + 0x12, 0x1c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, + 0x05, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, + 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, + 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, + 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_gsharedmemoryproto_sharedmemory_proto_rawDescOnce sync.Once - file_gsharedmemoryproto_sharedmemory_proto_rawDescData = file_gsharedmemoryproto_sharedmemory_proto_rawDesc + file_sharedmemory_sharedmemory_proto_rawDescOnce sync.Once + file_sharedmemory_sharedmemory_proto_rawDescData = file_sharedmemory_sharedmemory_proto_rawDesc ) -func file_gsharedmemoryproto_sharedmemory_proto_rawDescGZIP() []byte { - file_gsharedmemoryproto_sharedmemory_proto_rawDescOnce.Do(func() { - file_gsharedmemoryproto_sharedmemory_proto_rawDescData = protoimpl.X.CompressGZIP(file_gsharedmemoryproto_sharedmemory_proto_rawDescData) +func file_sharedmemory_sharedmemory_proto_rawDescGZIP() []byte { + file_sharedmemory_sharedmemory_proto_rawDescOnce.Do(func() { + file_sharedmemory_sharedmemory_proto_rawDescData = protoimpl.X.CompressGZIP(file_sharedmemory_sharedmemory_proto_rawDescData) }) - return file_gsharedmemoryproto_sharedmemory_proto_rawDescData -} - -var file_gsharedmemoryproto_sharedmemory_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_gsharedmemoryproto_sharedmemory_proto_goTypes = []interface{}{ - (*BatchPut)(nil), // 0: gsharedmemoryproto.BatchPut - (*BatchDelete)(nil), // 1: gsharedmemoryproto.BatchDelete - (*Batch)(nil), // 2: gsharedmemoryproto.Batch - (*AtomicRequest)(nil), // 3: gsharedmemoryproto.AtomicRequest - (*Element)(nil), // 4: gsharedmemoryproto.Element - (*GetRequest)(nil), // 5: gsharedmemoryproto.GetRequest - (*GetResponse)(nil), // 6: gsharedmemoryproto.GetResponse - (*IndexedRequest)(nil), // 7: gsharedmemoryproto.IndexedRequest - (*IndexedResponse)(nil), // 8: gsharedmemoryproto.IndexedResponse - (*ApplyRequest)(nil), // 9: gsharedmemoryproto.ApplyRequest - (*ApplyResponse)(nil), // 10: gsharedmemoryproto.ApplyResponse -} -var file_gsharedmemoryproto_sharedmemory_proto_depIdxs = []int32{ - 0, // 0: gsharedmemoryproto.Batch.puts:type_name -> gsharedmemoryproto.BatchPut - 1, // 1: gsharedmemoryproto.Batch.deletes:type_name -> gsharedmemoryproto.BatchDelete - 4, // 2: gsharedmemoryproto.AtomicRequest.put_requests:type_name -> gsharedmemoryproto.Element - 3, // 3: gsharedmemoryproto.ApplyRequest.requests:type_name -> gsharedmemoryproto.AtomicRequest - 2, // 4: gsharedmemoryproto.ApplyRequest.batches:type_name -> gsharedmemoryproto.Batch - 5, // 5: gsharedmemoryproto.SharedMemory.Get:input_type -> gsharedmemoryproto.GetRequest - 7, // 6: gsharedmemoryproto.SharedMemory.Indexed:input_type -> gsharedmemoryproto.IndexedRequest - 9, // 7: gsharedmemoryproto.SharedMemory.Apply:input_type -> gsharedmemoryproto.ApplyRequest - 6, // 8: gsharedmemoryproto.SharedMemory.Get:output_type -> gsharedmemoryproto.GetResponse - 8, // 9: gsharedmemoryproto.SharedMemory.Indexed:output_type -> gsharedmemoryproto.IndexedResponse - 10, // 10: gsharedmemoryproto.SharedMemory.Apply:output_type -> gsharedmemoryproto.ApplyResponse + return file_sharedmemory_sharedmemory_proto_rawDescData +} + +var file_sharedmemory_sharedmemory_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_sharedmemory_sharedmemory_proto_goTypes = []interface{}{ + (*BatchPut)(nil), // 0: sharedmemory.BatchPut + (*BatchDelete)(nil), // 1: sharedmemory.BatchDelete + (*Batch)(nil), // 2: sharedmemory.Batch + (*AtomicRequest)(nil), // 3: sharedmemory.AtomicRequest + (*Element)(nil), // 4: sharedmemory.Element + (*GetRequest)(nil), // 5: sharedmemory.GetRequest + (*GetResponse)(nil), // 6: sharedmemory.GetResponse + (*IndexedRequest)(nil), // 7: sharedmemory.IndexedRequest + (*IndexedResponse)(nil), // 8: sharedmemory.IndexedResponse + (*ApplyRequest)(nil), // 9: sharedmemory.ApplyRequest + (*ApplyResponse)(nil), // 10: sharedmemory.ApplyResponse +} +var file_sharedmemory_sharedmemory_proto_depIdxs = []int32{ + 0, // 0: sharedmemory.Batch.puts:type_name -> sharedmemory.BatchPut + 1, // 1: sharedmemory.Batch.deletes:type_name -> sharedmemory.BatchDelete + 4, // 2: sharedmemory.AtomicRequest.put_requests:type_name -> sharedmemory.Element + 3, // 3: sharedmemory.ApplyRequest.requests:type_name -> sharedmemory.AtomicRequest + 2, // 4: sharedmemory.ApplyRequest.batches:type_name -> sharedmemory.Batch + 5, // 5: sharedmemory.SharedMemory.Get:input_type -> sharedmemory.GetRequest + 7, // 6: sharedmemory.SharedMemory.Indexed:input_type -> sharedmemory.IndexedRequest + 9, // 7: sharedmemory.SharedMemory.Apply:input_type -> sharedmemory.ApplyRequest + 6, // 8: sharedmemory.SharedMemory.Get:output_type -> sharedmemory.GetResponse + 8, // 9: sharedmemory.SharedMemory.Indexed:output_type -> sharedmemory.IndexedResponse + 10, // 10: sharedmemory.SharedMemory.Apply:output_type -> sharedmemory.ApplyResponse 8, // [8:11] is the sub-list for method output_type 5, // [5:8] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -859,13 +854,13 @@ var file_gsharedmemoryproto_sharedmemory_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_gsharedmemoryproto_sharedmemory_proto_init() } -func file_gsharedmemoryproto_sharedmemory_proto_init() { - if File_gsharedmemoryproto_sharedmemory_proto != nil { +func init() { file_sharedmemory_sharedmemory_proto_init() } +func file_sharedmemory_sharedmemory_proto_init() { + if File_sharedmemory_sharedmemory_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchPut); i { case 0: return &v.state @@ -877,7 +872,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchDelete); i { case 0: return &v.state @@ -889,7 +884,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Batch); i { case 0: return &v.state @@ -901,7 +896,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AtomicRequest); i { case 0: return &v.state @@ -913,7 +908,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Element); i { case 0: return &v.state @@ -925,7 +920,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRequest); i { case 0: return &v.state @@ -937,7 +932,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetResponse); i { case 0: return &v.state @@ -949,7 +944,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IndexedRequest); i { case 0: return &v.state @@ -961,7 +956,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IndexedResponse); i { case 0: return &v.state @@ -973,7 +968,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ApplyRequest); i { case 0: return &v.state @@ -985,7 +980,7 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { return nil } } - file_gsharedmemoryproto_sharedmemory_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_sharedmemory_sharedmemory_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ApplyResponse); i { case 0: return &v.state @@ -1002,18 +997,18 @@ func file_gsharedmemoryproto_sharedmemory_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gsharedmemoryproto_sharedmemory_proto_rawDesc, + RawDescriptor: file_sharedmemory_sharedmemory_proto_rawDesc, NumEnums: 0, NumMessages: 11, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_gsharedmemoryproto_sharedmemory_proto_goTypes, - DependencyIndexes: file_gsharedmemoryproto_sharedmemory_proto_depIdxs, - MessageInfos: file_gsharedmemoryproto_sharedmemory_proto_msgTypes, + GoTypes: file_sharedmemory_sharedmemory_proto_goTypes, + DependencyIndexes: file_sharedmemory_sharedmemory_proto_depIdxs, + MessageInfos: file_sharedmemory_sharedmemory_proto_msgTypes, }.Build() - File_gsharedmemoryproto_sharedmemory_proto = out.File - file_gsharedmemoryproto_sharedmemory_proto_rawDesc = nil - file_gsharedmemoryproto_sharedmemory_proto_goTypes = nil - file_gsharedmemoryproto_sharedmemory_proto_depIdxs = nil + File_sharedmemory_sharedmemory_proto = out.File + file_sharedmemory_sharedmemory_proto_rawDesc = nil + file_sharedmemory_sharedmemory_proto_goTypes = nil + file_sharedmemory_sharedmemory_proto_depIdxs = nil } diff --git a/api/proto/gsharedmemoryproto/sharedmemory_grpc.pb.go b/proto/pb/sharedmemory/sharedmemory_grpc.pb.go similarity index 90% rename from api/proto/gsharedmemoryproto/sharedmemory_grpc.pb.go rename to proto/pb/sharedmemory/sharedmemory_grpc.pb.go index 6bf64e6a65c8..51382a4c533e 100644 --- a/api/proto/gsharedmemoryproto/sharedmemory_grpc.pb.go +++ b/proto/pb/sharedmemory/sharedmemory_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gsharedmemoryproto/sharedmemory.proto +// source: sharedmemory/sharedmemory.proto -package gsharedmemoryproto +package sharedmemory import ( context "context" @@ -37,7 +37,7 @@ func NewSharedMemoryClient(cc grpc.ClientConnInterface) SharedMemoryClient { func (c *sharedMemoryClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/gsharedmemoryproto.SharedMemory/Get", in, out, opts...) + err := c.cc.Invoke(ctx, "/sharedmemory.SharedMemory/Get", in, out, opts...) if err != nil { return nil, err } @@ -46,7 +46,7 @@ func (c *sharedMemoryClient) Get(ctx context.Context, in *GetRequest, opts ...gr func (c *sharedMemoryClient) Indexed(ctx context.Context, in *IndexedRequest, opts ...grpc.CallOption) (*IndexedResponse, error) { out := new(IndexedResponse) - err := c.cc.Invoke(ctx, "/gsharedmemoryproto.SharedMemory/Indexed", in, out, opts...) + err := c.cc.Invoke(ctx, "/sharedmemory.SharedMemory/Indexed", in, out, opts...) if err != nil { return nil, err } @@ -55,7 +55,7 @@ func (c *sharedMemoryClient) Indexed(ctx context.Context, in *IndexedRequest, op func (c *sharedMemoryClient) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) { out := new(ApplyResponse) - err := c.cc.Invoke(ctx, "/gsharedmemoryproto.SharedMemory/Apply", in, out, opts...) + err := c.cc.Invoke(ctx, "/sharedmemory.SharedMemory/Apply", in, out, opts...) if err != nil { return nil, err } @@ -108,7 +108,7 @@ func _SharedMemory_Get_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gsharedmemoryproto.SharedMemory/Get", + FullMethod: "/sharedmemory.SharedMemory/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SharedMemoryServer).Get(ctx, req.(*GetRequest)) @@ -126,7 +126,7 @@ func _SharedMemory_Indexed_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gsharedmemoryproto.SharedMemory/Indexed", + FullMethod: "/sharedmemory.SharedMemory/Indexed", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SharedMemoryServer).Indexed(ctx, req.(*IndexedRequest)) @@ -144,7 +144,7 @@ func _SharedMemory_Apply_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gsharedmemoryproto.SharedMemory/Apply", + FullMethod: "/sharedmemory.SharedMemory/Apply", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SharedMemoryServer).Apply(ctx, req.(*ApplyRequest)) @@ -156,7 +156,7 @@ func _SharedMemory_Apply_Handler(srv interface{}, ctx context.Context, dec func( // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SharedMemory_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gsharedmemoryproto.SharedMemory", + ServiceName: "sharedmemory.SharedMemory", HandlerType: (*SharedMemoryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -173,5 +173,5 @@ var SharedMemory_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gsharedmemoryproto/sharedmemory.proto", + Metadata: "sharedmemory/sharedmemory.proto", } diff --git a/proto/pb/subnetlookup/subnetlookup.pb.go b/proto/pb/subnetlookup/subnetlookup.pb.go new file mode 100644 index 000000000000..c23dcbec5b6c --- /dev/null +++ b/proto/pb/subnetlookup/subnetlookup.pb.go @@ -0,0 +1,216 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: subnetlookup/subnetlookup.proto + +package subnetlookup + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 SubnetIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (x *SubnetIDRequest) Reset() { + *x = SubnetIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_subnetlookup_subnetlookup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubnetIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubnetIDRequest) ProtoMessage() {} + +func (x *SubnetIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_subnetlookup_subnetlookup_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SubnetIDRequest.ProtoReflect.Descriptor instead. +func (*SubnetIDRequest) Descriptor() ([]byte, []int) { + return file_subnetlookup_subnetlookup_proto_rawDescGZIP(), []int{0} +} + +func (x *SubnetIDRequest) GetChainId() []byte { + if x != nil { + return x.ChainId + } + return nil +} + +type SubnetIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *SubnetIDResponse) Reset() { + *x = SubnetIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_subnetlookup_subnetlookup_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubnetIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubnetIDResponse) ProtoMessage() {} + +func (x *SubnetIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_subnetlookup_subnetlookup_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) +} + +// Deprecated: Use SubnetIDResponse.ProtoReflect.Descriptor instead. +func (*SubnetIDResponse) Descriptor() ([]byte, []int) { + return file_subnetlookup_subnetlookup_proto_rawDescGZIP(), []int{1} +} + +func (x *SubnetIDResponse) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +var File_subnetlookup_subnetlookup_proto protoreflect.FileDescriptor + +var file_subnetlookup_subnetlookup_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x73, + 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0c, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x22, + 0x2c, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x22, 0x0a, + 0x10, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, + 0x64, 0x32, 0x59, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, + 0x70, 0x12, 0x49, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x12, 0x1d, 0x2e, + 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x53, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, + 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x53, 0x75, 0x62, 0x6e, + 0x65, 0x74, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x37, 0x5a, 0x35, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, + 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x6c, + 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_subnetlookup_subnetlookup_proto_rawDescOnce sync.Once + file_subnetlookup_subnetlookup_proto_rawDescData = file_subnetlookup_subnetlookup_proto_rawDesc +) + +func file_subnetlookup_subnetlookup_proto_rawDescGZIP() []byte { + file_subnetlookup_subnetlookup_proto_rawDescOnce.Do(func() { + file_subnetlookup_subnetlookup_proto_rawDescData = protoimpl.X.CompressGZIP(file_subnetlookup_subnetlookup_proto_rawDescData) + }) + return file_subnetlookup_subnetlookup_proto_rawDescData +} + +var file_subnetlookup_subnetlookup_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_subnetlookup_subnetlookup_proto_goTypes = []interface{}{ + (*SubnetIDRequest)(nil), // 0: subnetlookup.SubnetIDRequest + (*SubnetIDResponse)(nil), // 1: subnetlookup.SubnetIDResponse +} +var file_subnetlookup_subnetlookup_proto_depIdxs = []int32{ + 0, // 0: subnetlookup.SubnetLookup.SubnetID:input_type -> subnetlookup.SubnetIDRequest + 1, // 1: subnetlookup.SubnetLookup.SubnetID:output_type -> subnetlookup.SubnetIDResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_subnetlookup_subnetlookup_proto_init() } +func file_subnetlookup_subnetlookup_proto_init() { + if File_subnetlookup_subnetlookup_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_subnetlookup_subnetlookup_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnetlookup_subnetlookup_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetIDResponse); 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_subnetlookup_subnetlookup_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_subnetlookup_subnetlookup_proto_goTypes, + DependencyIndexes: file_subnetlookup_subnetlookup_proto_depIdxs, + MessageInfos: file_subnetlookup_subnetlookup_proto_msgTypes, + }.Build() + File_subnetlookup_subnetlookup_proto = out.File + file_subnetlookup_subnetlookup_proto_rawDesc = nil + file_subnetlookup_subnetlookup_proto_goTypes = nil + file_subnetlookup_subnetlookup_proto_depIdxs = nil +} diff --git a/api/proto/gsubnetlookupproto/subnetlookup_grpc.pb.go b/proto/pb/subnetlookup/subnetlookup_grpc.pb.go similarity index 91% rename from api/proto/gsubnetlookupproto/subnetlookup_grpc.pb.go rename to proto/pb/subnetlookup/subnetlookup_grpc.pb.go index d0ccab41a7b9..bdf2ac041d35 100644 --- a/api/proto/gsubnetlookupproto/subnetlookup_grpc.pb.go +++ b/proto/pb/subnetlookup/subnetlookup_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: gsubnetlookupproto/subnetlookup.proto +// source: subnetlookup/subnetlookup.proto -package gsubnetlookupproto +package subnetlookup import ( context "context" @@ -35,7 +35,7 @@ func NewSubnetLookupClient(cc grpc.ClientConnInterface) SubnetLookupClient { func (c *subnetLookupClient) SubnetID(ctx context.Context, in *SubnetIDRequest, opts ...grpc.CallOption) (*SubnetIDResponse, error) { out := new(SubnetIDResponse) - err := c.cc.Invoke(ctx, "/gsubnetlookupproto.SubnetLookup/SubnetID", in, out, opts...) + err := c.cc.Invoke(ctx, "/subnetlookup.SubnetLookup/SubnetID", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func _SubnetLookup_SubnetID_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gsubnetlookupproto.SubnetLookup/SubnetID", + FullMethod: "/subnetlookup.SubnetLookup/SubnetID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SubnetLookupServer).SubnetID(ctx, req.(*SubnetIDRequest)) @@ -92,7 +92,7 @@ func _SubnetLookup_SubnetID_Handler(srv interface{}, ctx context.Context, dec fu // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SubnetLookup_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gsubnetlookupproto.SubnetLookup", + ServiceName: "subnetlookup.SubnetLookup", HandlerType: (*SubnetLookupServer)(nil), Methods: []grpc.MethodDesc{ { @@ -101,5 +101,5 @@ var SubnetLookup_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "gsubnetlookupproto/subnetlookup.proto", + Metadata: "subnetlookup/subnetlookup.proto", } diff --git a/api/proto/vmproto/vm.pb.go b/proto/pb/vm/vm.pb.go similarity index 58% rename from api/proto/vmproto/vm.pb.go rename to proto/pb/vm/vm.pb.go index a5e42b74c99e..dce076bbe761 100644 --- a/api/proto/vmproto/vm.pb.go +++ b/proto/pb/vm/vm.pb.go @@ -2,9 +2,9 @@ // versions: // protoc-gen-go v1.27.1 // protoc (unknown) -// source: vmproto/vm.proto +// source: vm/vm.proto -package vmproto +package vm import ( _go "github.com/prometheus/client_model/go" @@ -43,7 +43,7 @@ type InitializeRequest struct { func (x *InitializeRequest) Reset() { *x = InitializeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[0] + mi := &file_vm_vm_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -56,7 +56,7 @@ func (x *InitializeRequest) String() string { func (*InitializeRequest) ProtoMessage() {} func (x *InitializeRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[0] + mi := &file_vm_vm_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -69,7 +69,7 @@ func (x *InitializeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead. func (*InitializeRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{0} + return file_vm_vm_proto_rawDescGZIP(), []int{0} } func (x *InitializeRequest) GetNetworkId() uint32 { @@ -160,7 +160,7 @@ type SetStateRequest struct { func (x *SetStateRequest) Reset() { *x = SetStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[1] + mi := &file_vm_vm_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -173,7 +173,7 @@ func (x *SetStateRequest) String() string { func (*SetStateRequest) ProtoMessage() {} func (x *SetStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[1] + mi := &file_vm_vm_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -186,7 +186,7 @@ func (x *SetStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetStateRequest.ProtoReflect.Descriptor instead. func (*SetStateRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{1} + return file_vm_vm_proto_rawDescGZIP(), []int{1} } func (x *SetStateRequest) GetState() uint32 { @@ -212,7 +212,7 @@ type InitializeResponse struct { func (x *InitializeResponse) Reset() { *x = InitializeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[2] + mi := &file_vm_vm_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -225,7 +225,7 @@ func (x *InitializeResponse) String() string { func (*InitializeResponse) ProtoMessage() {} func (x *InitializeResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[2] + mi := &file_vm_vm_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -238,7 +238,7 @@ func (x *InitializeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InitializeResponse.ProtoReflect.Descriptor instead. func (*InitializeResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{2} + return file_vm_vm_proto_rawDescGZIP(), []int{2} } func (x *InitializeResponse) GetLastAcceptedId() []byte { @@ -295,7 +295,7 @@ type VersionedDBServer struct { func (x *VersionedDBServer) Reset() { *x = VersionedDBServer{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[3] + mi := &file_vm_vm_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -308,7 +308,7 @@ func (x *VersionedDBServer) String() string { func (*VersionedDBServer) ProtoMessage() {} func (x *VersionedDBServer) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[3] + mi := &file_vm_vm_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -321,7 +321,7 @@ func (x *VersionedDBServer) ProtoReflect() protoreflect.Message { // Deprecated: Use VersionedDBServer.ProtoReflect.Descriptor instead. func (*VersionedDBServer) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{3} + return file_vm_vm_proto_rawDescGZIP(), []int{3} } func (x *VersionedDBServer) GetDbServer() uint32 { @@ -349,7 +349,7 @@ type CreateHandlersResponse struct { func (x *CreateHandlersResponse) Reset() { *x = CreateHandlersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[4] + mi := &file_vm_vm_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -362,7 +362,7 @@ func (x *CreateHandlersResponse) String() string { func (*CreateHandlersResponse) ProtoMessage() {} func (x *CreateHandlersResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[4] + mi := &file_vm_vm_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -375,7 +375,7 @@ func (x *CreateHandlersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateHandlersResponse.ProtoReflect.Descriptor instead. func (*CreateHandlersResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{4} + return file_vm_vm_proto_rawDescGZIP(), []int{4} } func (x *CreateHandlersResponse) GetHandlers() []*Handler { @@ -396,7 +396,7 @@ type CreateStaticHandlersResponse struct { func (x *CreateStaticHandlersResponse) Reset() { *x = CreateStaticHandlersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[5] + mi := &file_vm_vm_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -409,7 +409,7 @@ func (x *CreateStaticHandlersResponse) String() string { func (*CreateStaticHandlersResponse) ProtoMessage() {} func (x *CreateStaticHandlersResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[5] + mi := &file_vm_vm_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -422,7 +422,7 @@ func (x *CreateStaticHandlersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateStaticHandlersResponse.ProtoReflect.Descriptor instead. func (*CreateStaticHandlersResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{5} + return file_vm_vm_proto_rawDescGZIP(), []int{5} } func (x *CreateStaticHandlersResponse) GetHandlers() []*Handler { @@ -445,7 +445,7 @@ type Handler struct { func (x *Handler) Reset() { *x = Handler{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[6] + mi := &file_vm_vm_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -458,7 +458,7 @@ func (x *Handler) String() string { func (*Handler) ProtoMessage() {} func (x *Handler) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[6] + mi := &file_vm_vm_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -471,7 +471,7 @@ func (x *Handler) ProtoReflect() protoreflect.Message { // Deprecated: Use Handler.ProtoReflect.Descriptor instead. func (*Handler) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{6} + return file_vm_vm_proto_rawDescGZIP(), []int{6} } func (x *Handler) GetPrefix() string { @@ -510,7 +510,7 @@ type BuildBlockResponse struct { func (x *BuildBlockResponse) Reset() { *x = BuildBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[7] + mi := &file_vm_vm_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -523,7 +523,7 @@ func (x *BuildBlockResponse) String() string { func (*BuildBlockResponse) ProtoMessage() {} func (x *BuildBlockResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[7] + mi := &file_vm_vm_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -536,7 +536,7 @@ func (x *BuildBlockResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BuildBlockResponse.ProtoReflect.Descriptor instead. func (*BuildBlockResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{7} + return file_vm_vm_proto_rawDescGZIP(), []int{7} } func (x *BuildBlockResponse) GetId() []byte { @@ -585,7 +585,7 @@ type ParseBlockRequest struct { func (x *ParseBlockRequest) Reset() { *x = ParseBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[8] + mi := &file_vm_vm_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -598,7 +598,7 @@ func (x *ParseBlockRequest) String() string { func (*ParseBlockRequest) ProtoMessage() {} func (x *ParseBlockRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[8] + mi := &file_vm_vm_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -611,7 +611,7 @@ func (x *ParseBlockRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ParseBlockRequest.ProtoReflect.Descriptor instead. func (*ParseBlockRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{8} + return file_vm_vm_proto_rawDescGZIP(), []int{8} } func (x *ParseBlockRequest) GetBytes() []byte { @@ -636,7 +636,7 @@ type ParseBlockResponse struct { func (x *ParseBlockResponse) Reset() { *x = ParseBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[9] + mi := &file_vm_vm_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -649,7 +649,7 @@ func (x *ParseBlockResponse) String() string { func (*ParseBlockResponse) ProtoMessage() {} func (x *ParseBlockResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[9] + mi := &file_vm_vm_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -662,7 +662,7 @@ func (x *ParseBlockResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ParseBlockResponse.ProtoReflect.Descriptor instead. func (*ParseBlockResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{9} + return file_vm_vm_proto_rawDescGZIP(), []int{9} } func (x *ParseBlockResponse) GetId() []byte { @@ -711,7 +711,7 @@ type GetBlockRequest struct { func (x *GetBlockRequest) Reset() { *x = GetBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[10] + mi := &file_vm_vm_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -724,7 +724,7 @@ func (x *GetBlockRequest) String() string { func (*GetBlockRequest) ProtoMessage() {} func (x *GetBlockRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[10] + mi := &file_vm_vm_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -737,7 +737,7 @@ func (x *GetBlockRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead. func (*GetBlockRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{10} + return file_vm_vm_proto_rawDescGZIP(), []int{10} } func (x *GetBlockRequest) GetId() []byte { @@ -762,7 +762,7 @@ type GetBlockResponse struct { func (x *GetBlockResponse) Reset() { *x = GetBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[11] + mi := &file_vm_vm_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -775,7 +775,7 @@ func (x *GetBlockResponse) String() string { func (*GetBlockResponse) ProtoMessage() {} func (x *GetBlockResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[11] + mi := &file_vm_vm_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -788,7 +788,7 @@ func (x *GetBlockResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead. func (*GetBlockResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{11} + return file_vm_vm_proto_rawDescGZIP(), []int{11} } func (x *GetBlockResponse) GetParentId() []byte { @@ -837,7 +837,7 @@ type SetPreferenceRequest struct { func (x *SetPreferenceRequest) Reset() { *x = SetPreferenceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[12] + mi := &file_vm_vm_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -850,7 +850,7 @@ func (x *SetPreferenceRequest) String() string { func (*SetPreferenceRequest) ProtoMessage() {} func (x *SetPreferenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[12] + mi := &file_vm_vm_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -863,7 +863,7 @@ func (x *SetPreferenceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPreferenceRequest.ProtoReflect.Descriptor instead. func (*SetPreferenceRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{12} + return file_vm_vm_proto_rawDescGZIP(), []int{12} } func (x *SetPreferenceRequest) GetId() []byte { @@ -884,7 +884,7 @@ type BlockVerifyRequest struct { func (x *BlockVerifyRequest) Reset() { *x = BlockVerifyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[13] + mi := &file_vm_vm_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -897,7 +897,7 @@ func (x *BlockVerifyRequest) String() string { func (*BlockVerifyRequest) ProtoMessage() {} func (x *BlockVerifyRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[13] + mi := &file_vm_vm_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -910,7 +910,7 @@ func (x *BlockVerifyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockVerifyRequest.ProtoReflect.Descriptor instead. func (*BlockVerifyRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{13} + return file_vm_vm_proto_rawDescGZIP(), []int{13} } func (x *BlockVerifyRequest) GetBytes() []byte { @@ -931,7 +931,7 @@ type BlockVerifyResponse struct { func (x *BlockVerifyResponse) Reset() { *x = BlockVerifyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[14] + mi := &file_vm_vm_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -944,7 +944,7 @@ func (x *BlockVerifyResponse) String() string { func (*BlockVerifyResponse) ProtoMessage() {} func (x *BlockVerifyResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[14] + mi := &file_vm_vm_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -957,7 +957,7 @@ func (x *BlockVerifyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockVerifyResponse.ProtoReflect.Descriptor instead. func (*BlockVerifyResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{14} + return file_vm_vm_proto_rawDescGZIP(), []int{14} } func (x *BlockVerifyResponse) GetTimestamp() []byte { @@ -978,7 +978,7 @@ type BlockAcceptRequest struct { func (x *BlockAcceptRequest) Reset() { *x = BlockAcceptRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[15] + mi := &file_vm_vm_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -991,7 +991,7 @@ func (x *BlockAcceptRequest) String() string { func (*BlockAcceptRequest) ProtoMessage() {} func (x *BlockAcceptRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[15] + mi := &file_vm_vm_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1004,7 +1004,7 @@ func (x *BlockAcceptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockAcceptRequest.ProtoReflect.Descriptor instead. func (*BlockAcceptRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{15} + return file_vm_vm_proto_rawDescGZIP(), []int{15} } func (x *BlockAcceptRequest) GetId() []byte { @@ -1025,7 +1025,7 @@ type BlockRejectRequest struct { func (x *BlockRejectRequest) Reset() { *x = BlockRejectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[16] + mi := &file_vm_vm_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1038,7 +1038,7 @@ func (x *BlockRejectRequest) String() string { func (*BlockRejectRequest) ProtoMessage() {} func (x *BlockRejectRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[16] + mi := &file_vm_vm_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1051,7 +1051,7 @@ func (x *BlockRejectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockRejectRequest.ProtoReflect.Descriptor instead. func (*BlockRejectRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{16} + return file_vm_vm_proto_rawDescGZIP(), []int{16} } func (x *BlockRejectRequest) GetId() []byte { @@ -1072,7 +1072,7 @@ type HealthResponse struct { func (x *HealthResponse) Reset() { *x = HealthResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[17] + mi := &file_vm_vm_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1085,7 +1085,7 @@ func (x *HealthResponse) String() string { func (*HealthResponse) ProtoMessage() {} func (x *HealthResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[17] + mi := &file_vm_vm_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1098,7 +1098,7 @@ func (x *HealthResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead. func (*HealthResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{17} + return file_vm_vm_proto_rawDescGZIP(), []int{17} } func (x *HealthResponse) GetDetails() string { @@ -1119,7 +1119,7 @@ type VersionResponse struct { func (x *VersionResponse) Reset() { *x = VersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[18] + mi := &file_vm_vm_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1132,7 +1132,7 @@ func (x *VersionResponse) String() string { func (*VersionResponse) ProtoMessage() {} func (x *VersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[18] + mi := &file_vm_vm_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1145,7 +1145,7 @@ func (x *VersionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead. func (*VersionResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{18} + return file_vm_vm_proto_rawDescGZIP(), []int{18} } func (x *VersionResponse) GetVersion() string { @@ -1173,7 +1173,7 @@ type AppRequestMsg struct { func (x *AppRequestMsg) Reset() { *x = AppRequestMsg{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[19] + mi := &file_vm_vm_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1186,7 +1186,7 @@ func (x *AppRequestMsg) String() string { func (*AppRequestMsg) ProtoMessage() {} func (x *AppRequestMsg) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[19] + mi := &file_vm_vm_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1199,7 +1199,7 @@ func (x *AppRequestMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use AppRequestMsg.ProtoReflect.Descriptor instead. func (*AppRequestMsg) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{19} + return file_vm_vm_proto_rawDescGZIP(), []int{19} } func (x *AppRequestMsg) GetNodeId() []byte { @@ -1244,7 +1244,7 @@ type AppRequestFailedMsg struct { func (x *AppRequestFailedMsg) Reset() { *x = AppRequestFailedMsg{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[20] + mi := &file_vm_vm_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1257,7 +1257,7 @@ func (x *AppRequestFailedMsg) String() string { func (*AppRequestFailedMsg) ProtoMessage() {} func (x *AppRequestFailedMsg) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[20] + mi := &file_vm_vm_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1270,7 +1270,7 @@ func (x *AppRequestFailedMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use AppRequestFailedMsg.ProtoReflect.Descriptor instead. func (*AppRequestFailedMsg) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{20} + return file_vm_vm_proto_rawDescGZIP(), []int{20} } func (x *AppRequestFailedMsg) GetNodeId() []byte { @@ -1303,7 +1303,7 @@ type AppResponseMsg struct { func (x *AppResponseMsg) Reset() { *x = AppResponseMsg{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[21] + mi := &file_vm_vm_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1316,7 +1316,7 @@ func (x *AppResponseMsg) String() string { func (*AppResponseMsg) ProtoMessage() {} func (x *AppResponseMsg) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[21] + mi := &file_vm_vm_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1329,7 +1329,7 @@ func (x *AppResponseMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use AppResponseMsg.ProtoReflect.Descriptor instead. func (*AppResponseMsg) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{21} + return file_vm_vm_proto_rawDescGZIP(), []int{21} } func (x *AppResponseMsg) GetNodeId() []byte { @@ -1367,7 +1367,7 @@ type AppGossipMsg struct { func (x *AppGossipMsg) Reset() { *x = AppGossipMsg{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[22] + mi := &file_vm_vm_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1380,7 +1380,7 @@ func (x *AppGossipMsg) String() string { func (*AppGossipMsg) ProtoMessage() {} func (x *AppGossipMsg) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[22] + mi := &file_vm_vm_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1393,7 +1393,7 @@ func (x *AppGossipMsg) ProtoReflect() protoreflect.Message { // Deprecated: Use AppGossipMsg.ProtoReflect.Descriptor instead. func (*AppGossipMsg) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{22} + return file_vm_vm_proto_rawDescGZIP(), []int{22} } func (x *AppGossipMsg) GetNodeId() []byte { @@ -1422,7 +1422,7 @@ type ConnectedRequest struct { func (x *ConnectedRequest) Reset() { *x = ConnectedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[23] + mi := &file_vm_vm_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1435,7 +1435,7 @@ func (x *ConnectedRequest) String() string { func (*ConnectedRequest) ProtoMessage() {} func (x *ConnectedRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[23] + mi := &file_vm_vm_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1448,7 +1448,7 @@ func (x *ConnectedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectedRequest.ProtoReflect.Descriptor instead. func (*ConnectedRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{23} + return file_vm_vm_proto_rawDescGZIP(), []int{23} } func (x *ConnectedRequest) GetNodeId() []byte { @@ -1476,7 +1476,7 @@ type DisconnectedRequest struct { func (x *DisconnectedRequest) Reset() { *x = DisconnectedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[24] + mi := &file_vm_vm_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1489,7 +1489,7 @@ func (x *DisconnectedRequest) String() string { func (*DisconnectedRequest) ProtoMessage() {} func (x *DisconnectedRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[24] + mi := &file_vm_vm_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1502,7 +1502,7 @@ func (x *DisconnectedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DisconnectedRequest.ProtoReflect.Descriptor instead. func (*DisconnectedRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{24} + return file_vm_vm_proto_rawDescGZIP(), []int{24} } func (x *DisconnectedRequest) GetNodeId() []byte { @@ -1526,7 +1526,7 @@ type GetAncestorsRequest struct { func (x *GetAncestorsRequest) Reset() { *x = GetAncestorsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[25] + mi := &file_vm_vm_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1539,7 +1539,7 @@ func (x *GetAncestorsRequest) String() string { func (*GetAncestorsRequest) ProtoMessage() {} func (x *GetAncestorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[25] + mi := &file_vm_vm_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1552,7 +1552,7 @@ func (x *GetAncestorsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAncestorsRequest.ProtoReflect.Descriptor instead. func (*GetAncestorsRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{25} + return file_vm_vm_proto_rawDescGZIP(), []int{25} } func (x *GetAncestorsRequest) GetBlkId() []byte { @@ -1594,7 +1594,7 @@ type GetAncestorsResponse struct { func (x *GetAncestorsResponse) Reset() { *x = GetAncestorsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[26] + mi := &file_vm_vm_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1607,7 +1607,7 @@ func (x *GetAncestorsResponse) String() string { func (*GetAncestorsResponse) ProtoMessage() {} func (x *GetAncestorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[26] + mi := &file_vm_vm_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1620,7 +1620,7 @@ func (x *GetAncestorsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAncestorsResponse.ProtoReflect.Descriptor instead. func (*GetAncestorsResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{26} + return file_vm_vm_proto_rawDescGZIP(), []int{26} } func (x *GetAncestorsResponse) GetBlksBytes() [][]byte { @@ -1641,7 +1641,7 @@ type BatchedParseBlockRequest struct { func (x *BatchedParseBlockRequest) Reset() { *x = BatchedParseBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[27] + mi := &file_vm_vm_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1654,7 +1654,7 @@ func (x *BatchedParseBlockRequest) String() string { func (*BatchedParseBlockRequest) ProtoMessage() {} func (x *BatchedParseBlockRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[27] + mi := &file_vm_vm_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1667,7 +1667,7 @@ func (x *BatchedParseBlockRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchedParseBlockRequest.ProtoReflect.Descriptor instead. func (*BatchedParseBlockRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{27} + return file_vm_vm_proto_rawDescGZIP(), []int{27} } func (x *BatchedParseBlockRequest) GetRequest() [][]byte { @@ -1688,7 +1688,7 @@ type BatchedParseBlockResponse struct { func (x *BatchedParseBlockResponse) Reset() { *x = BatchedParseBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[28] + mi := &file_vm_vm_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1701,7 +1701,7 @@ func (x *BatchedParseBlockResponse) String() string { func (*BatchedParseBlockResponse) ProtoMessage() {} func (x *BatchedParseBlockResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[28] + mi := &file_vm_vm_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1714,7 +1714,7 @@ func (x *BatchedParseBlockResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchedParseBlockResponse.ProtoReflect.Descriptor instead. func (*BatchedParseBlockResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{28} + return file_vm_vm_proto_rawDescGZIP(), []int{28} } func (x *BatchedParseBlockResponse) GetResponse() []*ParseBlockResponse { @@ -1736,7 +1736,7 @@ type VerifyHeightIndexResponse struct { func (x *VerifyHeightIndexResponse) Reset() { *x = VerifyHeightIndexResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[29] + mi := &file_vm_vm_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1749,7 @@ func (x *VerifyHeightIndexResponse) String() string { func (*VerifyHeightIndexResponse) ProtoMessage() {} func (x *VerifyHeightIndexResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[29] + mi := &file_vm_vm_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1762,7 @@ func (x *VerifyHeightIndexResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyHeightIndexResponse.ProtoReflect.Descriptor instead. func (*VerifyHeightIndexResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{29} + return file_vm_vm_proto_rawDescGZIP(), []int{29} } func (x *VerifyHeightIndexResponse) GetErr() uint32 { @@ -1783,7 +1783,7 @@ type GetBlockIDAtHeightRequest struct { func (x *GetBlockIDAtHeightRequest) Reset() { *x = GetBlockIDAtHeightRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[30] + mi := &file_vm_vm_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1796,7 +1796,7 @@ func (x *GetBlockIDAtHeightRequest) String() string { func (*GetBlockIDAtHeightRequest) ProtoMessage() {} func (x *GetBlockIDAtHeightRequest) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[30] + mi := &file_vm_vm_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1809,7 +1809,7 @@ func (x *GetBlockIDAtHeightRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBlockIDAtHeightRequest.ProtoReflect.Descriptor instead. func (*GetBlockIDAtHeightRequest) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{30} + return file_vm_vm_proto_rawDescGZIP(), []int{30} } func (x *GetBlockIDAtHeightRequest) GetHeight() uint64 { @@ -1831,7 +1831,7 @@ type GetBlockIDAtHeightResponse struct { func (x *GetBlockIDAtHeightResponse) Reset() { *x = GetBlockIDAtHeightResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[31] + mi := &file_vm_vm_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1844,7 +1844,7 @@ func (x *GetBlockIDAtHeightResponse) String() string { func (*GetBlockIDAtHeightResponse) ProtoMessage() {} func (x *GetBlockIDAtHeightResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[31] + mi := &file_vm_vm_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1857,7 +1857,7 @@ func (x *GetBlockIDAtHeightResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBlockIDAtHeightResponse.ProtoReflect.Descriptor instead. func (*GetBlockIDAtHeightResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{31} + return file_vm_vm_proto_rawDescGZIP(), []int{31} } func (x *GetBlockIDAtHeightResponse) GetBlkId() []byte { @@ -1885,7 +1885,7 @@ type GatherResponse struct { func (x *GatherResponse) Reset() { *x = GatherResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vmproto_vm_proto_msgTypes[32] + mi := &file_vm_vm_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1898,7 +1898,7 @@ func (x *GatherResponse) String() string { func (*GatherResponse) ProtoMessage() {} func (x *GatherResponse) ProtoReflect() protoreflect.Message { - mi := &file_vmproto_vm_proto_msgTypes[32] + mi := &file_vm_vm_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1911,7 +1911,7 @@ func (x *GatherResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GatherResponse.ProtoReflect.Descriptor instead. func (*GatherResponse) Descriptor() ([]byte, []int) { - return file_vmproto_vm_proto_rawDescGZIP(), []int{32} + return file_vm_vm_proto_rawDescGZIP(), []int{32} } func (x *GatherResponse) GetMetricFamilies() []*_go.MetricFamily { @@ -1921,421 +1921,409 @@ func (x *GatherResponse) GetMetricFamilies() []*_go.MetricFamily { return nil } -var File_vmproto_vm_proto protoreflect.FileDescriptor - -var file_vmproto_vm_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x6d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x07, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, - 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, - 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x03, 0x0a, - 0x11, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, - 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x78, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x78, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, - 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x76, 0x61, 0x78, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x76, 0x61, 0x78, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x67, 0x65, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x70, 0x67, - 0x72, 0x61, 0x64, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0c, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x79, 0x74, 0x65, - 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x64, 0x62, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, - 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x52, 0x09, 0x64, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x04, 0x08, - 0x0b, 0x10, 0x12, 0x22, 0x27, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd9, 0x01, 0x0a, - 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, - 0x70, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c, - 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, 0x35, 0x0a, - 0x17, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, - 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x4a, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1b, 0x0a, - 0x09, 0x64, 0x62, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x64, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, - 0x0a, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x72, 0x52, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x22, 0x4c, 0x0a, 0x1c, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, - 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, - 0x52, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x22, 0x5c, 0x0a, 0x07, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x21, 0x0a, - 0x0c, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6c, 0x6f, 0x63, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x8d, 0x01, 0x0a, 0x12, 0x42, 0x75, 0x69, - 0x6c, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, - 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x29, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x73, - 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, +var File_vm_vm_proto protoreflect.FileDescriptor + +var file_vm_vm_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x76, 0x6d, 0x2f, 0x76, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x76, + 0x6d, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, + 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2f, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x8f, 0x03, 0x0a, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, + 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x78, 0x5f, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x78, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x76, 0x61, 0x78, 0x5f, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, + 0x76, 0x61, 0x78, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, + 0x23, 0x0a, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x0a, 0x64, 0x62, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x6d, + 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x09, 0x64, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x04, + 0x08, 0x0b, 0x10, 0x12, 0x22, 0x27, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd9, 0x01, + 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, + 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, + 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, 0x35, + 0x0a, 0x17, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x14, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x4a, 0x0a, 0x11, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x62, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x64, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x41, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x27, 0x0a, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x6d, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x08, + 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x22, 0x47, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x6d, 0x2e, + 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, + 0x73, 0x22, 0x5c, 0x0a, 0x07, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6c, 0x6f, 0x63, 0x6b, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, + 0x8d, 0x01, 0x0a, 0x12, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x29, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x12, 0x50, + 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, + 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x21, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x93, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x26, - 0x0a, 0x14, 0x53, 0x65, 0x74, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, - 0x65, 0x73, 0x22, 0x33, 0x0a, 0x13, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x24, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x24, 0x0a, - 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, - 0x2b, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x7d, 0x0a, 0x0d, - 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, - 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, - 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x13, 0x41, - 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4d, - 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x0e, 0x41, 0x70, - 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, - 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x39, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, - 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x45, 0x0a, 0x10, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x26, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, + 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x13, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x24, + 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x24, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x0e, 0x48, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0x7d, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, + 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, - 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6c, - 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x6c, 0x6b, 0x49, - 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, - 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x12, - 0x37, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x72, 0x65, - 0x74, 0x72, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x74, 0x72, - 0x69, 0x76, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x35, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, - 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6b, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6b, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, - 0x34, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, - 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, - 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x19, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x33, 0x0a, 0x19, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, - 0x45, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, - 0x06, 0x62, 0x6c, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, - 0x6c, 0x6b, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x5d, 0x0a, 0x0e, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x6d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, - 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x46, - 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x52, 0x0e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x46, 0x61, 0x6d, - 0x69, 0x6c, 0x69, 0x65, 0x73, 0x32, 0xe2, 0x0d, 0x0a, 0x02, 0x56, 0x4d, 0x12, 0x45, 0x0a, 0x0a, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x2e, 0x76, 0x6d, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x12, 0x3a, 0x0a, 0x08, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, - 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, + 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x22, 0x64, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x47, 0x6f, + 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, + 0x73, 0x67, 0x22, 0x45, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6c, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x62, 0x6c, 0x6b, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x12, 0x26, + 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x52, 0x65, 0x74, 0x72, 0x69, 0x76, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0x35, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6b, 0x73, 0x5f, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6b, + 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x19, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x6d, + 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, + 0x19, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x33, 0x0a, 0x19, + 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x22, 0x45, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, + 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x15, 0x0a, 0x06, 0x62, 0x6c, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x62, 0x6c, 0x6b, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x5d, 0x0a, 0x0e, 0x47, 0x61, 0x74, 0x68, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, + 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x52, 0x0e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x46, + 0x61, 0x6d, 0x69, 0x6c, 0x69, 0x65, 0x73, 0x32, 0xc7, 0x0c, 0x0a, 0x02, 0x56, 0x4d, 0x12, 0x3b, + 0x0a, 0x0a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x15, 0x2e, 0x76, + 0x6d, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x76, 0x6d, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x53, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x13, 0x2e, 0x76, 0x6d, 0x2e, 0x53, 0x65, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3a, 0x0a, 0x08, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x25, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, - 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3e, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x19, 0x2e, 0x76, - 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x44, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, - 0x1c, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x0a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x76, 0x6d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, - 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1a, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x61, 0x72, - 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x2e, 0x76, 0x6d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x46, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x50, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x76, 0x6d, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x12, 0x44, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, + 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x76, 0x6d, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3c, 0x0a, 0x0a, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, - 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x48, - 0x0a, 0x10, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x12, 0x1c, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4d, 0x73, 0x67, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3e, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, 0x67, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3a, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x47, - 0x6f, 0x73, 0x73, 0x69, 0x70, 0x12, 0x15, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x76, 0x6d, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x14, 0x2e, 0x76, 0x6d, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x12, 0x3f, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x12, 0x17, 0x2e, 0x76, 0x6d, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x06, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x12, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x48, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1b, - 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x6d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x12, 0x1b, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x42, 0x0a, - 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x76, - 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, - 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, - 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x11, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x0a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x76, 0x6d, 0x2e, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x15, 0x2e, 0x76, 0x6d, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x76, 0x6d, 0x2e, 0x50, 0x61, 0x72, + 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x35, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x13, 0x2e, 0x76, 0x6d, + 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x14, 0x2e, 0x76, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x76, 0x6d, 0x2e, 0x53, 0x65, 0x74, + 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x06, 0x48, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x76, 0x6d, + 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x36, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x76, 0x6d, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x41, 0x70, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x11, 0x2e, 0x76, 0x6d, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x12, 0x43, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x12, 0x17, 0x2e, 0x76, 0x6d, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x2e, 0x76, 0x6d, 0x2e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x12, 0x35, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x12, 0x10, 0x2e, + 0x76, 0x6d, 0x2e, 0x41, 0x70, 0x70, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x12, 0x22, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x06, 0x47, 0x61, 0x74, 0x68, 0x65, + 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x76, 0x6d, 0x2e, 0x47, + 0x61, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, + 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x76, + 0x6d, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x76, 0x6d, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, + 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x12, 0x16, 0x2e, 0x76, + 0x6d, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3d, 0x0a, 0x0b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x2e, 0x76, 0x6d, + 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x0c, 0x47, + 0x65, 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x17, 0x2e, 0x76, 0x6d, + 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x76, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6e, 0x63, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, + 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x2e, 0x76, 0x6d, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, + 0x50, 0x61, 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x6d, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x61, + 0x72, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4a, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1d, 0x2e, + 0x76, 0x6d, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, - 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x68, 0x74, 0x12, 0x1d, 0x2e, 0x76, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x49, 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, + 0x44, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x76, 0x6d, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_vmproto_vm_proto_rawDescOnce sync.Once - file_vmproto_vm_proto_rawDescData = file_vmproto_vm_proto_rawDesc + file_vm_vm_proto_rawDescOnce sync.Once + file_vm_vm_proto_rawDescData = file_vm_vm_proto_rawDesc ) -func file_vmproto_vm_proto_rawDescGZIP() []byte { - file_vmproto_vm_proto_rawDescOnce.Do(func() { - file_vmproto_vm_proto_rawDescData = protoimpl.X.CompressGZIP(file_vmproto_vm_proto_rawDescData) +func file_vm_vm_proto_rawDescGZIP() []byte { + file_vm_vm_proto_rawDescOnce.Do(func() { + file_vm_vm_proto_rawDescData = protoimpl.X.CompressGZIP(file_vm_vm_proto_rawDescData) }) - return file_vmproto_vm_proto_rawDescData -} - -var file_vmproto_vm_proto_msgTypes = make([]protoimpl.MessageInfo, 33) -var file_vmproto_vm_proto_goTypes = []interface{}{ - (*InitializeRequest)(nil), // 0: vmproto.InitializeRequest - (*SetStateRequest)(nil), // 1: vmproto.SetStateRequest - (*InitializeResponse)(nil), // 2: vmproto.InitializeResponse - (*VersionedDBServer)(nil), // 3: vmproto.VersionedDBServer - (*CreateHandlersResponse)(nil), // 4: vmproto.CreateHandlersResponse - (*CreateStaticHandlersResponse)(nil), // 5: vmproto.CreateStaticHandlersResponse - (*Handler)(nil), // 6: vmproto.Handler - (*BuildBlockResponse)(nil), // 7: vmproto.BuildBlockResponse - (*ParseBlockRequest)(nil), // 8: vmproto.ParseBlockRequest - (*ParseBlockResponse)(nil), // 9: vmproto.ParseBlockResponse - (*GetBlockRequest)(nil), // 10: vmproto.GetBlockRequest - (*GetBlockResponse)(nil), // 11: vmproto.GetBlockResponse - (*SetPreferenceRequest)(nil), // 12: vmproto.SetPreferenceRequest - (*BlockVerifyRequest)(nil), // 13: vmproto.BlockVerifyRequest - (*BlockVerifyResponse)(nil), // 14: vmproto.BlockVerifyResponse - (*BlockAcceptRequest)(nil), // 15: vmproto.BlockAcceptRequest - (*BlockRejectRequest)(nil), // 16: vmproto.BlockRejectRequest - (*HealthResponse)(nil), // 17: vmproto.HealthResponse - (*VersionResponse)(nil), // 18: vmproto.VersionResponse - (*AppRequestMsg)(nil), // 19: vmproto.AppRequestMsg - (*AppRequestFailedMsg)(nil), // 20: vmproto.AppRequestFailedMsg - (*AppResponseMsg)(nil), // 21: vmproto.AppResponseMsg - (*AppGossipMsg)(nil), // 22: vmproto.AppGossipMsg - (*ConnectedRequest)(nil), // 23: vmproto.ConnectedRequest - (*DisconnectedRequest)(nil), // 24: vmproto.DisconnectedRequest - (*GetAncestorsRequest)(nil), // 25: vmproto.GetAncestorsRequest - (*GetAncestorsResponse)(nil), // 26: vmproto.GetAncestorsResponse - (*BatchedParseBlockRequest)(nil), // 27: vmproto.BatchedParseBlockRequest - (*BatchedParseBlockResponse)(nil), // 28: vmproto.BatchedParseBlockResponse - (*VerifyHeightIndexResponse)(nil), // 29: vmproto.VerifyHeightIndexResponse - (*GetBlockIDAtHeightRequest)(nil), // 30: vmproto.GetBlockIDAtHeightRequest - (*GetBlockIDAtHeightResponse)(nil), // 31: vmproto.GetBlockIDAtHeightResponse - (*GatherResponse)(nil), // 32: vmproto.GatherResponse + return file_vm_vm_proto_rawDescData +} + +var file_vm_vm_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_vm_vm_proto_goTypes = []interface{}{ + (*InitializeRequest)(nil), // 0: vm.InitializeRequest + (*SetStateRequest)(nil), // 1: vm.SetStateRequest + (*InitializeResponse)(nil), // 2: vm.InitializeResponse + (*VersionedDBServer)(nil), // 3: vm.VersionedDBServer + (*CreateHandlersResponse)(nil), // 4: vm.CreateHandlersResponse + (*CreateStaticHandlersResponse)(nil), // 5: vm.CreateStaticHandlersResponse + (*Handler)(nil), // 6: vm.Handler + (*BuildBlockResponse)(nil), // 7: vm.BuildBlockResponse + (*ParseBlockRequest)(nil), // 8: vm.ParseBlockRequest + (*ParseBlockResponse)(nil), // 9: vm.ParseBlockResponse + (*GetBlockRequest)(nil), // 10: vm.GetBlockRequest + (*GetBlockResponse)(nil), // 11: vm.GetBlockResponse + (*SetPreferenceRequest)(nil), // 12: vm.SetPreferenceRequest + (*BlockVerifyRequest)(nil), // 13: vm.BlockVerifyRequest + (*BlockVerifyResponse)(nil), // 14: vm.BlockVerifyResponse + (*BlockAcceptRequest)(nil), // 15: vm.BlockAcceptRequest + (*BlockRejectRequest)(nil), // 16: vm.BlockRejectRequest + (*HealthResponse)(nil), // 17: vm.HealthResponse + (*VersionResponse)(nil), // 18: vm.VersionResponse + (*AppRequestMsg)(nil), // 19: vm.AppRequestMsg + (*AppRequestFailedMsg)(nil), // 20: vm.AppRequestFailedMsg + (*AppResponseMsg)(nil), // 21: vm.AppResponseMsg + (*AppGossipMsg)(nil), // 22: vm.AppGossipMsg + (*ConnectedRequest)(nil), // 23: vm.ConnectedRequest + (*DisconnectedRequest)(nil), // 24: vm.DisconnectedRequest + (*GetAncestorsRequest)(nil), // 25: vm.GetAncestorsRequest + (*GetAncestorsResponse)(nil), // 26: vm.GetAncestorsResponse + (*BatchedParseBlockRequest)(nil), // 27: vm.BatchedParseBlockRequest + (*BatchedParseBlockResponse)(nil), // 28: vm.BatchedParseBlockResponse + (*VerifyHeightIndexResponse)(nil), // 29: vm.VerifyHeightIndexResponse + (*GetBlockIDAtHeightRequest)(nil), // 30: vm.GetBlockIDAtHeightRequest + (*GetBlockIDAtHeightResponse)(nil), // 31: vm.GetBlockIDAtHeightResponse + (*GatherResponse)(nil), // 32: vm.GatherResponse (*_go.MetricFamily)(nil), // 33: io.prometheus.client.MetricFamily (*emptypb.Empty)(nil), // 34: google.protobuf.Empty } -var file_vmproto_vm_proto_depIdxs = []int32{ - 3, // 0: vmproto.InitializeRequest.db_servers:type_name -> vmproto.VersionedDBServer - 6, // 1: vmproto.CreateHandlersResponse.handlers:type_name -> vmproto.Handler - 6, // 2: vmproto.CreateStaticHandlersResponse.handlers:type_name -> vmproto.Handler - 9, // 3: vmproto.BatchedParseBlockResponse.response:type_name -> vmproto.ParseBlockResponse - 33, // 4: vmproto.GatherResponse.metric_families:type_name -> io.prometheus.client.MetricFamily - 0, // 5: vmproto.VM.Initialize:input_type -> vmproto.InitializeRequest - 1, // 6: vmproto.VM.SetState:input_type -> vmproto.SetStateRequest - 34, // 7: vmproto.VM.Shutdown:input_type -> google.protobuf.Empty - 34, // 8: vmproto.VM.CreateHandlers:input_type -> google.protobuf.Empty - 34, // 9: vmproto.VM.CreateStaticHandlers:input_type -> google.protobuf.Empty - 23, // 10: vmproto.VM.Connected:input_type -> vmproto.ConnectedRequest - 24, // 11: vmproto.VM.Disconnected:input_type -> vmproto.DisconnectedRequest - 34, // 12: vmproto.VM.BuildBlock:input_type -> google.protobuf.Empty - 8, // 13: vmproto.VM.ParseBlock:input_type -> vmproto.ParseBlockRequest - 10, // 14: vmproto.VM.GetBlock:input_type -> vmproto.GetBlockRequest - 12, // 15: vmproto.VM.SetPreference:input_type -> vmproto.SetPreferenceRequest - 34, // 16: vmproto.VM.Health:input_type -> google.protobuf.Empty - 34, // 17: vmproto.VM.Version:input_type -> google.protobuf.Empty - 19, // 18: vmproto.VM.AppRequest:input_type -> vmproto.AppRequestMsg - 20, // 19: vmproto.VM.AppRequestFailed:input_type -> vmproto.AppRequestFailedMsg - 21, // 20: vmproto.VM.AppResponse:input_type -> vmproto.AppResponseMsg - 22, // 21: vmproto.VM.AppGossip:input_type -> vmproto.AppGossipMsg - 34, // 22: vmproto.VM.Gather:input_type -> google.protobuf.Empty - 13, // 23: vmproto.VM.BlockVerify:input_type -> vmproto.BlockVerifyRequest - 15, // 24: vmproto.VM.BlockAccept:input_type -> vmproto.BlockAcceptRequest - 16, // 25: vmproto.VM.BlockReject:input_type -> vmproto.BlockRejectRequest - 25, // 26: vmproto.VM.GetAncestors:input_type -> vmproto.GetAncestorsRequest - 27, // 27: vmproto.VM.BatchedParseBlock:input_type -> vmproto.BatchedParseBlockRequest - 34, // 28: vmproto.VM.VerifyHeightIndex:input_type -> google.protobuf.Empty - 30, // 29: vmproto.VM.GetBlockIDAtHeight:input_type -> vmproto.GetBlockIDAtHeightRequest - 2, // 30: vmproto.VM.Initialize:output_type -> vmproto.InitializeResponse - 34, // 31: vmproto.VM.SetState:output_type -> google.protobuf.Empty - 34, // 32: vmproto.VM.Shutdown:output_type -> google.protobuf.Empty - 4, // 33: vmproto.VM.CreateHandlers:output_type -> vmproto.CreateHandlersResponse - 5, // 34: vmproto.VM.CreateStaticHandlers:output_type -> vmproto.CreateStaticHandlersResponse - 34, // 35: vmproto.VM.Connected:output_type -> google.protobuf.Empty - 34, // 36: vmproto.VM.Disconnected:output_type -> google.protobuf.Empty - 7, // 37: vmproto.VM.BuildBlock:output_type -> vmproto.BuildBlockResponse - 9, // 38: vmproto.VM.ParseBlock:output_type -> vmproto.ParseBlockResponse - 11, // 39: vmproto.VM.GetBlock:output_type -> vmproto.GetBlockResponse - 34, // 40: vmproto.VM.SetPreference:output_type -> google.protobuf.Empty - 17, // 41: vmproto.VM.Health:output_type -> vmproto.HealthResponse - 18, // 42: vmproto.VM.Version:output_type -> vmproto.VersionResponse - 34, // 43: vmproto.VM.AppRequest:output_type -> google.protobuf.Empty - 34, // 44: vmproto.VM.AppRequestFailed:output_type -> google.protobuf.Empty - 34, // 45: vmproto.VM.AppResponse:output_type -> google.protobuf.Empty - 34, // 46: vmproto.VM.AppGossip:output_type -> google.protobuf.Empty - 32, // 47: vmproto.VM.Gather:output_type -> vmproto.GatherResponse - 14, // 48: vmproto.VM.BlockVerify:output_type -> vmproto.BlockVerifyResponse - 34, // 49: vmproto.VM.BlockAccept:output_type -> google.protobuf.Empty - 34, // 50: vmproto.VM.BlockReject:output_type -> google.protobuf.Empty - 26, // 51: vmproto.VM.GetAncestors:output_type -> vmproto.GetAncestorsResponse - 28, // 52: vmproto.VM.BatchedParseBlock:output_type -> vmproto.BatchedParseBlockResponse - 29, // 53: vmproto.VM.VerifyHeightIndex:output_type -> vmproto.VerifyHeightIndexResponse - 31, // 54: vmproto.VM.GetBlockIDAtHeight:output_type -> vmproto.GetBlockIDAtHeightResponse +var file_vm_vm_proto_depIdxs = []int32{ + 3, // 0: vm.InitializeRequest.db_servers:type_name -> vm.VersionedDBServer + 6, // 1: vm.CreateHandlersResponse.handlers:type_name -> vm.Handler + 6, // 2: vm.CreateStaticHandlersResponse.handlers:type_name -> vm.Handler + 9, // 3: vm.BatchedParseBlockResponse.response:type_name -> vm.ParseBlockResponse + 33, // 4: vm.GatherResponse.metric_families:type_name -> io.prometheus.client.MetricFamily + 0, // 5: vm.VM.Initialize:input_type -> vm.InitializeRequest + 1, // 6: vm.VM.SetState:input_type -> vm.SetStateRequest + 34, // 7: vm.VM.Shutdown:input_type -> google.protobuf.Empty + 34, // 8: vm.VM.CreateHandlers:input_type -> google.protobuf.Empty + 34, // 9: vm.VM.CreateStaticHandlers:input_type -> google.protobuf.Empty + 23, // 10: vm.VM.Connected:input_type -> vm.ConnectedRequest + 24, // 11: vm.VM.Disconnected:input_type -> vm.DisconnectedRequest + 34, // 12: vm.VM.BuildBlock:input_type -> google.protobuf.Empty + 8, // 13: vm.VM.ParseBlock:input_type -> vm.ParseBlockRequest + 10, // 14: vm.VM.GetBlock:input_type -> vm.GetBlockRequest + 12, // 15: vm.VM.SetPreference:input_type -> vm.SetPreferenceRequest + 34, // 16: vm.VM.Health:input_type -> google.protobuf.Empty + 34, // 17: vm.VM.Version:input_type -> google.protobuf.Empty + 19, // 18: vm.VM.AppRequest:input_type -> vm.AppRequestMsg + 20, // 19: vm.VM.AppRequestFailed:input_type -> vm.AppRequestFailedMsg + 21, // 20: vm.VM.AppResponse:input_type -> vm.AppResponseMsg + 22, // 21: vm.VM.AppGossip:input_type -> vm.AppGossipMsg + 34, // 22: vm.VM.Gather:input_type -> google.protobuf.Empty + 13, // 23: vm.VM.BlockVerify:input_type -> vm.BlockVerifyRequest + 15, // 24: vm.VM.BlockAccept:input_type -> vm.BlockAcceptRequest + 16, // 25: vm.VM.BlockReject:input_type -> vm.BlockRejectRequest + 25, // 26: vm.VM.GetAncestors:input_type -> vm.GetAncestorsRequest + 27, // 27: vm.VM.BatchedParseBlock:input_type -> vm.BatchedParseBlockRequest + 34, // 28: vm.VM.VerifyHeightIndex:input_type -> google.protobuf.Empty + 30, // 29: vm.VM.GetBlockIDAtHeight:input_type -> vm.GetBlockIDAtHeightRequest + 2, // 30: vm.VM.Initialize:output_type -> vm.InitializeResponse + 34, // 31: vm.VM.SetState:output_type -> google.protobuf.Empty + 34, // 32: vm.VM.Shutdown:output_type -> google.protobuf.Empty + 4, // 33: vm.VM.CreateHandlers:output_type -> vm.CreateHandlersResponse + 5, // 34: vm.VM.CreateStaticHandlers:output_type -> vm.CreateStaticHandlersResponse + 34, // 35: vm.VM.Connected:output_type -> google.protobuf.Empty + 34, // 36: vm.VM.Disconnected:output_type -> google.protobuf.Empty + 7, // 37: vm.VM.BuildBlock:output_type -> vm.BuildBlockResponse + 9, // 38: vm.VM.ParseBlock:output_type -> vm.ParseBlockResponse + 11, // 39: vm.VM.GetBlock:output_type -> vm.GetBlockResponse + 34, // 40: vm.VM.SetPreference:output_type -> google.protobuf.Empty + 17, // 41: vm.VM.Health:output_type -> vm.HealthResponse + 18, // 42: vm.VM.Version:output_type -> vm.VersionResponse + 34, // 43: vm.VM.AppRequest:output_type -> google.protobuf.Empty + 34, // 44: vm.VM.AppRequestFailed:output_type -> google.protobuf.Empty + 34, // 45: vm.VM.AppResponse:output_type -> google.protobuf.Empty + 34, // 46: vm.VM.AppGossip:output_type -> google.protobuf.Empty + 32, // 47: vm.VM.Gather:output_type -> vm.GatherResponse + 14, // 48: vm.VM.BlockVerify:output_type -> vm.BlockVerifyResponse + 34, // 49: vm.VM.BlockAccept:output_type -> google.protobuf.Empty + 34, // 50: vm.VM.BlockReject:output_type -> google.protobuf.Empty + 26, // 51: vm.VM.GetAncestors:output_type -> vm.GetAncestorsResponse + 28, // 52: vm.VM.BatchedParseBlock:output_type -> vm.BatchedParseBlockResponse + 29, // 53: vm.VM.VerifyHeightIndex:output_type -> vm.VerifyHeightIndexResponse + 31, // 54: vm.VM.GetBlockIDAtHeight:output_type -> vm.GetBlockIDAtHeightResponse 30, // [30:55] is the sub-list for method output_type 5, // [5:30] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -2343,13 +2331,13 @@ var file_vmproto_vm_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_vmproto_vm_proto_init() } -func file_vmproto_vm_proto_init() { - if File_vmproto_vm_proto != nil { +func init() { file_vm_vm_proto_init() } +func file_vm_vm_proto_init() { + if File_vm_vm_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_vmproto_vm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InitializeRequest); i { case 0: return &v.state @@ -2361,7 +2349,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetStateRequest); i { case 0: return &v.state @@ -2373,7 +2361,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InitializeResponse); i { case 0: return &v.state @@ -2385,7 +2373,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VersionedDBServer); i { case 0: return &v.state @@ -2397,7 +2385,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateHandlersResponse); i { case 0: return &v.state @@ -2409,7 +2397,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateStaticHandlersResponse); i { case 0: return &v.state @@ -2421,7 +2409,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Handler); i { case 0: return &v.state @@ -2433,7 +2421,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BuildBlockResponse); i { case 0: return &v.state @@ -2445,7 +2433,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParseBlockRequest); i { case 0: return &v.state @@ -2457,7 +2445,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParseBlockResponse); i { case 0: return &v.state @@ -2469,7 +2457,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBlockRequest); i { case 0: return &v.state @@ -2481,7 +2469,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBlockResponse); i { case 0: return &v.state @@ -2493,7 +2481,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetPreferenceRequest); i { case 0: return &v.state @@ -2505,7 +2493,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockVerifyRequest); i { case 0: return &v.state @@ -2517,7 +2505,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockVerifyResponse); i { case 0: return &v.state @@ -2529,7 +2517,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockAcceptRequest); i { case 0: return &v.state @@ -2541,7 +2529,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BlockRejectRequest); i { case 0: return &v.state @@ -2553,7 +2541,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HealthResponse); i { case 0: return &v.state @@ -2565,7 +2553,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VersionResponse); i { case 0: return &v.state @@ -2577,7 +2565,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppRequestMsg); i { case 0: return &v.state @@ -2589,7 +2577,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppRequestFailedMsg); i { case 0: return &v.state @@ -2601,7 +2589,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppResponseMsg); i { case 0: return &v.state @@ -2613,7 +2601,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppGossipMsg); i { case 0: return &v.state @@ -2625,7 +2613,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConnectedRequest); i { case 0: return &v.state @@ -2637,7 +2625,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DisconnectedRequest); i { case 0: return &v.state @@ -2649,7 +2637,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAncestorsRequest); i { case 0: return &v.state @@ -2661,7 +2649,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAncestorsResponse); i { case 0: return &v.state @@ -2673,7 +2661,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchedParseBlockRequest); i { case 0: return &v.state @@ -2685,7 +2673,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchedParseBlockResponse); i { case 0: return &v.state @@ -2697,7 +2685,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VerifyHeightIndexResponse); i { case 0: return &v.state @@ -2709,7 +2697,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBlockIDAtHeightRequest); i { case 0: return &v.state @@ -2721,7 +2709,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBlockIDAtHeightResponse); i { case 0: return &v.state @@ -2733,7 +2721,7 @@ func file_vmproto_vm_proto_init() { return nil } } - file_vmproto_vm_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_vm_vm_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GatherResponse); i { case 0: return &v.state @@ -2750,18 +2738,18 @@ func file_vmproto_vm_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_vmproto_vm_proto_rawDesc, + RawDescriptor: file_vm_vm_proto_rawDesc, NumEnums: 0, NumMessages: 33, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_vmproto_vm_proto_goTypes, - DependencyIndexes: file_vmproto_vm_proto_depIdxs, - MessageInfos: file_vmproto_vm_proto_msgTypes, + GoTypes: file_vm_vm_proto_goTypes, + DependencyIndexes: file_vm_vm_proto_depIdxs, + MessageInfos: file_vm_vm_proto_msgTypes, }.Build() - File_vmproto_vm_proto = out.File - file_vmproto_vm_proto_rawDesc = nil - file_vmproto_vm_proto_goTypes = nil - file_vmproto_vm_proto_depIdxs = nil + File_vm_vm_proto = out.File + file_vm_vm_proto_rawDesc = nil + file_vm_vm_proto_goTypes = nil + file_vm_vm_proto_depIdxs = nil } diff --git a/api/proto/vmproto/vm_grpc.pb.go b/proto/pb/vm/vm_grpc.pb.go similarity index 92% rename from api/proto/vmproto/vm_grpc.pb.go rename to proto/pb/vm/vm_grpc.pb.go index 81074ae3f930..6d0138b3d3f1 100644 --- a/api/proto/vmproto/vm_grpc.pb.go +++ b/proto/pb/vm/vm_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) -// source: vmproto/vm.proto +// source: vm/vm.proto -package vmproto +package vm import ( context "context" @@ -60,7 +60,7 @@ func NewVMClient(cc grpc.ClientConnInterface) VMClient { func (c *vMClient) Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*InitializeResponse, error) { out := new(InitializeResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/Initialize", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Initialize", in, out, opts...) if err != nil { return nil, err } @@ -69,7 +69,7 @@ func (c *vMClient) Initialize(ctx context.Context, in *InitializeRequest, opts . func (c *vMClient) SetState(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/SetState", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/SetState", in, out, opts...) if err != nil { return nil, err } @@ -78,7 +78,7 @@ func (c *vMClient) SetState(ctx context.Context, in *SetStateRequest, opts ...gr func (c *vMClient) Shutdown(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/Shutdown", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Shutdown", in, out, opts...) if err != nil { return nil, err } @@ -87,7 +87,7 @@ func (c *vMClient) Shutdown(ctx context.Context, in *emptypb.Empty, opts ...grpc func (c *vMClient) CreateHandlers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CreateHandlersResponse, error) { out := new(CreateHandlersResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/CreateHandlers", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/CreateHandlers", in, out, opts...) if err != nil { return nil, err } @@ -96,7 +96,7 @@ func (c *vMClient) CreateHandlers(ctx context.Context, in *emptypb.Empty, opts . func (c *vMClient) CreateStaticHandlers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CreateStaticHandlersResponse, error) { out := new(CreateStaticHandlersResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/CreateStaticHandlers", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/CreateStaticHandlers", in, out, opts...) if err != nil { return nil, err } @@ -105,7 +105,7 @@ func (c *vMClient) CreateStaticHandlers(ctx context.Context, in *emptypb.Empty, func (c *vMClient) Connected(ctx context.Context, in *ConnectedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/Connected", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Connected", in, out, opts...) if err != nil { return nil, err } @@ -114,7 +114,7 @@ func (c *vMClient) Connected(ctx context.Context, in *ConnectedRequest, opts ... func (c *vMClient) Disconnected(ctx context.Context, in *DisconnectedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/Disconnected", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Disconnected", in, out, opts...) if err != nil { return nil, err } @@ -123,7 +123,7 @@ func (c *vMClient) Disconnected(ctx context.Context, in *DisconnectedRequest, op func (c *vMClient) BuildBlock(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BuildBlockResponse, error) { out := new(BuildBlockResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/BuildBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/BuildBlock", in, out, opts...) if err != nil { return nil, err } @@ -132,7 +132,7 @@ func (c *vMClient) BuildBlock(ctx context.Context, in *emptypb.Empty, opts ...gr func (c *vMClient) ParseBlock(ctx context.Context, in *ParseBlockRequest, opts ...grpc.CallOption) (*ParseBlockResponse, error) { out := new(ParseBlockResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/ParseBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/ParseBlock", in, out, opts...) if err != nil { return nil, err } @@ -141,7 +141,7 @@ func (c *vMClient) ParseBlock(ctx context.Context, in *ParseBlockRequest, opts . func (c *vMClient) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) { out := new(GetBlockResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/GetBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/GetBlock", in, out, opts...) if err != nil { return nil, err } @@ -150,7 +150,7 @@ func (c *vMClient) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...gr func (c *vMClient) SetPreference(ctx context.Context, in *SetPreferenceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/SetPreference", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/SetPreference", in, out, opts...) if err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *vMClient) SetPreference(ctx context.Context, in *SetPreferenceRequest, func (c *vMClient) Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthResponse, error) { out := new(HealthResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/Health", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Health", in, out, opts...) if err != nil { return nil, err } @@ -168,7 +168,7 @@ func (c *vMClient) Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.C func (c *vMClient) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) { out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/Version", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Version", in, out, opts...) if err != nil { return nil, err } @@ -177,7 +177,7 @@ func (c *vMClient) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc. func (c *vMClient) AppRequest(ctx context.Context, in *AppRequestMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/AppRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/AppRequest", in, out, opts...) if err != nil { return nil, err } @@ -186,7 +186,7 @@ func (c *vMClient) AppRequest(ctx context.Context, in *AppRequestMsg, opts ...gr func (c *vMClient) AppRequestFailed(ctx context.Context, in *AppRequestFailedMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/AppRequestFailed", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/AppRequestFailed", in, out, opts...) if err != nil { return nil, err } @@ -195,7 +195,7 @@ func (c *vMClient) AppRequestFailed(ctx context.Context, in *AppRequestFailedMsg func (c *vMClient) AppResponse(ctx context.Context, in *AppResponseMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/AppResponse", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/AppResponse", in, out, opts...) if err != nil { return nil, err } @@ -204,7 +204,7 @@ func (c *vMClient) AppResponse(ctx context.Context, in *AppResponseMsg, opts ... func (c *vMClient) AppGossip(ctx context.Context, in *AppGossipMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/AppGossip", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/AppGossip", in, out, opts...) if err != nil { return nil, err } @@ -213,7 +213,7 @@ func (c *vMClient) AppGossip(ctx context.Context, in *AppGossipMsg, opts ...grpc func (c *vMClient) Gather(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GatherResponse, error) { out := new(GatherResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/Gather", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/Gather", in, out, opts...) if err != nil { return nil, err } @@ -222,7 +222,7 @@ func (c *vMClient) Gather(ctx context.Context, in *emptypb.Empty, opts ...grpc.C func (c *vMClient) BlockVerify(ctx context.Context, in *BlockVerifyRequest, opts ...grpc.CallOption) (*BlockVerifyResponse, error) { out := new(BlockVerifyResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/BlockVerify", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/BlockVerify", in, out, opts...) if err != nil { return nil, err } @@ -231,7 +231,7 @@ func (c *vMClient) BlockVerify(ctx context.Context, in *BlockVerifyRequest, opts func (c *vMClient) BlockAccept(ctx context.Context, in *BlockAcceptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/BlockAccept", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/BlockAccept", in, out, opts...) if err != nil { return nil, err } @@ -240,7 +240,7 @@ func (c *vMClient) BlockAccept(ctx context.Context, in *BlockAcceptRequest, opts func (c *vMClient) BlockReject(ctx context.Context, in *BlockRejectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/vmproto.VM/BlockReject", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/BlockReject", in, out, opts...) if err != nil { return nil, err } @@ -249,7 +249,7 @@ func (c *vMClient) BlockReject(ctx context.Context, in *BlockRejectRequest, opts func (c *vMClient) GetAncestors(ctx context.Context, in *GetAncestorsRequest, opts ...grpc.CallOption) (*GetAncestorsResponse, error) { out := new(GetAncestorsResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/GetAncestors", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/GetAncestors", in, out, opts...) if err != nil { return nil, err } @@ -258,7 +258,7 @@ func (c *vMClient) GetAncestors(ctx context.Context, in *GetAncestorsRequest, op func (c *vMClient) BatchedParseBlock(ctx context.Context, in *BatchedParseBlockRequest, opts ...grpc.CallOption) (*BatchedParseBlockResponse, error) { out := new(BatchedParseBlockResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/BatchedParseBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/BatchedParseBlock", in, out, opts...) if err != nil { return nil, err } @@ -267,7 +267,7 @@ func (c *vMClient) BatchedParseBlock(ctx context.Context, in *BatchedParseBlockR func (c *vMClient) VerifyHeightIndex(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VerifyHeightIndexResponse, error) { out := new(VerifyHeightIndexResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/VerifyHeightIndex", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/VerifyHeightIndex", in, out, opts...) if err != nil { return nil, err } @@ -276,7 +276,7 @@ func (c *vMClient) VerifyHeightIndex(ctx context.Context, in *emptypb.Empty, opt func (c *vMClient) GetBlockIDAtHeight(ctx context.Context, in *GetBlockIDAtHeightRequest, opts ...grpc.CallOption) (*GetBlockIDAtHeightResponse, error) { out := new(GetBlockIDAtHeightResponse) - err := c.cc.Invoke(ctx, "/vmproto.VM/GetBlockIDAtHeight", in, out, opts...) + err := c.cc.Invoke(ctx, "/vm.VM/GetBlockIDAtHeight", in, out, opts...) if err != nil { return nil, err } @@ -417,7 +417,7 @@ func _VM_Initialize_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Initialize", + FullMethod: "/vm.VM/Initialize", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Initialize(ctx, req.(*InitializeRequest)) @@ -435,7 +435,7 @@ func _VM_SetState_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/SetState", + FullMethod: "/vm.VM/SetState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).SetState(ctx, req.(*SetStateRequest)) @@ -453,7 +453,7 @@ func _VM_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Shutdown", + FullMethod: "/vm.VM/Shutdown", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Shutdown(ctx, req.(*emptypb.Empty)) @@ -471,7 +471,7 @@ func _VM_CreateHandlers_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/CreateHandlers", + FullMethod: "/vm.VM/CreateHandlers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).CreateHandlers(ctx, req.(*emptypb.Empty)) @@ -489,7 +489,7 @@ func _VM_CreateStaticHandlers_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/CreateStaticHandlers", + FullMethod: "/vm.VM/CreateStaticHandlers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).CreateStaticHandlers(ctx, req.(*emptypb.Empty)) @@ -507,7 +507,7 @@ func _VM_Connected_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Connected", + FullMethod: "/vm.VM/Connected", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Connected(ctx, req.(*ConnectedRequest)) @@ -525,7 +525,7 @@ func _VM_Disconnected_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Disconnected", + FullMethod: "/vm.VM/Disconnected", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Disconnected(ctx, req.(*DisconnectedRequest)) @@ -543,7 +543,7 @@ func _VM_BuildBlock_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/BuildBlock", + FullMethod: "/vm.VM/BuildBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).BuildBlock(ctx, req.(*emptypb.Empty)) @@ -561,7 +561,7 @@ func _VM_ParseBlock_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/ParseBlock", + FullMethod: "/vm.VM/ParseBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).ParseBlock(ctx, req.(*ParseBlockRequest)) @@ -579,7 +579,7 @@ func _VM_GetBlock_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/GetBlock", + FullMethod: "/vm.VM/GetBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).GetBlock(ctx, req.(*GetBlockRequest)) @@ -597,7 +597,7 @@ func _VM_SetPreference_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/SetPreference", + FullMethod: "/vm.VM/SetPreference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).SetPreference(ctx, req.(*SetPreferenceRequest)) @@ -615,7 +615,7 @@ func _VM_Health_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Health", + FullMethod: "/vm.VM/Health", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Health(ctx, req.(*emptypb.Empty)) @@ -633,7 +633,7 @@ func _VM_Version_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Version", + FullMethod: "/vm.VM/Version", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Version(ctx, req.(*emptypb.Empty)) @@ -651,7 +651,7 @@ func _VM_AppRequest_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/AppRequest", + FullMethod: "/vm.VM/AppRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).AppRequest(ctx, req.(*AppRequestMsg)) @@ -669,7 +669,7 @@ func _VM_AppRequestFailed_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/AppRequestFailed", + FullMethod: "/vm.VM/AppRequestFailed", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).AppRequestFailed(ctx, req.(*AppRequestFailedMsg)) @@ -687,7 +687,7 @@ func _VM_AppResponse_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/AppResponse", + FullMethod: "/vm.VM/AppResponse", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).AppResponse(ctx, req.(*AppResponseMsg)) @@ -705,7 +705,7 @@ func _VM_AppGossip_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/AppGossip", + FullMethod: "/vm.VM/AppGossip", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).AppGossip(ctx, req.(*AppGossipMsg)) @@ -723,7 +723,7 @@ func _VM_Gather_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/Gather", + FullMethod: "/vm.VM/Gather", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).Gather(ctx, req.(*emptypb.Empty)) @@ -741,7 +741,7 @@ func _VM_BlockVerify_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/BlockVerify", + FullMethod: "/vm.VM/BlockVerify", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).BlockVerify(ctx, req.(*BlockVerifyRequest)) @@ -759,7 +759,7 @@ func _VM_BlockAccept_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/BlockAccept", + FullMethod: "/vm.VM/BlockAccept", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).BlockAccept(ctx, req.(*BlockAcceptRequest)) @@ -777,7 +777,7 @@ func _VM_BlockReject_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/BlockReject", + FullMethod: "/vm.VM/BlockReject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).BlockReject(ctx, req.(*BlockRejectRequest)) @@ -795,7 +795,7 @@ func _VM_GetAncestors_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/GetAncestors", + FullMethod: "/vm.VM/GetAncestors", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).GetAncestors(ctx, req.(*GetAncestorsRequest)) @@ -813,7 +813,7 @@ func _VM_BatchedParseBlock_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/BatchedParseBlock", + FullMethod: "/vm.VM/BatchedParseBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).BatchedParseBlock(ctx, req.(*BatchedParseBlockRequest)) @@ -831,7 +831,7 @@ func _VM_VerifyHeightIndex_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/VerifyHeightIndex", + FullMethod: "/vm.VM/VerifyHeightIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).VerifyHeightIndex(ctx, req.(*emptypb.Empty)) @@ -849,7 +849,7 @@ func _VM_GetBlockIDAtHeight_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/vmproto.VM/GetBlockIDAtHeight", + FullMethod: "/vm.VM/GetBlockIDAtHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VMServer).GetBlockIDAtHeight(ctx, req.(*GetBlockIDAtHeightRequest)) @@ -861,7 +861,7 @@ func _VM_GetBlockIDAtHeight_Handler(srv interface{}, ctx context.Context, dec fu // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var VM_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "vmproto.VM", + ServiceName: "vm.VM", HandlerType: (*VMServer)(nil), Methods: []grpc.MethodDesc{ { @@ -966,5 +966,5 @@ var VM_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "vmproto/vm.proto", + Metadata: "vm/vm.proto", } diff --git a/api/pluginproto/plugin.proto b/proto/plugin/plugin.proto similarity index 80% rename from api/pluginproto/plugin.proto rename to proto/plugin/plugin.proto index df9c566284bf..38f5e7a1dd01 100644 --- a/api/pluginproto/plugin.proto +++ b/proto/plugin/plugin.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package pluginproto; +package plugin; import "google/protobuf/empty.proto"; -option go_package = "github.com/ava-labs/avalanchego/api/pluginproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/plugin"; // To compile: protoc --go_out=plugins=grpc:. app.proto diff --git a/api/rpcdbproto/database.proto b/proto/rpcdb/rpcdb.proto similarity index 95% rename from api/rpcdbproto/database.proto rename to proto/rpcdb/rpcdb.proto index 770eeccc9924..19593fd2f459 100644 --- a/api/rpcdbproto/database.proto +++ b/proto/rpcdb/rpcdb.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package rpcdbproto; +package rpcdb; -option go_package = "github.com/ava-labs/avalanchego/api/proto/rpcdbproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/rpcdb"; message HasRequest { bytes key = 1; diff --git a/api/gsharedmemoryproto/sharedmemory.proto b/proto/sharedmemory/sharedmemory.proto similarity index 92% rename from api/gsharedmemoryproto/sharedmemory.proto rename to proto/sharedmemory/sharedmemory.proto index ce2c02e0cb1f..d4ab03204f6d 100644 --- a/api/gsharedmemoryproto/sharedmemory.proto +++ b/proto/sharedmemory/sharedmemory.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package gsharedmemoryproto; +package sharedmemory; -option go_package = "github.com/ava-labs/avalanchego/api/gsharedmemoryproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/sharedmemory"; message BatchPut { bytes key = 1; diff --git a/api/gsubnetlookupproto/subnetlookup.proto b/proto/subnetlookup/subnetlookup.proto similarity index 65% rename from api/gsubnetlookupproto/subnetlookup.proto rename to proto/subnetlookup/subnetlookup.proto index 905686dacfa0..348b337661eb 100644 --- a/api/gsubnetlookupproto/subnetlookup.proto +++ b/proto/subnetlookup/subnetlookup.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package gsubnetlookupproto; +package subnetlookup; -option go_package = "github.com/ava-labs/avalanchego/api/gsubnetlookupproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/subnetlookup"; message SubnetIDRequest { bytes chain_id = 1; diff --git a/api/vmproto/vm.proto b/proto/vm/vm.proto similarity index 98% rename from api/vmproto/vm.proto rename to proto/vm/vm.proto index 4f6b4b3a3800..afc09e1c85a5 100644 --- a/api/vmproto/vm.proto +++ b/proto/vm/vm.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package vmproto; +package vm; import "google/protobuf/empty.proto"; import "io/prometheus/client/metrics.proto"; -option go_package = "github.com/ava-labs/avalanchego/api/vmproto"; +option go_package = "github.com/ava-labs/avalanchego/proto/pb/vm"; service VM { rpc Initialize(InitializeRequest) returns (InitializeResponse); diff --git a/scripts/protobuf_codegen.sh b/scripts/protobuf_codegen.sh index c963347117d9..314156b740cb 100755 --- a/scripts/protobuf_codegen.sh +++ b/scripts/protobuf_codegen.sh @@ -27,7 +27,7 @@ if [[ $(protoc-gen-go-grpc --version | cut -f2 -d' ') != "${PROTOC_GEN_GO_GRPC_V exit 255 fi -TARGET=$PWD/api +TARGET=$PWD/proto if [ -n "$1" ]; then TARGET="$1" fi diff --git a/snow/engine/common/appsender/appsender_client.go b/snow/engine/common/appsender/appsender_client.go index 52688e05686e..f24839315f7d 100644 --- a/snow/engine/common/appsender/appsender_client.go +++ b/snow/engine/common/appsender/appsender_client.go @@ -6,19 +6,20 @@ package appsender import ( "context" - "github.com/ava-labs/avalanchego/api/proto/appsenderproto" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow/engine/common" + + appsenderpb "github.com/ava-labs/avalanchego/proto/pb/appsender" ) var _ common.AppSender = &Client{} type Client struct { - client appsenderproto.AppSenderClient + client appsenderpb.AppSenderClient } // NewClient returns a client that is connected to a remote AppSender. -func NewClient(client appsenderproto.AppSenderClient) *Client { +func NewClient(client appsenderpb.AppSenderClient) *Client { return &Client{client: client} } @@ -32,7 +33,7 @@ func (c *Client) SendAppRequest(nodeIDs ids.ShortSet, requestID uint32, request } _, err := c.client.SendAppRequest( context.Background(), - &appsenderproto.SendAppRequestMsg{ + &appsenderpb.SendAppRequestMsg{ NodeIds: nodeIDsBytes, RequestId: requestID, Request: request, @@ -44,7 +45,7 @@ func (c *Client) SendAppRequest(nodeIDs ids.ShortSet, requestID uint32, request func (c *Client) SendAppResponse(nodeID ids.ShortID, requestID uint32, response []byte) error { _, err := c.client.SendAppResponse( context.Background(), - &appsenderproto.SendAppResponseMsg{ + &appsenderpb.SendAppResponseMsg{ NodeId: nodeID[:], RequestId: requestID, Response: response, @@ -56,7 +57,7 @@ func (c *Client) SendAppResponse(nodeID ids.ShortID, requestID uint32, response func (c *Client) SendAppGossip(msg []byte) error { _, err := c.client.SendAppGossip( context.Background(), - &appsenderproto.SendAppGossipMsg{ + &appsenderpb.SendAppGossipMsg{ Msg: msg, }, ) @@ -73,7 +74,7 @@ func (c *Client) SendAppGossipSpecific(nodeIDs ids.ShortSet, msg []byte) error { } _, err := c.client.SendAppGossipSpecific( context.Background(), - &appsenderproto.SendAppGossipSpecificMsg{ + &appsenderpb.SendAppGossipSpecificMsg{ NodeIds: nodeIDsBytes, Msg: msg, }, diff --git a/snow/engine/common/appsender/appsender_server.go b/snow/engine/common/appsender/appsender_server.go index f70242152ef8..612a3009f2bd 100644 --- a/snow/engine/common/appsender/appsender_server.go +++ b/snow/engine/common/appsender/appsender_server.go @@ -6,16 +6,18 @@ package appsender import ( "context" - "github.com/ava-labs/avalanchego/api/proto/appsenderproto" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow/engine/common" - "google.golang.org/protobuf/types/known/emptypb" + + appsenderpb "github.com/ava-labs/avalanchego/proto/pb/appsender" ) -var _ appsenderproto.AppSenderServer = &Server{} +var _ appsenderpb.AppSenderServer = &Server{} type Server struct { - appsenderproto.UnimplementedAppSenderServer + appsenderpb.UnimplementedAppSenderServer appSender common.AppSender } @@ -24,7 +26,7 @@ func NewServer(appSender common.AppSender) *Server { return &Server{appSender: appSender} } -func (s *Server) SendAppRequest(_ context.Context, req *appsenderproto.SendAppRequestMsg) (*emptypb.Empty, error) { +func (s *Server) SendAppRequest(_ context.Context, req *appsenderpb.SendAppRequestMsg) (*emptypb.Empty, error) { nodeIDs := ids.NewShortSet(len(req.NodeIds)) for _, nodeIDBytes := range req.NodeIds { nodeID, err := ids.ToShortID(nodeIDBytes) @@ -37,7 +39,7 @@ func (s *Server) SendAppRequest(_ context.Context, req *appsenderproto.SendAppRe return &emptypb.Empty{}, err } -func (s *Server) SendAppResponse(_ context.Context, req *appsenderproto.SendAppResponseMsg) (*emptypb.Empty, error) { +func (s *Server) SendAppResponse(_ context.Context, req *appsenderpb.SendAppResponseMsg) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -46,12 +48,12 @@ func (s *Server) SendAppResponse(_ context.Context, req *appsenderproto.SendAppR return &emptypb.Empty{}, err } -func (s *Server) SendAppGossip(_ context.Context, req *appsenderproto.SendAppGossipMsg) (*emptypb.Empty, error) { +func (s *Server) SendAppGossip(_ context.Context, req *appsenderpb.SendAppGossipMsg) (*emptypb.Empty, error) { err := s.appSender.SendAppGossip(req.Msg) return &emptypb.Empty{}, err } -func (s *Server) SendAppGossipSpecific(_ context.Context, req *appsenderproto.SendAppGossipSpecificMsg) (*emptypb.Empty, error) { +func (s *Server) SendAppGossipSpecific(_ context.Context, req *appsenderpb.SendAppGossipSpecificMsg) (*emptypb.Empty, error) { nodeIDs := ids.NewShortSet(len(req.NodeIds)) for _, nodeIDBytes := range req.NodeIds { nodeID, err := ids.ToShortID(nodeIDBytes) diff --git a/vms/rpcchainvm/ghttp/gconn/conn_client.go b/vms/rpcchainvm/ghttp/gconn/conn_client.go index ebd440ff4e01..b1dbd18aa8bb 100644 --- a/vms/rpcchainvm/ghttp/gconn/conn_client.go +++ b/vms/rpcchainvm/ghttp/gconn/conn_client.go @@ -12,22 +12,23 @@ import ( "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/gconnproto" "github.com/ava-labs/avalanchego/utils/wrappers" + + connpb "github.com/ava-labs/avalanchego/proto/pb/net/conn" ) var _ net.Conn = &Client{} // Client is an implementation of a connection that talks over RPC. type Client struct { - client gconnproto.ConnClient + client connpb.ConnClient local net.Addr remote net.Addr toClose []io.Closer } // NewClient returns a connection connected to a remote connection -func NewClient(client gconnproto.ConnClient, local, remote net.Addr, toClose ...io.Closer) *Client { +func NewClient(client connpb.ConnClient, local, remote net.Addr, toClose ...io.Closer) *Client { return &Client{ client: client, local: local, @@ -37,7 +38,7 @@ func NewClient(client gconnproto.ConnClient, local, remote net.Addr, toClose ... } func (c *Client) Read(p []byte) (int, error) { - resp, err := c.client.Read(context.Background(), &gconnproto.ReadRequest{ + resp, err := c.client.Read(context.Background(), &connpb.ReadRequest{ Length: int32(len(p)), }) if err != nil { @@ -53,7 +54,7 @@ func (c *Client) Read(p []byte) (int, error) { } func (c *Client) Write(b []byte) (int, error) { - resp, err := c.client.Write(context.Background(), &gconnproto.WriteRequest{ + resp, err := c.client.Write(context.Background(), &connpb.WriteRequest{ Payload: b, }) if err != nil { @@ -84,7 +85,7 @@ func (c *Client) SetDeadline(t time.Time) error { if err != nil { return err } - _, err = c.client.SetDeadline(context.Background(), &gconnproto.SetDeadlineRequest{ + _, err = c.client.SetDeadline(context.Background(), &connpb.SetDeadlineRequest{ Time: bytes, }) return err @@ -95,7 +96,7 @@ func (c *Client) SetReadDeadline(t time.Time) error { if err != nil { return err } - _, err = c.client.SetReadDeadline(context.Background(), &gconnproto.SetDeadlineRequest{ + _, err = c.client.SetReadDeadline(context.Background(), &connpb.SetDeadlineRequest{ Time: bytes, }) return err @@ -106,7 +107,7 @@ func (c *Client) SetWriteDeadline(t time.Time) error { if err != nil { return err } - _, err = c.client.SetWriteDeadline(context.Background(), &gconnproto.SetDeadlineRequest{ + _, err = c.client.SetWriteDeadline(context.Background(), &connpb.SetDeadlineRequest{ Time: bytes, }) return err diff --git a/vms/rpcchainvm/ghttp/gconn/conn_server.go b/vms/rpcchainvm/ghttp/gconn/conn_server.go index bb623ea6e57d..7857d5e91ad7 100644 --- a/vms/rpcchainvm/ghttp/gconn/conn_server.go +++ b/vms/rpcchainvm/ghttp/gconn/conn_server.go @@ -10,15 +10,16 @@ import ( "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/gconnproto" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + + connpb "github.com/ava-labs/avalanchego/proto/pb/net/conn" ) -var _ gconnproto.ConnServer = &Server{} +var _ connpb.ConnServer = &Server{} // Server is an http.Conn that is managed over RPC. type Server struct { - gconnproto.UnimplementedConnServer + connpb.UnimplementedConnServer conn net.Conn closer *grpcutils.ServerCloser } @@ -31,10 +32,10 @@ func NewServer(conn net.Conn, closer *grpcutils.ServerCloser) *Server { } } -func (s *Server) Read(ctx context.Context, req *gconnproto.ReadRequest) (*gconnproto.ReadResponse, error) { +func (s *Server) Read(ctx context.Context, req *connpb.ReadRequest) (*connpb.ReadResponse, error) { buf := make([]byte, int(req.Length)) n, err := s.conn.Read(buf) - resp := &gconnproto.ReadResponse{ + resp := &connpb.ReadResponse{ Read: buf[:n], } if err != nil { @@ -44,12 +45,12 @@ func (s *Server) Read(ctx context.Context, req *gconnproto.ReadRequest) (*gconnp return resp, nil } -func (s *Server) Write(ctx context.Context, req *gconnproto.WriteRequest) (*gconnproto.WriteResponse, error) { +func (s *Server) Write(ctx context.Context, req *connpb.WriteRequest) (*connpb.WriteResponse, error) { n, err := s.conn.Write(req.Payload) if err != nil { return nil, err } - return &gconnproto.WriteResponse{ + return &connpb.WriteResponse{ Length: int32(n), }, nil } @@ -60,7 +61,7 @@ func (s *Server) Close(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, return &emptypb.Empty{}, err } -func (s *Server) SetDeadline(ctx context.Context, req *gconnproto.SetDeadlineRequest) (*emptypb.Empty, error) { +func (s *Server) SetDeadline(ctx context.Context, req *connpb.SetDeadlineRequest) (*emptypb.Empty, error) { deadline := time.Time{} err := deadline.UnmarshalBinary(req.Time) if err != nil { @@ -69,7 +70,7 @@ func (s *Server) SetDeadline(ctx context.Context, req *gconnproto.SetDeadlineReq return &emptypb.Empty{}, s.conn.SetDeadline(deadline) } -func (s *Server) SetReadDeadline(ctx context.Context, req *gconnproto.SetDeadlineRequest) (*emptypb.Empty, error) { +func (s *Server) SetReadDeadline(ctx context.Context, req *connpb.SetDeadlineRequest) (*emptypb.Empty, error) { deadline := time.Time{} err := deadline.UnmarshalBinary(req.Time) if err != nil { @@ -78,7 +79,7 @@ func (s *Server) SetReadDeadline(ctx context.Context, req *gconnproto.SetDeadlin return &emptypb.Empty{}, s.conn.SetReadDeadline(deadline) } -func (s *Server) SetWriteDeadline(ctx context.Context, req *gconnproto.SetDeadlineRequest) (*emptypb.Empty, error) { +func (s *Server) SetWriteDeadline(ctx context.Context, req *connpb.SetDeadlineRequest) (*emptypb.Empty, error) { deadline := time.Time{} err := deadline.UnmarshalBinary(req.Time) if err != nil { diff --git a/vms/rpcchainvm/ghttp/greader/reader_client.go b/vms/rpcchainvm/ghttp/greader/reader_client.go index 5ce48334c477..cf7eade3143e 100644 --- a/vms/rpcchainvm/ghttp/greader/reader_client.go +++ b/vms/rpcchainvm/ghttp/greader/reader_client.go @@ -8,21 +8,21 @@ import ( "errors" "io" - "github.com/ava-labs/avalanchego/api/proto/greaderproto" + readerpb "github.com/ava-labs/avalanchego/proto/pb/io/reader" ) var _ io.Reader = &Client{} // Client is a reader that talks over RPC. -type Client struct{ client greaderproto.ReaderClient } +type Client struct{ client readerpb.ReaderClient } // NewClient returns a reader connected to a remote reader -func NewClient(client greaderproto.ReaderClient) *Client { +func NewClient(client readerpb.ReaderClient) *Client { return &Client{client: client} } func (c *Client) Read(p []byte) (int, error) { - resp, err := c.client.Read(context.Background(), &greaderproto.ReadRequest{ + resp, err := c.client.Read(context.Background(), &readerpb.ReadRequest{ Length: int32(len(p)), }) if err != nil { diff --git a/vms/rpcchainvm/ghttp/greader/reader_server.go b/vms/rpcchainvm/ghttp/greader/reader_server.go index fa0b75564a74..869a6629e8af 100644 --- a/vms/rpcchainvm/ghttp/greader/reader_server.go +++ b/vms/rpcchainvm/ghttp/greader/reader_server.go @@ -7,14 +7,14 @@ import ( "context" "io" - "github.com/ava-labs/avalanchego/api/proto/greaderproto" + readerpb "github.com/ava-labs/avalanchego/proto/pb/io/reader" ) -var _ greaderproto.ReaderServer = &Server{} +var _ readerpb.ReaderServer = &Server{} // Server is an io.Reader that is managed over RPC. type Server struct { - greaderproto.UnimplementedReaderServer + readerpb.UnimplementedReaderServer reader io.Reader } @@ -23,10 +23,10 @@ func NewServer(reader io.Reader) *Server { return &Server{reader: reader} } -func (s *Server) Read(ctx context.Context, req *greaderproto.ReadRequest) (*greaderproto.ReadResponse, error) { +func (s *Server) Read(ctx context.Context, req *readerpb.ReadRequest) (*readerpb.ReadResponse, error) { buf := make([]byte, int(req.Length)) n, err := s.reader.Read(buf) - resp := &greaderproto.ReadResponse{ + resp := &readerpb.ReadResponse{ Read: buf[:n], } if err != nil { diff --git a/vms/rpcchainvm/ghttp/gresponsewriter/writer_client.go b/vms/rpcchainvm/ghttp/gresponsewriter/writer_client.go index 0bff0f1237f0..e43e00f8196f 100644 --- a/vms/rpcchainvm/ghttp/gresponsewriter/writer_client.go +++ b/vms/rpcchainvm/ghttp/gresponsewriter/writer_client.go @@ -9,17 +9,18 @@ import ( "net" "net/http" - "google.golang.org/protobuf/types/known/emptypb" - "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/proto/gconnproto" - "github.com/ava-labs/avalanchego/api/proto/greaderproto" - "github.com/ava-labs/avalanchego/api/proto/gresponsewriterproto" - "github.com/ava-labs/avalanchego/api/proto/gwriterproto" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gconn" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/greader" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gwriter" + + responsewriterpb "github.com/ava-labs/avalanchego/proto/pb/http/responsewriter" + readerpb "github.com/ava-labs/avalanchego/proto/pb/io/reader" + writerpb "github.com/ava-labs/avalanchego/proto/pb/io/writer" + connpb "github.com/ava-labs/avalanchego/proto/pb/net/conn" ) var ( @@ -30,13 +31,13 @@ var ( // Client is an http.ResponseWriter that talks over RPC. type Client struct { - client gresponsewriterproto.WriterClient + client responsewriterpb.WriterClient header http.Header broker *plugin.GRPCBroker } // NewClient returns a response writer connected to a remote response writer -func NewClient(header http.Header, client gresponsewriterproto.WriterClient, broker *plugin.GRPCBroker) *Client { +func NewClient(header http.Header, client responsewriterpb.WriterClient, broker *plugin.GRPCBroker) *Client { return &Client{ client: client, header: header, @@ -47,12 +48,12 @@ func NewClient(header http.Header, client gresponsewriterproto.WriterClient, bro func (c *Client) Header() http.Header { return c.header } func (c *Client) Write(payload []byte) (int, error) { - req := &gresponsewriterproto.WriteRequest{ - Headers: make([]*gresponsewriterproto.Header, 0, len(c.header)), + req := &responsewriterpb.WriteRequest{ + Headers: make([]*responsewriterpb.Header, 0, len(c.header)), Payload: payload, } for key, values := range c.header { - req.Headers = append(req.Headers, &gresponsewriterproto.Header{ + req.Headers = append(req.Headers, &responsewriterpb.Header{ Key: key, Values: values, }) @@ -65,12 +66,12 @@ func (c *Client) Write(payload []byte) (int, error) { } func (c *Client) WriteHeader(statusCode int) { - req := &gresponsewriterproto.WriteHeaderRequest{ - Headers: make([]*gresponsewriterproto.Header, 0, len(c.header)), + req := &responsewriterpb.WriteHeaderRequest{ + Headers: make([]*responsewriterpb.Header, 0, len(c.header)), StatusCode: int32(statusCode), } for key, values := range c.header { - req.Headers = append(req.Headers, &gresponsewriterproto.Header{ + req.Headers = append(req.Headers, &responsewriterpb.Header{ Key: key, Values: values, }) @@ -104,7 +105,7 @@ func (c *Client) Hijack() (net.Conn, *bufio.ReadWriter, error) { } conn := gconn.NewClient( - gconnproto.NewConnClient(clientConn), + connpb.NewConnClient(clientConn), &addr{ network: resp.LocalNetwork, str: resp.LocalString, @@ -116,8 +117,8 @@ func (c *Client) Hijack() (net.Conn, *bufio.ReadWriter, error) { clientConn, ) - reader := greader.NewClient(greaderproto.NewReaderClient(clientConn)) - writer := gwriter.NewClient(gwriterproto.NewWriterClient(clientConn)) + reader := greader.NewClient(readerpb.NewReaderClient(clientConn)) + writer := gwriter.NewClient(writerpb.NewWriterClient(clientConn)) readWriter := bufio.NewReadWriter( bufio.NewReader(reader), diff --git a/vms/rpcchainvm/ghttp/gresponsewriter/writer_server.go b/vms/rpcchainvm/ghttp/gresponsewriter/writer_server.go index 6d1367b036d0..9648c71e9041 100644 --- a/vms/rpcchainvm/ghttp/gresponsewriter/writer_server.go +++ b/vms/rpcchainvm/ghttp/gresponsewriter/writer_server.go @@ -8,32 +8,33 @@ import ( "errors" "net/http" + "github.com/hashicorp/go-plugin" + "google.golang.org/grpc" "google.golang.org/protobuf/types/known/emptypb" - "github.com/hashicorp/go-plugin" - - "github.com/ava-labs/avalanchego/api/proto/gconnproto" - "github.com/ava-labs/avalanchego/api/proto/greaderproto" - "github.com/ava-labs/avalanchego/api/proto/gresponsewriterproto" - "github.com/ava-labs/avalanchego/api/proto/gwriterproto" "github.com/ava-labs/avalanchego/utils/math" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gconn" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/greader" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gwriter" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + + responsewriterpb "github.com/ava-labs/avalanchego/proto/pb/http/responsewriter" + readerpb "github.com/ava-labs/avalanchego/proto/pb/io/reader" + writerpb "github.com/ava-labs/avalanchego/proto/pb/io/writer" + connpb "github.com/ava-labs/avalanchego/proto/pb/net/conn" ) var ( errUnsupportedFlushing = errors.New("response writer doesn't support flushing") errUnsupportedHijacking = errors.New("response writer doesn't support hijacking") - _ gresponsewriterproto.WriterServer = &Server{} + _ responsewriterpb.WriterServer = &Server{} ) // Server is an http.ResponseWriter that is managed over RPC. type Server struct { - gresponsewriterproto.UnimplementedWriterServer + responsewriterpb.UnimplementedWriterServer writer http.ResponseWriter broker *plugin.GRPCBroker } @@ -46,7 +47,7 @@ func NewServer(writer http.ResponseWriter, broker *plugin.GRPCBroker) *Server { } } -func (s *Server) Write(ctx context.Context, req *gresponsewriterproto.WriteRequest) (*gresponsewriterproto.WriteResponse, error) { +func (s *Server) Write(ctx context.Context, req *responsewriterpb.WriteRequest) (*responsewriterpb.WriteResponse, error) { headers := s.writer.Header() for key := range headers { delete(headers, key) @@ -59,12 +60,12 @@ func (s *Server) Write(ctx context.Context, req *gresponsewriterproto.WriteReque if err != nil { return nil, err } - return &gresponsewriterproto.WriteResponse{ + return &responsewriterpb.WriteResponse{ Written: int32(n), }, nil } -func (s *Server) WriteHeader(ctx context.Context, req *gresponsewriterproto.WriteHeaderRequest) (*emptypb.Empty, error) { +func (s *Server) WriteHeader(ctx context.Context, req *responsewriterpb.WriteHeaderRequest) (*emptypb.Empty, error) { headers := s.writer.Header() for key := range headers { delete(headers, key) @@ -85,7 +86,7 @@ func (s *Server) Flush(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, return &emptypb.Empty{}, nil } -func (s *Server) Hijack(ctx context.Context, req *emptypb.Empty) (*gresponsewriterproto.HijackResponse, error) { +func (s *Server) Hijack(ctx context.Context, req *emptypb.Empty) (*responsewriterpb.HijackResponse, error) { hijacker, ok := s.writer.(http.Hijacker) if !ok { return nil, errUnsupportedHijacking @@ -105,16 +106,16 @@ func (s *Server) Hijack(ctx context.Context, req *emptypb.Empty) (*gresponsewrit ) server := grpc.NewServer(opts...) closer.Add(server) - gconnproto.RegisterConnServer(server, gconn.NewServer(conn, &closer)) - greaderproto.RegisterReaderServer(server, greader.NewServer(readWriter)) - gwriterproto.RegisterWriterServer(server, gwriter.NewServer(readWriter)) + connpb.RegisterConnServer(server, gconn.NewServer(conn, &closer)) + readerpb.RegisterReaderServer(server, greader.NewServer(readWriter)) + writerpb.RegisterWriterServer(server, gwriter.NewServer(readWriter)) return server }) local := conn.LocalAddr() remote := conn.RemoteAddr() - return &gresponsewriterproto.HijackResponse{ + return &responsewriterpb.HijackResponse{ LocalNetwork: local.Network(), LocalString: local.String(), RemoteNetwork: remote.Network(), diff --git a/vms/rpcchainvm/ghttp/gwriter/writer_client.go b/vms/rpcchainvm/ghttp/gwriter/writer_client.go index 1fddf3441eca..23c714331997 100644 --- a/vms/rpcchainvm/ghttp/gwriter/writer_client.go +++ b/vms/rpcchainvm/ghttp/gwriter/writer_client.go @@ -8,21 +8,21 @@ import ( "errors" "io" - "github.com/ava-labs/avalanchego/api/proto/gwriterproto" + writerpb "github.com/ava-labs/avalanchego/proto/pb/io/writer" ) var _ io.Writer = &Client{} // Client is an io.Writer that talks over RPC. -type Client struct{ client gwriterproto.WriterClient } +type Client struct{ client writerpb.WriterClient } // NewClient returns a writer connected to a remote writer -func NewClient(client gwriterproto.WriterClient) *Client { +func NewClient(client writerpb.WriterClient) *Client { return &Client{client: client} } func (c *Client) Write(p []byte) (int, error) { - resp, err := c.client.Write(context.Background(), &gwriterproto.WriteRequest{ + resp, err := c.client.Write(context.Background(), &writerpb.WriteRequest{ Payload: p, }) if err != nil { diff --git a/vms/rpcchainvm/ghttp/gwriter/writer_server.go b/vms/rpcchainvm/ghttp/gwriter/writer_server.go index 341d7b205441..fec8c0c11442 100644 --- a/vms/rpcchainvm/ghttp/gwriter/writer_server.go +++ b/vms/rpcchainvm/ghttp/gwriter/writer_server.go @@ -7,14 +7,14 @@ import ( "context" "io" - "github.com/ava-labs/avalanchego/api/proto/gwriterproto" + writerpb "github.com/ava-labs/avalanchego/proto/pb/io/writer" ) -var _ gwriterproto.WriterServer = &Server{} +var _ writerpb.WriterServer = &Server{} // Server is an http.Handler that is managed over RPC. type Server struct { - gwriterproto.UnimplementedWriterServer + writerpb.UnimplementedWriterServer writer io.Writer } @@ -23,9 +23,9 @@ func NewServer(writer io.Writer) *Server { return &Server{writer: writer} } -func (s *Server) Write(ctx context.Context, req *gwriterproto.WriteRequest) (*gwriterproto.WriteResponse, error) { +func (s *Server) Write(ctx context.Context, req *writerpb.WriteRequest) (*writerpb.WriteResponse, error) { n, err := s.writer.Write(req.Payload) - resp := &gwriterproto.WriteResponse{ + resp := &writerpb.WriteResponse{ Written: int32(n), } if err != nil { diff --git a/vms/rpcchainvm/ghttp/http_client.go b/vms/rpcchainvm/ghttp/http_client.go index 2af6ab0c5174..12ca306ef5f8 100644 --- a/vms/rpcchainvm/ghttp/http_client.go +++ b/vms/rpcchainvm/ghttp/http_client.go @@ -7,28 +7,29 @@ import ( "io" "net/http" - "google.golang.org/grpc" - "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" - "github.com/ava-labs/avalanchego/api/proto/gresponsewriterproto" + "google.golang.org/grpc" + "github.com/ava-labs/avalanchego/utils/math" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gresponsewriter" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + + httppb "github.com/ava-labs/avalanchego/proto/pb/http" + responsewriterpb "github.com/ava-labs/avalanchego/proto/pb/http/responsewriter" ) var _ http.Handler = &Client{} // Client is an http.Handler that talks over RPC. type Client struct { - client ghttpproto.HTTPClient + client httppb.HTTPClient broker *plugin.GRPCBroker } // NewClient returns an HTTP handler database instance connected to a remote // HTTP handler instance -func NewClient(client ghttpproto.HTTPClient, broker *plugin.GRPCBroker) *Client { +func NewClient(client httppb.HTTPClient, broker *plugin.GRPCBroker) *Client { return &Client{ client: client, broker: broker, @@ -60,7 +61,7 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { ) server := grpc.NewServer(opts...) closer.Add(server) - gresponsewriterproto.RegisterWriterServer(server, gresponsewriter.NewServer(w, c.broker)) + responsewriterpb.RegisterWriterServer(server, gresponsewriter.NewServer(w, c.broker)) return server }) @@ -70,54 +71,54 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - req := &ghttpproto.HTTPRequest{ - ResponseWriter: &ghttpproto.ResponseWriter{ + req := &httppb.HTTPRequest{ + ResponseWriter: &httppb.ResponseWriter{ Id: readerWriterID, - Header: make([]*ghttpproto.Element, 0, len(r.Header)), + Header: make([]*httppb.Element, 0, len(r.Header)), }, - Request: &ghttpproto.Request{ + Request: &httppb.Request{ Method: r.Method, Proto: r.Proto, ProtoMajor: int32(r.ProtoMajor), ProtoMinor: int32(r.ProtoMinor), - Header: make([]*ghttpproto.Element, 0, len(r.Header)), + Header: make([]*httppb.Element, 0, len(r.Header)), Body: body, ContentLength: r.ContentLength, TransferEncoding: r.TransferEncoding, Host: r.Host, - Form: make([]*ghttpproto.Element, 0, len(r.Form)), - PostForm: make([]*ghttpproto.Element, 0, len(r.PostForm)), + Form: make([]*httppb.Element, 0, len(r.Form)), + PostForm: make([]*httppb.Element, 0, len(r.PostForm)), RemoteAddr: r.RemoteAddr, RequestUri: r.RequestURI, }, } for key, values := range w.Header() { - req.ResponseWriter.Header = append(req.ResponseWriter.Header, &ghttpproto.Element{ + req.ResponseWriter.Header = append(req.ResponseWriter.Header, &httppb.Element{ Key: key, Values: values, }) } for key, values := range r.Header { - req.Request.Header = append(req.Request.Header, &ghttpproto.Element{ + req.Request.Header = append(req.Request.Header, &httppb.Element{ Key: key, Values: values, }) } for key, values := range r.Form { - req.Request.Form = append(req.Request.Form, &ghttpproto.Element{ + req.Request.Form = append(req.Request.Form, &httppb.Element{ Key: key, Values: values, }) } for key, values := range r.PostForm { - req.Request.PostForm = append(req.Request.PostForm, &ghttpproto.Element{ + req.Request.PostForm = append(req.Request.PostForm, &httppb.Element{ Key: key, Values: values, }) } if r.URL != nil { - req.Request.Url = &ghttpproto.URL{ + req.Request.Url = &httppb.URL{ Scheme: r.URL.Scheme, Opaque: r.URL.Opaque, Host: r.URL.Host, @@ -130,7 +131,7 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { if r.URL.User != nil { pwd, set := r.URL.User.Password() - req.Request.Url.User = &ghttpproto.Userinfo{ + req.Request.Url.User = &httppb.Userinfo{ Username: r.URL.User.Username(), Password: pwd, PasswordSet: set, @@ -139,17 +140,17 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { } if r.TLS != nil { - req.Request.Tls = &ghttpproto.ConnectionState{ + req.Request.Tls = &httppb.ConnectionState{ Version: uint32(r.TLS.Version), HandshakeComplete: r.TLS.HandshakeComplete, DidResume: r.TLS.DidResume, CipherSuite: uint32(r.TLS.CipherSuite), NegotiatedProtocol: r.TLS.NegotiatedProtocol, ServerName: r.TLS.ServerName, - PeerCertificates: &ghttpproto.Certificates{ + PeerCertificates: &httppb.Certificates{ Cert: make([][]byte, len(r.TLS.PeerCertificates)), }, - VerifiedChains: make([]*ghttpproto.Certificates, len(r.TLS.VerifiedChains)), + VerifiedChains: make([]*httppb.Certificates, len(r.TLS.VerifiedChains)), SignedCertificateTimestamps: r.TLS.SignedCertificateTimestamps, OcspResponse: r.TLS.OCSPResponse, } @@ -157,7 +158,7 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { req.Request.Tls.PeerCertificates.Cert[i] = cert.Raw } for i, chain := range r.TLS.VerifiedChains { - req.Request.Tls.VerifiedChains[i] = &ghttpproto.Certificates{ + req.Request.Tls.VerifiedChains[i] = &httppb.Certificates{ Cert: make([][]byte, len(chain)), } for j, cert := range chain { @@ -200,12 +201,12 @@ func (c *Client) serveHTTPSimple(w http.ResponseWriter, r *http.Request) { } // getHTTPSimpleRequest takes an http request as input and returns a gRPC HandleSimpleHTTPRequest. -func getHTTPSimpleRequest(r *http.Request) (*ghttpproto.HandleSimpleHTTPRequest, error) { +func getHTTPSimpleRequest(r *http.Request) (*httppb.HandleSimpleHTTPRequest, error) { body, err := io.ReadAll(r.Body) if err != nil { return nil, err } - return &ghttpproto.HandleSimpleHTTPRequest{ + return &httppb.HandleSimpleHTTPRequest{ Method: r.Method, Url: r.RequestURI, Body: body, @@ -214,7 +215,7 @@ func getHTTPSimpleRequest(r *http.Request) (*ghttpproto.HandleSimpleHTTPRequest, } // convertWriteResponse converts a gRPC HandleSimpleHTTPResponse to an HTTP response. -func convertWriteResponse(w http.ResponseWriter, resp *ghttpproto.HandleSimpleHTTPResponse) error { +func convertWriteResponse(w http.ResponseWriter, resp *httppb.HandleSimpleHTTPResponse) error { grpcutils.MergeHTTPHeader(resp.Headers, w.Header()) w.WriteHeader(int(resp.Code)) _, err := w.Write(resp.Body) diff --git a/vms/rpcchainvm/ghttp/http_server.go b/vms/rpcchainvm/ghttp/http_server.go index 8eaba5ee351a..2129b2203995 100644 --- a/vms/rpcchainvm/ghttp/http_server.go +++ b/vms/rpcchainvm/ghttp/http_server.go @@ -11,24 +11,25 @@ import ( "net/http" "net/url" - "google.golang.org/protobuf/types/known/emptypb" - "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" - "github.com/ava-labs/avalanchego/api/proto/gresponsewriterproto" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp/gresponsewriter" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + + httppb "github.com/ava-labs/avalanchego/proto/pb/http" + responsewriterpb "github.com/ava-labs/avalanchego/proto/pb/http/responsewriter" ) var ( - _ ghttpproto.HTTPServer = &Server{} - _ http.ResponseWriter = &ResponseWriter{} + _ httppb.HTTPServer = &Server{} + _ http.ResponseWriter = &ResponseWriter{} ) // Server is an http.Handler that is managed over RPC. type Server struct { - ghttpproto.UnimplementedHTTPServer + httppb.UnimplementedHTTPServer handler http.Handler broker *plugin.GRPCBroker } @@ -41,7 +42,7 @@ func NewServer(handler http.Handler, broker *plugin.GRPCBroker) *Server { } } -func (s *Server) Handle(ctx context.Context, req *ghttpproto.HTTPRequest) (*emptypb.Empty, error) { +func (s *Server) Handle(ctx context.Context, req *httppb.HTTPRequest) (*emptypb.Empty, error) { readWriteConn, err := s.broker.Dial(req.ResponseWriter.Id) if err != nil { return nil, err @@ -52,7 +53,7 @@ func (s *Server) Handle(ctx context.Context, req *ghttpproto.HTTPRequest) (*empt writerHeaders[elem.Key] = elem.Values } - writer := gresponsewriter.NewClient(writerHeaders, gresponsewriterproto.NewWriterClient(readWriteConn), s.broker) + writer := gresponsewriter.NewClient(writerHeaders, responsewriterpb.NewWriterClient(readWriteConn), s.broker) // create the request with the current context request, err := http.NewRequestWithContext( @@ -147,7 +148,7 @@ func (s *Server) Handle(ctx context.Context, req *ghttpproto.HTTPRequest) (*empt // HandleSimple handles http requests over http2 using a simple request response model. // Websockets are not supported. Based on https://www.weave.works/blog/turtles-way-http-grpc/ -func (s *Server) HandleSimple(ctx context.Context, r *ghttpproto.HandleSimpleHTTPRequest) (*ghttpproto.HandleSimpleHTTPResponse, error) { +func (s *Server) HandleSimple(ctx context.Context, r *httppb.HandleSimpleHTTPRequest) (*httppb.HandleSimpleHTTPResponse, error) { req, err := http.NewRequest(r.Method, r.Url, bytes.NewBuffer(r.Body)) if err != nil { return nil, err @@ -162,7 +163,7 @@ func (s *Server) HandleSimple(ctx context.Context, r *ghttpproto.HandleSimpleHTT w := newResponseWriter() s.handler.ServeHTTP(w, req) - resp := &ghttpproto.HandleSimpleHTTPResponse{ + resp := &httppb.HandleSimpleHTTPResponse{ Code: int32(w.statusCode), Headers: grpcutils.GetHTTPHeader(w.Header()), Body: w.body.Bytes(), diff --git a/vms/rpcchainvm/grpcutils/util.go b/vms/rpcchainvm/grpcutils/util.go index 61814c472cda..71ff7d07fccc 100644 --- a/vms/rpcchainvm/grpcutils/util.go +++ b/vms/rpcchainvm/grpcutils/util.go @@ -13,18 +13,18 @@ import ( spb "google.golang.org/genproto/googleapis/rpc/status" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" + httppb "github.com/ava-labs/avalanchego/proto/pb/http" ) func Errorf(code int, tmpl string, args ...interface{}) error { - return GetGRPCErrorFromHTTPResponse(&ghttpproto.HandleSimpleHTTPResponse{ + return GetGRPCErrorFromHTTPResponse(&httppb.HandleSimpleHTTPResponse{ Code: int32(code), Body: []byte(fmt.Sprintf(tmpl, args...)), }) } // GetGRPCErrorFromHTTPRespone takes an HandleSimpleHTTPResponse as input and returns a gRPC error. -func GetGRPCErrorFromHTTPResponse(resp *ghttpproto.HandleSimpleHTTPResponse) error { +func GetGRPCErrorFromHTTPResponse(resp *httppb.HandleSimpleHTTPResponse) error { a, err := anypb.New(resp) if err != nil { return err @@ -39,7 +39,7 @@ func GetGRPCErrorFromHTTPResponse(resp *ghttpproto.HandleSimpleHTTPResponse) err // GetHTTPResponseFromError takes an gRPC error as input and returns a gRPC // HandleSimpleHTTPResponse. -func GetHTTPResponseFromError(err error) (*ghttpproto.HandleSimpleHTTPResponse, bool) { +func GetHTTPResponseFromError(err error) (*httppb.HandleSimpleHTTPResponse, bool) { s, ok := status.FromError(err) if !ok { return nil, false @@ -50,7 +50,7 @@ func GetHTTPResponseFromError(err error) (*ghttpproto.HandleSimpleHTTPResponse, return nil, false } - var resp ghttpproto.HandleSimpleHTTPResponse + var resp httppb.HandleSimpleHTTPResponse if err := anypb.UnmarshalTo(status.Details[0], &resp, proto.UnmarshalOptions{}); err != nil { return nil, false } @@ -59,10 +59,10 @@ func GetHTTPResponseFromError(err error) (*ghttpproto.HandleSimpleHTTPResponse, } // GetHTTPHeader takes an http.Header as input and returns a slice of Header. -func GetHTTPHeader(hs http.Header) []*ghttpproto.Element { - result := make([]*ghttpproto.Element, 0, len(hs)) +func GetHTTPHeader(hs http.Header) []*httppb.Element { + result := make([]*httppb.Element, 0, len(hs)) for k, vs := range hs { - result = append(result, &ghttpproto.Element{ + result = append(result, &httppb.Element{ Key: k, Values: vs, }) @@ -71,7 +71,7 @@ func GetHTTPHeader(hs http.Header) []*ghttpproto.Element { } // MergeHTTPHeader takes a slice of Header and merges with http.Header map. -func MergeHTTPHeader(hs []*ghttpproto.Element, header http.Header) { +func MergeHTTPHeader(hs []*httppb.Element, header http.Header) { for _, h := range hs { header[h.Key] = h.Values } diff --git a/vms/rpcchainvm/gsubnetlookup/subnet_lookup_client.go b/vms/rpcchainvm/gsubnetlookup/subnet_lookup_client.go index 373a408eedc8..4ef8e4f99b82 100644 --- a/vms/rpcchainvm/gsubnetlookup/subnet_lookup_client.go +++ b/vms/rpcchainvm/gsubnetlookup/subnet_lookup_client.go @@ -6,25 +6,26 @@ package gsubnetlookup import ( "context" - "github.com/ava-labs/avalanchego/api/proto/gsubnetlookupproto" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow" + + subnetlookuppb "github.com/ava-labs/avalanchego/proto/pb/subnetlookup" ) var _ snow.SubnetLookup = &Client{} // Client is a subnet lookup that talks over RPC. type Client struct { - client gsubnetlookupproto.SubnetLookupClient + client subnetlookuppb.SubnetLookupClient } // NewClient returns an alias lookup connected to a remote alias lookup -func NewClient(client gsubnetlookupproto.SubnetLookupClient) *Client { +func NewClient(client subnetlookuppb.SubnetLookupClient) *Client { return &Client{client: client} } func (c *Client) SubnetID(chainID ids.ID) (ids.ID, error) { - resp, err := c.client.SubnetID(context.Background(), &gsubnetlookupproto.SubnetIDRequest{ + resp, err := c.client.SubnetID(context.Background(), &subnetlookuppb.SubnetIDRequest{ ChainId: chainID[:], }) if err != nil { diff --git a/vms/rpcchainvm/gsubnetlookup/subnet_lookup_server.go b/vms/rpcchainvm/gsubnetlookup/subnet_lookup_server.go index 3fa7d9cca09f..8b7f68098db1 100644 --- a/vms/rpcchainvm/gsubnetlookup/subnet_lookup_server.go +++ b/vms/rpcchainvm/gsubnetlookup/subnet_lookup_server.go @@ -6,16 +6,17 @@ package gsubnetlookup import ( "context" - "github.com/ava-labs/avalanchego/api/proto/gsubnetlookupproto" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow" + + subnetlookuppb "github.com/ava-labs/avalanchego/proto/pb/subnetlookup" ) -var _ gsubnetlookupproto.SubnetLookupServer = &Server{} +var _ subnetlookuppb.SubnetLookupServer = &Server{} // Server is a subnet lookup that is managed over RPC. type Server struct { - gsubnetlookupproto.UnimplementedSubnetLookupServer + subnetlookuppb.UnimplementedSubnetLookupServer aliaser snow.SubnetLookup } @@ -26,8 +27,8 @@ func NewServer(aliaser snow.SubnetLookup) *Server { func (s *Server) SubnetID( _ context.Context, - req *gsubnetlookupproto.SubnetIDRequest, -) (*gsubnetlookupproto.SubnetIDResponse, error) { + req *subnetlookuppb.SubnetIDRequest, +) (*subnetlookuppb.SubnetIDResponse, error) { chainID, err := ids.ToID(req.ChainId) if err != nil { return nil, err @@ -36,7 +37,7 @@ func (s *Server) SubnetID( if err != nil { return nil, err } - return &gsubnetlookupproto.SubnetIDResponse{ + return &subnetlookuppb.SubnetIDResponse{ Id: id[:], }, nil } diff --git a/vms/rpcchainvm/messenger/messenger_client.go b/vms/rpcchainvm/messenger/messenger_client.go index 0f44a787d9de..f4cbec84b077 100644 --- a/vms/rpcchainvm/messenger/messenger_client.go +++ b/vms/rpcchainvm/messenger/messenger_client.go @@ -6,22 +6,23 @@ package messenger import ( "context" - "github.com/ava-labs/avalanchego/api/proto/messengerproto" "github.com/ava-labs/avalanchego/snow/engine/common" + + messengerpb "github.com/ava-labs/avalanchego/proto/pb/messenger" ) // Client is an implementation of a messenger channel that talks over RPC. type Client struct { - client messengerproto.MessengerClient + client messengerpb.MessengerClient } // NewClient returns a client that is connected to a remote channel -func NewClient(client messengerproto.MessengerClient) *Client { +func NewClient(client messengerpb.MessengerClient) *Client { return &Client{client: client} } func (c *Client) Notify(msg common.Message) error { - _, err := c.client.Notify(context.Background(), &messengerproto.NotifyRequest{ + _, err := c.client.Notify(context.Background(), &messengerpb.NotifyRequest{ Message: uint32(msg), }) return err diff --git a/vms/rpcchainvm/messenger/messenger_server.go b/vms/rpcchainvm/messenger/messenger_server.go index 9b228641bf51..aa4e786c0b2c 100644 --- a/vms/rpcchainvm/messenger/messenger_server.go +++ b/vms/rpcchainvm/messenger/messenger_server.go @@ -7,19 +7,20 @@ import ( "context" "errors" - "github.com/ava-labs/avalanchego/api/proto/messengerproto" "github.com/ava-labs/avalanchego/snow/engine/common" + + messengerpb "github.com/ava-labs/avalanchego/proto/pb/messenger" ) var ( errFullQueue = errors.New("full message queue") - _ messengerproto.MessengerServer = &Server{} + _ messengerpb.MessengerServer = &Server{} ) // Server is a messenger that is managed over RPC. type Server struct { - messengerproto.UnimplementedMessengerServer + messengerpb.UnimplementedMessengerServer messenger chan<- common.Message } @@ -28,11 +29,11 @@ func NewServer(messenger chan<- common.Message) *Server { return &Server{messenger: messenger} } -func (s *Server) Notify(_ context.Context, req *messengerproto.NotifyRequest) (*messengerproto.NotifyResponse, error) { +func (s *Server) Notify(_ context.Context, req *messengerpb.NotifyRequest) (*messengerpb.NotifyResponse, error) { msg := common.Message(req.Message) select { case s.messenger <- msg: - return &messengerproto.NotifyResponse{}, nil + return &messengerpb.NotifyResponse{}, nil default: return nil, errFullQueue } diff --git a/vms/rpcchainvm/metrics_server.go b/vms/rpcchainvm/metrics_server.go index f2527fb93966..50309fb76ef7 100644 --- a/vms/rpcchainvm/metrics_server.go +++ b/vms/rpcchainvm/metrics_server.go @@ -8,10 +8,10 @@ import ( "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/vmproto" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" ) -func (vm *VMServer) Gather(context.Context, *emptypb.Empty) (*vmproto.GatherResponse, error) { +func (vm *VMServer) Gather(context.Context, *emptypb.Empty) (*vmpb.GatherResponse, error) { mfs, err := vm.ctx.Metrics.Gather() - return &vmproto.GatherResponse{MetricFamilies: mfs}, err + return &vmpb.GatherResponse{MetricFamilies: mfs}, err } diff --git a/vms/rpcchainvm/plugin_test.go b/vms/rpcchainvm/plugin_test.go index 4caf4d2054de..895b7df8dd83 100644 --- a/vms/rpcchainvm/plugin_test.go +++ b/vms/rpcchainvm/plugin_test.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" - "github.com/ava-labs/avalanchego/api/proto/vmproto" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" ) var ( @@ -95,10 +95,10 @@ func NewTestVM(vm *TestSubnetVM) plugin.Plugin { } func (p *testVMPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error { - vmproto.RegisterVMServer(s, NewTestServer(p.vm, broker)) + vmpb.RegisterVMServer(s, NewTestServer(p.vm, broker)) return nil } func (p *testVMPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) { - return NewTestClient(vmproto.NewVMClient(c), broker), nil + return NewTestClient(vmpb.NewVMClient(c), broker), nil } diff --git a/vms/rpcchainvm/vm.go b/vms/rpcchainvm/vm.go index af412b1dfc95..ba7f8ae20611 100644 --- a/vms/rpcchainvm/vm.go +++ b/vms/rpcchainvm/vm.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/proto/vmproto" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" "github.com/ava-labs/avalanchego/snow/engine/snowman/block" ) @@ -46,11 +46,11 @@ func New(vm block.ChainVM) plugin.Plugin { // GRPCServer registers a new GRPC server. func (p *vmPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error { - vmproto.RegisterVMServer(s, NewServer(p.vm, broker)) + vmpb.RegisterVMServer(s, NewServer(p.vm, broker)) return nil } // GRPCClient returns a new GRPC client func (p *vmPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) { - return NewClient(vmproto.NewVMClient(c), broker), nil + return NewClient(vmpb.NewVMClient(c), broker), nil } diff --git a/vms/rpcchainvm/vm_client.go b/vms/rpcchainvm/vm_client.go index dda7e206bd25..26fbd64af391 100644 --- a/vms/rpcchainvm/vm_client.go +++ b/vms/rpcchainvm/vm_client.go @@ -18,15 +18,6 @@ import ( "github.com/ava-labs/avalanchego/api/keystore/gkeystore" "github.com/ava-labs/avalanchego/api/metrics" - "github.com/ava-labs/avalanchego/api/proto/appsenderproto" - "github.com/ava-labs/avalanchego/api/proto/galiasreaderproto" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" - "github.com/ava-labs/avalanchego/api/proto/gkeystoreproto" - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" - "github.com/ava-labs/avalanchego/api/proto/gsubnetlookupproto" - "github.com/ava-labs/avalanchego/api/proto/messengerproto" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" - "github.com/ava-labs/avalanchego/api/proto/vmproto" "github.com/ava-labs/avalanchego/chains/atomic/gsharedmemory" "github.com/ava-labs/avalanchego/database/manager" "github.com/ava-labs/avalanchego/database/rpcdb" @@ -45,6 +36,16 @@ import ( "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" "github.com/ava-labs/avalanchego/vms/rpcchainvm/gsubnetlookup" "github.com/ava-labs/avalanchego/vms/rpcchainvm/messenger" + + aliasreaderpb "github.com/ava-labs/avalanchego/proto/pb/aliasreader" + appsenderpb "github.com/ava-labs/avalanchego/proto/pb/appsender" + httppb "github.com/ava-labs/avalanchego/proto/pb/http" + keystorepb "github.com/ava-labs/avalanchego/proto/pb/keystore" + messengerpb "github.com/ava-labs/avalanchego/proto/pb/messenger" + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" + subnetlookuppb "github.com/ava-labs/avalanchego/proto/pb/subnetlookup" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" ) var ( @@ -65,7 +66,7 @@ const ( // VMClient is an implementation of VM that talks over RPC. type VMClient struct { *chain.State - client vmproto.VMClient + client vmpb.VMClient broker *plugin.GRPCBroker proc *plugin.Client @@ -83,7 +84,7 @@ type VMClient struct { } // NewClient returns a VM connected to a remote VM -func NewClient(client vmproto.VMClient, broker *plugin.GRPCBroker) *VMClient { +func NewClient(client vmpb.VMClient, broker *plugin.GRPCBroker) *VMClient { return &VMClient{ client: client, broker: broker, @@ -114,12 +115,12 @@ func (vm *VMClient) Initialize( // Initialize and serve each database and construct the db manager // initialize request parameters versionedDBs := dbManager.GetDatabases() - versionedDBServers := make([]*vmproto.VersionedDBServer, len(versionedDBs)) + versionedDBServers := make([]*vmpb.VersionedDBServer, len(versionedDBs)) for i, semDB := range versionedDBs { dbBrokerID := vm.broker.NextId() db := rpcdb.NewServer(semDB.Database) go vm.broker.AcceptAndServe(dbBrokerID, vm.startDBServerFunc(db)) - versionedDBServers[i] = &vmproto.VersionedDBServer{ + versionedDBServers[i] = &vmpb.VersionedDBServer{ DbServer: dbBrokerID, Version: semDB.Version.String(), } @@ -136,7 +137,7 @@ func (vm *VMClient) Initialize( initServerID := vm.broker.NextId() go vm.broker.AcceptAndServe(initServerID, vm.startInitServer) - resp, err := vm.client.Initialize(context.Background(), &vmproto.InitializeRequest{ + resp, err := vm.client.Initialize(context.Background(), &vmpb.InitializeRequest{ NetworkId: ctx.NetworkID, SubnetId: ctx.SubnetID[:], ChainId: ctx.ChainID[:], @@ -212,13 +213,13 @@ func (vm *VMClient) Initialize( return vm.ctx.Metrics.Register(multiGatherer) } -func (vm *VMClient) startDBServerFunc(db rpcdbproto.DatabaseServer) func(opts []grpc.ServerOption) *grpc.Server { // #nolint +func (vm *VMClient) startDBServerFunc(db rpcdbpb.DatabaseServer) func(opts []grpc.ServerOption) *grpc.Server { // #nolint return func(opts []grpc.ServerOption) *grpc.Server { opts = append(opts, serverOptions...) server := grpc.NewServer(opts...) vm.serverCloser.Add(server) - rpcdbproto.RegisterDatabaseServer(server, db) + rpcdbpb.RegisterDatabaseServer(server, db) return server } @@ -230,23 +231,23 @@ func (vm *VMClient) startInitServer(opts []grpc.ServerOption) *grpc.Server { vm.serverCloser.Add(server) // register the messenger service - messengerproto.RegisterMessengerServer(server, vm.messenger) + messengerpb.RegisterMessengerServer(server, vm.messenger) // register the keystore service - gkeystoreproto.RegisterKeystoreServer(server, vm.keystore) + keystorepb.RegisterKeystoreServer(server, vm.keystore) // register the shared memory service - gsharedmemoryproto.RegisterSharedMemoryServer(server, vm.sharedMemory) + sharedmemorypb.RegisterSharedMemoryServer(server, vm.sharedMemory) // register the blockchain alias service - galiasreaderproto.RegisterAliasReaderServer(server, vm.bcLookup) + aliasreaderpb.RegisterAliasReaderServer(server, vm.bcLookup) // register the subnet alias service - gsubnetlookupproto.RegisterSubnetLookupServer(server, vm.snLookup) + subnetlookuppb.RegisterSubnetLookupServer(server, vm.snLookup) // register the AppSender service - appsenderproto.RegisterAppSenderServer(server, vm.appSender) + appsenderpb.RegisterAppSenderServer(server, vm.appSender) return server } func (vm *VMClient) SetState(state snow.State) error { - _, err := vm.client.SetState(context.Background(), &vmproto.SetStateRequest{ + _, err := vm.client.SetState(context.Background(), &vmpb.SetStateRequest{ State: uint32(state), }) @@ -283,7 +284,7 @@ func (vm *VMClient) CreateHandlers() (map[string]*common.HTTPHandler, error) { vm.conns = append(vm.conns, conn) handlers[handler.Prefix] = &common.HTTPHandler{ LockOptions: common.LockOption(handler.LockOptions), - Handler: ghttp.NewClient(ghttpproto.NewHTTPClient(conn), vm.broker), + Handler: ghttp.NewClient(httppb.NewHTTPClient(conn), vm.broker), } } return handlers, nil @@ -305,7 +306,7 @@ func (vm *VMClient) CreateStaticHandlers() (map[string]*common.HTTPHandler, erro vm.conns = append(vm.conns, conn) handlers[handler.Prefix] = &common.HTTPHandler{ LockOptions: common.LockOption(handler.LockOptions), - Handler: ghttp.NewClient(ghttpproto.NewHTTPClient(conn), vm.broker), + Handler: ghttp.NewClient(httppb.NewHTTPClient(conn), vm.broker), } } return handlers, nil @@ -344,7 +345,7 @@ func (vm *VMClient) buildBlock() (snowman.Block, error) { } func (vm *VMClient) parseBlock(bytes []byte) (snowman.Block, error) { - resp, err := vm.client.ParseBlock(context.Background(), &vmproto.ParseBlockRequest{ + resp, err := vm.client.ParseBlock(context.Background(), &vmpb.ParseBlockRequest{ Bytes: bytes, }) if err != nil { @@ -385,7 +386,7 @@ func (vm *VMClient) parseBlock(bytes []byte) (snowman.Block, error) { } func (vm *VMClient) getBlock(id ids.ID) (snowman.Block, error) { - resp, err := vm.client.GetBlock(context.Background(), &vmproto.GetBlockRequest{ + resp, err := vm.client.GetBlock(context.Background(), &vmpb.GetBlockRequest{ Id: id[:], }) if err != nil { @@ -421,7 +422,7 @@ func (vm *VMClient) getBlock(id ids.ID) (snowman.Block, error) { } func (vm *VMClient) SetPreference(id ids.ID) error { - _, err := vm.client.SetPreference(context.Background(), &vmproto.SetPreferenceRequest{ + _, err := vm.client.SetPreference(context.Background(), &vmpb.SetPreferenceRequest{ Id: id[:], }) return err @@ -441,7 +442,7 @@ func (vm *VMClient) AppRequest(nodeID ids.ShortID, requestID uint32, deadline ti } _, err = vm.client.AppRequest( context.Background(), - &vmproto.AppRequestMsg{ + &vmpb.AppRequestMsg{ NodeId: nodeID[:], RequestId: requestID, Request: request, @@ -454,7 +455,7 @@ func (vm *VMClient) AppRequest(nodeID ids.ShortID, requestID uint32, deadline ti func (vm *VMClient) AppResponse(nodeID ids.ShortID, requestID uint32, response []byte) error { _, err := vm.client.AppResponse( context.Background(), - &vmproto.AppResponseMsg{ + &vmpb.AppResponseMsg{ NodeId: nodeID[:], RequestId: requestID, Response: response, @@ -466,7 +467,7 @@ func (vm *VMClient) AppResponse(nodeID ids.ShortID, requestID uint32, response [ func (vm *VMClient) AppRequestFailed(nodeID ids.ShortID, requestID uint32) error { _, err := vm.client.AppRequestFailed( context.Background(), - &vmproto.AppRequestFailedMsg{ + &vmpb.AppRequestFailedMsg{ NodeId: nodeID[:], RequestId: requestID, }, @@ -477,7 +478,7 @@ func (vm *VMClient) AppRequestFailed(nodeID ids.ShortID, requestID uint32) error func (vm *VMClient) AppGossip(nodeID ids.ShortID, msg []byte) error { _, err := vm.client.AppGossip( context.Background(), - &vmproto.AppGossipMsg{ + &vmpb.AppGossipMsg{ NodeId: nodeID[:], Msg: msg, }, @@ -499,7 +500,7 @@ func (vm *VMClient) VerifyHeightIndex() error { func (vm *VMClient) GetBlockIDAtHeight(height uint64) (ids.ID, error) { resp, err := vm.client.GetBlockIDAtHeight( context.Background(), - &vmproto.GetBlockIDAtHeightRequest{Height: height}, + &vmpb.GetBlockIDAtHeightRequest{Height: height}, ) if err != nil { return ids.Empty, err @@ -516,7 +517,7 @@ func (vm *VMClient) GetAncestors( maxBlocksSize int, maxBlocksRetrivalTime time.Duration, ) ([][]byte, error) { - resp, err := vm.client.GetAncestors(context.Background(), &vmproto.GetAncestorsRequest{ + resp, err := vm.client.GetAncestors(context.Background(), &vmpb.GetAncestorsRequest{ BlkId: blkID[:], MaxBlocksNum: int32(maxBlocksNum), MaxBlocksSize: int32(maxBlocksSize), @@ -529,7 +530,7 @@ func (vm *VMClient) GetAncestors( } func (vm *VMClient) BatchedParseBlock(blksBytes [][]byte) ([]snowman.Block, error) { - resp, err := vm.client.BatchedParseBlock(context.Background(), &vmproto.BatchedParseBlockRequest{ + resp, err := vm.client.BatchedParseBlock(context.Background(), &vmpb.BatchedParseBlockRequest{ Request: blksBytes, }) if err != nil { @@ -589,7 +590,7 @@ func (vm *VMClient) Version() (string, error) { } func (vm *VMClient) Connected(nodeID ids.ShortID, nodeVersion version.Application) error { - _, err := vm.client.Connected(context.Background(), &vmproto.ConnectedRequest{ + _, err := vm.client.Connected(context.Background(), &vmpb.ConnectedRequest{ NodeId: nodeID[:], Version: nodeVersion.String(), }) @@ -597,7 +598,7 @@ func (vm *VMClient) Connected(nodeID ids.ShortID, nodeVersion version.Applicatio } func (vm *VMClient) Disconnected(nodeID ids.ShortID) error { - _, err := vm.client.Disconnected(context.Background(), &vmproto.DisconnectedRequest{ + _, err := vm.client.Disconnected(context.Background(), &vmpb.DisconnectedRequest{ NodeId: nodeID[:], }) return err @@ -619,7 +620,7 @@ func (b *BlockClient) ID() ids.ID { return b.id } func (b *BlockClient) Accept() error { b.status = choices.Accepted - _, err := b.vm.client.BlockAccept(context.Background(), &vmproto.BlockAcceptRequest{ + _, err := b.vm.client.BlockAccept(context.Background(), &vmpb.BlockAcceptRequest{ Id: b.id[:], }) return err @@ -627,7 +628,7 @@ func (b *BlockClient) Accept() error { func (b *BlockClient) Reject() error { b.status = choices.Rejected - _, err := b.vm.client.BlockReject(context.Background(), &vmproto.BlockRejectRequest{ + _, err := b.vm.client.BlockReject(context.Background(), &vmpb.BlockRejectRequest{ Id: b.id[:], }) return err @@ -640,7 +641,7 @@ func (b *BlockClient) Parent() ids.ID { } func (b *BlockClient) Verify() error { - resp, err := b.vm.client.BlockVerify(context.Background(), &vmproto.BlockVerifyRequest{ + resp, err := b.vm.client.BlockVerify(context.Background(), &vmpb.BlockVerifyRequest{ Bytes: b.bytes, }) if err != nil { diff --git a/vms/rpcchainvm/vm_server.go b/vms/rpcchainvm/vm_server.go index 7c71823d6f06..9ca00dec7a4c 100644 --- a/vms/rpcchainvm/vm_server.go +++ b/vms/rpcchainvm/vm_server.go @@ -8,22 +8,13 @@ import ( "encoding/json" "time" + "github.com/hashicorp/go-plugin" + "google.golang.org/grpc" "google.golang.org/protobuf/types/known/emptypb" - "github.com/hashicorp/go-plugin" - "github.com/ava-labs/avalanchego/api/keystore/gkeystore" "github.com/ava-labs/avalanchego/api/metrics" - "github.com/ava-labs/avalanchego/api/proto/appsenderproto" - "github.com/ava-labs/avalanchego/api/proto/galiasreaderproto" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" - "github.com/ava-labs/avalanchego/api/proto/gkeystoreproto" - "github.com/ava-labs/avalanchego/api/proto/gsharedmemoryproto" - "github.com/ava-labs/avalanchego/api/proto/gsubnetlookupproto" - "github.com/ava-labs/avalanchego/api/proto/messengerproto" - "github.com/ava-labs/avalanchego/api/proto/rpcdbproto" - "github.com/ava-labs/avalanchego/api/proto/vmproto" "github.com/ava-labs/avalanchego/chains/atomic/gsharedmemory" "github.com/ava-labs/avalanchego/database/corruptabledb" "github.com/ava-labs/avalanchego/database/manager" @@ -42,17 +33,27 @@ import ( "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" "github.com/ava-labs/avalanchego/vms/rpcchainvm/gsubnetlookup" "github.com/ava-labs/avalanchego/vms/rpcchainvm/messenger" + + aliasreaderpb "github.com/ava-labs/avalanchego/proto/pb/aliasreader" + appsenderpb "github.com/ava-labs/avalanchego/proto/pb/appsender" + httppb "github.com/ava-labs/avalanchego/proto/pb/http" + keystorepb "github.com/ava-labs/avalanchego/proto/pb/keystore" + messengerpb "github.com/ava-labs/avalanchego/proto/pb/messenger" + rpcdbpb "github.com/ava-labs/avalanchego/proto/pb/rpcdb" + sharedmemorypb "github.com/ava-labs/avalanchego/proto/pb/sharedmemory" + subnetlookuppb "github.com/ava-labs/avalanchego/proto/pb/subnetlookup" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" ) var ( versionParser = version.NewDefaultApplicationParser() - _ vmproto.VMServer = &VMServer{} + _ vmpb.VMServer = &VMServer{} ) // VMServer is a VM that is managed over RPC. type VMServer struct { - vmproto.UnimplementedVMServer + vmpb.UnimplementedVMServer vm block.ChainVM broker *plugin.GRPCBroker @@ -71,7 +72,7 @@ func NewServer(vm block.ChainVM, broker *plugin.GRPCBroker) *VMServer { } } -func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest) (*vmproto.InitializeResponse, error) { +func (vm *VMServer) Initialize(_ context.Context, req *vmpb.InitializeRequest) (*vmpb.InitializeResponse, error) { subnetID, err := ids.ToID(req.SubnetId) if err != nil { return nil, err @@ -111,7 +112,7 @@ func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest return nil, err } vm.connCloser.Add(dbConn) - db := rpcdb.NewClient(rpcdbproto.NewDatabaseClient(dbConn)) + db := rpcdb.NewClient(rpcdbpb.NewDatabaseClient(dbConn)) versionedDBs[i] = &manager.VersionedDatabase{ Database: corruptabledb.New(db), Version: version, @@ -132,12 +133,12 @@ func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest } vm.connCloser.Add(clientConn) - msgClient := messenger.NewClient(messengerproto.NewMessengerClient(clientConn)) - keystoreClient := gkeystore.NewClient(gkeystoreproto.NewKeystoreClient(clientConn), vm.broker) - sharedMemoryClient := gsharedmemory.NewClient(gsharedmemoryproto.NewSharedMemoryClient(clientConn)) - bcLookupClient := galiasreader.NewClient(galiasreaderproto.NewAliasReaderClient(clientConn)) - snLookupClient := gsubnetlookup.NewClient(gsubnetlookupproto.NewSubnetLookupClient(clientConn)) - appSenderClient := appsender.NewClient(appsenderproto.NewAppSenderClient(clientConn)) + msgClient := messenger.NewClient(messengerpb.NewMessengerClient(clientConn)) + keystoreClient := gkeystore.NewClient(keystorepb.NewKeystoreClient(clientConn), vm.broker) + sharedMemoryClient := gsharedmemory.NewClient(sharedmemorypb.NewSharedMemoryClient(clientConn)) + bcLookupClient := galiasreader.NewClient(aliasreaderpb.NewAliasReaderClient(clientConn)) + snLookupClient := gsubnetlookup.NewClient(subnetlookuppb.NewSubnetLookupClient(clientConn)) + appSenderClient := appsender.NewClient(appsenderpb.NewAppSenderClient(clientConn)) toEngine := make(chan common.Message, 1) vm.closed = make(chan struct{}) @@ -201,7 +202,7 @@ func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest } parentID := blk.Parent() timeBytes, err := blk.Timestamp().MarshalBinary() - return &vmproto.InitializeResponse{ + return &vmpb.InitializeResponse{ LastAcceptedId: lastAccepted[:], LastAcceptedParentId: parentID[:], Status: uint32(choices.Accepted), @@ -211,19 +212,19 @@ func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest }, err } -func (vm *VMServer) VerifyHeightIndex(context.Context, *emptypb.Empty) (*vmproto.VerifyHeightIndexResponse, error) { +func (vm *VMServer) VerifyHeightIndex(context.Context, *emptypb.Empty) (*vmpb.VerifyHeightIndexResponse, error) { var err error if hVM, ok := vm.vm.(block.HeightIndexedChainVM); ok { err = hVM.VerifyHeightIndex() } else { err = block.ErrHeightIndexedVMNotImplemented } - return &vmproto.VerifyHeightIndexResponse{ + return &vmpb.VerifyHeightIndexResponse{ Err: errorToErrCode[err], }, errorToRPCError(err) } -func (vm *VMServer) GetBlockIDAtHeight(ctx context.Context, req *vmproto.GetBlockIDAtHeightRequest) (*vmproto.GetBlockIDAtHeightResponse, error) { +func (vm *VMServer) GetBlockIDAtHeight(ctx context.Context, req *vmpb.GetBlockIDAtHeightRequest) (*vmpb.GetBlockIDAtHeightResponse, error) { var ( blkID ids.ID err error @@ -233,13 +234,13 @@ func (vm *VMServer) GetBlockIDAtHeight(ctx context.Context, req *vmproto.GetBloc } else { err = block.ErrHeightIndexedVMNotImplemented } - return &vmproto.GetBlockIDAtHeightResponse{ + return &vmpb.GetBlockIDAtHeightResponse{ BlkId: blkID[:], Err: errorToErrCode[err], }, errorToRPCError(err) } -func (vm *VMServer) SetState(_ context.Context, stateReq *vmproto.SetStateRequest) (*emptypb.Empty, error) { +func (vm *VMServer) SetState(_ context.Context, stateReq *vmpb.SetStateRequest) (*emptypb.Empty, error) { return &emptypb.Empty{}, vm.vm.SetState(snow.State(stateReq.State)) } @@ -255,12 +256,12 @@ func (vm *VMServer) Shutdown(context.Context, *emptypb.Empty) (*emptypb.Empty, e return &emptypb.Empty{}, errs.Err } -func (vm *VMServer) CreateStaticHandlers(context.Context, *emptypb.Empty) (*vmproto.CreateStaticHandlersResponse, error) { +func (vm *VMServer) CreateStaticHandlers(context.Context, *emptypb.Empty) (*vmpb.CreateStaticHandlersResponse, error) { handlers, err := vm.vm.CreateStaticHandlers() if err != nil { return nil, err } - resp := &vmproto.CreateStaticHandlersResponse{} + resp := &vmpb.CreateStaticHandlersResponse{} for prefix, h := range handlers { handler := h @@ -270,11 +271,11 @@ func (vm *VMServer) CreateStaticHandlers(context.Context, *emptypb.Empty) (*vmpr opts = append(opts, serverOptions...) server := grpc.NewServer(opts...) vm.serverCloser.Add(server) - ghttpproto.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) + httppb.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) return server }) - resp.Handlers = append(resp.Handlers, &vmproto.Handler{ + resp.Handlers = append(resp.Handlers, &vmpb.Handler{ Prefix: prefix, LockOptions: uint32(handler.LockOptions), Server: serverID, @@ -283,12 +284,12 @@ func (vm *VMServer) CreateStaticHandlers(context.Context, *emptypb.Empty) (*vmpr return resp, nil } -func (vm *VMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmproto.CreateHandlersResponse, error) { +func (vm *VMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmpb.CreateHandlersResponse, error) { handlers, err := vm.vm.CreateHandlers() if err != nil { return nil, err } - resp := &vmproto.CreateHandlersResponse{} + resp := &vmpb.CreateHandlersResponse{} for prefix, h := range handlers { handler := h @@ -298,11 +299,11 @@ func (vm *VMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmproto.Cr opts = append(opts, serverOptions...) server := grpc.NewServer(opts...) vm.serverCloser.Add(server) - ghttpproto.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) + httppb.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) return server }) - resp.Handlers = append(resp.Handlers, &vmproto.Handler{ + resp.Handlers = append(resp.Handlers, &vmpb.Handler{ Prefix: prefix, LockOptions: uint32(handler.LockOptions), Server: serverID, @@ -311,7 +312,7 @@ func (vm *VMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmproto.Cr return resp, nil } -func (vm *VMServer) BuildBlock(context.Context, *emptypb.Empty) (*vmproto.BuildBlockResponse, error) { +func (vm *VMServer) BuildBlock(context.Context, *emptypb.Empty) (*vmpb.BuildBlockResponse, error) { blk, err := vm.vm.BuildBlock() if err != nil { return nil, err @@ -319,7 +320,7 @@ func (vm *VMServer) BuildBlock(context.Context, *emptypb.Empty) (*vmproto.BuildB blkID := blk.ID() parentID := blk.Parent() timeBytes, err := blk.Timestamp().MarshalBinary() - return &vmproto.BuildBlockResponse{ + return &vmpb.BuildBlockResponse{ Id: blkID[:], ParentId: parentID[:], Bytes: blk.Bytes(), @@ -328,7 +329,7 @@ func (vm *VMServer) BuildBlock(context.Context, *emptypb.Empty) (*vmproto.BuildB }, err } -func (vm *VMServer) ParseBlock(_ context.Context, req *vmproto.ParseBlockRequest) (*vmproto.ParseBlockResponse, error) { +func (vm *VMServer) ParseBlock(_ context.Context, req *vmpb.ParseBlockRequest) (*vmpb.ParseBlockResponse, error) { blk, err := vm.vm.ParseBlock(req.Bytes) if err != nil { return nil, err @@ -336,7 +337,7 @@ func (vm *VMServer) ParseBlock(_ context.Context, req *vmproto.ParseBlockRequest blkID := blk.ID() parentID := blk.Parent() timeBytes, err := blk.Timestamp().MarshalBinary() - return &vmproto.ParseBlockResponse{ + return &vmpb.ParseBlockResponse{ Id: blkID[:], ParentId: parentID[:], Status: uint32(blk.Status()), @@ -345,7 +346,7 @@ func (vm *VMServer) ParseBlock(_ context.Context, req *vmproto.ParseBlockRequest }, err } -func (vm *VMServer) GetAncestors(_ context.Context, req *vmproto.GetAncestorsRequest) (*vmproto.GetAncestorsResponse, error) { +func (vm *VMServer) GetAncestors(_ context.Context, req *vmpb.GetAncestorsRequest) (*vmpb.GetAncestorsResponse, error) { blkID, err := ids.ToID(req.BlkId) if err != nil { return nil, err @@ -361,18 +362,18 @@ func (vm *VMServer) GetAncestors(_ context.Context, req *vmproto.GetAncestorsReq maxBlksSize, maxBlocksRetrivalTime, ) - return &vmproto.GetAncestorsResponse{ + return &vmpb.GetAncestorsResponse{ BlksBytes: blocks, }, err } func (vm *VMServer) BatchedParseBlock( ctx context.Context, - req *vmproto.BatchedParseBlockRequest, -) (*vmproto.BatchedParseBlockResponse, error) { - blocks := make([]*vmproto.ParseBlockResponse, len(req.Request)) + req *vmpb.BatchedParseBlockRequest, +) (*vmpb.BatchedParseBlockResponse, error) { + blocks := make([]*vmpb.ParseBlockResponse, len(req.Request)) for i, blockBytes := range req.Request { - block, err := vm.ParseBlock(ctx, &vmproto.ParseBlockRequest{ + block, err := vm.ParseBlock(ctx, &vmpb.ParseBlockRequest{ Bytes: blockBytes, }) if err != nil { @@ -380,12 +381,12 @@ func (vm *VMServer) BatchedParseBlock( } blocks[i] = block } - return &vmproto.BatchedParseBlockResponse{ + return &vmpb.BatchedParseBlockResponse{ Response: blocks, }, nil } -func (vm *VMServer) GetBlock(_ context.Context, req *vmproto.GetBlockRequest) (*vmproto.GetBlockResponse, error) { +func (vm *VMServer) GetBlock(_ context.Context, req *vmpb.GetBlockRequest) (*vmpb.GetBlockResponse, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err @@ -396,7 +397,7 @@ func (vm *VMServer) GetBlock(_ context.Context, req *vmproto.GetBlockRequest) (* } parentID := blk.Parent() timeBytes, err := blk.Timestamp().MarshalBinary() - return &vmproto.GetBlockResponse{ + return &vmpb.GetBlockResponse{ ParentId: parentID[:], Bytes: blk.Bytes(), Status: uint32(blk.Status()), @@ -405,7 +406,7 @@ func (vm *VMServer) GetBlock(_ context.Context, req *vmproto.GetBlockRequest) (* }, err } -func (vm *VMServer) SetPreference(_ context.Context, req *vmproto.SetPreferenceRequest) (*emptypb.Empty, error) { +func (vm *VMServer) SetPreference(_ context.Context, req *vmpb.SetPreferenceRequest) (*emptypb.Empty, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err @@ -413,10 +414,10 @@ func (vm *VMServer) SetPreference(_ context.Context, req *vmproto.SetPreferenceR return &emptypb.Empty{}, vm.vm.SetPreference(id) } -func (vm *VMServer) Health(context.Context, *emptypb.Empty) (*vmproto.HealthResponse, error) { +func (vm *VMServer) Health(context.Context, *emptypb.Empty) (*vmpb.HealthResponse, error) { details, err := vm.vm.HealthCheck() if err != nil { - return &vmproto.HealthResponse{}, err + return &vmpb.HealthResponse{}, err } // Try to stringify the details @@ -435,19 +436,19 @@ func (vm *VMServer) Health(context.Context, *emptypb.Empty) (*vmproto.HealthResp detailsStr = string(details) } - return &vmproto.HealthResponse{ + return &vmpb.HealthResponse{ Details: detailsStr, }, nil } -func (vm *VMServer) Version(context.Context, *emptypb.Empty) (*vmproto.VersionResponse, error) { +func (vm *VMServer) Version(context.Context, *emptypb.Empty) (*vmpb.VersionResponse, error) { version, err := vm.vm.Version() - return &vmproto.VersionResponse{ + return &vmpb.VersionResponse{ Version: version, }, err } -func (vm *VMServer) Connected(_ context.Context, req *vmproto.ConnectedRequest) (*emptypb.Empty, error) { +func (vm *VMServer) Connected(_ context.Context, req *vmpb.ConnectedRequest) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -461,7 +462,7 @@ func (vm *VMServer) Connected(_ context.Context, req *vmproto.ConnectedRequest) return &emptypb.Empty{}, vm.vm.Connected(nodeID, peerVersion) } -func (vm *VMServer) Disconnected(_ context.Context, req *vmproto.DisconnectedRequest) (*emptypb.Empty, error) { +func (vm *VMServer) Disconnected(_ context.Context, req *vmpb.DisconnectedRequest) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -469,7 +470,7 @@ func (vm *VMServer) Disconnected(_ context.Context, req *vmproto.DisconnectedReq return &emptypb.Empty{}, vm.vm.Disconnected(nodeID) } -func (vm *VMServer) AppRequest(_ context.Context, req *vmproto.AppRequestMsg) (*emptypb.Empty, error) { +func (vm *VMServer) AppRequest(_ context.Context, req *vmpb.AppRequestMsg) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -481,7 +482,7 @@ func (vm *VMServer) AppRequest(_ context.Context, req *vmproto.AppRequestMsg) (* return &emptypb.Empty{}, vm.vm.AppRequest(nodeID, req.RequestId, deadline, req.Request) } -func (vm *VMServer) AppRequestFailed(_ context.Context, req *vmproto.AppRequestFailedMsg) (*emptypb.Empty, error) { +func (vm *VMServer) AppRequestFailed(_ context.Context, req *vmpb.AppRequestFailedMsg) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -489,7 +490,7 @@ func (vm *VMServer) AppRequestFailed(_ context.Context, req *vmproto.AppRequestF return &emptypb.Empty{}, vm.vm.AppRequestFailed(nodeID, req.RequestId) } -func (vm *VMServer) AppResponse(_ context.Context, req *vmproto.AppResponseMsg) (*emptypb.Empty, error) { +func (vm *VMServer) AppResponse(_ context.Context, req *vmpb.AppResponseMsg) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -497,7 +498,7 @@ func (vm *VMServer) AppResponse(_ context.Context, req *vmproto.AppResponseMsg) return &emptypb.Empty{}, vm.vm.AppResponse(nodeID, req.RequestId, req.Response) } -func (vm *VMServer) AppGossip(_ context.Context, req *vmproto.AppGossipMsg) (*emptypb.Empty, error) { +func (vm *VMServer) AppGossip(_ context.Context, req *vmpb.AppGossipMsg) (*emptypb.Empty, error) { nodeID, err := ids.ToShortID(req.NodeId) if err != nil { return nil, err @@ -505,7 +506,7 @@ func (vm *VMServer) AppGossip(_ context.Context, req *vmproto.AppGossipMsg) (*em return &emptypb.Empty{}, vm.vm.AppGossip(nodeID, req.Msg) } -func (vm *VMServer) BlockVerify(_ context.Context, req *vmproto.BlockVerifyRequest) (*vmproto.BlockVerifyResponse, error) { +func (vm *VMServer) BlockVerify(_ context.Context, req *vmpb.BlockVerifyRequest) (*vmpb.BlockVerifyResponse, error) { blk, err := vm.vm.ParseBlock(req.Bytes) if err != nil { return nil, err @@ -514,12 +515,12 @@ func (vm *VMServer) BlockVerify(_ context.Context, req *vmproto.BlockVerifyReque return nil, err } timeBytes, err := blk.Timestamp().MarshalBinary() - return &vmproto.BlockVerifyResponse{ + return &vmpb.BlockVerifyResponse{ Timestamp: timeBytes, }, err } -func (vm *VMServer) BlockAccept(_ context.Context, req *vmproto.BlockAcceptRequest) (*emptypb.Empty, error) { +func (vm *VMServer) BlockAccept(_ context.Context, req *vmpb.BlockAcceptRequest) (*emptypb.Empty, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err @@ -534,7 +535,7 @@ func (vm *VMServer) BlockAccept(_ context.Context, req *vmproto.BlockAcceptReque return &emptypb.Empty{}, nil } -func (vm *VMServer) BlockReject(_ context.Context, req *vmproto.BlockRejectRequest) (*emptypb.Empty, error) { +func (vm *VMServer) BlockReject(_ context.Context, req *vmpb.BlockRejectRequest) (*emptypb.Empty, error) { id, err := ids.ToID(req.Id) if err != nil { return nil, err diff --git a/vms/rpcchainvm/vm_test.go b/vms/rpcchainvm/vm_test.go index d5972b0f0b74..863607b789ea 100644 --- a/vms/rpcchainvm/vm_test.go +++ b/vms/rpcchainvm/vm_test.go @@ -6,13 +6,14 @@ package rpcchainvm import ( "bytes" "context" - j "encoding/json" "fmt" "io" "net" "net/http" "testing" + j "encoding/json" + "github.com/gorilla/mux" "github.com/gorilla/websocket" @@ -26,12 +27,12 @@ import ( "google.golang.org/grpc" "google.golang.org/protobuf/types/known/emptypb" - "github.com/ava-labs/avalanchego/api/proto/ghttpproto" - "github.com/ava-labs/avalanchego/api/proto/vmproto" "github.com/ava-labs/avalanchego/snow/engine/common" "github.com/ava-labs/avalanchego/vms/rpcchainvm/ghttp" "github.com/ava-labs/avalanchego/vms/rpcchainvm/grpcutils" + httppb "github.com/ava-labs/avalanchego/proto/pb/http" + vmpb "github.com/ava-labs/avalanchego/proto/pb/vm" cjson "github.com/ava-labs/avalanchego/utils/json" ) @@ -199,20 +200,20 @@ func NewTestServer(vm TestVM, broker *plugin.GRPCBroker) *TestVMServer { } type TestVMServer struct { - vmproto.UnimplementedVMServer + vmpb.UnimplementedVMServer vm TestVM broker *plugin.GRPCBroker serverCloser grpcutils.ServerCloser } -func (vm *TestVMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmproto.CreateHandlersResponse, error) { +func (vm *TestVMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmpb.CreateHandlersResponse, error) { handlers, err := vm.vm.CreateHandlers() if err != nil { return nil, err } - resp := &vmproto.CreateHandlersResponse{} + resp := &vmpb.CreateHandlersResponse{} for prefix, h := range handlers { handler := h @@ -221,11 +222,11 @@ func (vm *TestVMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmprot opts = append(opts, serverOptions...) server := grpc.NewServer(opts...) vm.serverCloser.Add(server) - ghttpproto.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) + httppb.RegisterHTTPServer(server, ghttp.NewServer(handler.Handler, vm.broker)) return server }) - resp.Handlers = append(resp.Handlers, &vmproto.Handler{ + resp.Handlers = append(resp.Handlers, &vmpb.Handler{ Prefix: prefix, LockOptions: uint32(handler.LockOptions), Server: serverID, @@ -235,13 +236,13 @@ func (vm *TestVMServer) CreateHandlers(context.Context, *emptypb.Empty) (*vmprot } type TestVMClient struct { - client vmproto.VMClient + client vmpb.VMClient broker *plugin.GRPCBroker conns []*grpc.ClientConn } -func NewTestClient(client vmproto.VMClient, broker *plugin.GRPCBroker) *TestVMClient { +func NewTestClient(client vmpb.VMClient, broker *plugin.GRPCBroker) *TestVMClient { return &TestVMClient{ client: client, broker: broker, @@ -264,7 +265,7 @@ func (vm *TestVMClient) CreateHandlers() (map[string]*common.HTTPHandler, error) vm.conns = append(vm.conns, conn) handlers[handler.Prefix] = &common.HTTPHandler{ LockOptions: common.LockOption(handler.LockOptions), - Handler: ghttp.NewClient(ghttpproto.NewHTTPClient(conn), vm.broker), + Handler: ghttp.NewClient(httppb.NewHTTPClient(conn), vm.broker), } } return handlers, nil