struct.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/protobuf/struct.proto
  3. package structpb
  4. import (
  5. proto "github.com/golang/protobuf/proto"
  6. protoapi "github.com/golang/protobuf/protoapi"
  7. )
  8. // This is a compile-time assertion to ensure that this generated file
  9. // is compatible with the proto package it is being compiled against.
  10. // A compilation error at this line likely means your copy of the
  11. // proto package needs to be updated.
  12. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  13. // `NullValue` is a singleton enumeration to represent the null value for the
  14. // `Value` type union.
  15. //
  16. // The JSON representation for `NullValue` is JSON `null`.
  17. type NullValue int32
  18. const (
  19. // Null value.
  20. NullValue_NULL_VALUE NullValue = 0
  21. )
  22. var NullValue_name = map[int32]string{
  23. 0: "NULL_VALUE",
  24. }
  25. var NullValue_value = map[string]int32{
  26. "NULL_VALUE": 0,
  27. }
  28. func (x NullValue) String() string {
  29. return proto.EnumName(NullValue_name, int32(x))
  30. }
  31. func (NullValue) EnumDescriptor() ([]byte, []int) {
  32. return xxx_File_google_protobuf_struct_proto_rawdesc_gzipped, []int{0}
  33. }
  34. func (NullValue) XXX_WellKnownType() string { return "NullValue" }
  35. // `Struct` represents a structured data value, consisting of fields
  36. // which map to dynamically typed values. In some languages, `Struct`
  37. // might be supported by a native representation. For example, in
  38. // scripting languages like JS a struct is represented as an
  39. // object. The details of that representation are described together
  40. // with the proto support for the language.
  41. //
  42. // The JSON representation for `Struct` is JSON object.
  43. type Struct struct {
  44. // Unordered map of dynamically typed values.
  45. 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"`
  46. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  47. XXX_unrecognized []byte `json:"-"`
  48. XXX_sizecache int32 `json:"-"`
  49. }
  50. func (m *Struct) Reset() { *m = Struct{} }
  51. func (m *Struct) String() string { return proto.CompactTextString(m) }
  52. func (*Struct) ProtoMessage() {}
  53. func (*Struct) Descriptor() ([]byte, []int) {
  54. return xxx_File_google_protobuf_struct_proto_rawdesc_gzipped, []int{0}
  55. }
  56. func (*Struct) XXX_WellKnownType() string { return "Struct" }
  57. func (m *Struct) XXX_Unmarshal(b []byte) error {
  58. return xxx_messageInfo_Struct.Unmarshal(m, b)
  59. }
  60. func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  61. return xxx_messageInfo_Struct.Marshal(b, m, deterministic)
  62. }
  63. func (m *Struct) XXX_Merge(src proto.Message) {
  64. xxx_messageInfo_Struct.Merge(m, src)
  65. }
  66. func (m *Struct) XXX_Size() int {
  67. return xxx_messageInfo_Struct.Size(m)
  68. }
  69. func (m *Struct) XXX_DiscardUnknown() {
  70. xxx_messageInfo_Struct.DiscardUnknown(m)
  71. }
  72. var xxx_messageInfo_Struct proto.InternalMessageInfo
  73. func (m *Struct) GetFields() map[string]*Value {
  74. if m != nil {
  75. return m.Fields
  76. }
  77. return nil
  78. }
  79. // `Value` represents a dynamically typed value which can be either
  80. // null, a number, a string, a boolean, a recursive struct value, or a
  81. // list of values. A producer of value is expected to set one of that
  82. // variants, absence of any variant indicates an error.
  83. //
  84. // The JSON representation for `Value` is JSON value.
  85. type Value struct {
  86. // The kind of value.
  87. //
  88. // Types that are valid to be assigned to Kind:
  89. // Represents a null value.
  90. // *Value_NullValue
  91. // Represents a double value.
  92. // *Value_NumberValue
  93. // Represents a string value.
  94. // *Value_StringValue
  95. // Represents a boolean value.
  96. // *Value_BoolValue
  97. // Represents a structured value.
  98. // *Value_StructValue
  99. // Represents a repeated `Value`.
  100. // *Value_ListValue
  101. Kind isValue_Kind `protobuf_oneof:"kind"`
  102. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  103. XXX_unrecognized []byte `json:"-"`
  104. XXX_sizecache int32 `json:"-"`
  105. }
  106. func (m *Value) Reset() { *m = Value{} }
  107. func (m *Value) String() string { return proto.CompactTextString(m) }
  108. func (*Value) ProtoMessage() {}
  109. func (*Value) Descriptor() ([]byte, []int) {
  110. return xxx_File_google_protobuf_struct_proto_rawdesc_gzipped, []int{1}
  111. }
  112. func (*Value) XXX_WellKnownType() string { return "Value" }
  113. func (m *Value) XXX_Unmarshal(b []byte) error {
  114. return xxx_messageInfo_Value.Unmarshal(m, b)
  115. }
  116. func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  117. return xxx_messageInfo_Value.Marshal(b, m, deterministic)
  118. }
  119. func (m *Value) XXX_Merge(src proto.Message) {
  120. xxx_messageInfo_Value.Merge(m, src)
  121. }
  122. func (m *Value) XXX_Size() int {
  123. return xxx_messageInfo_Value.Size(m)
  124. }
  125. func (m *Value) XXX_DiscardUnknown() {
  126. xxx_messageInfo_Value.DiscardUnknown(m)
  127. }
  128. var xxx_messageInfo_Value proto.InternalMessageInfo
  129. type isValue_Kind interface {
  130. isValue_Kind()
  131. }
  132. type Value_NullValue struct {
  133. NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
  134. }
  135. type Value_NumberValue struct {
  136. NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"`
  137. }
  138. type Value_StringValue struct {
  139. StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"`
  140. }
  141. type Value_BoolValue struct {
  142. BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
  143. }
  144. type Value_StructValue struct {
  145. StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"`
  146. }
  147. type Value_ListValue struct {
  148. ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"`
  149. }
  150. func (*Value_NullValue) isValue_Kind() {}
  151. func (*Value_NumberValue) isValue_Kind() {}
  152. func (*Value_StringValue) isValue_Kind() {}
  153. func (*Value_BoolValue) isValue_Kind() {}
  154. func (*Value_StructValue) isValue_Kind() {}
  155. func (*Value_ListValue) isValue_Kind() {}
  156. func (m *Value) GetKind() isValue_Kind {
  157. if m != nil {
  158. return m.Kind
  159. }
  160. return nil
  161. }
  162. func (m *Value) GetNullValue() NullValue {
  163. if x, ok := m.GetKind().(*Value_NullValue); ok {
  164. return x.NullValue
  165. }
  166. return NullValue_NULL_VALUE
  167. }
  168. func (m *Value) GetNumberValue() float64 {
  169. if x, ok := m.GetKind().(*Value_NumberValue); ok {
  170. return x.NumberValue
  171. }
  172. return 0
  173. }
  174. func (m *Value) GetStringValue() string {
  175. if x, ok := m.GetKind().(*Value_StringValue); ok {
  176. return x.StringValue
  177. }
  178. return ""
  179. }
  180. func (m *Value) GetBoolValue() bool {
  181. if x, ok := m.GetKind().(*Value_BoolValue); ok {
  182. return x.BoolValue
  183. }
  184. return false
  185. }
  186. func (m *Value) GetStructValue() *Struct {
  187. if x, ok := m.GetKind().(*Value_StructValue); ok {
  188. return x.StructValue
  189. }
  190. return nil
  191. }
  192. func (m *Value) GetListValue() *ListValue {
  193. if x, ok := m.GetKind().(*Value_ListValue); ok {
  194. return x.ListValue
  195. }
  196. return nil
  197. }
  198. // XXX_OneofWrappers is for the internal use of the proto package.
  199. func (*Value) XXX_OneofWrappers() []interface{} {
  200. return []interface{}{
  201. (*Value_NullValue)(nil),
  202. (*Value_NumberValue)(nil),
  203. (*Value_StringValue)(nil),
  204. (*Value_BoolValue)(nil),
  205. (*Value_StructValue)(nil),
  206. (*Value_ListValue)(nil),
  207. }
  208. }
  209. // `ListValue` is a wrapper around a repeated field of values.
  210. //
  211. // The JSON representation for `ListValue` is JSON array.
  212. type ListValue struct {
  213. // Repeated field of dynamically typed values.
  214. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  215. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  216. XXX_unrecognized []byte `json:"-"`
  217. XXX_sizecache int32 `json:"-"`
  218. }
  219. func (m *ListValue) Reset() { *m = ListValue{} }
  220. func (m *ListValue) String() string { return proto.CompactTextString(m) }
  221. func (*ListValue) ProtoMessage() {}
  222. func (*ListValue) Descriptor() ([]byte, []int) {
  223. return xxx_File_google_protobuf_struct_proto_rawdesc_gzipped, []int{2}
  224. }
  225. func (*ListValue) XXX_WellKnownType() string { return "ListValue" }
  226. func (m *ListValue) XXX_Unmarshal(b []byte) error {
  227. return xxx_messageInfo_ListValue.Unmarshal(m, b)
  228. }
  229. func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. return xxx_messageInfo_ListValue.Marshal(b, m, deterministic)
  231. }
  232. func (m *ListValue) XXX_Merge(src proto.Message) {
  233. xxx_messageInfo_ListValue.Merge(m, src)
  234. }
  235. func (m *ListValue) XXX_Size() int {
  236. return xxx_messageInfo_ListValue.Size(m)
  237. }
  238. func (m *ListValue) XXX_DiscardUnknown() {
  239. xxx_messageInfo_ListValue.DiscardUnknown(m)
  240. }
  241. var xxx_messageInfo_ListValue proto.InternalMessageInfo
  242. func (m *ListValue) GetValues() []*Value {
  243. if m != nil {
  244. return m.Values
  245. }
  246. return nil
  247. }
  248. func init() {
  249. proto.RegisterFile("google/protobuf/struct.proto", xxx_File_google_protobuf_struct_proto_rawdesc_gzipped)
  250. proto.RegisterEnum("google.protobuf.NullValue", NullValue_name, NullValue_value)
  251. proto.RegisterType((*Struct)(nil), "google.protobuf.Struct")
  252. proto.RegisterMapType((map[string]*Value)(nil), "google.protobuf.Struct.FieldsEntry")
  253. proto.RegisterType((*Value)(nil), "google.protobuf.Value")
  254. proto.RegisterType((*ListValue)(nil), "google.protobuf.ListValue")
  255. }
  256. var xxx_File_google_protobuf_struct_proto_rawdesc = []byte{
  257. // 741 bytes of the wire-encoded FileDescriptorProto
  258. 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  259. 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f,
  260. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22,
  261. 0x98, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x69,
  262. 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
  263. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
  264. 0x75, 0x63, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  265. 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64,
  266. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  267. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  268. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  269. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
  270. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb2, 0x02, 0x0a, 0x05, 0x56,
  271. 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c,
  272. 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  273. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56,
  274. 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75,
  275. 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  276. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  277. 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
  278. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  279. 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62,
  280. 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48,
  281. 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x0c,
  282. 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01,
  283. 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  284. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73,
  285. 0x74, 0x72, 0x75, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6c, 0x69,
  286. 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
  287. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  288. 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69,
  289. 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22,
  290. 0x3b, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x06,
  291. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
  292. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56,
  293. 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x1b, 0x0a, 0x09,
  294. 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x55, 0x4c,
  295. 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x42, 0x81, 0x01, 0x0a, 0x13, 0x63, 0x6f,
  296. 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  297. 0x66, 0x42, 0x0b, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
  298. 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c,
  299. 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79,
  300. 0x70, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x3b, 0x73, 0x74, 0x72, 0x75, 0x63,
  301. 0x74, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47,
  302. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57,
  303. 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70,
  304. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  305. }
  306. var xxx_File_google_protobuf_struct_proto_rawdesc_gzipped = protoapi.CompressGZIP(xxx_File_google_protobuf_struct_proto_rawdesc)