common.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/firestore/v1/common.proto
  3. package firestore // import "google.golang.org/genproto/googleapis/firestore/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // A set of field paths on a document.
  19. // Used to restrict a get or update operation on a document to a subset of its
  20. // fields.
  21. // This is different from standard field masks, as this is always scoped to a
  22. // [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value].
  23. type DocumentMask struct {
  24. // The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
  25. // path syntax reference.
  26. FieldPaths []string `protobuf:"bytes,1,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *DocumentMask) Reset() { *m = DocumentMask{} }
  32. func (m *DocumentMask) String() string { return proto.CompactTextString(m) }
  33. func (*DocumentMask) ProtoMessage() {}
  34. func (*DocumentMask) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_common_fa83f45090c97da5, []int{0}
  36. }
  37. func (m *DocumentMask) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_DocumentMask.Unmarshal(m, b)
  39. }
  40. func (m *DocumentMask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_DocumentMask.Marshal(b, m, deterministic)
  42. }
  43. func (dst *DocumentMask) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_DocumentMask.Merge(dst, src)
  45. }
  46. func (m *DocumentMask) XXX_Size() int {
  47. return xxx_messageInfo_DocumentMask.Size(m)
  48. }
  49. func (m *DocumentMask) XXX_DiscardUnknown() {
  50. xxx_messageInfo_DocumentMask.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_DocumentMask proto.InternalMessageInfo
  53. func (m *DocumentMask) GetFieldPaths() []string {
  54. if m != nil {
  55. return m.FieldPaths
  56. }
  57. return nil
  58. }
  59. // A precondition on a document, used for conditional operations.
  60. type Precondition struct {
  61. // The type of precondition.
  62. //
  63. // Types that are valid to be assigned to ConditionType:
  64. // *Precondition_Exists
  65. // *Precondition_UpdateTime
  66. ConditionType isPrecondition_ConditionType `protobuf_oneof:"condition_type"`
  67. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  68. XXX_unrecognized []byte `json:"-"`
  69. XXX_sizecache int32 `json:"-"`
  70. }
  71. func (m *Precondition) Reset() { *m = Precondition{} }
  72. func (m *Precondition) String() string { return proto.CompactTextString(m) }
  73. func (*Precondition) ProtoMessage() {}
  74. func (*Precondition) Descriptor() ([]byte, []int) {
  75. return fileDescriptor_common_fa83f45090c97da5, []int{1}
  76. }
  77. func (m *Precondition) XXX_Unmarshal(b []byte) error {
  78. return xxx_messageInfo_Precondition.Unmarshal(m, b)
  79. }
  80. func (m *Precondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  81. return xxx_messageInfo_Precondition.Marshal(b, m, deterministic)
  82. }
  83. func (dst *Precondition) XXX_Merge(src proto.Message) {
  84. xxx_messageInfo_Precondition.Merge(dst, src)
  85. }
  86. func (m *Precondition) XXX_Size() int {
  87. return xxx_messageInfo_Precondition.Size(m)
  88. }
  89. func (m *Precondition) XXX_DiscardUnknown() {
  90. xxx_messageInfo_Precondition.DiscardUnknown(m)
  91. }
  92. var xxx_messageInfo_Precondition proto.InternalMessageInfo
  93. type isPrecondition_ConditionType interface {
  94. isPrecondition_ConditionType()
  95. }
  96. type Precondition_Exists struct {
  97. Exists bool `protobuf:"varint,1,opt,name=exists,proto3,oneof"`
  98. }
  99. type Precondition_UpdateTime struct {
  100. UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,oneof"`
  101. }
  102. func (*Precondition_Exists) isPrecondition_ConditionType() {}
  103. func (*Precondition_UpdateTime) isPrecondition_ConditionType() {}
  104. func (m *Precondition) GetConditionType() isPrecondition_ConditionType {
  105. if m != nil {
  106. return m.ConditionType
  107. }
  108. return nil
  109. }
  110. func (m *Precondition) GetExists() bool {
  111. if x, ok := m.GetConditionType().(*Precondition_Exists); ok {
  112. return x.Exists
  113. }
  114. return false
  115. }
  116. func (m *Precondition) GetUpdateTime() *timestamp.Timestamp {
  117. if x, ok := m.GetConditionType().(*Precondition_UpdateTime); ok {
  118. return x.UpdateTime
  119. }
  120. return nil
  121. }
  122. // XXX_OneofFuncs is for the internal use of the proto package.
  123. func (*Precondition) 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{}) {
  124. return _Precondition_OneofMarshaler, _Precondition_OneofUnmarshaler, _Precondition_OneofSizer, []interface{}{
  125. (*Precondition_Exists)(nil),
  126. (*Precondition_UpdateTime)(nil),
  127. }
  128. }
  129. func _Precondition_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  130. m := msg.(*Precondition)
  131. // condition_type
  132. switch x := m.ConditionType.(type) {
  133. case *Precondition_Exists:
  134. t := uint64(0)
  135. if x.Exists {
  136. t = 1
  137. }
  138. b.EncodeVarint(1<<3 | proto.WireVarint)
  139. b.EncodeVarint(t)
  140. case *Precondition_UpdateTime:
  141. b.EncodeVarint(2<<3 | proto.WireBytes)
  142. if err := b.EncodeMessage(x.UpdateTime); err != nil {
  143. return err
  144. }
  145. case nil:
  146. default:
  147. return fmt.Errorf("Precondition.ConditionType has unexpected type %T", x)
  148. }
  149. return nil
  150. }
  151. func _Precondition_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  152. m := msg.(*Precondition)
  153. switch tag {
  154. case 1: // condition_type.exists
  155. if wire != proto.WireVarint {
  156. return true, proto.ErrInternalBadWireType
  157. }
  158. x, err := b.DecodeVarint()
  159. m.ConditionType = &Precondition_Exists{x != 0}
  160. return true, err
  161. case 2: // condition_type.update_time
  162. if wire != proto.WireBytes {
  163. return true, proto.ErrInternalBadWireType
  164. }
  165. msg := new(timestamp.Timestamp)
  166. err := b.DecodeMessage(msg)
  167. m.ConditionType = &Precondition_UpdateTime{msg}
  168. return true, err
  169. default:
  170. return false, nil
  171. }
  172. }
  173. func _Precondition_OneofSizer(msg proto.Message) (n int) {
  174. m := msg.(*Precondition)
  175. // condition_type
  176. switch x := m.ConditionType.(type) {
  177. case *Precondition_Exists:
  178. n += 1 // tag and wire
  179. n += 1
  180. case *Precondition_UpdateTime:
  181. s := proto.Size(x.UpdateTime)
  182. n += 1 // tag and wire
  183. n += proto.SizeVarint(uint64(s))
  184. n += s
  185. case nil:
  186. default:
  187. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  188. }
  189. return n
  190. }
  191. // Options for creating a new transaction.
  192. type TransactionOptions struct {
  193. // The mode of the transaction.
  194. //
  195. // Types that are valid to be assigned to Mode:
  196. // *TransactionOptions_ReadOnly_
  197. // *TransactionOptions_ReadWrite_
  198. Mode isTransactionOptions_Mode `protobuf_oneof:"mode"`
  199. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  200. XXX_unrecognized []byte `json:"-"`
  201. XXX_sizecache int32 `json:"-"`
  202. }
  203. func (m *TransactionOptions) Reset() { *m = TransactionOptions{} }
  204. func (m *TransactionOptions) String() string { return proto.CompactTextString(m) }
  205. func (*TransactionOptions) ProtoMessage() {}
  206. func (*TransactionOptions) Descriptor() ([]byte, []int) {
  207. return fileDescriptor_common_fa83f45090c97da5, []int{2}
  208. }
  209. func (m *TransactionOptions) XXX_Unmarshal(b []byte) error {
  210. return xxx_messageInfo_TransactionOptions.Unmarshal(m, b)
  211. }
  212. func (m *TransactionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  213. return xxx_messageInfo_TransactionOptions.Marshal(b, m, deterministic)
  214. }
  215. func (dst *TransactionOptions) XXX_Merge(src proto.Message) {
  216. xxx_messageInfo_TransactionOptions.Merge(dst, src)
  217. }
  218. func (m *TransactionOptions) XXX_Size() int {
  219. return xxx_messageInfo_TransactionOptions.Size(m)
  220. }
  221. func (m *TransactionOptions) XXX_DiscardUnknown() {
  222. xxx_messageInfo_TransactionOptions.DiscardUnknown(m)
  223. }
  224. var xxx_messageInfo_TransactionOptions proto.InternalMessageInfo
  225. type isTransactionOptions_Mode interface {
  226. isTransactionOptions_Mode()
  227. }
  228. type TransactionOptions_ReadOnly_ struct {
  229. ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
  230. }
  231. type TransactionOptions_ReadWrite_ struct {
  232. ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,3,opt,name=read_write,json=readWrite,proto3,oneof"`
  233. }
  234. func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
  235. func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {}
  236. func (m *TransactionOptions) GetMode() isTransactionOptions_Mode {
  237. if m != nil {
  238. return m.Mode
  239. }
  240. return nil
  241. }
  242. func (m *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly {
  243. if x, ok := m.GetMode().(*TransactionOptions_ReadOnly_); ok {
  244. return x.ReadOnly
  245. }
  246. return nil
  247. }
  248. func (m *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite {
  249. if x, ok := m.GetMode().(*TransactionOptions_ReadWrite_); ok {
  250. return x.ReadWrite
  251. }
  252. return nil
  253. }
  254. // XXX_OneofFuncs is for the internal use of the proto package.
  255. func (*TransactionOptions) 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{}) {
  256. return _TransactionOptions_OneofMarshaler, _TransactionOptions_OneofUnmarshaler, _TransactionOptions_OneofSizer, []interface{}{
  257. (*TransactionOptions_ReadOnly_)(nil),
  258. (*TransactionOptions_ReadWrite_)(nil),
  259. }
  260. }
  261. func _TransactionOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  262. m := msg.(*TransactionOptions)
  263. // mode
  264. switch x := m.Mode.(type) {
  265. case *TransactionOptions_ReadOnly_:
  266. b.EncodeVarint(2<<3 | proto.WireBytes)
  267. if err := b.EncodeMessage(x.ReadOnly); err != nil {
  268. return err
  269. }
  270. case *TransactionOptions_ReadWrite_:
  271. b.EncodeVarint(3<<3 | proto.WireBytes)
  272. if err := b.EncodeMessage(x.ReadWrite); err != nil {
  273. return err
  274. }
  275. case nil:
  276. default:
  277. return fmt.Errorf("TransactionOptions.Mode has unexpected type %T", x)
  278. }
  279. return nil
  280. }
  281. func _TransactionOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  282. m := msg.(*TransactionOptions)
  283. switch tag {
  284. case 2: // mode.read_only
  285. if wire != proto.WireBytes {
  286. return true, proto.ErrInternalBadWireType
  287. }
  288. msg := new(TransactionOptions_ReadOnly)
  289. err := b.DecodeMessage(msg)
  290. m.Mode = &TransactionOptions_ReadOnly_{msg}
  291. return true, err
  292. case 3: // mode.read_write
  293. if wire != proto.WireBytes {
  294. return true, proto.ErrInternalBadWireType
  295. }
  296. msg := new(TransactionOptions_ReadWrite)
  297. err := b.DecodeMessage(msg)
  298. m.Mode = &TransactionOptions_ReadWrite_{msg}
  299. return true, err
  300. default:
  301. return false, nil
  302. }
  303. }
  304. func _TransactionOptions_OneofSizer(msg proto.Message) (n int) {
  305. m := msg.(*TransactionOptions)
  306. // mode
  307. switch x := m.Mode.(type) {
  308. case *TransactionOptions_ReadOnly_:
  309. s := proto.Size(x.ReadOnly)
  310. n += 1 // tag and wire
  311. n += proto.SizeVarint(uint64(s))
  312. n += s
  313. case *TransactionOptions_ReadWrite_:
  314. s := proto.Size(x.ReadWrite)
  315. n += 1 // tag and wire
  316. n += proto.SizeVarint(uint64(s))
  317. n += s
  318. case nil:
  319. default:
  320. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  321. }
  322. return n
  323. }
  324. // Options for a transaction that can be used to read and write documents.
  325. type TransactionOptions_ReadWrite struct {
  326. // An optional transaction to retry.
  327. RetryTransaction []byte `protobuf:"bytes,1,opt,name=retry_transaction,json=retryTransaction,proto3" json:"retry_transaction,omitempty"`
  328. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  329. XXX_unrecognized []byte `json:"-"`
  330. XXX_sizecache int32 `json:"-"`
  331. }
  332. func (m *TransactionOptions_ReadWrite) Reset() { *m = TransactionOptions_ReadWrite{} }
  333. func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) }
  334. func (*TransactionOptions_ReadWrite) ProtoMessage() {}
  335. func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) {
  336. return fileDescriptor_common_fa83f45090c97da5, []int{2, 0}
  337. }
  338. func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error {
  339. return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b)
  340. }
  341. func (m *TransactionOptions_ReadWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  342. return xxx_messageInfo_TransactionOptions_ReadWrite.Marshal(b, m, deterministic)
  343. }
  344. func (dst *TransactionOptions_ReadWrite) XXX_Merge(src proto.Message) {
  345. xxx_messageInfo_TransactionOptions_ReadWrite.Merge(dst, src)
  346. }
  347. func (m *TransactionOptions_ReadWrite) XXX_Size() int {
  348. return xxx_messageInfo_TransactionOptions_ReadWrite.Size(m)
  349. }
  350. func (m *TransactionOptions_ReadWrite) XXX_DiscardUnknown() {
  351. xxx_messageInfo_TransactionOptions_ReadWrite.DiscardUnknown(m)
  352. }
  353. var xxx_messageInfo_TransactionOptions_ReadWrite proto.InternalMessageInfo
  354. func (m *TransactionOptions_ReadWrite) GetRetryTransaction() []byte {
  355. if m != nil {
  356. return m.RetryTransaction
  357. }
  358. return nil
  359. }
  360. // Options for a transaction that can only be used to read documents.
  361. type TransactionOptions_ReadOnly struct {
  362. // The consistency mode for this transaction. If not set, defaults to strong
  363. // consistency.
  364. //
  365. // Types that are valid to be assigned to ConsistencySelector:
  366. // *TransactionOptions_ReadOnly_ReadTime
  367. ConsistencySelector isTransactionOptions_ReadOnly_ConsistencySelector `protobuf_oneof:"consistency_selector"`
  368. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  369. XXX_unrecognized []byte `json:"-"`
  370. XXX_sizecache int32 `json:"-"`
  371. }
  372. func (m *TransactionOptions_ReadOnly) Reset() { *m = TransactionOptions_ReadOnly{} }
  373. func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) }
  374. func (*TransactionOptions_ReadOnly) ProtoMessage() {}
  375. func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) {
  376. return fileDescriptor_common_fa83f45090c97da5, []int{2, 1}
  377. }
  378. func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error {
  379. return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b)
  380. }
  381. func (m *TransactionOptions_ReadOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  382. return xxx_messageInfo_TransactionOptions_ReadOnly.Marshal(b, m, deterministic)
  383. }
  384. func (dst *TransactionOptions_ReadOnly) XXX_Merge(src proto.Message) {
  385. xxx_messageInfo_TransactionOptions_ReadOnly.Merge(dst, src)
  386. }
  387. func (m *TransactionOptions_ReadOnly) XXX_Size() int {
  388. return xxx_messageInfo_TransactionOptions_ReadOnly.Size(m)
  389. }
  390. func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() {
  391. xxx_messageInfo_TransactionOptions_ReadOnly.DiscardUnknown(m)
  392. }
  393. var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo
  394. type isTransactionOptions_ReadOnly_ConsistencySelector interface {
  395. isTransactionOptions_ReadOnly_ConsistencySelector()
  396. }
  397. type TransactionOptions_ReadOnly_ReadTime struct {
  398. ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3,oneof"`
  399. }
  400. func (*TransactionOptions_ReadOnly_ReadTime) isTransactionOptions_ReadOnly_ConsistencySelector() {}
  401. func (m *TransactionOptions_ReadOnly) GetConsistencySelector() isTransactionOptions_ReadOnly_ConsistencySelector {
  402. if m != nil {
  403. return m.ConsistencySelector
  404. }
  405. return nil
  406. }
  407. func (m *TransactionOptions_ReadOnly) GetReadTime() *timestamp.Timestamp {
  408. if x, ok := m.GetConsistencySelector().(*TransactionOptions_ReadOnly_ReadTime); ok {
  409. return x.ReadTime
  410. }
  411. return nil
  412. }
  413. // XXX_OneofFuncs is for the internal use of the proto package.
  414. func (*TransactionOptions_ReadOnly) 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{}) {
  415. return _TransactionOptions_ReadOnly_OneofMarshaler, _TransactionOptions_ReadOnly_OneofUnmarshaler, _TransactionOptions_ReadOnly_OneofSizer, []interface{}{
  416. (*TransactionOptions_ReadOnly_ReadTime)(nil),
  417. }
  418. }
  419. func _TransactionOptions_ReadOnly_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  420. m := msg.(*TransactionOptions_ReadOnly)
  421. // consistency_selector
  422. switch x := m.ConsistencySelector.(type) {
  423. case *TransactionOptions_ReadOnly_ReadTime:
  424. b.EncodeVarint(2<<3 | proto.WireBytes)
  425. if err := b.EncodeMessage(x.ReadTime); err != nil {
  426. return err
  427. }
  428. case nil:
  429. default:
  430. return fmt.Errorf("TransactionOptions_ReadOnly.ConsistencySelector has unexpected type %T", x)
  431. }
  432. return nil
  433. }
  434. func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  435. m := msg.(*TransactionOptions_ReadOnly)
  436. switch tag {
  437. case 2: // consistency_selector.read_time
  438. if wire != proto.WireBytes {
  439. return true, proto.ErrInternalBadWireType
  440. }
  441. msg := new(timestamp.Timestamp)
  442. err := b.DecodeMessage(msg)
  443. m.ConsistencySelector = &TransactionOptions_ReadOnly_ReadTime{msg}
  444. return true, err
  445. default:
  446. return false, nil
  447. }
  448. }
  449. func _TransactionOptions_ReadOnly_OneofSizer(msg proto.Message) (n int) {
  450. m := msg.(*TransactionOptions_ReadOnly)
  451. // consistency_selector
  452. switch x := m.ConsistencySelector.(type) {
  453. case *TransactionOptions_ReadOnly_ReadTime:
  454. s := proto.Size(x.ReadTime)
  455. n += 1 // tag and wire
  456. n += proto.SizeVarint(uint64(s))
  457. n += s
  458. case nil:
  459. default:
  460. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  461. }
  462. return n
  463. }
  464. func init() {
  465. proto.RegisterType((*DocumentMask)(nil), "google.firestore.v1.DocumentMask")
  466. proto.RegisterType((*Precondition)(nil), "google.firestore.v1.Precondition")
  467. proto.RegisterType((*TransactionOptions)(nil), "google.firestore.v1.TransactionOptions")
  468. proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.firestore.v1.TransactionOptions.ReadWrite")
  469. proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.firestore.v1.TransactionOptions.ReadOnly")
  470. }
  471. func init() {
  472. proto.RegisterFile("google/firestore/v1/common.proto", fileDescriptor_common_fa83f45090c97da5)
  473. }
  474. var fileDescriptor_common_fa83f45090c97da5 = []byte{
  475. // 458 bytes of a gzipped FileDescriptorProto
  476. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x5f, 0x8b, 0xd3, 0x40,
  477. 0x10, 0x6f, 0x7a, 0x47, 0x69, 0xa7, 0x45, 0xce, 0x28, 0x5a, 0x83, 0x70, 0xa5, 0x4f, 0x05, 0x61,
  478. 0x63, 0xf4, 0x45, 0x51, 0x5f, 0x5a, 0xb9, 0xeb, 0x8b, 0xb4, 0xc4, 0xe3, 0x04, 0xa9, 0x84, 0xbd,
  479. 0x64, 0x1a, 0x17, 0x93, 0x9d, 0xb0, 0xbb, 0x3d, 0xcd, 0xd7, 0x11, 0x7c, 0xf1, 0xa3, 0xf8, 0x11,
  480. 0xfc, 0x34, 0x92, 0x4d, 0x1a, 0x15, 0xfb, 0xe0, 0xbd, 0xed, 0xcc, 0xef, 0xdf, 0xcc, 0xb0, 0x30,
  481. 0x49, 0x89, 0xd2, 0x0c, 0xfd, 0xad, 0x50, 0xa8, 0x0d, 0x29, 0xf4, 0xaf, 0x03, 0x3f, 0xa6, 0x3c,
  482. 0x27, 0xc9, 0x0a, 0x45, 0x86, 0xdc, 0x3b, 0x35, 0x83, 0xb5, 0x0c, 0x76, 0x1d, 0x78, 0xa7, 0x8d,
  483. 0xcc, 0x52, 0xae, 0x76, 0x5b, 0xdf, 0x88, 0x1c, 0xb5, 0xe1, 0x79, 0x51, 0xab, 0xbc, 0x87, 0x0d,
  484. 0x81, 0x17, 0xc2, 0xe7, 0x52, 0x92, 0xe1, 0x46, 0x90, 0xd4, 0x35, 0x3a, 0xf5, 0x61, 0xf4, 0x9a,
  485. 0xe2, 0x5d, 0x8e, 0xd2, 0xbc, 0xe1, 0xfa, 0x93, 0x7b, 0x0a, 0xc3, 0xad, 0xc0, 0x2c, 0x89, 0x0a,
  486. 0x6e, 0x3e, 0xea, 0xb1, 0x33, 0x39, 0x9a, 0x0d, 0x42, 0xb0, 0xad, 0x75, 0xd5, 0x99, 0x96, 0x30,
  487. 0x5a, 0x2b, 0x8c, 0x49, 0x26, 0xa2, 0xf2, 0x71, 0xc7, 0xd0, 0xc3, 0x2f, 0x42, 0x9b, 0x8a, 0xeb,
  488. 0xcc, 0xfa, 0xcb, 0x4e, 0xd8, 0xd4, 0xee, 0x2b, 0x18, 0xee, 0x8a, 0x84, 0x1b, 0x8c, 0xaa, 0x91,
  489. 0xc6, 0xdd, 0x89, 0x33, 0x1b, 0x3e, 0xf1, 0x58, 0xb3, 0xc4, 0x7e, 0x5e, 0x76, 0xb1, 0x9f, 0x77,
  490. 0xd9, 0x09, 0xa1, 0x16, 0x54, 0xad, 0xf9, 0x09, 0xdc, 0x6a, 0x53, 0x22, 0x53, 0x16, 0x38, 0xfd,
  491. 0xd9, 0x05, 0xf7, 0x42, 0x71, 0xa9, 0x79, 0x5c, 0x35, 0x57, 0x85, 0x5d, 0xc4, 0x5d, 0xc1, 0x40,
  492. 0x21, 0x4f, 0x22, 0x92, 0x59, 0xd9, 0xa4, 0x3c, 0x66, 0x07, 0x4e, 0xc5, 0xfe, 0xd5, 0xb2, 0x10,
  493. 0x79, 0xb2, 0x92, 0x59, 0xb9, 0xec, 0x84, 0x7d, 0xd5, 0xbc, 0xdd, 0x10, 0xc0, 0x1a, 0x7e, 0x56,
  494. 0xc2, 0xe0, 0xf8, 0xc8, 0x3a, 0x06, 0x37, 0x71, 0x7c, 0x57, 0x09, 0x97, 0x9d, 0xd0, 0xce, 0x65,
  495. 0x0b, 0xef, 0x19, 0x0c, 0x5a, 0xc4, 0x7d, 0x04, 0xb7, 0x15, 0x1a, 0x55, 0x46, 0xe6, 0xb7, 0xde,
  496. 0x9e, 0x6f, 0x14, 0x9e, 0x58, 0xe0, 0x0f, 0x5f, 0xef, 0x03, 0xf4, 0xf7, 0x53, 0xba, 0xcf, 0x9b,
  497. 0x55, 0xff, 0xfb, 0xa0, 0x76, 0x29, 0x7b, 0xce, 0x7b, 0x70, 0x37, 0x26, 0xa9, 0x85, 0x36, 0x28,
  498. 0xe3, 0x32, 0xd2, 0x98, 0x61, 0x6c, 0x48, 0xcd, 0x7b, 0x70, 0x9c, 0x53, 0x82, 0xf3, 0x6f, 0x0e,
  499. 0xdc, 0x8f, 0x29, 0x3f, 0xb4, 0xe6, 0x7c, 0xb8, 0xb0, 0xdf, 0x70, 0x5d, 0x25, 0xac, 0x9d, 0xf7,
  500. 0x2f, 0x1b, 0x4e, 0x4a, 0x19, 0x97, 0x29, 0x23, 0x95, 0xfa, 0x29, 0x4a, 0x9b, 0xef, 0xd7, 0x10,
  501. 0x2f, 0x84, 0xfe, 0xeb, 0x23, 0xbf, 0x68, 0x8b, 0xaf, 0xdd, 0xe3, 0xf3, 0xc5, 0xd9, 0xdb, 0xef,
  502. 0xdd, 0x07, 0xe7, 0xb5, 0xcb, 0x22, 0xa3, 0x5d, 0xc2, 0xce, 0xda, 0xbc, 0xcb, 0xe0, 0xc7, 0x1e,
  503. 0xdb, 0x58, 0x6c, 0xd3, 0x62, 0x9b, 0xcb, 0xe0, 0xaa, 0x67, 0x73, 0x9e, 0xfe, 0x0a, 0x00, 0x00,
  504. 0xff, 0xff, 0x26, 0x0b, 0x81, 0xaa, 0x2f, 0x03, 0x00, 0x00,
  505. }