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.

881 lines
26 KiB

9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.1
  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_BOOL ScalarType = 0
  22. ScalarType_INT32 ScalarType = 1
  23. ScalarType_INT64 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: "BOOL",
  33. 1: "INT32",
  34. 3: "INT64",
  35. 4: "FLOAT",
  36. 5: "DOUBLE",
  37. 6: "BYTES",
  38. 7: "STRING",
  39. }
  40. ScalarType_value = map[string]int32{
  41. "BOOL": 0,
  42. "INT32": 1,
  43. "INT64": 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. FieldIndex int32 `protobuf:"varint,2,opt,name=field_index,json=fieldIndex,proto3" json:"field_index,omitempty"`
  116. Type *Type `protobuf:"bytes,3,opt,name=type,proto3" json:"type,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) GetFieldIndex() int32 {
  154. if x != nil {
  155. return x.FieldIndex
  156. }
  157. return 0
  158. }
  159. func (x *Field) GetType() *Type {
  160. if x != nil {
  161. return x.Type
  162. }
  163. return nil
  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_BOOL
  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, 0xa3, 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. 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02,
  527. 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
  528. 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f,
  529. 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
  530. 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x65,
  531. 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65,
  532. 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71,
  533. 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52,
  534. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0xb6, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
  535. 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  536. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70,
  537. 0x62, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a,
  538. 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x72, 0x65,
  539. 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  540. 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f,
  541. 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
  542. 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70,
  543. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
  544. 0x5f, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08,
  545. 0x6c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64,
  546. 0x22, 0x3e, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x0c,
  547. 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  548. 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x54,
  549. 0x79, 0x70, 0x65, 0x52, 0x0b, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
  550. 0x22, 0x96, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
  551. 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  552. 0x32, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63,
  553. 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45,
  554. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x4b, 0x0a, 0x0b,
  555. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
  556. 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a,
  557. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73,
  558. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05,
  559. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfa, 0x02, 0x0a, 0x05, 0x56, 0x61,
  560. 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  561. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56,
  562. 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61,
  563. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74,
  564. 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34,
  565. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a,
  566. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c,
  567. 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48,
  568. 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a,
  569. 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20,
  570. 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c,
  571. 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  572. 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73,
  573. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
  574. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73,
  575. 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x6c, 0x69,
  576. 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
  577. 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56,
  578. 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75,
  579. 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  580. 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
  581. 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48,
  582. 0x00, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06,
  583. 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x35, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61,
  584. 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20,
  585. 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e,
  586. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x5a, 0x0a,
  587. 0x0a, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x42,
  588. 0x4f, 0x4f, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x01,
  589. 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x46,
  590. 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45,
  591. 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x06, 0x12, 0x0a, 0x0a,
  592. 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74,
  593. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66,
  594. 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64,
  595. 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70,
  596. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  597. }
  598. var (
  599. file_schema_proto_rawDescOnce sync.Once
  600. file_schema_proto_rawDescData = file_schema_proto_rawDesc
  601. )
  602. func file_schema_proto_rawDescGZIP() []byte {
  603. file_schema_proto_rawDescOnce.Do(func() {
  604. file_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_schema_proto_rawDescData)
  605. })
  606. return file_schema_proto_rawDescData
  607. }
  608. var file_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  609. var file_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  610. var file_schema_proto_goTypes = []any{
  611. (ScalarType)(0), // 0: schema_pb.ScalarType
  612. (*RecordType)(nil), // 1: schema_pb.RecordType
  613. (*Field)(nil), // 2: schema_pb.Field
  614. (*Type)(nil), // 3: schema_pb.Type
  615. (*ListType)(nil), // 4: schema_pb.ListType
  616. (*RecordValue)(nil), // 5: schema_pb.RecordValue
  617. (*Value)(nil), // 6: schema_pb.Value
  618. (*ListValue)(nil), // 7: schema_pb.ListValue
  619. nil, // 8: schema_pb.RecordValue.FieldsEntry
  620. }
  621. var file_schema_proto_depIdxs = []int32{
  622. 2, // 0: schema_pb.RecordType.fields:type_name -> schema_pb.Field
  623. 3, // 1: schema_pb.Field.type:type_name -> schema_pb.Type
  624. 0, // 2: schema_pb.Type.scalar_type:type_name -> schema_pb.ScalarType
  625. 1, // 3: schema_pb.Type.record_type:type_name -> schema_pb.RecordType
  626. 4, // 4: schema_pb.Type.list_type:type_name -> schema_pb.ListType
  627. 3, // 5: schema_pb.ListType.element_type:type_name -> schema_pb.Type
  628. 8, // 6: schema_pb.RecordValue.fields:type_name -> schema_pb.RecordValue.FieldsEntry
  629. 7, // 7: schema_pb.Value.list_value:type_name -> schema_pb.ListValue
  630. 5, // 8: schema_pb.Value.record_value:type_name -> schema_pb.RecordValue
  631. 6, // 9: schema_pb.ListValue.values:type_name -> schema_pb.Value
  632. 6, // 10: schema_pb.RecordValue.FieldsEntry.value:type_name -> schema_pb.Value
  633. 11, // [11:11] is the sub-list for method output_type
  634. 11, // [11:11] is the sub-list for method input_type
  635. 11, // [11:11] is the sub-list for extension type_name
  636. 11, // [11:11] is the sub-list for extension extendee
  637. 0, // [0:11] is the sub-list for field type_name
  638. }
  639. func init() { file_schema_proto_init() }
  640. func file_schema_proto_init() {
  641. if File_schema_proto != nil {
  642. return
  643. }
  644. if !protoimpl.UnsafeEnabled {
  645. file_schema_proto_msgTypes[0].Exporter = func(v any, i int) any {
  646. switch v := v.(*RecordType); i {
  647. case 0:
  648. return &v.state
  649. case 1:
  650. return &v.sizeCache
  651. case 2:
  652. return &v.unknownFields
  653. default:
  654. return nil
  655. }
  656. }
  657. file_schema_proto_msgTypes[1].Exporter = func(v any, i int) any {
  658. switch v := v.(*Field); i {
  659. case 0:
  660. return &v.state
  661. case 1:
  662. return &v.sizeCache
  663. case 2:
  664. return &v.unknownFields
  665. default:
  666. return nil
  667. }
  668. }
  669. file_schema_proto_msgTypes[2].Exporter = func(v any, i int) any {
  670. switch v := v.(*Type); i {
  671. case 0:
  672. return &v.state
  673. case 1:
  674. return &v.sizeCache
  675. case 2:
  676. return &v.unknownFields
  677. default:
  678. return nil
  679. }
  680. }
  681. file_schema_proto_msgTypes[3].Exporter = func(v any, i int) any {
  682. switch v := v.(*ListType); i {
  683. case 0:
  684. return &v.state
  685. case 1:
  686. return &v.sizeCache
  687. case 2:
  688. return &v.unknownFields
  689. default:
  690. return nil
  691. }
  692. }
  693. file_schema_proto_msgTypes[4].Exporter = func(v any, i int) any {
  694. switch v := v.(*RecordValue); i {
  695. case 0:
  696. return &v.state
  697. case 1:
  698. return &v.sizeCache
  699. case 2:
  700. return &v.unknownFields
  701. default:
  702. return nil
  703. }
  704. }
  705. file_schema_proto_msgTypes[5].Exporter = func(v any, i int) any {
  706. switch v := v.(*Value); i {
  707. case 0:
  708. return &v.state
  709. case 1:
  710. return &v.sizeCache
  711. case 2:
  712. return &v.unknownFields
  713. default:
  714. return nil
  715. }
  716. }
  717. file_schema_proto_msgTypes[6].Exporter = func(v any, i int) any {
  718. switch v := v.(*ListValue); i {
  719. case 0:
  720. return &v.state
  721. case 1:
  722. return &v.sizeCache
  723. case 2:
  724. return &v.unknownFields
  725. default:
  726. return nil
  727. }
  728. }
  729. }
  730. file_schema_proto_msgTypes[2].OneofWrappers = []any{
  731. (*Type_ScalarType)(nil),
  732. (*Type_RecordType)(nil),
  733. (*Type_ListType)(nil),
  734. }
  735. file_schema_proto_msgTypes[5].OneofWrappers = []any{
  736. (*Value_BoolValue)(nil),
  737. (*Value_Int32Value)(nil),
  738. (*Value_Int64Value)(nil),
  739. (*Value_FloatValue)(nil),
  740. (*Value_DoubleValue)(nil),
  741. (*Value_BytesValue)(nil),
  742. (*Value_StringValue)(nil),
  743. (*Value_ListValue)(nil),
  744. (*Value_RecordValue)(nil),
  745. }
  746. type x struct{}
  747. out := protoimpl.TypeBuilder{
  748. File: protoimpl.DescBuilder{
  749. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  750. RawDescriptor: file_schema_proto_rawDesc,
  751. NumEnums: 1,
  752. NumMessages: 8,
  753. NumExtensions: 0,
  754. NumServices: 0,
  755. },
  756. GoTypes: file_schema_proto_goTypes,
  757. DependencyIndexes: file_schema_proto_depIdxs,
  758. EnumInfos: file_schema_proto_enumTypes,
  759. MessageInfos: file_schema_proto_msgTypes,
  760. }.Build()
  761. File_schema_proto = out.File
  762. file_schema_proto_rawDesc = nil
  763. file_schema_proto_goTypes = nil
  764. file_schema_proto_depIdxs = nil
  765. }