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.
 
 
 

685 lines
23 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/firestore/v1beta1/document.proto
  3. package firestore // import "google.golang.org/genproto/googleapis/firestore/v1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import latlng "google.golang.org/genproto/googleapis/type/latlng"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. // A Firestore document.
  21. //
  22. // Must not exceed 1 MiB - 4 bytes.
  23. type Document struct {
  24. // The resource name of the document, for example
  25. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  26. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  27. // The document's fields.
  28. //
  29. // The map keys represent field names.
  30. //
  31. // A simple field name contains only characters `a` to `z`, `A` to `Z`,
  32. // `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
  33. // `foo_bar_17`.
  34. //
  35. // Field names matching the regular expression `__.*__` are reserved. Reserved
  36. // field names are forbidden except in certain documented contexts. The map
  37. // keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
  38. // empty.
  39. //
  40. // Field paths may be used in other contexts to refer to structured fields
  41. // defined here. For `map_value`, the field path is represented by the simple
  42. // or quoted field names of the containing fields, delimited by `.`. For
  43. // example, the structured field
  44. // `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
  45. // represented by the field path `foo.x&y`.
  46. //
  47. // Within a field path, a quoted field name starts and ends with `` ` `` and
  48. // may contain any character. Some characters, including `` ` ``, must be
  49. // escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
  50. // `` `bak\`tik` `` represents `` bak`tik ``.
  51. Fields map[string]*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  52. // Output only. The time at which the document was created.
  53. //
  54. // This value increases monotonically when a document is deleted then
  55. // recreated. It can also be compared to values from other documents and
  56. // the `read_time` of a query.
  57. CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  58. // Output only. The time at which the document was last changed.
  59. //
  60. // This value is initially set to the `create_time` then increases
  61. // monotonically with each change to the document. It can also be
  62. // compared to values from other documents and the `read_time` of a query.
  63. UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
  64. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  65. XXX_unrecognized []byte `json:"-"`
  66. XXX_sizecache int32 `json:"-"`
  67. }
  68. func (m *Document) Reset() { *m = Document{} }
  69. func (m *Document) String() string { return proto.CompactTextString(m) }
  70. func (*Document) ProtoMessage() {}
  71. func (*Document) Descriptor() ([]byte, []int) {
  72. return fileDescriptor_document_924a689bad264358, []int{0}
  73. }
  74. func (m *Document) XXX_Unmarshal(b []byte) error {
  75. return xxx_messageInfo_Document.Unmarshal(m, b)
  76. }
  77. func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  78. return xxx_messageInfo_Document.Marshal(b, m, deterministic)
  79. }
  80. func (dst *Document) XXX_Merge(src proto.Message) {
  81. xxx_messageInfo_Document.Merge(dst, src)
  82. }
  83. func (m *Document) XXX_Size() int {
  84. return xxx_messageInfo_Document.Size(m)
  85. }
  86. func (m *Document) XXX_DiscardUnknown() {
  87. xxx_messageInfo_Document.DiscardUnknown(m)
  88. }
  89. var xxx_messageInfo_Document proto.InternalMessageInfo
  90. func (m *Document) GetName() string {
  91. if m != nil {
  92. return m.Name
  93. }
  94. return ""
  95. }
  96. func (m *Document) GetFields() map[string]*Value {
  97. if m != nil {
  98. return m.Fields
  99. }
  100. return nil
  101. }
  102. func (m *Document) GetCreateTime() *timestamp.Timestamp {
  103. if m != nil {
  104. return m.CreateTime
  105. }
  106. return nil
  107. }
  108. func (m *Document) GetUpdateTime() *timestamp.Timestamp {
  109. if m != nil {
  110. return m.UpdateTime
  111. }
  112. return nil
  113. }
  114. // A message that can hold any of the supported value types.
  115. type Value struct {
  116. // Must have a value set.
  117. //
  118. // Types that are valid to be assigned to ValueType:
  119. // *Value_NullValue
  120. // *Value_BooleanValue
  121. // *Value_IntegerValue
  122. // *Value_DoubleValue
  123. // *Value_TimestampValue
  124. // *Value_StringValue
  125. // *Value_BytesValue
  126. // *Value_ReferenceValue
  127. // *Value_GeoPointValue
  128. // *Value_ArrayValue
  129. // *Value_MapValue
  130. ValueType isValue_ValueType `protobuf_oneof:"value_type"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. func (m *Value) Reset() { *m = Value{} }
  136. func (m *Value) String() string { return proto.CompactTextString(m) }
  137. func (*Value) ProtoMessage() {}
  138. func (*Value) Descriptor() ([]byte, []int) {
  139. return fileDescriptor_document_924a689bad264358, []int{1}
  140. }
  141. func (m *Value) XXX_Unmarshal(b []byte) error {
  142. return xxx_messageInfo_Value.Unmarshal(m, b)
  143. }
  144. func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  145. return xxx_messageInfo_Value.Marshal(b, m, deterministic)
  146. }
  147. func (dst *Value) XXX_Merge(src proto.Message) {
  148. xxx_messageInfo_Value.Merge(dst, src)
  149. }
  150. func (m *Value) XXX_Size() int {
  151. return xxx_messageInfo_Value.Size(m)
  152. }
  153. func (m *Value) XXX_DiscardUnknown() {
  154. xxx_messageInfo_Value.DiscardUnknown(m)
  155. }
  156. var xxx_messageInfo_Value proto.InternalMessageInfo
  157. type isValue_ValueType interface {
  158. isValue_ValueType()
  159. }
  160. type Value_NullValue struct {
  161. NullValue _struct.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
  162. }
  163. type Value_BooleanValue struct {
  164. BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
  165. }
  166. type Value_IntegerValue struct {
  167. IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
  168. }
  169. type Value_DoubleValue struct {
  170. DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
  171. }
  172. type Value_TimestampValue struct {
  173. TimestampValue *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
  174. }
  175. type Value_StringValue struct {
  176. StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"`
  177. }
  178. type Value_BytesValue struct {
  179. BytesValue []byte `protobuf:"bytes,18,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
  180. }
  181. type Value_ReferenceValue struct {
  182. ReferenceValue string `protobuf:"bytes,5,opt,name=reference_value,json=referenceValue,proto3,oneof"`
  183. }
  184. type Value_GeoPointValue struct {
  185. GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
  186. }
  187. type Value_ArrayValue struct {
  188. ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"`
  189. }
  190. type Value_MapValue struct {
  191. MapValue *MapValue `protobuf:"bytes,6,opt,name=map_value,json=mapValue,proto3,oneof"`
  192. }
  193. func (*Value_NullValue) isValue_ValueType() {}
  194. func (*Value_BooleanValue) isValue_ValueType() {}
  195. func (*Value_IntegerValue) isValue_ValueType() {}
  196. func (*Value_DoubleValue) isValue_ValueType() {}
  197. func (*Value_TimestampValue) isValue_ValueType() {}
  198. func (*Value_StringValue) isValue_ValueType() {}
  199. func (*Value_BytesValue) isValue_ValueType() {}
  200. func (*Value_ReferenceValue) isValue_ValueType() {}
  201. func (*Value_GeoPointValue) isValue_ValueType() {}
  202. func (*Value_ArrayValue) isValue_ValueType() {}
  203. func (*Value_MapValue) isValue_ValueType() {}
  204. func (m *Value) GetValueType() isValue_ValueType {
  205. if m != nil {
  206. return m.ValueType
  207. }
  208. return nil
  209. }
  210. func (m *Value) GetNullValue() _struct.NullValue {
  211. if x, ok := m.GetValueType().(*Value_NullValue); ok {
  212. return x.NullValue
  213. }
  214. return _struct.NullValue_NULL_VALUE
  215. }
  216. func (m *Value) GetBooleanValue() bool {
  217. if x, ok := m.GetValueType().(*Value_BooleanValue); ok {
  218. return x.BooleanValue
  219. }
  220. return false
  221. }
  222. func (m *Value) GetIntegerValue() int64 {
  223. if x, ok := m.GetValueType().(*Value_IntegerValue); ok {
  224. return x.IntegerValue
  225. }
  226. return 0
  227. }
  228. func (m *Value) GetDoubleValue() float64 {
  229. if x, ok := m.GetValueType().(*Value_DoubleValue); ok {
  230. return x.DoubleValue
  231. }
  232. return 0
  233. }
  234. func (m *Value) GetTimestampValue() *timestamp.Timestamp {
  235. if x, ok := m.GetValueType().(*Value_TimestampValue); ok {
  236. return x.TimestampValue
  237. }
  238. return nil
  239. }
  240. func (m *Value) GetStringValue() string {
  241. if x, ok := m.GetValueType().(*Value_StringValue); ok {
  242. return x.StringValue
  243. }
  244. return ""
  245. }
  246. func (m *Value) GetBytesValue() []byte {
  247. if x, ok := m.GetValueType().(*Value_BytesValue); ok {
  248. return x.BytesValue
  249. }
  250. return nil
  251. }
  252. func (m *Value) GetReferenceValue() string {
  253. if x, ok := m.GetValueType().(*Value_ReferenceValue); ok {
  254. return x.ReferenceValue
  255. }
  256. return ""
  257. }
  258. func (m *Value) GetGeoPointValue() *latlng.LatLng {
  259. if x, ok := m.GetValueType().(*Value_GeoPointValue); ok {
  260. return x.GeoPointValue
  261. }
  262. return nil
  263. }
  264. func (m *Value) GetArrayValue() *ArrayValue {
  265. if x, ok := m.GetValueType().(*Value_ArrayValue); ok {
  266. return x.ArrayValue
  267. }
  268. return nil
  269. }
  270. func (m *Value) GetMapValue() *MapValue {
  271. if x, ok := m.GetValueType().(*Value_MapValue); ok {
  272. return x.MapValue
  273. }
  274. return nil
  275. }
  276. // XXX_OneofFuncs is for the internal use of the proto package.
  277. func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  278. return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{
  279. (*Value_NullValue)(nil),
  280. (*Value_BooleanValue)(nil),
  281. (*Value_IntegerValue)(nil),
  282. (*Value_DoubleValue)(nil),
  283. (*Value_TimestampValue)(nil),
  284. (*Value_StringValue)(nil),
  285. (*Value_BytesValue)(nil),
  286. (*Value_ReferenceValue)(nil),
  287. (*Value_GeoPointValue)(nil),
  288. (*Value_ArrayValue)(nil),
  289. (*Value_MapValue)(nil),
  290. }
  291. }
  292. func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  293. m := msg.(*Value)
  294. // value_type
  295. switch x := m.ValueType.(type) {
  296. case *Value_NullValue:
  297. b.EncodeVarint(11<<3 | proto.WireVarint)
  298. b.EncodeVarint(uint64(x.NullValue))
  299. case *Value_BooleanValue:
  300. t := uint64(0)
  301. if x.BooleanValue {
  302. t = 1
  303. }
  304. b.EncodeVarint(1<<3 | proto.WireVarint)
  305. b.EncodeVarint(t)
  306. case *Value_IntegerValue:
  307. b.EncodeVarint(2<<3 | proto.WireVarint)
  308. b.EncodeVarint(uint64(x.IntegerValue))
  309. case *Value_DoubleValue:
  310. b.EncodeVarint(3<<3 | proto.WireFixed64)
  311. b.EncodeFixed64(math.Float64bits(x.DoubleValue))
  312. case *Value_TimestampValue:
  313. b.EncodeVarint(10<<3 | proto.WireBytes)
  314. if err := b.EncodeMessage(x.TimestampValue); err != nil {
  315. return err
  316. }
  317. case *Value_StringValue:
  318. b.EncodeVarint(17<<3 | proto.WireBytes)
  319. b.EncodeStringBytes(x.StringValue)
  320. case *Value_BytesValue:
  321. b.EncodeVarint(18<<3 | proto.WireBytes)
  322. b.EncodeRawBytes(x.BytesValue)
  323. case *Value_ReferenceValue:
  324. b.EncodeVarint(5<<3 | proto.WireBytes)
  325. b.EncodeStringBytes(x.ReferenceValue)
  326. case *Value_GeoPointValue:
  327. b.EncodeVarint(8<<3 | proto.WireBytes)
  328. if err := b.EncodeMessage(x.GeoPointValue); err != nil {
  329. return err
  330. }
  331. case *Value_ArrayValue:
  332. b.EncodeVarint(9<<3 | proto.WireBytes)
  333. if err := b.EncodeMessage(x.ArrayValue); err != nil {
  334. return err
  335. }
  336. case *Value_MapValue:
  337. b.EncodeVarint(6<<3 | proto.WireBytes)
  338. if err := b.EncodeMessage(x.MapValue); err != nil {
  339. return err
  340. }
  341. case nil:
  342. default:
  343. return fmt.Errorf("Value.ValueType has unexpected type %T", x)
  344. }
  345. return nil
  346. }
  347. func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  348. m := msg.(*Value)
  349. switch tag {
  350. case 11: // value_type.null_value
  351. if wire != proto.WireVarint {
  352. return true, proto.ErrInternalBadWireType
  353. }
  354. x, err := b.DecodeVarint()
  355. m.ValueType = &Value_NullValue{_struct.NullValue(x)}
  356. return true, err
  357. case 1: // value_type.boolean_value
  358. if wire != proto.WireVarint {
  359. return true, proto.ErrInternalBadWireType
  360. }
  361. x, err := b.DecodeVarint()
  362. m.ValueType = &Value_BooleanValue{x != 0}
  363. return true, err
  364. case 2: // value_type.integer_value
  365. if wire != proto.WireVarint {
  366. return true, proto.ErrInternalBadWireType
  367. }
  368. x, err := b.DecodeVarint()
  369. m.ValueType = &Value_IntegerValue{int64(x)}
  370. return true, err
  371. case 3: // value_type.double_value
  372. if wire != proto.WireFixed64 {
  373. return true, proto.ErrInternalBadWireType
  374. }
  375. x, err := b.DecodeFixed64()
  376. m.ValueType = &Value_DoubleValue{math.Float64frombits(x)}
  377. return true, err
  378. case 10: // value_type.timestamp_value
  379. if wire != proto.WireBytes {
  380. return true, proto.ErrInternalBadWireType
  381. }
  382. msg := new(timestamp.Timestamp)
  383. err := b.DecodeMessage(msg)
  384. m.ValueType = &Value_TimestampValue{msg}
  385. return true, err
  386. case 17: // value_type.string_value
  387. if wire != proto.WireBytes {
  388. return true, proto.ErrInternalBadWireType
  389. }
  390. x, err := b.DecodeStringBytes()
  391. m.ValueType = &Value_StringValue{x}
  392. return true, err
  393. case 18: // value_type.bytes_value
  394. if wire != proto.WireBytes {
  395. return true, proto.ErrInternalBadWireType
  396. }
  397. x, err := b.DecodeRawBytes(true)
  398. m.ValueType = &Value_BytesValue{x}
  399. return true, err
  400. case 5: // value_type.reference_value
  401. if wire != proto.WireBytes {
  402. return true, proto.ErrInternalBadWireType
  403. }
  404. x, err := b.DecodeStringBytes()
  405. m.ValueType = &Value_ReferenceValue{x}
  406. return true, err
  407. case 8: // value_type.geo_point_value
  408. if wire != proto.WireBytes {
  409. return true, proto.ErrInternalBadWireType
  410. }
  411. msg := new(latlng.LatLng)
  412. err := b.DecodeMessage(msg)
  413. m.ValueType = &Value_GeoPointValue{msg}
  414. return true, err
  415. case 9: // value_type.array_value
  416. if wire != proto.WireBytes {
  417. return true, proto.ErrInternalBadWireType
  418. }
  419. msg := new(ArrayValue)
  420. err := b.DecodeMessage(msg)
  421. m.ValueType = &Value_ArrayValue{msg}
  422. return true, err
  423. case 6: // value_type.map_value
  424. if wire != proto.WireBytes {
  425. return true, proto.ErrInternalBadWireType
  426. }
  427. msg := new(MapValue)
  428. err := b.DecodeMessage(msg)
  429. m.ValueType = &Value_MapValue{msg}
  430. return true, err
  431. default:
  432. return false, nil
  433. }
  434. }
  435. func _Value_OneofSizer(msg proto.Message) (n int) {
  436. m := msg.(*Value)
  437. // value_type
  438. switch x := m.ValueType.(type) {
  439. case *Value_NullValue:
  440. n += 1 // tag and wire
  441. n += proto.SizeVarint(uint64(x.NullValue))
  442. case *Value_BooleanValue:
  443. n += 1 // tag and wire
  444. n += 1
  445. case *Value_IntegerValue:
  446. n += 1 // tag and wire
  447. n += proto.SizeVarint(uint64(x.IntegerValue))
  448. case *Value_DoubleValue:
  449. n += 1 // tag and wire
  450. n += 8
  451. case *Value_TimestampValue:
  452. s := proto.Size(x.TimestampValue)
  453. n += 1 // tag and wire
  454. n += proto.SizeVarint(uint64(s))
  455. n += s
  456. case *Value_StringValue:
  457. n += 2 // tag and wire
  458. n += proto.SizeVarint(uint64(len(x.StringValue)))
  459. n += len(x.StringValue)
  460. case *Value_BytesValue:
  461. n += 2 // tag and wire
  462. n += proto.SizeVarint(uint64(len(x.BytesValue)))
  463. n += len(x.BytesValue)
  464. case *Value_ReferenceValue:
  465. n += 1 // tag and wire
  466. n += proto.SizeVarint(uint64(len(x.ReferenceValue)))
  467. n += len(x.ReferenceValue)
  468. case *Value_GeoPointValue:
  469. s := proto.Size(x.GeoPointValue)
  470. n += 1 // tag and wire
  471. n += proto.SizeVarint(uint64(s))
  472. n += s
  473. case *Value_ArrayValue:
  474. s := proto.Size(x.ArrayValue)
  475. n += 1 // tag and wire
  476. n += proto.SizeVarint(uint64(s))
  477. n += s
  478. case *Value_MapValue:
  479. s := proto.Size(x.MapValue)
  480. n += 1 // tag and wire
  481. n += proto.SizeVarint(uint64(s))
  482. n += s
  483. case nil:
  484. default:
  485. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  486. }
  487. return n
  488. }
  489. // An array value.
  490. type ArrayValue struct {
  491. // Values in the array.
  492. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  493. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  494. XXX_unrecognized []byte `json:"-"`
  495. XXX_sizecache int32 `json:"-"`
  496. }
  497. func (m *ArrayValue) Reset() { *m = ArrayValue{} }
  498. func (m *ArrayValue) String() string { return proto.CompactTextString(m) }
  499. func (*ArrayValue) ProtoMessage() {}
  500. func (*ArrayValue) Descriptor() ([]byte, []int) {
  501. return fileDescriptor_document_924a689bad264358, []int{2}
  502. }
  503. func (m *ArrayValue) XXX_Unmarshal(b []byte) error {
  504. return xxx_messageInfo_ArrayValue.Unmarshal(m, b)
  505. }
  506. func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  507. return xxx_messageInfo_ArrayValue.Marshal(b, m, deterministic)
  508. }
  509. func (dst *ArrayValue) XXX_Merge(src proto.Message) {
  510. xxx_messageInfo_ArrayValue.Merge(dst, src)
  511. }
  512. func (m *ArrayValue) XXX_Size() int {
  513. return xxx_messageInfo_ArrayValue.Size(m)
  514. }
  515. func (m *ArrayValue) XXX_DiscardUnknown() {
  516. xxx_messageInfo_ArrayValue.DiscardUnknown(m)
  517. }
  518. var xxx_messageInfo_ArrayValue proto.InternalMessageInfo
  519. func (m *ArrayValue) GetValues() []*Value {
  520. if m != nil {
  521. return m.Values
  522. }
  523. return nil
  524. }
  525. // A map value.
  526. type MapValue struct {
  527. // The map's fields.
  528. //
  529. // The map keys represent field names. Field names matching the regular
  530. // expression `__.*__` are reserved. Reserved field names are forbidden except
  531. // in certain documented contexts. The map keys, represented as UTF-8, must
  532. // not exceed 1,500 bytes and cannot be empty.
  533. 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"`
  534. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  535. XXX_unrecognized []byte `json:"-"`
  536. XXX_sizecache int32 `json:"-"`
  537. }
  538. func (m *MapValue) Reset() { *m = MapValue{} }
  539. func (m *MapValue) String() string { return proto.CompactTextString(m) }
  540. func (*MapValue) ProtoMessage() {}
  541. func (*MapValue) Descriptor() ([]byte, []int) {
  542. return fileDescriptor_document_924a689bad264358, []int{3}
  543. }
  544. func (m *MapValue) XXX_Unmarshal(b []byte) error {
  545. return xxx_messageInfo_MapValue.Unmarshal(m, b)
  546. }
  547. func (m *MapValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  548. return xxx_messageInfo_MapValue.Marshal(b, m, deterministic)
  549. }
  550. func (dst *MapValue) XXX_Merge(src proto.Message) {
  551. xxx_messageInfo_MapValue.Merge(dst, src)
  552. }
  553. func (m *MapValue) XXX_Size() int {
  554. return xxx_messageInfo_MapValue.Size(m)
  555. }
  556. func (m *MapValue) XXX_DiscardUnknown() {
  557. xxx_messageInfo_MapValue.DiscardUnknown(m)
  558. }
  559. var xxx_messageInfo_MapValue proto.InternalMessageInfo
  560. func (m *MapValue) GetFields() map[string]*Value {
  561. if m != nil {
  562. return m.Fields
  563. }
  564. return nil
  565. }
  566. func init() {
  567. proto.RegisterType((*Document)(nil), "google.firestore.v1beta1.Document")
  568. proto.RegisterMapType((map[string]*Value)(nil), "google.firestore.v1beta1.Document.FieldsEntry")
  569. proto.RegisterType((*Value)(nil), "google.firestore.v1beta1.Value")
  570. proto.RegisterType((*ArrayValue)(nil), "google.firestore.v1beta1.ArrayValue")
  571. proto.RegisterType((*MapValue)(nil), "google.firestore.v1beta1.MapValue")
  572. proto.RegisterMapType((map[string]*Value)(nil), "google.firestore.v1beta1.MapValue.FieldsEntry")
  573. }
  574. func init() {
  575. proto.RegisterFile("google/firestore/v1beta1/document.proto", fileDescriptor_document_924a689bad264358)
  576. }
  577. var fileDescriptor_document_924a689bad264358 = []byte{
  578. // 655 bytes of a gzipped FileDescriptorProto
  579. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6e, 0xd3, 0x4c,
  580. 0x14, 0xc5, 0xe3, 0x24, 0x8d, 0x92, 0xeb, 0xb4, 0xfd, 0x3e, 0xb3, 0x89, 0xa2, 0x8a, 0x86, 0x00,
  581. 0x22, 0x6c, 0x6c, 0xb5, 0x08, 0x81, 0xa8, 0x58, 0x34, 0xa5, 0x69, 0x16, 0x05, 0x55, 0x06, 0x75,
  582. 0x51, 0x55, 0x8a, 0xc6, 0xc9, 0xc4, 0xb2, 0x18, 0xcf, 0x58, 0xe3, 0x71, 0xa5, 0xbc, 0x0e, 0x4b,
  583. 0x16, 0xbc, 0x00, 0x3c, 0x41, 0x9f, 0x0a, 0xcd, 0xdf, 0x56, 0xd0, 0x28, 0x2b, 0x76, 0xf6, 0xbd,
  584. 0xbf, 0x73, 0xee, 0x99, 0xf1, 0x8c, 0xe1, 0x45, 0xca, 0x58, 0x4a, 0x70, 0xb4, 0xcc, 0x38, 0x2e,
  585. 0x05, 0xe3, 0x38, 0xba, 0x39, 0x48, 0xb0, 0x40, 0x07, 0xd1, 0x82, 0xcd, 0xab, 0x1c, 0x53, 0x11,
  586. 0x16, 0x9c, 0x09, 0x16, 0xf4, 0x34, 0x18, 0x3a, 0x30, 0x34, 0x60, 0x7f, 0xcf, 0x58, 0xa0, 0x22,
  587. 0x8b, 0x10, 0xa5, 0x4c, 0x20, 0x91, 0x31, 0x5a, 0x6a, 0x9d, 0xeb, 0xaa, 0xb7, 0xa4, 0x5a, 0x46,
  588. 0xa5, 0xe0, 0xd5, 0xdc, 0xb8, 0xf6, 0xf7, 0xff, 0xec, 0x8a, 0x2c, 0xc7, 0xa5, 0x40, 0x79, 0x61,
  589. 0x00, 0x33, 0x36, 0x12, 0xab, 0x02, 0x47, 0x04, 0x09, 0x42, 0x53, 0xdd, 0x19, 0xfe, 0xaa, 0x43,
  590. 0xfb, 0x83, 0xc9, 0x18, 0x04, 0xd0, 0xa4, 0x28, 0xc7, 0x3d, 0x6f, 0xe0, 0x8d, 0x3a, 0xb1, 0x7a,
  591. 0x0e, 0x26, 0xd0, 0x5a, 0x66, 0x98, 0x2c, 0xca, 0x5e, 0x7d, 0xd0, 0x18, 0xf9, 0x87, 0x61, 0xb8,
  592. 0x6e, 0x09, 0xa1, 0xf5, 0x09, 0x27, 0x4a, 0x70, 0x4a, 0x05, 0x5f, 0xc5, 0x46, 0x1d, 0x1c, 0x81,
  593. 0x3f, 0xe7, 0x18, 0x09, 0x3c, 0x93, 0xe1, 0x7a, 0x8d, 0x81, 0x37, 0xf2, 0x0f, 0xfb, 0xd6, 0xcc,
  594. 0x26, 0x0f, 0xbf, 0xd8, 0xe4, 0x31, 0x68, 0x5c, 0x16, 0xa4, 0xb8, 0x2a, 0x16, 0x4e, 0xdc, 0xdc,
  595. 0x2c, 0xd6, 0xb8, 0x2c, 0xf4, 0xaf, 0xc0, 0xbf, 0x17, 0x28, 0xf8, 0x0f, 0x1a, 0x5f, 0xf1, 0xca,
  596. 0xac, 0x51, 0x3e, 0x06, 0xaf, 0x61, 0xeb, 0x06, 0x91, 0x0a, 0xf7, 0xea, 0xca, 0x77, 0x7f, 0xfd,
  597. 0x0a, 0x2f, 0x25, 0x16, 0x6b, 0xfa, 0x5d, 0xfd, 0xad, 0x37, 0xbc, 0x6d, 0xc2, 0x96, 0x2a, 0x06,
  598. 0x47, 0x00, 0xb4, 0x22, 0x64, 0xa6, 0x9d, 0xfc, 0x81, 0x37, 0xda, 0x79, 0x20, 0xe1, 0xa7, 0x8a,
  599. 0x10, 0xc5, 0x4f, 0x6b, 0x71, 0x87, 0xda, 0x97, 0xe0, 0x39, 0x6c, 0x27, 0x8c, 0x11, 0x8c, 0xa8,
  600. 0xd1, 0xcb, 0x74, 0xed, 0x69, 0x2d, 0xee, 0x9a, 0xb2, 0xc3, 0x32, 0x2a, 0x70, 0x8a, 0xf9, 0xec,
  601. 0x2e, 0x70, 0x43, 0x62, 0xa6, 0xac, 0xb1, 0xa7, 0xd0, 0x5d, 0xb0, 0x2a, 0x21, 0xd8, 0x50, 0x72,
  602. 0xaf, 0xbd, 0x69, 0x2d, 0xf6, 0x75, 0x55, 0x43, 0xa7, 0xb0, 0xeb, 0x4e, 0x89, 0xe1, 0x60, 0xd3,
  603. 0xb6, 0x4e, 0x6b, 0xf1, 0x8e, 0x13, 0xb9, 0x59, 0xa5, 0xe0, 0x19, 0x4d, 0x8d, 0xc7, 0xff, 0x72,
  604. 0x5b, 0xe5, 0x2c, 0x5d, 0xd5, 0xd0, 0x13, 0xf0, 0x93, 0x95, 0xc0, 0xa5, 0x61, 0x82, 0x81, 0x37,
  605. 0xea, 0x4e, 0x6b, 0x31, 0xa8, 0xa2, 0x46, 0x5e, 0xc2, 0x2e, 0xc7, 0x4b, 0xcc, 0x31, 0x9d, 0xdb,
  606. 0xd8, 0x5b, 0xc6, 0x6a, 0xc7, 0x35, 0x34, 0xfa, 0x1e, 0x76, 0x53, 0xcc, 0x66, 0x05, 0xcb, 0xa8,
  607. 0x30, 0x68, 0x5b, 0x25, 0x7f, 0x64, 0x93, 0xcb, 0x63, 0x1e, 0x9e, 0x23, 0x71, 0x4e, 0xd3, 0x69,
  608. 0x2d, 0xde, 0x4e, 0x31, 0xbb, 0x90, 0xb0, 0x96, 0x9f, 0x81, 0x8f, 0x38, 0x47, 0x2b, 0x23, 0xed,
  609. 0x28, 0xe9, 0xb3, 0xf5, 0xdf, 0xfc, 0x58, 0xc2, 0xf6, 0x9b, 0x01, 0x72, 0x6f, 0xc1, 0x31, 0x74,
  610. 0x72, 0x64, 0xf7, 0xae, 0xa5, 0x6c, 0x86, 0xeb, 0x6d, 0x3e, 0xa2, 0xc2, 0x9a, 0xb4, 0x73, 0xf3,
  611. 0x3c, 0xee, 0x02, 0x28, 0xf9, 0x4c, 0x26, 0x1e, 0x9e, 0x02, 0xdc, 0x0d, 0x0b, 0xde, 0x40, 0x4b,
  612. 0xf5, 0xca, 0x9e, 0xa7, 0x2e, 0xde, 0xc6, 0x63, 0x69, 0xf0, 0xe1, 0x0f, 0x0f, 0xda, 0x76, 0xda,
  613. 0xbd, 0xeb, 0xeb, 0x6d, 0xba, 0xbe, 0x56, 0xf3, 0xd0, 0xf5, 0xfd, 0x97, 0x97, 0x68, 0xfc, 0xd3,
  614. 0x83, 0xbd, 0x39, 0xcb, 0xd7, 0x2a, 0xc6, 0xdb, 0xf6, 0xcf, 0x72, 0x21, 0x8f, 0xe4, 0x85, 0x77,
  615. 0x75, 0x6c, 0xd0, 0x94, 0x11, 0x44, 0xd3, 0x90, 0xf1, 0x34, 0x4a, 0x31, 0x55, 0x07, 0x36, 0xd2,
  616. 0x2d, 0x54, 0x64, 0xe5, 0xdf, 0xbf, 0xe3, 0x23, 0x57, 0xf9, 0x56, 0x6f, 0x9e, 0x9d, 0x4c, 0x3e,
  617. 0x7f, 0xaf, 0x3f, 0x3e, 0xd3, 0x56, 0x27, 0x84, 0x55, 0x8b, 0x70, 0xe2, 0x66, 0x5f, 0x1e, 0x8c,
  618. 0xa5, 0xe2, 0xd6, 0x02, 0xd7, 0x0a, 0xb8, 0x76, 0xc0, 0xf5, 0xa5, 0xb6, 0x4c, 0x5a, 0x6a, 0xec,
  619. 0xab, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x27, 0x82, 0xde, 0x04, 0x06, 0x00, 0x00,
  620. }