code.vegaprotocol.io/vega@v0.79.0/protos/vega/oracle.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/oracle.proto 6 7 package vega 8 9 import ( 10 v1 "code.vegaprotocol.io/vega/protos/vega/data/v1" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // Oracle spec contains an embedded external data source spec. 25 // It will be generated by the compiler as: OracleSpec_ExternalDataSourceSpec_* 26 type OracleSpec struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 ExternalDataSourceSpec *ExternalDataSourceSpec `protobuf:"bytes,1,opt,name=external_data_source_spec,json=externalDataSourceSpec,proto3" json:"external_data_source_spec,omitempty"` 32 } 33 34 func (x *OracleSpec) Reset() { 35 *x = OracleSpec{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_vega_oracle_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *OracleSpec) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*OracleSpec) ProtoMessage() {} 48 49 func (x *OracleSpec) ProtoReflect() protoreflect.Message { 50 mi := &file_vega_oracle_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use OracleSpec.ProtoReflect.Descriptor instead. 62 func (*OracleSpec) Descriptor() ([]byte, []int) { 63 return file_vega_oracle_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *OracleSpec) GetExternalDataSourceSpec() *ExternalDataSourceSpec { 67 if x != nil { 68 return x.ExternalDataSourceSpec 69 } 70 return nil 71 } 72 73 type OracleData struct { 74 state protoimpl.MessageState 75 sizeCache protoimpl.SizeCache 76 unknownFields protoimpl.UnknownFields 77 78 ExternalData *v1.ExternalData `protobuf:"bytes,1,opt,name=external_data,json=externalData,proto3" json:"external_data,omitempty"` 79 } 80 81 func (x *OracleData) Reset() { 82 *x = OracleData{} 83 if protoimpl.UnsafeEnabled { 84 mi := &file_vega_oracle_proto_msgTypes[1] 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 ms.StoreMessageInfo(mi) 87 } 88 } 89 90 func (x *OracleData) String() string { 91 return protoimpl.X.MessageStringOf(x) 92 } 93 94 func (*OracleData) ProtoMessage() {} 95 96 func (x *OracleData) ProtoReflect() protoreflect.Message { 97 mi := &file_vega_oracle_proto_msgTypes[1] 98 if protoimpl.UnsafeEnabled && x != nil { 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 if ms.LoadMessageInfo() == nil { 101 ms.StoreMessageInfo(mi) 102 } 103 return ms 104 } 105 return mi.MessageOf(x) 106 } 107 108 // Deprecated: Use OracleData.ProtoReflect.Descriptor instead. 109 func (*OracleData) Descriptor() ([]byte, []int) { 110 return file_vega_oracle_proto_rawDescGZIP(), []int{1} 111 } 112 113 func (x *OracleData) GetExternalData() *v1.ExternalData { 114 if x != nil { 115 return x.ExternalData 116 } 117 return nil 118 } 119 120 var File_vega_oracle_proto protoreflect.FileDescriptor 121 122 var file_vega_oracle_proto_rawDesc = []byte{ 123 0x0a, 0x11, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x70, 0x72, 124 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x76, 0x65, 0x67, 0x61, 0x1a, 0x17, 0x76, 0x65, 0x67, 0x61, 0x2f, 125 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 126 0x74, 0x6f, 0x1a, 0x16, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 127 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x0a, 0x4f, 0x72, 128 0x61, 0x63, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x57, 0x0a, 0x19, 0x65, 0x78, 0x74, 0x65, 129 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 130 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x65, 131 0x67, 0x61, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x53, 132 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x16, 0x65, 0x78, 0x74, 0x65, 0x72, 133 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, 134 0x63, 0x22, 0x4d, 0x0a, 0x0a, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 135 0x3f, 0x0a, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 136 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x64, 0x61, 137 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 138 0x74, 0x61, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 139 0x42, 0x27, 0x5a, 0x25, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 140 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 141 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 142 0x33, 143 } 144 145 var ( 146 file_vega_oracle_proto_rawDescOnce sync.Once 147 file_vega_oracle_proto_rawDescData = file_vega_oracle_proto_rawDesc 148 ) 149 150 func file_vega_oracle_proto_rawDescGZIP() []byte { 151 file_vega_oracle_proto_rawDescOnce.Do(func() { 152 file_vega_oracle_proto_rawDescData = protoimpl.X.CompressGZIP(file_vega_oracle_proto_rawDescData) 153 }) 154 return file_vega_oracle_proto_rawDescData 155 } 156 157 var file_vega_oracle_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 158 var file_vega_oracle_proto_goTypes = []interface{}{ 159 (*OracleSpec)(nil), // 0: vega.OracleSpec 160 (*OracleData)(nil), // 1: vega.OracleData 161 (*ExternalDataSourceSpec)(nil), // 2: vega.ExternalDataSourceSpec 162 (*v1.ExternalData)(nil), // 3: vega.data.v1.ExternalData 163 } 164 var file_vega_oracle_proto_depIdxs = []int32{ 165 2, // 0: vega.OracleSpec.external_data_source_spec:type_name -> vega.ExternalDataSourceSpec 166 3, // 1: vega.OracleData.external_data:type_name -> vega.data.v1.ExternalData 167 2, // [2:2] is the sub-list for method output_type 168 2, // [2:2] is the sub-list for method input_type 169 2, // [2:2] is the sub-list for extension type_name 170 2, // [2:2] is the sub-list for extension extendee 171 0, // [0:2] is the sub-list for field type_name 172 } 173 174 func init() { file_vega_oracle_proto_init() } 175 func file_vega_oracle_proto_init() { 176 if File_vega_oracle_proto != nil { 177 return 178 } 179 file_vega_data_source_proto_init() 180 if !protoimpl.UnsafeEnabled { 181 file_vega_oracle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 182 switch v := v.(*OracleSpec); i { 183 case 0: 184 return &v.state 185 case 1: 186 return &v.sizeCache 187 case 2: 188 return &v.unknownFields 189 default: 190 return nil 191 } 192 } 193 file_vega_oracle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 194 switch v := v.(*OracleData); i { 195 case 0: 196 return &v.state 197 case 1: 198 return &v.sizeCache 199 case 2: 200 return &v.unknownFields 201 default: 202 return nil 203 } 204 } 205 } 206 type x struct{} 207 out := protoimpl.TypeBuilder{ 208 File: protoimpl.DescBuilder{ 209 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 210 RawDescriptor: file_vega_oracle_proto_rawDesc, 211 NumEnums: 0, 212 NumMessages: 2, 213 NumExtensions: 0, 214 NumServices: 0, 215 }, 216 GoTypes: file_vega_oracle_proto_goTypes, 217 DependencyIndexes: file_vega_oracle_proto_depIdxs, 218 MessageInfos: file_vega_oracle_proto_msgTypes, 219 }.Build() 220 File_vega_oracle_proto = out.File 221 file_vega_oracle_proto_rawDesc = nil 222 file_vega_oracle_proto_goTypes = nil 223 file_vega_oracle_proto_depIdxs = nil 224 }