code.vegaprotocol.io/vega@v0.79.0/protos/vega/commands/v1/signature.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: vega/commands/v1/signature.proto 6 7 package v1 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 // Signature definition that allows the network to authenticate external data. 24 type Signature struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // Hex encoded bytes of the signature. 30 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 31 // Algorithm used to create the signature. 32 Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"` 33 // Version of the algorithm used to create the signature. 34 Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` 35 } 36 37 func (x *Signature) Reset() { 38 *x = Signature{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_vega_commands_v1_signature_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *Signature) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Signature) ProtoMessage() {} 51 52 func (x *Signature) ProtoReflect() protoreflect.Message { 53 mi := &file_vega_commands_v1_signature_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use Signature.ProtoReflect.Descriptor instead. 65 func (*Signature) Descriptor() ([]byte, []int) { 66 return file_vega_commands_v1_signature_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Signature) GetValue() string { 70 if x != nil { 71 return x.Value 72 } 73 return "" 74 } 75 76 func (x *Signature) GetAlgo() string { 77 if x != nil { 78 return x.Algo 79 } 80 return "" 81 } 82 83 func (x *Signature) GetVersion() uint32 { 84 if x != nil { 85 return x.Version 86 } 87 return 0 88 } 89 90 var File_vega_commands_v1_signature_proto protoreflect.FileDescriptor 91 92 var file_vega_commands_v1_signature_proto_rawDesc = []byte{ 93 0x0a, 0x20, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 94 0x76, 0x31, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 95 0x74, 0x6f, 0x12, 0x10, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 96 0x73, 0x2e, 0x76, 0x31, 0x22, 0x4f, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 97 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 98 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18, 99 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 100 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 101 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x33, 0x5a, 0x31, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 102 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 103 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x63, 104 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 105 0x6f, 0x33, 106 } 107 108 var ( 109 file_vega_commands_v1_signature_proto_rawDescOnce sync.Once 110 file_vega_commands_v1_signature_proto_rawDescData = file_vega_commands_v1_signature_proto_rawDesc 111 ) 112 113 func file_vega_commands_v1_signature_proto_rawDescGZIP() []byte { 114 file_vega_commands_v1_signature_proto_rawDescOnce.Do(func() { 115 file_vega_commands_v1_signature_proto_rawDescData = protoimpl.X.CompressGZIP(file_vega_commands_v1_signature_proto_rawDescData) 116 }) 117 return file_vega_commands_v1_signature_proto_rawDescData 118 } 119 120 var file_vega_commands_v1_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 121 var file_vega_commands_v1_signature_proto_goTypes = []interface{}{ 122 (*Signature)(nil), // 0: vega.commands.v1.Signature 123 } 124 var file_vega_commands_v1_signature_proto_depIdxs = []int32{ 125 0, // [0:0] is the sub-list for method output_type 126 0, // [0:0] is the sub-list for method input_type 127 0, // [0:0] is the sub-list for extension type_name 128 0, // [0:0] is the sub-list for extension extendee 129 0, // [0:0] is the sub-list for field type_name 130 } 131 132 func init() { file_vega_commands_v1_signature_proto_init() } 133 func file_vega_commands_v1_signature_proto_init() { 134 if File_vega_commands_v1_signature_proto != nil { 135 return 136 } 137 if !protoimpl.UnsafeEnabled { 138 file_vega_commands_v1_signature_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 139 switch v := v.(*Signature); i { 140 case 0: 141 return &v.state 142 case 1: 143 return &v.sizeCache 144 case 2: 145 return &v.unknownFields 146 default: 147 return nil 148 } 149 } 150 } 151 type x struct{} 152 out := protoimpl.TypeBuilder{ 153 File: protoimpl.DescBuilder{ 154 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 155 RawDescriptor: file_vega_commands_v1_signature_proto_rawDesc, 156 NumEnums: 0, 157 NumMessages: 1, 158 NumExtensions: 0, 159 NumServices: 0, 160 }, 161 GoTypes: file_vega_commands_v1_signature_proto_goTypes, 162 DependencyIndexes: file_vega_commands_v1_signature_proto_depIdxs, 163 MessageInfos: file_vega_commands_v1_signature_proto_msgTypes, 164 }.Build() 165 File_vega_commands_v1_signature_proto = out.File 166 file_vega_commands_v1_signature_proto_rawDesc = nil 167 file_vega_commands_v1_signature_proto_goTypes = nil 168 file_vega_commands_v1_signature_proto_depIdxs = nil 169 }