You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

767 lines
23 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.32.0
  4. // protoc v4.25.3
  5. // source: schema.proto
  6. package schema_pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type ScalarType int32
  20. const (
  21. ScalarType_BOOLEAN ScalarType = 0
  22. ScalarType_INTEGER ScalarType = 1
  23. ScalarType_LONG ScalarType = 3
  24. ScalarType_FLOAT ScalarType = 4
  25. ScalarType_DOUBLE ScalarType = 5
  26. ScalarType_BYTES ScalarType = 6
  27. ScalarType_STRING ScalarType = 7
  28. )
  29. // Enum value maps for ScalarType.
  30. var (
  31. ScalarType_name = map[int32]string{
  32. 0: "BOOLEAN",
  33. 1: "INTEGER",
  34. 3: "LONG",
  35. 4: "FLOAT",
  36. 5: "DOUBLE",
  37. 6: "BYTES",
  38. 7: "STRING",
  39. }
  40. ScalarType_value = map[string]int32{
  41. "BOOLEAN": 0,
  42. "INTEGER": 1,
  43. "LONG": 3,
  44. "FLOAT": 4,
  45. "DOUBLE": 5,
  46. "BYTES": 6,
  47. "STRING": 7,
  48. }
  49. )
  50. func (x ScalarType) Enum() *ScalarType {
  51. p := new(ScalarType)
  52. *p = x
  53. return p
  54. }
  55. func (x ScalarType) String() string {
  56. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  57. }
  58. func (ScalarType) Descriptor() protoreflect.EnumDescriptor {
  59. return file_schema_proto_enumTypes[0].Descriptor()
  60. }
  61. func (ScalarType) Type() protoreflect.EnumType {
  62. return &file_schema_proto_enumTypes[0]
  63. }
  64. func (x ScalarType) Number() protoreflect.EnumNumber {
  65. return protoreflect.EnumNumber(x)
  66. }
  67. // Deprecated: Use ScalarType.Descriptor instead.
  68. func (ScalarType) EnumDescriptor() ([]byte, []int) {
  69. return file_schema_proto_rawDescGZIP(), []int{0}
  70. }
  71. type RecordType struct {
  72. state protoimpl.MessageState
  73. sizeCache protoimpl.SizeCache
  74. unknownFields protoimpl.UnknownFields
  75. Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
  76. }
  77. func (x *RecordType) Reset() {
  78. *x = RecordType{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_schema_proto_msgTypes[0]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *RecordType) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*RecordType) ProtoMessage() {}
  89. func (x *RecordType) ProtoReflect() protoreflect.Message {
  90. mi := &file_schema_proto_msgTypes[0]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use RecordType.ProtoReflect.Descriptor instead.
  101. func (*RecordType) Descriptor() ([]byte, []int) {
  102. return file_schema_proto_rawDescGZIP(), []int{0}
  103. }
  104. func (x *RecordType) GetFields() []*Field {
  105. if x != nil {
  106. return x.Fields
  107. }
  108. return nil
  109. }
  110. type Field struct {
  111. state protoimpl.MessageState
  112. sizeCache protoimpl.SizeCache
  113. unknownFields protoimpl.UnknownFields
  114. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  115. Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  116. Index int32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
  117. IsRepeated bool `protobuf:"varint,4,opt,name=is_repeated,json=isRepeated,proto3" json:"is_repeated,omitempty"`
  118. }
  119. func (x *Field) Reset() {
  120. *x = Field{}
  121. if protoimpl.UnsafeEnabled {
  122. mi := &file_schema_proto_msgTypes[1]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. }
  127. func (x *Field) String() string {
  128. return protoimpl.X.MessageStringOf(x)
  129. }
  130. func (*Field) ProtoMessage() {}
  131. func (x *Field) ProtoReflect() protoreflect.Message {
  132. mi := &file_schema_proto_msgTypes[1]
  133. if protoimpl.UnsafeEnabled && x != nil {
  134. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  135. if ms.LoadMessageInfo() == nil {
  136. ms.StoreMessageInfo(mi)
  137. }
  138. return ms
  139. }
  140. return mi.MessageOf(x)
  141. }
  142. // Deprecated: Use Field.ProtoReflect.Descriptor instead.
  143. func (*Field) Descriptor() ([]byte, []int) {
  144. return file_schema_proto_rawDescGZIP(), []int{1}
  145. }
  146. func (x *Field) GetName() string {
  147. if x != nil {
  148. return x.Name
  149. }
  150. return ""
  151. }
  152. func (x *Field) GetType() *Type {
  153. if x != nil {
  154. return x.Type
  155. }
  156. return nil
  157. }
  158. func (x *Field) GetIndex() int32 {
  159. if x != nil {
  160. return x.Index
  161. }
  162. return 0
  163. }
  164. func (x *Field) GetIsRepeated() bool {
  165. if x != nil {
  166. return x.IsRepeated
  167. }
  168. return false
  169. }
  170. type Type struct {
  171. state protoimpl.MessageState
  172. sizeCache protoimpl.SizeCache
  173. unknownFields protoimpl.UnknownFields
  174. // Types that are assignable to Kind:
  175. //
  176. // *Type_ScalarType
  177. // *Type_RecordType
  178. Kind isType_Kind `protobuf_oneof:"kind"`
  179. }
  180. func (x *Type) Reset() {
  181. *x = Type{}
  182. if protoimpl.UnsafeEnabled {
  183. mi := &file_schema_proto_msgTypes[2]
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. ms.StoreMessageInfo(mi)
  186. }
  187. }
  188. func (x *Type) String() string {
  189. return protoimpl.X.MessageStringOf(x)
  190. }
  191. func (*Type) ProtoMessage() {}
  192. func (x *Type) ProtoReflect() protoreflect.Message {
  193. mi := &file_schema_proto_msgTypes[2]
  194. if protoimpl.UnsafeEnabled && x != nil {
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. if ms.LoadMessageInfo() == nil {
  197. ms.StoreMessageInfo(mi)
  198. }
  199. return ms
  200. }
  201. return mi.MessageOf(x)
  202. }
  203. // Deprecated: Use Type.ProtoReflect.Descriptor instead.
  204. func (*Type) Descriptor() ([]byte, []int) {
  205. return file_schema_proto_rawDescGZIP(), []int{2}
  206. }
  207. func (m *Type) GetKind() isType_Kind {
  208. if m != nil {
  209. return m.Kind
  210. }
  211. return nil
  212. }
  213. func (x *Type) GetScalarType() ScalarType {
  214. if x, ok := x.GetKind().(*Type_ScalarType); ok {
  215. return x.ScalarType
  216. }
  217. return ScalarType_BOOLEAN
  218. }
  219. func (x *Type) GetRecordType() *RecordType {
  220. if x, ok := x.GetKind().(*Type_RecordType); ok {
  221. return x.RecordType
  222. }
  223. return nil
  224. }
  225. type isType_Kind interface {
  226. isType_Kind()
  227. }
  228. type Type_ScalarType struct {
  229. ScalarType ScalarType `protobuf:"varint,1,opt,name=scalar_type,json=scalarType,proto3,enum=schema_pb.ScalarType,oneof"`
  230. }
  231. type Type_RecordType struct {
  232. RecordType *RecordType `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3,oneof"` // MapType map_type = 3;
  233. }
  234. func (*Type_ScalarType) isType_Kind() {}
  235. func (*Type_RecordType) isType_Kind() {}
  236. type MapType struct {
  237. state protoimpl.MessageState
  238. sizeCache protoimpl.SizeCache
  239. unknownFields protoimpl.UnknownFields
  240. // key is always string
  241. Value *Type `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  242. }
  243. func (x *MapType) Reset() {
  244. *x = MapType{}
  245. if protoimpl.UnsafeEnabled {
  246. mi := &file_schema_proto_msgTypes[3]
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. ms.StoreMessageInfo(mi)
  249. }
  250. }
  251. func (x *MapType) String() string {
  252. return protoimpl.X.MessageStringOf(x)
  253. }
  254. func (*MapType) ProtoMessage() {}
  255. func (x *MapType) ProtoReflect() protoreflect.Message {
  256. mi := &file_schema_proto_msgTypes[3]
  257. if protoimpl.UnsafeEnabled && x != nil {
  258. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  259. if ms.LoadMessageInfo() == nil {
  260. ms.StoreMessageInfo(mi)
  261. }
  262. return ms
  263. }
  264. return mi.MessageOf(x)
  265. }
  266. // Deprecated: Use MapType.ProtoReflect.Descriptor instead.
  267. func (*MapType) Descriptor() ([]byte, []int) {
  268. return file_schema_proto_rawDescGZIP(), []int{3}
  269. }
  270. func (x *MapType) GetValue() *Type {
  271. if x != nil {
  272. return x.Value
  273. }
  274. return nil
  275. }
  276. // /////////////////////////
  277. // value definition
  278. // /////////////////////////
  279. type RecordValue struct {
  280. state protoimpl.MessageState
  281. sizeCache protoimpl.SizeCache
  282. unknownFields protoimpl.UnknownFields
  283. Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  284. }
  285. func (x *RecordValue) Reset() {
  286. *x = RecordValue{}
  287. if protoimpl.UnsafeEnabled {
  288. mi := &file_schema_proto_msgTypes[4]
  289. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  290. ms.StoreMessageInfo(mi)
  291. }
  292. }
  293. func (x *RecordValue) String() string {
  294. return protoimpl.X.MessageStringOf(x)
  295. }
  296. func (*RecordValue) ProtoMessage() {}
  297. func (x *RecordValue) ProtoReflect() protoreflect.Message {
  298. mi := &file_schema_proto_msgTypes[4]
  299. if protoimpl.UnsafeEnabled && x != nil {
  300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  301. if ms.LoadMessageInfo() == nil {
  302. ms.StoreMessageInfo(mi)
  303. }
  304. return ms
  305. }
  306. return mi.MessageOf(x)
  307. }
  308. // Deprecated: Use RecordValue.ProtoReflect.Descriptor instead.
  309. func (*RecordValue) Descriptor() ([]byte, []int) {
  310. return file_schema_proto_rawDescGZIP(), []int{4}
  311. }
  312. func (x *RecordValue) GetFields() map[string]*Value {
  313. if x != nil {
  314. return x.Fields
  315. }
  316. return nil
  317. }
  318. type Value struct {
  319. state protoimpl.MessageState
  320. sizeCache protoimpl.SizeCache
  321. unknownFields protoimpl.UnknownFields
  322. // Types that are assignable to Kind:
  323. //
  324. // *Value_BoolValue
  325. // *Value_Int32Value
  326. // *Value_Int64Value
  327. // *Value_FloatValue
  328. // *Value_DoubleValue
  329. // *Value_BytesValue
  330. // *Value_StringValue
  331. // *Value_RecordValue
  332. Kind isValue_Kind `protobuf_oneof:"kind"`
  333. }
  334. func (x *Value) Reset() {
  335. *x = Value{}
  336. if protoimpl.UnsafeEnabled {
  337. mi := &file_schema_proto_msgTypes[5]
  338. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  339. ms.StoreMessageInfo(mi)
  340. }
  341. }
  342. func (x *Value) String() string {
  343. return protoimpl.X.MessageStringOf(x)
  344. }
  345. func (*Value) ProtoMessage() {}
  346. func (x *Value) ProtoReflect() protoreflect.Message {
  347. mi := &file_schema_proto_msgTypes[5]
  348. if protoimpl.UnsafeEnabled && x != nil {
  349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  350. if ms.LoadMessageInfo() == nil {
  351. ms.StoreMessageInfo(mi)
  352. }
  353. return ms
  354. }
  355. return mi.MessageOf(x)
  356. }
  357. // Deprecated: Use Value.ProtoReflect.Descriptor instead.
  358. func (*Value) Descriptor() ([]byte, []int) {
  359. return file_schema_proto_rawDescGZIP(), []int{5}
  360. }
  361. func (m *Value) GetKind() isValue_Kind {
  362. if m != nil {
  363. return m.Kind
  364. }
  365. return nil
  366. }
  367. func (x *Value) GetBoolValue() bool {
  368. if x, ok := x.GetKind().(*Value_BoolValue); ok {
  369. return x.BoolValue
  370. }
  371. return false
  372. }
  373. func (x *Value) GetInt32Value() int32 {
  374. if x, ok := x.GetKind().(*Value_Int32Value); ok {
  375. return x.Int32Value
  376. }
  377. return 0
  378. }
  379. func (x *Value) GetInt64Value() int64 {
  380. if x, ok := x.GetKind().(*Value_Int64Value); ok {
  381. return x.Int64Value
  382. }
  383. return 0
  384. }
  385. func (x *Value) GetFloatValue() float32 {
  386. if x, ok := x.GetKind().(*Value_FloatValue); ok {
  387. return x.FloatValue
  388. }
  389. return 0
  390. }
  391. func (x *Value) GetDoubleValue() float64 {
  392. if x, ok := x.GetKind().(*Value_DoubleValue); ok {
  393. return x.DoubleValue
  394. }
  395. return 0
  396. }
  397. func (x *Value) GetBytesValue() []byte {
  398. if x, ok := x.GetKind().(*Value_BytesValue); ok {
  399. return x.BytesValue
  400. }
  401. return nil
  402. }
  403. func (x *Value) GetStringValue() string {
  404. if x, ok := x.GetKind().(*Value_StringValue); ok {
  405. return x.StringValue
  406. }
  407. return ""
  408. }
  409. func (x *Value) GetRecordValue() *RecordValue {
  410. if x, ok := x.GetKind().(*Value_RecordValue); ok {
  411. return x.RecordValue
  412. }
  413. return nil
  414. }
  415. type isValue_Kind interface {
  416. isValue_Kind()
  417. }
  418. type Value_BoolValue struct {
  419. BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
  420. }
  421. type Value_Int32Value struct {
  422. Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
  423. }
  424. type Value_Int64Value struct {
  425. Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
  426. }
  427. type Value_FloatValue struct {
  428. FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
  429. }
  430. type Value_DoubleValue struct {
  431. DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
  432. }
  433. type Value_BytesValue struct {
  434. BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
  435. }
  436. type Value_StringValue struct {
  437. StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof"`
  438. }
  439. type Value_RecordValue struct {
  440. RecordValue *RecordValue `protobuf:"bytes,15,opt,name=record_value,json=recordValue,proto3,oneof"`
  441. }
  442. func (*Value_BoolValue) isValue_Kind() {}
  443. func (*Value_Int32Value) isValue_Kind() {}
  444. func (*Value_Int64Value) isValue_Kind() {}
  445. func (*Value_FloatValue) isValue_Kind() {}
  446. func (*Value_DoubleValue) isValue_Kind() {}
  447. func (*Value_BytesValue) isValue_Kind() {}
  448. func (*Value_StringValue) isValue_Kind() {}
  449. func (*Value_RecordValue) isValue_Kind() {}
  450. var File_schema_proto protoreflect.FileDescriptor
  451. var file_schema_proto_rawDesc = []byte{
  452. 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,
  453. 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x22, 0x36, 0x0a, 0x0a, 0x52, 0x65, 0x63,
  454. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
  455. 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
  456. 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
  457. 0x73, 0x22, 0x77, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
  458. 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23,
  459. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73,
  460. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
  461. 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01,
  462. 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f,
  463. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a,
  464. 0x69, 0x73, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x04, 0x54,
  465. 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x5f, 0x74, 0x79,
  466. 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d,
  467. 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x48,
  468. 0x00, 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a,
  469. 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
  470. 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52,
  471. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x63,
  472. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22,
  473. 0x30, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61,
  474. 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x63, 0x68, 0x65,
  475. 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  476. 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75,
  477. 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
  478. 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65,
  479. 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
  480. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x4b, 0x0a,
  481. 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  482. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26,
  483. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  484. 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
  485. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc3, 0x02, 0x0a, 0x05, 0x56,
  486. 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c,
  487. 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c,
  488. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76,
  489. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e,
  490. 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36,
  491. 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
  492. 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66,
  493. 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02,
  494. 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23,
  495. 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05,
  496. 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61,
  497. 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c,
  498. 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65,
  499. 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
  500. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  501. 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x72,
  502. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28,
  503. 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65,
  504. 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x63,
  505. 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64,
  506. 0x2a, 0x5e, 0x0a, 0x0a, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b,
  507. 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x49,
  508. 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f, 0x4e, 0x47,
  509. 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a,
  510. 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54,
  511. 0x45, 0x53, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07,
  512. 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
  513. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64,
  514. 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
  515. 0x61, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  516. }
  517. var (
  518. file_schema_proto_rawDescOnce sync.Once
  519. file_schema_proto_rawDescData = file_schema_proto_rawDesc
  520. )
  521. func file_schema_proto_rawDescGZIP() []byte {
  522. file_schema_proto_rawDescOnce.Do(func() {
  523. file_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_schema_proto_rawDescData)
  524. })
  525. return file_schema_proto_rawDescData
  526. }
  527. var file_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  528. var file_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  529. var file_schema_proto_goTypes = []interface{}{
  530. (ScalarType)(0), // 0: schema_pb.ScalarType
  531. (*RecordType)(nil), // 1: schema_pb.RecordType
  532. (*Field)(nil), // 2: schema_pb.Field
  533. (*Type)(nil), // 3: schema_pb.Type
  534. (*MapType)(nil), // 4: schema_pb.MapType
  535. (*RecordValue)(nil), // 5: schema_pb.RecordValue
  536. (*Value)(nil), // 6: schema_pb.Value
  537. nil, // 7: schema_pb.RecordValue.FieldsEntry
  538. }
  539. var file_schema_proto_depIdxs = []int32{
  540. 2, // 0: schema_pb.RecordType.fields:type_name -> schema_pb.Field
  541. 3, // 1: schema_pb.Field.type:type_name -> schema_pb.Type
  542. 0, // 2: schema_pb.Type.scalar_type:type_name -> schema_pb.ScalarType
  543. 1, // 3: schema_pb.Type.record_type:type_name -> schema_pb.RecordType
  544. 3, // 4: schema_pb.MapType.value:type_name -> schema_pb.Type
  545. 7, // 5: schema_pb.RecordValue.fields:type_name -> schema_pb.RecordValue.FieldsEntry
  546. 5, // 6: schema_pb.Value.record_value:type_name -> schema_pb.RecordValue
  547. 6, // 7: schema_pb.RecordValue.FieldsEntry.value:type_name -> schema_pb.Value
  548. 8, // [8:8] is the sub-list for method output_type
  549. 8, // [8:8] is the sub-list for method input_type
  550. 8, // [8:8] is the sub-list for extension type_name
  551. 8, // [8:8] is the sub-list for extension extendee
  552. 0, // [0:8] is the sub-list for field type_name
  553. }
  554. func init() { file_schema_proto_init() }
  555. func file_schema_proto_init() {
  556. if File_schema_proto != nil {
  557. return
  558. }
  559. if !protoimpl.UnsafeEnabled {
  560. file_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  561. switch v := v.(*RecordType); i {
  562. case 0:
  563. return &v.state
  564. case 1:
  565. return &v.sizeCache
  566. case 2:
  567. return &v.unknownFields
  568. default:
  569. return nil
  570. }
  571. }
  572. file_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  573. switch v := v.(*Field); i {
  574. case 0:
  575. return &v.state
  576. case 1:
  577. return &v.sizeCache
  578. case 2:
  579. return &v.unknownFields
  580. default:
  581. return nil
  582. }
  583. }
  584. file_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  585. switch v := v.(*Type); i {
  586. case 0:
  587. return &v.state
  588. case 1:
  589. return &v.sizeCache
  590. case 2:
  591. return &v.unknownFields
  592. default:
  593. return nil
  594. }
  595. }
  596. file_schema_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  597. switch v := v.(*MapType); i {
  598. case 0:
  599. return &v.state
  600. case 1:
  601. return &v.sizeCache
  602. case 2:
  603. return &v.unknownFields
  604. default:
  605. return nil
  606. }
  607. }
  608. file_schema_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  609. switch v := v.(*RecordValue); i {
  610. case 0:
  611. return &v.state
  612. case 1:
  613. return &v.sizeCache
  614. case 2:
  615. return &v.unknownFields
  616. default:
  617. return nil
  618. }
  619. }
  620. file_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  621. switch v := v.(*Value); i {
  622. case 0:
  623. return &v.state
  624. case 1:
  625. return &v.sizeCache
  626. case 2:
  627. return &v.unknownFields
  628. default:
  629. return nil
  630. }
  631. }
  632. }
  633. file_schema_proto_msgTypes[2].OneofWrappers = []interface{}{
  634. (*Type_ScalarType)(nil),
  635. (*Type_RecordType)(nil),
  636. }
  637. file_schema_proto_msgTypes[5].OneofWrappers = []interface{}{
  638. (*Value_BoolValue)(nil),
  639. (*Value_Int32Value)(nil),
  640. (*Value_Int64Value)(nil),
  641. (*Value_FloatValue)(nil),
  642. (*Value_DoubleValue)(nil),
  643. (*Value_BytesValue)(nil),
  644. (*Value_StringValue)(nil),
  645. (*Value_RecordValue)(nil),
  646. }
  647. type x struct{}
  648. out := protoimpl.TypeBuilder{
  649. File: protoimpl.DescBuilder{
  650. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  651. RawDescriptor: file_schema_proto_rawDesc,
  652. NumEnums: 1,
  653. NumMessages: 7,
  654. NumExtensions: 0,
  655. NumServices: 0,
  656. },
  657. GoTypes: file_schema_proto_goTypes,
  658. DependencyIndexes: file_schema_proto_depIdxs,
  659. EnumInfos: file_schema_proto_enumTypes,
  660. MessageInfos: file_schema_proto_msgTypes,
  661. }.Build()
  662. File_schema_proto = out.File
  663. file_schema_proto_rawDesc = nil
  664. file_schema_proto_goTypes = nil
  665. file_schema_proto_depIdxs = nil
  666. }