github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/warp/message.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc (unknown) 5 // source: warp/message.proto 6 7 package warp 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type SignRequest struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 NetworkId uint32 `protobuf:"varint,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` 29 SourceChainId []byte `protobuf:"bytes,2,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"` 30 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 31 } 32 33 func (x *SignRequest) Reset() { 34 *x = SignRequest{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_warp_message_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *SignRequest) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*SignRequest) ProtoMessage() {} 47 48 func (x *SignRequest) ProtoReflect() protoreflect.Message { 49 mi := &file_warp_message_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use SignRequest.ProtoReflect.Descriptor instead. 61 func (*SignRequest) Descriptor() ([]byte, []int) { 62 return file_warp_message_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *SignRequest) GetNetworkId() uint32 { 66 if x != nil { 67 return x.NetworkId 68 } 69 return 0 70 } 71 72 func (x *SignRequest) GetSourceChainId() []byte { 73 if x != nil { 74 return x.SourceChainId 75 } 76 return nil 77 } 78 79 func (x *SignRequest) GetPayload() []byte { 80 if x != nil { 81 return x.Payload 82 } 83 return nil 84 } 85 86 type SignResponse struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` 92 } 93 94 func (x *SignResponse) Reset() { 95 *x = SignResponse{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_warp_message_proto_msgTypes[1] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *SignResponse) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*SignResponse) ProtoMessage() {} 108 109 func (x *SignResponse) ProtoReflect() protoreflect.Message { 110 mi := &file_warp_message_proto_msgTypes[1] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use SignResponse.ProtoReflect.Descriptor instead. 122 func (*SignResponse) Descriptor() ([]byte, []int) { 123 return file_warp_message_proto_rawDescGZIP(), []int{1} 124 } 125 126 func (x *SignResponse) GetSignature() []byte { 127 if x != nil { 128 return x.Signature 129 } 130 return nil 131 } 132 133 var File_warp_message_proto protoreflect.FileDescriptor 134 135 var file_warp_message_proto_rawDesc = []byte{ 136 0x0a, 0x12, 0x77, 0x61, 0x72, 0x70, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 137 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x77, 0x61, 0x72, 0x70, 0x22, 0x6e, 0x0a, 0x0b, 0x53, 0x69, 138 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 139 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 140 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 141 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 142 0x0c, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 143 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 144 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2c, 0x0a, 0x0c, 0x53, 0x69, 145 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 146 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 147 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x32, 0x37, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 148 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x11, 0x2e, 0x77, 0x61, 0x72, 149 0x70, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 150 0x77, 0x61, 0x72, 0x70, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 151 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 152 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 153 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x77, 0x61, 154 0x72, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 155 } 156 157 var ( 158 file_warp_message_proto_rawDescOnce sync.Once 159 file_warp_message_proto_rawDescData = file_warp_message_proto_rawDesc 160 ) 161 162 func file_warp_message_proto_rawDescGZIP() []byte { 163 file_warp_message_proto_rawDescOnce.Do(func() { 164 file_warp_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_warp_message_proto_rawDescData) 165 }) 166 return file_warp_message_proto_rawDescData 167 } 168 169 var file_warp_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 170 var file_warp_message_proto_goTypes = []interface{}{ 171 (*SignRequest)(nil), // 0: warp.SignRequest 172 (*SignResponse)(nil), // 1: warp.SignResponse 173 } 174 var file_warp_message_proto_depIdxs = []int32{ 175 0, // 0: warp.Signer.Sign:input_type -> warp.SignRequest 176 1, // 1: warp.Signer.Sign:output_type -> warp.SignResponse 177 1, // [1:2] is the sub-list for method output_type 178 0, // [0:1] is the sub-list for method input_type 179 0, // [0:0] is the sub-list for extension type_name 180 0, // [0:0] is the sub-list for extension extendee 181 0, // [0:0] is the sub-list for field type_name 182 } 183 184 func init() { file_warp_message_proto_init() } 185 func file_warp_message_proto_init() { 186 if File_warp_message_proto != nil { 187 return 188 } 189 if !protoimpl.UnsafeEnabled { 190 file_warp_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 191 switch v := v.(*SignRequest); i { 192 case 0: 193 return &v.state 194 case 1: 195 return &v.sizeCache 196 case 2: 197 return &v.unknownFields 198 default: 199 return nil 200 } 201 } 202 file_warp_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 203 switch v := v.(*SignResponse); i { 204 case 0: 205 return &v.state 206 case 1: 207 return &v.sizeCache 208 case 2: 209 return &v.unknownFields 210 default: 211 return nil 212 } 213 } 214 } 215 type x struct{} 216 out := protoimpl.TypeBuilder{ 217 File: protoimpl.DescBuilder{ 218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 219 RawDescriptor: file_warp_message_proto_rawDesc, 220 NumEnums: 0, 221 NumMessages: 2, 222 NumExtensions: 0, 223 NumServices: 1, 224 }, 225 GoTypes: file_warp_message_proto_goTypes, 226 DependencyIndexes: file_warp_message_proto_depIdxs, 227 MessageInfos: file_warp_message_proto_msgTypes, 228 }.Build() 229 File_warp_message_proto = out.File 230 file_warp_message_proto_rawDesc = nil 231 file_warp_message_proto_goTypes = nil 232 file_warp_message_proto_depIdxs = nil 233 }