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.

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