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.

870 lines
26 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
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. // *Type_ListType
  179. Kind isType_Kind `protobuf_oneof:"kind"`
  180. }
  181. func (x *Type) Reset() {
  182. *x = Type{}
  183. if protoimpl.UnsafeEnabled {
  184. mi := &file_schema_proto_msgTypes[2]
  185. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  186. ms.StoreMessageInfo(mi)
  187. }
  188. }
  189. func (x *Type) String() string {
  190. return protoimpl.X.MessageStringOf(x)
  191. }
  192. func (*Type) ProtoMessage() {}
  193. func (x *Type) ProtoReflect() protoreflect.Message {
  194. mi := &file_schema_proto_msgTypes[2]
  195. if protoimpl.UnsafeEnabled && x != nil {
  196. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  197. if ms.LoadMessageInfo() == nil {
  198. ms.StoreMessageInfo(mi)
  199. }
  200. return ms
  201. }
  202. return mi.MessageOf(x)
  203. }
  204. // Deprecated: Use Type.ProtoReflect.Descriptor instead.
  205. func (*Type) Descriptor() ([]byte, []int) {
  206. return file_schema_proto_rawDescGZIP(), []int{2}
  207. }
  208. func (m *Type) GetKind() isType_Kind {
  209. if m != nil {
  210. return m.Kind
  211. }
  212. return nil
  213. }
  214. func (x *Type) GetScalarType() ScalarType {
  215. if x, ok := x.GetKind().(*Type_ScalarType); ok {
  216. return x.ScalarType
  217. }
  218. return ScalarType_BOOLEAN
  219. }
  220. func (x *Type) GetRecordType() *RecordType {
  221. if x, ok := x.GetKind().(*Type_RecordType); ok {
  222. return x.RecordType
  223. }
  224. return nil
  225. }
  226. func (x *Type) GetListType() *ListType {
  227. if x, ok := x.GetKind().(*Type_ListType); ok {
  228. return x.ListType
  229. }
  230. return nil
  231. }
  232. type isType_Kind interface {
  233. isType_Kind()
  234. }
  235. type Type_ScalarType struct {
  236. ScalarType ScalarType `protobuf:"varint,1,opt,name=scalar_type,json=scalarType,proto3,enum=schema_pb.ScalarType,oneof"`
  237. }
  238. type Type_RecordType struct {
  239. RecordType *RecordType `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3,oneof"`
  240. }
  241. type Type_ListType struct {
  242. ListType *ListType `protobuf:"bytes,3,opt,name=list_type,json=listType,proto3,oneof"`
  243. }
  244. func (*Type_ScalarType) isType_Kind() {}
  245. func (*Type_RecordType) isType_Kind() {}
  246. func (*Type_ListType) isType_Kind() {}
  247. type ListType struct {
  248. state protoimpl.MessageState
  249. sizeCache protoimpl.SizeCache
  250. unknownFields protoimpl.UnknownFields
  251. ElementType *Type `protobuf:"bytes,1,opt,name=element_type,json=elementType,proto3" json:"element_type,omitempty"`
  252. }
  253. func (x *ListType) Reset() {
  254. *x = ListType{}
  255. if protoimpl.UnsafeEnabled {
  256. mi := &file_schema_proto_msgTypes[3]
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. ms.StoreMessageInfo(mi)
  259. }
  260. }
  261. func (x *ListType) String() string {
  262. return protoimpl.X.MessageStringOf(x)
  263. }
  264. func (*ListType) ProtoMessage() {}
  265. func (x *ListType) ProtoReflect() protoreflect.Message {
  266. mi := &file_schema_proto_msgTypes[3]
  267. if protoimpl.UnsafeEnabled && x != nil {
  268. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  269. if ms.LoadMessageInfo() == nil {
  270. ms.StoreMessageInfo(mi)
  271. }
  272. return ms
  273. }
  274. return mi.MessageOf(x)
  275. }
  276. // Deprecated: Use ListType.ProtoReflect.Descriptor instead.
  277. func (*ListType) Descriptor() ([]byte, []int) {
  278. return file_schema_proto_rawDescGZIP(), []int{3}
  279. }
  280. func (x *ListType) GetElementType() *Type {
  281. if x != nil {
  282. return x.ElementType
  283. }
  284. return nil
  285. }
  286. // /////////////////////////
  287. // value definition
  288. // /////////////////////////
  289. type RecordValue struct {
  290. state protoimpl.MessageState
  291. sizeCache protoimpl.SizeCache
  292. unknownFields protoimpl.UnknownFields
  293. 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"`
  294. }
  295. func (x *RecordValue) Reset() {
  296. *x = RecordValue{}
  297. if protoimpl.UnsafeEnabled {
  298. mi := &file_schema_proto_msgTypes[4]
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. ms.StoreMessageInfo(mi)
  301. }
  302. }
  303. func (x *RecordValue) String() string {
  304. return protoimpl.X.MessageStringOf(x)
  305. }
  306. func (*RecordValue) ProtoMessage() {}
  307. func (x *RecordValue) ProtoReflect() protoreflect.Message {
  308. mi := &file_schema_proto_msgTypes[4]
  309. if protoimpl.UnsafeEnabled && x != nil {
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. if ms.LoadMessageInfo() == nil {
  312. ms.StoreMessageInfo(mi)
  313. }
  314. return ms
  315. }
  316. return mi.MessageOf(x)
  317. }
  318. // Deprecated: Use RecordValue.ProtoReflect.Descriptor instead.
  319. func (*RecordValue) Descriptor() ([]byte, []int) {
  320. return file_schema_proto_rawDescGZIP(), []int{4}
  321. }
  322. func (x *RecordValue) GetFields() map[string]*Value {
  323. if x != nil {
  324. return x.Fields
  325. }
  326. return nil
  327. }
  328. type Value struct {
  329. state protoimpl.MessageState
  330. sizeCache protoimpl.SizeCache
  331. unknownFields protoimpl.UnknownFields
  332. // Types that are assignable to Kind:
  333. //
  334. // *Value_BoolValue
  335. // *Value_Int32Value
  336. // *Value_Int64Value
  337. // *Value_FloatValue
  338. // *Value_DoubleValue
  339. // *Value_BytesValue
  340. // *Value_StringValue
  341. // *Value_ListValue
  342. // *Value_RecordValue
  343. Kind isValue_Kind `protobuf_oneof:"kind"`
  344. }
  345. func (x *Value) Reset() {
  346. *x = Value{}
  347. if protoimpl.UnsafeEnabled {
  348. mi := &file_schema_proto_msgTypes[5]
  349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  350. ms.StoreMessageInfo(mi)
  351. }
  352. }
  353. func (x *Value) String() string {
  354. return protoimpl.X.MessageStringOf(x)
  355. }
  356. func (*Value) ProtoMessage() {}
  357. func (x *Value) ProtoReflect() protoreflect.Message {
  358. mi := &file_schema_proto_msgTypes[5]
  359. if protoimpl.UnsafeEnabled && x != nil {
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. if ms.LoadMessageInfo() == nil {
  362. ms.StoreMessageInfo(mi)
  363. }
  364. return ms
  365. }
  366. return mi.MessageOf(x)
  367. }
  368. // Deprecated: Use Value.ProtoReflect.Descriptor instead.
  369. func (*Value) Descriptor() ([]byte, []int) {
  370. return file_schema_proto_rawDescGZIP(), []int{5}
  371. }
  372. func (m *Value) GetKind() isValue_Kind {
  373. if m != nil {
  374. return m.Kind
  375. }
  376. return nil
  377. }
  378. func (x *Value) GetBoolValue() bool {
  379. if x, ok := x.GetKind().(*Value_BoolValue); ok {
  380. return x.BoolValue
  381. }
  382. return false
  383. }
  384. func (x *Value) GetInt32Value() int32 {
  385. if x, ok := x.GetKind().(*Value_Int32Value); ok {
  386. return x.Int32Value
  387. }
  388. return 0
  389. }
  390. func (x *Value) GetInt64Value() int64 {
  391. if x, ok := x.GetKind().(*Value_Int64Value); ok {
  392. return x.Int64Value
  393. }
  394. return 0
  395. }
  396. func (x *Value) GetFloatValue() float32 {
  397. if x, ok := x.GetKind().(*Value_FloatValue); ok {
  398. return x.FloatValue
  399. }
  400. return 0
  401. }
  402. func (x *Value) GetDoubleValue() float64 {
  403. if x, ok := x.GetKind().(*Value_DoubleValue); ok {
  404. return x.DoubleValue
  405. }
  406. return 0
  407. }
  408. func (x *Value) GetBytesValue() []byte {
  409. if x, ok := x.GetKind().(*Value_BytesValue); ok {
  410. return x.BytesValue
  411. }
  412. return nil
  413. }
  414. func (x *Value) GetStringValue() string {
  415. if x, ok := x.GetKind().(*Value_StringValue); ok {
  416. return x.StringValue
  417. }
  418. return ""
  419. }
  420. func (x *Value) GetListValue() *ListValue {
  421. if x, ok := x.GetKind().(*Value_ListValue); ok {
  422. return x.ListValue
  423. }
  424. return nil
  425. }
  426. func (x *Value) GetRecordValue() *RecordValue {
  427. if x, ok := x.GetKind().(*Value_RecordValue); ok {
  428. return x.RecordValue
  429. }
  430. return nil
  431. }
  432. type isValue_Kind interface {
  433. isValue_Kind()
  434. }
  435. type Value_BoolValue struct {
  436. BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
  437. }
  438. type Value_Int32Value struct {
  439. Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
  440. }
  441. type Value_Int64Value struct {
  442. Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
  443. }
  444. type Value_FloatValue struct {
  445. FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
  446. }
  447. type Value_DoubleValue struct {
  448. DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
  449. }
  450. type Value_BytesValue struct {
  451. BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
  452. }
  453. type Value_StringValue struct {
  454. StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof"`
  455. }
  456. type Value_ListValue struct {
  457. ListValue *ListValue `protobuf:"bytes,14,opt,name=list_value,json=listValue,proto3,oneof"`
  458. }
  459. type Value_RecordValue struct {
  460. RecordValue *RecordValue `protobuf:"bytes,15,opt,name=record_value,json=recordValue,proto3,oneof"`
  461. }
  462. func (*Value_BoolValue) isValue_Kind() {}
  463. func (*Value_Int32Value) isValue_Kind() {}
  464. func (*Value_Int64Value) isValue_Kind() {}
  465. func (*Value_FloatValue) isValue_Kind() {}
  466. func (*Value_DoubleValue) isValue_Kind() {}
  467. func (*Value_BytesValue) isValue_Kind() {}
  468. func (*Value_StringValue) isValue_Kind() {}
  469. func (*Value_ListValue) isValue_Kind() {}
  470. func (*Value_RecordValue) isValue_Kind() {}
  471. type ListValue struct {
  472. state protoimpl.MessageState
  473. sizeCache protoimpl.SizeCache
  474. unknownFields protoimpl.UnknownFields
  475. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  476. }
  477. func (x *ListValue) Reset() {
  478. *x = ListValue{}
  479. if protoimpl.UnsafeEnabled {
  480. mi := &file_schema_proto_msgTypes[6]
  481. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  482. ms.StoreMessageInfo(mi)
  483. }
  484. }
  485. func (x *ListValue) String() string {
  486. return protoimpl.X.MessageStringOf(x)
  487. }
  488. func (*ListValue) ProtoMessage() {}
  489. func (x *ListValue) ProtoReflect() protoreflect.Message {
  490. mi := &file_schema_proto_msgTypes[6]
  491. if protoimpl.UnsafeEnabled && x != nil {
  492. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  493. if ms.LoadMessageInfo() == nil {
  494. ms.StoreMessageInfo(mi)
  495. }
  496. return ms
  497. }
  498. return mi.MessageOf(x)
  499. }
  500. // Deprecated: Use ListValue.ProtoReflect.Descriptor instead.
  501. func (*ListValue) Descriptor() ([]byte, []int) {
  502. return file_schema_proto_rawDescGZIP(), []int{6}
  503. }
  504. func (x *ListValue) GetValues() []*Value {
  505. if x != nil {
  506. return x.Values
  507. }
  508. return nil
  509. }
  510. var File_schema_proto protoreflect.FileDescriptor
  511. var file_schema_proto_rawDesc = []byte{
  512. 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,
  513. 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x22, 0x36, 0x0a, 0x0a, 0x52, 0x65, 0x63,
  514. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
  515. 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
  516. 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
  517. 0x73, 0x22, 0x77, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
  518. 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23,
  519. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73,
  520. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
  521. 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01,
  522. 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f,
  523. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a,
  524. 0x69, 0x73, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0xb6, 0x01, 0x0a, 0x04, 0x54,
  525. 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x5f, 0x74, 0x79,
  526. 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d,
  527. 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x48,
  528. 0x00, 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a,
  529. 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
  530. 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52,
  531. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x63,
  532. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x5f,
  533. 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x63, 0x68,
  534. 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48,
  535. 0x00, 0x52, 0x08, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b,
  536. 0x69, 0x6e, 0x64, 0x22, 0x3e, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
  537. 0x32, 0x0a, 0x0c, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  538. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70,
  539. 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54,
  540. 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61,
  541. 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20,
  542. 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e,
  543. 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c,
  544. 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a,
  545. 0x4b, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
  546. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  547. 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  548. 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75,
  549. 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfa, 0x02, 0x0a,
  550. 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76,
  551. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f,
  552. 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32,
  553. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a,
  554. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e,
  555. 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48,
  556. 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a,
  557. 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01,
  558. 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65,
  559. 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  560. 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  561. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76,
  562. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79,
  563. 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69,
  564. 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
  565. 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a,
  566. 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,
  567. 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x4c, 0x69,
  568. 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56,
  569. 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x76,
  570. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68,
  571. 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c,
  572. 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75,
  573. 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x35, 0x0a, 0x09, 0x4c, 0x69, 0x73,
  574. 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
  575. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,
  576. 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
  577. 0x2a, 0x5e, 0x0a, 0x0a, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b,
  578. 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x49,
  579. 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f, 0x4e, 0x47,
  580. 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a,
  581. 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54,
  582. 0x45, 0x53, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07,
  583. 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
  584. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64,
  585. 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
  586. 0x61, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  587. }
  588. var (
  589. file_schema_proto_rawDescOnce sync.Once
  590. file_schema_proto_rawDescData = file_schema_proto_rawDesc
  591. )
  592. func file_schema_proto_rawDescGZIP() []byte {
  593. file_schema_proto_rawDescOnce.Do(func() {
  594. file_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_schema_proto_rawDescData)
  595. })
  596. return file_schema_proto_rawDescData
  597. }
  598. var file_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  599. var file_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  600. var file_schema_proto_goTypes = []interface{}{
  601. (ScalarType)(0), // 0: schema_pb.ScalarType
  602. (*RecordType)(nil), // 1: schema_pb.RecordType
  603. (*Field)(nil), // 2: schema_pb.Field
  604. (*Type)(nil), // 3: schema_pb.Type
  605. (*ListType)(nil), // 4: schema_pb.ListType
  606. (*RecordValue)(nil), // 5: schema_pb.RecordValue
  607. (*Value)(nil), // 6: schema_pb.Value
  608. (*ListValue)(nil), // 7: schema_pb.ListValue
  609. nil, // 8: schema_pb.RecordValue.FieldsEntry
  610. }
  611. var file_schema_proto_depIdxs = []int32{
  612. 2, // 0: schema_pb.RecordType.fields:type_name -> schema_pb.Field
  613. 3, // 1: schema_pb.Field.type:type_name -> schema_pb.Type
  614. 0, // 2: schema_pb.Type.scalar_type:type_name -> schema_pb.ScalarType
  615. 1, // 3: schema_pb.Type.record_type:type_name -> schema_pb.RecordType
  616. 4, // 4: schema_pb.Type.list_type:type_name -> schema_pb.ListType
  617. 3, // 5: schema_pb.ListType.element_type:type_name -> schema_pb.Type
  618. 8, // 6: schema_pb.RecordValue.fields:type_name -> schema_pb.RecordValue.FieldsEntry
  619. 7, // 7: schema_pb.Value.list_value:type_name -> schema_pb.ListValue
  620. 5, // 8: schema_pb.Value.record_value:type_name -> schema_pb.RecordValue
  621. 6, // 9: schema_pb.ListValue.values:type_name -> schema_pb.Value
  622. 6, // 10: schema_pb.RecordValue.FieldsEntry.value:type_name -> schema_pb.Value
  623. 11, // [11:11] is the sub-list for method output_type
  624. 11, // [11:11] is the sub-list for method input_type
  625. 11, // [11:11] is the sub-list for extension type_name
  626. 11, // [11:11] is the sub-list for extension extendee
  627. 0, // [0:11] is the sub-list for field type_name
  628. }
  629. func init() { file_schema_proto_init() }
  630. func file_schema_proto_init() {
  631. if File_schema_proto != nil {
  632. return
  633. }
  634. if !protoimpl.UnsafeEnabled {
  635. file_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  636. switch v := v.(*RecordType); i {
  637. case 0:
  638. return &v.state
  639. case 1:
  640. return &v.sizeCache
  641. case 2:
  642. return &v.unknownFields
  643. default:
  644. return nil
  645. }
  646. }
  647. file_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  648. switch v := v.(*Field); i {
  649. case 0:
  650. return &v.state
  651. case 1:
  652. return &v.sizeCache
  653. case 2:
  654. return &v.unknownFields
  655. default:
  656. return nil
  657. }
  658. }
  659. file_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  660. switch v := v.(*Type); i {
  661. case 0:
  662. return &v.state
  663. case 1:
  664. return &v.sizeCache
  665. case 2:
  666. return &v.unknownFields
  667. default:
  668. return nil
  669. }
  670. }
  671. file_schema_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  672. switch v := v.(*ListType); i {
  673. case 0:
  674. return &v.state
  675. case 1:
  676. return &v.sizeCache
  677. case 2:
  678. return &v.unknownFields
  679. default:
  680. return nil
  681. }
  682. }
  683. file_schema_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  684. switch v := v.(*RecordValue); i {
  685. case 0:
  686. return &v.state
  687. case 1:
  688. return &v.sizeCache
  689. case 2:
  690. return &v.unknownFields
  691. default:
  692. return nil
  693. }
  694. }
  695. file_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  696. switch v := v.(*Value); i {
  697. case 0:
  698. return &v.state
  699. case 1:
  700. return &v.sizeCache
  701. case 2:
  702. return &v.unknownFields
  703. default:
  704. return nil
  705. }
  706. }
  707. file_schema_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  708. switch v := v.(*ListValue); i {
  709. case 0:
  710. return &v.state
  711. case 1:
  712. return &v.sizeCache
  713. case 2:
  714. return &v.unknownFields
  715. default:
  716. return nil
  717. }
  718. }
  719. }
  720. file_schema_proto_msgTypes[2].OneofWrappers = []interface{}{
  721. (*Type_ScalarType)(nil),
  722. (*Type_RecordType)(nil),
  723. (*Type_ListType)(nil),
  724. }
  725. file_schema_proto_msgTypes[5].OneofWrappers = []interface{}{
  726. (*Value_BoolValue)(nil),
  727. (*Value_Int32Value)(nil),
  728. (*Value_Int64Value)(nil),
  729. (*Value_FloatValue)(nil),
  730. (*Value_DoubleValue)(nil),
  731. (*Value_BytesValue)(nil),
  732. (*Value_StringValue)(nil),
  733. (*Value_ListValue)(nil),
  734. (*Value_RecordValue)(nil),
  735. }
  736. type x struct{}
  737. out := protoimpl.TypeBuilder{
  738. File: protoimpl.DescBuilder{
  739. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  740. RawDescriptor: file_schema_proto_rawDesc,
  741. NumEnums: 1,
  742. NumMessages: 8,
  743. NumExtensions: 0,
  744. NumServices: 0,
  745. },
  746. GoTypes: file_schema_proto_goTypes,
  747. DependencyIndexes: file_schema_proto_depIdxs,
  748. EnumInfos: file_schema_proto_enumTypes,
  749. MessageInfos: file_schema_proto_msgTypes,
  750. }.Build()
  751. File_schema_proto = out.File
  752. file_schema_proto_rawDesc = nil
  753. file_schema_proto_goTypes = nil
  754. file_schema_proto_depIdxs = nil
  755. }