code.vegaprotocol.io/vega@v0.79.0/protos/vega/commands/v1/data.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/data.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 // Supported oracle sources 24 type OracleDataSubmission_OracleSource int32 25 26 const ( 27 // Default value 28 OracleDataSubmission_ORACLE_SOURCE_UNSPECIFIED OracleDataSubmission_OracleSource = 0 29 // Specifies that the payload will be base64 encoded JSON conforming to the Open Oracle standard. 30 OracleDataSubmission_ORACLE_SOURCE_OPEN_ORACLE OracleDataSubmission_OracleSource = 1 31 // Specifies that the payload will be base64 encoded JSON, but does not specify the shape of the data. 32 OracleDataSubmission_ORACLE_SOURCE_JSON OracleDataSubmission_OracleSource = 2 33 // Specifies that the payload will be base64 encoded JSON conforming to the ETH standard. 34 OracleDataSubmission_ORACLE_SOURCE_ETHEREUM OracleDataSubmission_OracleSource = 3 35 ) 36 37 // Enum value maps for OracleDataSubmission_OracleSource. 38 var ( 39 OracleDataSubmission_OracleSource_name = map[int32]string{ 40 0: "ORACLE_SOURCE_UNSPECIFIED", 41 1: "ORACLE_SOURCE_OPEN_ORACLE", 42 2: "ORACLE_SOURCE_JSON", 43 3: "ORACLE_SOURCE_ETHEREUM", 44 } 45 OracleDataSubmission_OracleSource_value = map[string]int32{ 46 "ORACLE_SOURCE_UNSPECIFIED": 0, 47 "ORACLE_SOURCE_OPEN_ORACLE": 1, 48 "ORACLE_SOURCE_JSON": 2, 49 "ORACLE_SOURCE_ETHEREUM": 3, 50 } 51 ) 52 53 func (x OracleDataSubmission_OracleSource) Enum() *OracleDataSubmission_OracleSource { 54 p := new(OracleDataSubmission_OracleSource) 55 *p = x 56 return p 57 } 58 59 func (x OracleDataSubmission_OracleSource) String() string { 60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 61 } 62 63 func (OracleDataSubmission_OracleSource) Descriptor() protoreflect.EnumDescriptor { 64 return file_vega_commands_v1_data_proto_enumTypes[0].Descriptor() 65 } 66 67 func (OracleDataSubmission_OracleSource) Type() protoreflect.EnumType { 68 return &file_vega_commands_v1_data_proto_enumTypes[0] 69 } 70 71 func (x OracleDataSubmission_OracleSource) Number() protoreflect.EnumNumber { 72 return protoreflect.EnumNumber(x) 73 } 74 75 // Deprecated: Use OracleDataSubmission_OracleSource.Descriptor instead. 76 func (OracleDataSubmission_OracleSource) EnumDescriptor() ([]byte, []int) { 77 return file_vega_commands_v1_data_proto_rawDescGZIP(), []int{0, 0} 78 } 79 80 // Command to submit new oracle data from third party providers 81 type OracleDataSubmission struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 // Source from which the data is coming from. 87 Source OracleDataSubmission_OracleSource `protobuf:"varint,1,opt,name=source,proto3,enum=vega.commands.v1.OracleDataSubmission_OracleSource" json:"source,omitempty"` 88 // Data provided by the data source. 89 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 90 } 91 92 func (x *OracleDataSubmission) Reset() { 93 *x = OracleDataSubmission{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_vega_commands_v1_data_proto_msgTypes[0] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99 } 100 101 func (x *OracleDataSubmission) String() string { 102 return protoimpl.X.MessageStringOf(x) 103 } 104 105 func (*OracleDataSubmission) ProtoMessage() {} 106 107 func (x *OracleDataSubmission) ProtoReflect() protoreflect.Message { 108 mi := &file_vega_commands_v1_data_proto_msgTypes[0] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117 } 118 119 // Deprecated: Use OracleDataSubmission.ProtoReflect.Descriptor instead. 120 func (*OracleDataSubmission) Descriptor() ([]byte, []int) { 121 return file_vega_commands_v1_data_proto_rawDescGZIP(), []int{0} 122 } 123 124 func (x *OracleDataSubmission) GetSource() OracleDataSubmission_OracleSource { 125 if x != nil { 126 return x.Source 127 } 128 return OracleDataSubmission_ORACLE_SOURCE_UNSPECIFIED 129 } 130 131 func (x *OracleDataSubmission) GetPayload() []byte { 132 if x != nil { 133 return x.Payload 134 } 135 return nil 136 } 137 138 var File_vega_commands_v1_data_proto protoreflect.FileDescriptor 139 140 var file_vega_commands_v1_data_proto_rawDesc = []byte{ 141 0x0a, 0x1b, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2f, 142 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x76, 143 0x65, 0x67, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x22, 144 0x80, 0x02, 0x0a, 0x14, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 145 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 146 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 147 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x61, 0x63, 148 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 149 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 150 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 151 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 152 0x80, 0x01, 0x0a, 0x0c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 153 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 154 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 155 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 156 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x5f, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x16, 157 0x0a, 0x12, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 158 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 159 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 160 0x10, 0x03, 0x42, 0x33, 0x5a, 0x31, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 161 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 162 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 163 0x61, 0x6e, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 164 } 165 166 var ( 167 file_vega_commands_v1_data_proto_rawDescOnce sync.Once 168 file_vega_commands_v1_data_proto_rawDescData = file_vega_commands_v1_data_proto_rawDesc 169 ) 170 171 func file_vega_commands_v1_data_proto_rawDescGZIP() []byte { 172 file_vega_commands_v1_data_proto_rawDescOnce.Do(func() { 173 file_vega_commands_v1_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_vega_commands_v1_data_proto_rawDescData) 174 }) 175 return file_vega_commands_v1_data_proto_rawDescData 176 } 177 178 var file_vega_commands_v1_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 179 var file_vega_commands_v1_data_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 180 var file_vega_commands_v1_data_proto_goTypes = []interface{}{ 181 (OracleDataSubmission_OracleSource)(0), // 0: vega.commands.v1.OracleDataSubmission.OracleSource 182 (*OracleDataSubmission)(nil), // 1: vega.commands.v1.OracleDataSubmission 183 } 184 var file_vega_commands_v1_data_proto_depIdxs = []int32{ 185 0, // 0: vega.commands.v1.OracleDataSubmission.source:type_name -> vega.commands.v1.OracleDataSubmission.OracleSource 186 1, // [1:1] is the sub-list for method output_type 187 1, // [1:1] is the sub-list for method input_type 188 1, // [1:1] is the sub-list for extension type_name 189 1, // [1:1] is the sub-list for extension extendee 190 0, // [0:1] is the sub-list for field type_name 191 } 192 193 func init() { file_vega_commands_v1_data_proto_init() } 194 func file_vega_commands_v1_data_proto_init() { 195 if File_vega_commands_v1_data_proto != nil { 196 return 197 } 198 if !protoimpl.UnsafeEnabled { 199 file_vega_commands_v1_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 200 switch v := v.(*OracleDataSubmission); i { 201 case 0: 202 return &v.state 203 case 1: 204 return &v.sizeCache 205 case 2: 206 return &v.unknownFields 207 default: 208 return nil 209 } 210 } 211 } 212 type x struct{} 213 out := protoimpl.TypeBuilder{ 214 File: protoimpl.DescBuilder{ 215 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 216 RawDescriptor: file_vega_commands_v1_data_proto_rawDesc, 217 NumEnums: 1, 218 NumMessages: 1, 219 NumExtensions: 0, 220 NumServices: 0, 221 }, 222 GoTypes: file_vega_commands_v1_data_proto_goTypes, 223 DependencyIndexes: file_vega_commands_v1_data_proto_depIdxs, 224 EnumInfos: file_vega_commands_v1_data_proto_enumTypes, 225 MessageInfos: file_vega_commands_v1_data_proto_msgTypes, 226 }.Build() 227 File_vega_commands_v1_data_proto = out.File 228 file_vega_commands_v1_data_proto_rawDesc = nil 229 file_vega_commands_v1_data_proto_goTypes = nil 230 file_vega_commands_v1_data_proto_depIdxs = nil 231 }