From 3840835aaac1216568a86d831f7fa518b6d36a5b Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Wed, 9 Oct 2024 08:41:04 +0000 Subject: [PATCH] Cleanup --- .../spacemesh/v2alpha1/node_identities.pb.go | 562 ------------------ .../v2alpha1/node_identities.pb.gw.go | 163 ----- .../v2alpha1/node_identities_grpc.pb.go | 111 ---- 3 files changed, 836 deletions(-) delete mode 100644 release/go/spacemesh/v2alpha1/node_identities.pb.go delete mode 100644 release/go/spacemesh/v2alpha1/node_identities.pb.gw.go delete mode 100644 release/go/spacemesh/v2alpha1/node_identities_grpc.pb.go diff --git a/release/go/spacemesh/v2alpha1/node_identities.pb.go b/release/go/spacemesh/v2alpha1/node_identities.pb.go deleted file mode 100644 index e5b86e95..00000000 --- a/release/go/spacemesh/v2alpha1/node_identities.pb.go +++ /dev/null @@ -1,562 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0 -// protoc (unknown) -// source: spacemesh/v2alpha1/node_identities.proto - -package spacemeshv2alpha1 - -import ( - _ "google.golang.org/genproto/googleapis/api/annotations" - _ "google.golang.org/genproto/googleapis/api/visibility" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -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 PoetServicesResponse_Identity_Status int32 - -const ( - PoetServicesResponse_Identity_STATUS_UNSPECIFIED PoetServicesResponse_Identity_Status = 0 - PoetServicesResponse_Identity_STATUS_IS_SYNCING PoetServicesResponse_Identity_Status = 1 - PoetServicesResponse_Identity_STATUS_CREATING_INITIAL_POST PoetServicesResponse_Identity_Status = 2 - PoetServicesResponse_Identity_STATUS_SUBMITTING_CHALLENGE PoetServicesResponse_Identity_Status = 3 - PoetServicesResponse_Identity_STATUS_CREATING_POST_PROOF PoetServicesResponse_Identity_Status = 4 -) - -// Enum value maps for PoetServicesResponse_Identity_Status. -var ( - PoetServicesResponse_Identity_Status_name = map[int32]string{ - 0: "STATUS_UNSPECIFIED", - 1: "STATUS_IS_SYNCING", - 2: "STATUS_CREATING_INITIAL_POST", - 3: "STATUS_SUBMITTING_CHALLENGE", - 4: "STATUS_CREATING_POST_PROOF", - } - PoetServicesResponse_Identity_Status_value = map[string]int32{ - "STATUS_UNSPECIFIED": 0, - "STATUS_IS_SYNCING": 1, - "STATUS_CREATING_INITIAL_POST": 2, - "STATUS_SUBMITTING_CHALLENGE": 3, - "STATUS_CREATING_POST_PROOF": 4, - } -) - -func (x PoetServicesResponse_Identity_Status) Enum() *PoetServicesResponse_Identity_Status { - p := new(PoetServicesResponse_Identity_Status) - *p = x - return p -} - -func (x PoetServicesResponse_Identity_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PoetServicesResponse_Identity_Status) Descriptor() protoreflect.EnumDescriptor { - return file_spacemesh_v2alpha1_node_identities_proto_enumTypes[0].Descriptor() -} - -func (PoetServicesResponse_Identity_Status) Type() protoreflect.EnumType { - return &file_spacemesh_v2alpha1_node_identities_proto_enumTypes[0] -} - -func (x PoetServicesResponse_Identity_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PoetServicesResponse_Identity_Status.Descriptor instead. -func (PoetServicesResponse_Identity_Status) EnumDescriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{1, 0, 0} -} - -type PoetServicesResponse_Identity_PoetInfo_RegistrationStatus int32 - -const ( - PoetServicesResponse_Identity_PoetInfo_STATUS_UNSPECIFIED PoetServicesResponse_Identity_PoetInfo_RegistrationStatus = 0 - PoetServicesResponse_Identity_PoetInfo_STATUS_SUCCESS_REG PoetServicesResponse_Identity_PoetInfo_RegistrationStatus = 1 - PoetServicesResponse_Identity_PoetInfo_STATUS_FAILED_REG PoetServicesResponse_Identity_PoetInfo_RegistrationStatus = 2 - PoetServicesResponse_Identity_PoetInfo_STATUS_RESIDUAL_REG PoetServicesResponse_Identity_PoetInfo_RegistrationStatus = 3 - PoetServicesResponse_Identity_PoetInfo_STATUS_NO_REG PoetServicesResponse_Identity_PoetInfo_RegistrationStatus = 4 -) - -// Enum value maps for PoetServicesResponse_Identity_PoetInfo_RegistrationStatus. -var ( - PoetServicesResponse_Identity_PoetInfo_RegistrationStatus_name = map[int32]string{ - 0: "STATUS_UNSPECIFIED", - 1: "STATUS_SUCCESS_REG", - 2: "STATUS_FAILED_REG", - 3: "STATUS_RESIDUAL_REG", - 4: "STATUS_NO_REG", - } - PoetServicesResponse_Identity_PoetInfo_RegistrationStatus_value = map[string]int32{ - "STATUS_UNSPECIFIED": 0, - "STATUS_SUCCESS_REG": 1, - "STATUS_FAILED_REG": 2, - "STATUS_RESIDUAL_REG": 3, - "STATUS_NO_REG": 4, - } -) - -func (x PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) Enum() *PoetServicesResponse_Identity_PoetInfo_RegistrationStatus { - p := new(PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) - *p = x - return p -} - -func (x PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) Descriptor() protoreflect.EnumDescriptor { - return file_spacemesh_v2alpha1_node_identities_proto_enumTypes[1].Descriptor() -} - -func (PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) Type() protoreflect.EnumType { - return &file_spacemesh_v2alpha1_node_identities_proto_enumTypes[1] -} - -func (x PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PoetServicesResponse_Identity_PoetInfo_RegistrationStatus.Descriptor instead. -func (PoetServicesResponse_Identity_PoetInfo_RegistrationStatus) EnumDescriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{1, 0, 0, 0} -} - -type PoetServicesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SmesherIdHex string `protobuf:"bytes,1,opt,name=smesher_id_hex,json=smesherIdHex,proto3" json:"smesher_id_hex,omitempty"` -} - -func (x *PoetServicesRequest) Reset() { - *x = PoetServicesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2alpha1_node_identities_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetServicesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetServicesRequest) ProtoMessage() {} - -func (x *PoetServicesRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2alpha1_node_identities_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 PoetServicesRequest.ProtoReflect.Descriptor instead. -func (*PoetServicesRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{0} -} - -func (x *PoetServicesRequest) GetSmesherIdHex() string { - if x != nil { - return x.SmesherIdHex - } - return "" -} - -type PoetServicesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Identities []*PoetServicesResponse_Identity `protobuf:"bytes,3,rep,name=identities,proto3" json:"identities,omitempty"` -} - -func (x *PoetServicesResponse) Reset() { - *x = PoetServicesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2alpha1_node_identities_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetServicesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetServicesResponse) ProtoMessage() {} - -func (x *PoetServicesResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2alpha1_node_identities_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 PoetServicesResponse.ProtoReflect.Descriptor instead. -func (*PoetServicesResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{1} -} - -func (x *PoetServicesResponse) GetIdentities() []*PoetServicesResponse_Identity { - if x != nil { - return x.Identities - } - return nil -} - -type PoetServicesResponse_Identity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SmesherIdHex string `protobuf:"bytes,1,opt,name=smesher_id_hex,json=smesherIdHex,proto3" json:"smesher_id_hex,omitempty"` - PoetInfos []*PoetServicesResponse_Identity_PoetInfo `protobuf:"bytes,2,rep,name=poet_infos,json=poetInfos,proto3" json:"poet_infos,omitempty"` -} - -func (x *PoetServicesResponse_Identity) Reset() { - *x = PoetServicesResponse_Identity{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2alpha1_node_identities_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetServicesResponse_Identity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetServicesResponse_Identity) ProtoMessage() {} - -func (x *PoetServicesResponse_Identity) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2alpha1_node_identities_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 PoetServicesResponse_Identity.ProtoReflect.Descriptor instead. -func (*PoetServicesResponse_Identity) Descriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{1, 0} -} - -func (x *PoetServicesResponse_Identity) GetSmesherIdHex() string { - if x != nil { - return x.SmesherIdHex - } - return "" -} - -func (x *PoetServicesResponse_Identity) GetPoetInfos() []*PoetServicesResponse_Identity_PoetInfo { - if x != nil { - return x.PoetInfos - } - return nil -} - -type PoetServicesResponse_Identity_PoetInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - PoetRoundEnd *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=poet_round_end,json=poetRoundEnd,proto3" json:"poet_round_end,omitempty"` - RegistrationStatus PoetServicesResponse_Identity_PoetInfo_RegistrationStatus `protobuf:"varint,3,opt,name=registration_status,json=registrationStatus,proto3,enum=spacemesh.v2alpha1.PoetServicesResponse_Identity_PoetInfo_RegistrationStatus" json:"registration_status,omitempty"` - Warning string `protobuf:"bytes,4,opt,name=warning,proto3" json:"warning,omitempty"` -} - -func (x *PoetServicesResponse_Identity_PoetInfo) Reset() { - *x = PoetServicesResponse_Identity_PoetInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2alpha1_node_identities_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetServicesResponse_Identity_PoetInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetServicesResponse_Identity_PoetInfo) ProtoMessage() {} - -func (x *PoetServicesResponse_Identity_PoetInfo) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2alpha1_node_identities_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 PoetServicesResponse_Identity_PoetInfo.ProtoReflect.Descriptor instead. -func (*PoetServicesResponse_Identity_PoetInfo) Descriptor() ([]byte, []int) { - return file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP(), []int{1, 0, 0} -} - -func (x *PoetServicesResponse_Identity_PoetInfo) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *PoetServicesResponse_Identity_PoetInfo) GetPoetRoundEnd() *timestamppb.Timestamp { - if x != nil { - return x.PoetRoundEnd - } - return nil -} - -func (x *PoetServicesResponse_Identity_PoetInfo) GetRegistrationStatus() PoetServicesResponse_Identity_PoetInfo_RegistrationStatus { - if x != nil { - return x.RegistrationStatus - } - return PoetServicesResponse_Identity_PoetInfo_STATUS_UNSPECIFIED -} - -func (x *PoetServicesResponse_Identity_PoetInfo) GetWarning() string { - if x != nil { - return x.Warning - } - return "" -} - -var File_spacemesh_v2alpha1_node_identities_proto protoreflect.FileDescriptor - -var file_spacemesh_v2alpha1_node_identities_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1b, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x13, 0x50, 0x6f, - 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, - 0x68, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x49, 0x64, 0x48, 0x65, 0x78, 0x22, 0x99, 0x06, 0x0a, 0x14, 0x50, 0x6f, 0x65, 0x74, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x51, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x1a, 0xad, 0x05, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x68, - 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, - 0x72, 0x49, 0x64, 0x48, 0x65, 0x78, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x69, - 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x50, 0x6f, - 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x73, 0x1a, 0x82, 0x03, 0x0a, 0x08, 0x50, 0x6f, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, - 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, - 0x12, 0x40, 0x0a, 0x0e, 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x65, - 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x70, 0x6f, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x45, - 0x6e, 0x64, 0x12, 0x7e, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x4d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0x87, 0x01, 0x0a, - 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x52, 0x45, - 0x47, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x47, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x53, 0x49, 0x44, 0x55, 0x41, 0x4c, 0x5f, 0x52, 0x45, - 0x47, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, - 0x5f, 0x52, 0x45, 0x47, 0x10, 0x04, 0x22, 0x9a, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x49, 0x53, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, - 0x49, 0x4e, 0x47, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x4f, 0x53, 0x54, - 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x42, - 0x4d, 0x49, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4c, 0x4c, 0x45, 0x4e, 0x47, - 0x45, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x52, - 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x4f, - 0x46, 0x10, 0x04, 0x32, 0xbb, 0x01, 0x0a, 0x19, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x91, 0x01, 0x0a, 0x0c, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, - 0x22, 0x23, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x6f, 0x65, 0x74, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x0a, 0xfa, 0xd2, 0xe4, 0x93, 0x02, 0x04, 0x12, 0x02, 0x56, - 0x32, 0x42, 0xe2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x13, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, - 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x12, 0x53, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, - 0x02, 0x1e, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x13, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x32, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_spacemesh_v2alpha1_node_identities_proto_rawDescOnce sync.Once - file_spacemesh_v2alpha1_node_identities_proto_rawDescData = file_spacemesh_v2alpha1_node_identities_proto_rawDesc -) - -func file_spacemesh_v2alpha1_node_identities_proto_rawDescGZIP() []byte { - file_spacemesh_v2alpha1_node_identities_proto_rawDescOnce.Do(func() { - file_spacemesh_v2alpha1_node_identities_proto_rawDescData = protoimpl.X.CompressGZIP(file_spacemesh_v2alpha1_node_identities_proto_rawDescData) - }) - return file_spacemesh_v2alpha1_node_identities_proto_rawDescData -} - -var file_spacemesh_v2alpha1_node_identities_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_spacemesh_v2alpha1_node_identities_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_spacemesh_v2alpha1_node_identities_proto_goTypes = []interface{}{ - (PoetServicesResponse_Identity_Status)(0), // 0: spacemesh.v2alpha1.PoetServicesResponse.Identity.Status - (PoetServicesResponse_Identity_PoetInfo_RegistrationStatus)(0), // 1: spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo.RegistrationStatus - (*PoetServicesRequest)(nil), // 2: spacemesh.v2alpha1.PoetServicesRequest - (*PoetServicesResponse)(nil), // 3: spacemesh.v2alpha1.PoetServicesResponse - (*PoetServicesResponse_Identity)(nil), // 4: spacemesh.v2alpha1.PoetServicesResponse.Identity - (*PoetServicesResponse_Identity_PoetInfo)(nil), // 5: spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp -} -var file_spacemesh_v2alpha1_node_identities_proto_depIdxs = []int32{ - 4, // 0: spacemesh.v2alpha1.PoetServicesResponse.identities:type_name -> spacemesh.v2alpha1.PoetServicesResponse.Identity - 5, // 1: spacemesh.v2alpha1.PoetServicesResponse.Identity.poet_infos:type_name -> spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo - 6, // 2: spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo.poet_round_end:type_name -> google.protobuf.Timestamp - 1, // 3: spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo.registration_status:type_name -> spacemesh.v2alpha1.PoetServicesResponse.Identity.PoetInfo.RegistrationStatus - 2, // 4: spacemesh.v2alpha1.SmeshingIdentitiesService.PoetServices:input_type -> spacemesh.v2alpha1.PoetServicesRequest - 3, // 5: spacemesh.v2alpha1.SmeshingIdentitiesService.PoetServices:output_type -> spacemesh.v2alpha1.PoetServicesResponse - 5, // [5:6] is the sub-list for method output_type - 4, // [4:5] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_spacemesh_v2alpha1_node_identities_proto_init() } -func file_spacemesh_v2alpha1_node_identities_proto_init() { - if File_spacemesh_v2alpha1_node_identities_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_spacemesh_v2alpha1_node_identities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetServicesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2alpha1_node_identities_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetServicesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2alpha1_node_identities_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetServicesResponse_Identity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2alpha1_node_identities_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetServicesResponse_Identity_PoetInfo); 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_spacemesh_v2alpha1_node_identities_proto_rawDesc, - NumEnums: 2, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_spacemesh_v2alpha1_node_identities_proto_goTypes, - DependencyIndexes: file_spacemesh_v2alpha1_node_identities_proto_depIdxs, - EnumInfos: file_spacemesh_v2alpha1_node_identities_proto_enumTypes, - MessageInfos: file_spacemesh_v2alpha1_node_identities_proto_msgTypes, - }.Build() - File_spacemesh_v2alpha1_node_identities_proto = out.File - file_spacemesh_v2alpha1_node_identities_proto_rawDesc = nil - file_spacemesh_v2alpha1_node_identities_proto_goTypes = nil - file_spacemesh_v2alpha1_node_identities_proto_depIdxs = nil -} diff --git a/release/go/spacemesh/v2alpha1/node_identities.pb.gw.go b/release/go/spacemesh/v2alpha1/node_identities.pb.gw.go deleted file mode 100644 index f1592334..00000000 --- a/release/go/spacemesh/v2alpha1/node_identities.pb.gw.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: spacemesh/v2alpha1/node_identities.proto - -/* -Package spacemeshv2alpha1 is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package spacemeshv2alpha1 - -import ( - "context" - "io" - "net/http" - - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_SmeshingIdentitiesService_PoetServices_0(ctx context.Context, marshaler runtime.Marshaler, client SmeshingIdentitiesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PoetServicesRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PoetServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_SmeshingIdentitiesService_PoetServices_0(ctx context.Context, marshaler runtime.Marshaler, server SmeshingIdentitiesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PoetServicesRequest - var metadata runtime.ServerMetadata - - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PoetServices(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterSmeshingIdentitiesServiceHandlerServer registers the http handlers for service SmeshingIdentitiesService to "mux". -// UnaryRPC :call SmeshingIdentitiesServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSmeshingIdentitiesServiceHandlerFromEndpoint instead. -func RegisterSmeshingIdentitiesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SmeshingIdentitiesServiceServer) error { - - mux.Handle("POST", pattern_SmeshingIdentitiesService_PoetServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2alpha1.SmeshingIdentitiesService/PoetServices", runtime.WithHTTPPathPattern("/v2/smeshingidentities/poetservices")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SmeshingIdentitiesService_PoetServices_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SmeshingIdentitiesService_PoetServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterSmeshingIdentitiesServiceHandlerFromEndpoint is same as RegisterSmeshingIdentitiesServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterSmeshingIdentitiesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterSmeshingIdentitiesServiceHandler(ctx, mux, conn) -} - -// RegisterSmeshingIdentitiesServiceHandler registers the http handlers for service SmeshingIdentitiesService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSmeshingIdentitiesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSmeshingIdentitiesServiceHandlerClient(ctx, mux, NewSmeshingIdentitiesServiceClient(conn)) -} - -// RegisterSmeshingIdentitiesServiceHandlerClient registers the http handlers for service SmeshingIdentitiesService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SmeshingIdentitiesServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SmeshingIdentitiesServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SmeshingIdentitiesServiceClient" to call the correct interceptors. -func RegisterSmeshingIdentitiesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SmeshingIdentitiesServiceClient) error { - - mux.Handle("POST", pattern_SmeshingIdentitiesService_PoetServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2alpha1.SmeshingIdentitiesService/PoetServices", runtime.WithHTTPPathPattern("/v2/smeshingidentities/poetservices")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SmeshingIdentitiesService_PoetServices_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SmeshingIdentitiesService_PoetServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_SmeshingIdentitiesService_PoetServices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "smeshingidentities", "poetservices"}, "")) -) - -var ( - forward_SmeshingIdentitiesService_PoetServices_0 = runtime.ForwardResponseMessage -) diff --git a/release/go/spacemesh/v2alpha1/node_identities_grpc.pb.go b/release/go/spacemesh/v2alpha1/node_identities_grpc.pb.go deleted file mode 100644 index 8547f1da..00000000 --- a/release/go/spacemesh/v2alpha1/node_identities_grpc.pb.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: spacemesh/v2alpha1/node_identities.proto - -package spacemeshv2alpha1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - SmeshingIdentitiesService_PoetServices_FullMethodName = "/spacemesh.v2alpha1.SmeshingIdentitiesService/PoetServices" -) - -// SmeshingIdentitiesServiceClient is the client API for SmeshingIdentitiesService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SmeshingIdentitiesServiceClient interface { - // Returns set of configured poet addresses and poets addresses from registrations, if given, - // and warning in case, if there are registrations with poets, which are not in configured poets set. - PoetServices(ctx context.Context, in *PoetServicesRequest, opts ...grpc.CallOption) (*PoetServicesResponse, error) -} - -type smeshingIdentitiesServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewSmeshingIdentitiesServiceClient(cc grpc.ClientConnInterface) SmeshingIdentitiesServiceClient { - return &smeshingIdentitiesServiceClient{cc} -} - -func (c *smeshingIdentitiesServiceClient) PoetServices(ctx context.Context, in *PoetServicesRequest, opts ...grpc.CallOption) (*PoetServicesResponse, error) { - out := new(PoetServicesResponse) - err := c.cc.Invoke(ctx, SmeshingIdentitiesService_PoetServices_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SmeshingIdentitiesServiceServer is the server API for SmeshingIdentitiesService service. -// All implementations should embed UnimplementedSmeshingIdentitiesServiceServer -// for forward compatibility -type SmeshingIdentitiesServiceServer interface { - // Returns set of configured poet addresses and poets addresses from registrations, if given, - // and warning in case, if there are registrations with poets, which are not in configured poets set. - PoetServices(context.Context, *PoetServicesRequest) (*PoetServicesResponse, error) -} - -// UnimplementedSmeshingIdentitiesServiceServer should be embedded to have forward compatible implementations. -type UnimplementedSmeshingIdentitiesServiceServer struct { -} - -func (UnimplementedSmeshingIdentitiesServiceServer) PoetServices(context.Context, *PoetServicesRequest) (*PoetServicesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PoetServices not implemented") -} - -// UnsafeSmeshingIdentitiesServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SmeshingIdentitiesServiceServer will -// result in compilation errors. -type UnsafeSmeshingIdentitiesServiceServer interface { - mustEmbedUnimplementedSmeshingIdentitiesServiceServer() -} - -func RegisterSmeshingIdentitiesServiceServer(s grpc.ServiceRegistrar, srv SmeshingIdentitiesServiceServer) { - s.RegisterService(&SmeshingIdentitiesService_ServiceDesc, srv) -} - -func _SmeshingIdentitiesService_PoetServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PoetServicesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SmeshingIdentitiesServiceServer).PoetServices(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: SmeshingIdentitiesService_PoetServices_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SmeshingIdentitiesServiceServer).PoetServices(ctx, req.(*PoetServicesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// SmeshingIdentitiesService_ServiceDesc is the grpc.ServiceDesc for SmeshingIdentitiesService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var SmeshingIdentitiesService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "spacemesh.v2alpha1.SmeshingIdentitiesService", - HandlerType: (*SmeshingIdentitiesServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PoetServices", - Handler: _SmeshingIdentitiesService_PoetServices_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "spacemesh/v2alpha1/node_identities.proto", -}