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.
 
 
 

3745 lines
134 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/firestore/v1beta1/firestore.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 empty "github.com/golang/protobuf/ptypes/empty"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import status "google.golang.org/genproto/googleapis/rpc/status"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // The type of change.
  25. type TargetChange_TargetChangeType int32
  26. const (
  27. // No change has occurred. Used only to send an updated `resume_token`.
  28. TargetChange_NO_CHANGE TargetChange_TargetChangeType = 0
  29. // The targets have been added.
  30. TargetChange_ADD TargetChange_TargetChangeType = 1
  31. // The targets have been removed.
  32. TargetChange_REMOVE TargetChange_TargetChangeType = 2
  33. // The targets reflect all changes committed before the targets were added
  34. // to the stream.
  35. //
  36. // This will be sent after or with a `read_time` that is greater than or
  37. // equal to the time at which the targets were added.
  38. //
  39. // Listeners can wait for this change if read-after-write semantics
  40. // are desired.
  41. TargetChange_CURRENT TargetChange_TargetChangeType = 3
  42. // The targets have been reset, and a new initial state for the targets
  43. // will be returned in subsequent changes.
  44. //
  45. // After the initial state is complete, `CURRENT` will be returned even
  46. // if the target was previously indicated to be `CURRENT`.
  47. TargetChange_RESET TargetChange_TargetChangeType = 4
  48. )
  49. var TargetChange_TargetChangeType_name = map[int32]string{
  50. 0: "NO_CHANGE",
  51. 1: "ADD",
  52. 2: "REMOVE",
  53. 3: "CURRENT",
  54. 4: "RESET",
  55. }
  56. var TargetChange_TargetChangeType_value = map[string]int32{
  57. "NO_CHANGE": 0,
  58. "ADD": 1,
  59. "REMOVE": 2,
  60. "CURRENT": 3,
  61. "RESET": 4,
  62. }
  63. func (x TargetChange_TargetChangeType) String() string {
  64. return proto.EnumName(TargetChange_TargetChangeType_name, int32(x))
  65. }
  66. func (TargetChange_TargetChangeType) EnumDescriptor() ([]byte, []int) {
  67. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{20, 0}
  68. }
  69. // The request for
  70. // [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
  71. type GetDocumentRequest struct {
  72. // The resource name of the Document to get. In the format:
  73. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  74. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  75. // The fields to return. If not set, returns all fields.
  76. //
  77. // If the document has a field that is not present in this mask, that field
  78. // will not be returned in the response.
  79. Mask *DocumentMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"`
  80. // The consistency mode for this transaction.
  81. // If not set, defaults to strong consistency.
  82. //
  83. // Types that are valid to be assigned to ConsistencySelector:
  84. // *GetDocumentRequest_Transaction
  85. // *GetDocumentRequest_ReadTime
  86. ConsistencySelector isGetDocumentRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
  87. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  88. XXX_unrecognized []byte `json:"-"`
  89. XXX_sizecache int32 `json:"-"`
  90. }
  91. func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} }
  92. func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) }
  93. func (*GetDocumentRequest) ProtoMessage() {}
  94. func (*GetDocumentRequest) Descriptor() ([]byte, []int) {
  95. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{0}
  96. }
  97. func (m *GetDocumentRequest) XXX_Unmarshal(b []byte) error {
  98. return xxx_messageInfo_GetDocumentRequest.Unmarshal(m, b)
  99. }
  100. func (m *GetDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  101. return xxx_messageInfo_GetDocumentRequest.Marshal(b, m, deterministic)
  102. }
  103. func (dst *GetDocumentRequest) XXX_Merge(src proto.Message) {
  104. xxx_messageInfo_GetDocumentRequest.Merge(dst, src)
  105. }
  106. func (m *GetDocumentRequest) XXX_Size() int {
  107. return xxx_messageInfo_GetDocumentRequest.Size(m)
  108. }
  109. func (m *GetDocumentRequest) XXX_DiscardUnknown() {
  110. xxx_messageInfo_GetDocumentRequest.DiscardUnknown(m)
  111. }
  112. var xxx_messageInfo_GetDocumentRequest proto.InternalMessageInfo
  113. func (m *GetDocumentRequest) GetName() string {
  114. if m != nil {
  115. return m.Name
  116. }
  117. return ""
  118. }
  119. func (m *GetDocumentRequest) GetMask() *DocumentMask {
  120. if m != nil {
  121. return m.Mask
  122. }
  123. return nil
  124. }
  125. type isGetDocumentRequest_ConsistencySelector interface {
  126. isGetDocumentRequest_ConsistencySelector()
  127. }
  128. type GetDocumentRequest_Transaction struct {
  129. Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3,oneof"`
  130. }
  131. type GetDocumentRequest_ReadTime struct {
  132. ReadTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,proto3,oneof"`
  133. }
  134. func (*GetDocumentRequest_Transaction) isGetDocumentRequest_ConsistencySelector() {}
  135. func (*GetDocumentRequest_ReadTime) isGetDocumentRequest_ConsistencySelector() {}
  136. func (m *GetDocumentRequest) GetConsistencySelector() isGetDocumentRequest_ConsistencySelector {
  137. if m != nil {
  138. return m.ConsistencySelector
  139. }
  140. return nil
  141. }
  142. func (m *GetDocumentRequest) GetTransaction() []byte {
  143. if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_Transaction); ok {
  144. return x.Transaction
  145. }
  146. return nil
  147. }
  148. func (m *GetDocumentRequest) GetReadTime() *timestamp.Timestamp {
  149. if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_ReadTime); ok {
  150. return x.ReadTime
  151. }
  152. return nil
  153. }
  154. // XXX_OneofFuncs is for the internal use of the proto package.
  155. func (*GetDocumentRequest) 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{}) {
  156. return _GetDocumentRequest_OneofMarshaler, _GetDocumentRequest_OneofUnmarshaler, _GetDocumentRequest_OneofSizer, []interface{}{
  157. (*GetDocumentRequest_Transaction)(nil),
  158. (*GetDocumentRequest_ReadTime)(nil),
  159. }
  160. }
  161. func _GetDocumentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  162. m := msg.(*GetDocumentRequest)
  163. // consistency_selector
  164. switch x := m.ConsistencySelector.(type) {
  165. case *GetDocumentRequest_Transaction:
  166. b.EncodeVarint(3<<3 | proto.WireBytes)
  167. b.EncodeRawBytes(x.Transaction)
  168. case *GetDocumentRequest_ReadTime:
  169. b.EncodeVarint(5<<3 | proto.WireBytes)
  170. if err := b.EncodeMessage(x.ReadTime); err != nil {
  171. return err
  172. }
  173. case nil:
  174. default:
  175. return fmt.Errorf("GetDocumentRequest.ConsistencySelector has unexpected type %T", x)
  176. }
  177. return nil
  178. }
  179. func _GetDocumentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  180. m := msg.(*GetDocumentRequest)
  181. switch tag {
  182. case 3: // consistency_selector.transaction
  183. if wire != proto.WireBytes {
  184. return true, proto.ErrInternalBadWireType
  185. }
  186. x, err := b.DecodeRawBytes(true)
  187. m.ConsistencySelector = &GetDocumentRequest_Transaction{x}
  188. return true, err
  189. case 5: // consistency_selector.read_time
  190. if wire != proto.WireBytes {
  191. return true, proto.ErrInternalBadWireType
  192. }
  193. msg := new(timestamp.Timestamp)
  194. err := b.DecodeMessage(msg)
  195. m.ConsistencySelector = &GetDocumentRequest_ReadTime{msg}
  196. return true, err
  197. default:
  198. return false, nil
  199. }
  200. }
  201. func _GetDocumentRequest_OneofSizer(msg proto.Message) (n int) {
  202. m := msg.(*GetDocumentRequest)
  203. // consistency_selector
  204. switch x := m.ConsistencySelector.(type) {
  205. case *GetDocumentRequest_Transaction:
  206. n += 1 // tag and wire
  207. n += proto.SizeVarint(uint64(len(x.Transaction)))
  208. n += len(x.Transaction)
  209. case *GetDocumentRequest_ReadTime:
  210. s := proto.Size(x.ReadTime)
  211. n += 1 // tag and wire
  212. n += proto.SizeVarint(uint64(s))
  213. n += s
  214. case nil:
  215. default:
  216. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  217. }
  218. return n
  219. }
  220. // The request for
  221. // [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
  222. type ListDocumentsRequest struct {
  223. // The parent resource name. In the format:
  224. // `projects/{project_id}/databases/{database_id}/documents` or
  225. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  226. // For example:
  227. // `projects/my-project/databases/my-database/documents` or
  228. // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
  229. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  230. // The collection ID, relative to `parent`, to list. For example: `chatrooms`
  231. // or `messages`.
  232. CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
  233. // The maximum number of documents to return.
  234. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  235. // The `next_page_token` value returned from a previous List request, if any.
  236. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  237. // The order to sort results by. For example: `priority desc, name`.
  238. OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
  239. // The fields to return. If not set, returns all fields.
  240. //
  241. // If a document has a field that is not present in this mask, that field
  242. // will not be returned in the response.
  243. Mask *DocumentMask `protobuf:"bytes,7,opt,name=mask,proto3" json:"mask,omitempty"`
  244. // The consistency mode for this transaction.
  245. // If not set, defaults to strong consistency.
  246. //
  247. // Types that are valid to be assigned to ConsistencySelector:
  248. // *ListDocumentsRequest_Transaction
  249. // *ListDocumentsRequest_ReadTime
  250. ConsistencySelector isListDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
  251. // If the list should show missing documents. A missing document is a
  252. // document that does not exist but has sub-documents. These documents will
  253. // be returned with a key but will not have fields,
  254. // [Document.create_time][google.firestore.v1beta1.Document.create_time], or
  255. // [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
  256. //
  257. // Requests with `show_missing` may not specify `where` or
  258. // `order_by`.
  259. ShowMissing bool `protobuf:"varint,12,opt,name=show_missing,json=showMissing,proto3" json:"show_missing,omitempty"`
  260. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  261. XXX_unrecognized []byte `json:"-"`
  262. XXX_sizecache int32 `json:"-"`
  263. }
  264. func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} }
  265. func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) }
  266. func (*ListDocumentsRequest) ProtoMessage() {}
  267. func (*ListDocumentsRequest) Descriptor() ([]byte, []int) {
  268. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{1}
  269. }
  270. func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error {
  271. return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b)
  272. }
  273. func (m *ListDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  274. return xxx_messageInfo_ListDocumentsRequest.Marshal(b, m, deterministic)
  275. }
  276. func (dst *ListDocumentsRequest) XXX_Merge(src proto.Message) {
  277. xxx_messageInfo_ListDocumentsRequest.Merge(dst, src)
  278. }
  279. func (m *ListDocumentsRequest) XXX_Size() int {
  280. return xxx_messageInfo_ListDocumentsRequest.Size(m)
  281. }
  282. func (m *ListDocumentsRequest) XXX_DiscardUnknown() {
  283. xxx_messageInfo_ListDocumentsRequest.DiscardUnknown(m)
  284. }
  285. var xxx_messageInfo_ListDocumentsRequest proto.InternalMessageInfo
  286. func (m *ListDocumentsRequest) GetParent() string {
  287. if m != nil {
  288. return m.Parent
  289. }
  290. return ""
  291. }
  292. func (m *ListDocumentsRequest) GetCollectionId() string {
  293. if m != nil {
  294. return m.CollectionId
  295. }
  296. return ""
  297. }
  298. func (m *ListDocumentsRequest) GetPageSize() int32 {
  299. if m != nil {
  300. return m.PageSize
  301. }
  302. return 0
  303. }
  304. func (m *ListDocumentsRequest) GetPageToken() string {
  305. if m != nil {
  306. return m.PageToken
  307. }
  308. return ""
  309. }
  310. func (m *ListDocumentsRequest) GetOrderBy() string {
  311. if m != nil {
  312. return m.OrderBy
  313. }
  314. return ""
  315. }
  316. func (m *ListDocumentsRequest) GetMask() *DocumentMask {
  317. if m != nil {
  318. return m.Mask
  319. }
  320. return nil
  321. }
  322. type isListDocumentsRequest_ConsistencySelector interface {
  323. isListDocumentsRequest_ConsistencySelector()
  324. }
  325. type ListDocumentsRequest_Transaction struct {
  326. Transaction []byte `protobuf:"bytes,8,opt,name=transaction,proto3,oneof"`
  327. }
  328. type ListDocumentsRequest_ReadTime struct {
  329. ReadTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=read_time,json=readTime,proto3,oneof"`
  330. }
  331. func (*ListDocumentsRequest_Transaction) isListDocumentsRequest_ConsistencySelector() {}
  332. func (*ListDocumentsRequest_ReadTime) isListDocumentsRequest_ConsistencySelector() {}
  333. func (m *ListDocumentsRequest) GetConsistencySelector() isListDocumentsRequest_ConsistencySelector {
  334. if m != nil {
  335. return m.ConsistencySelector
  336. }
  337. return nil
  338. }
  339. func (m *ListDocumentsRequest) GetTransaction() []byte {
  340. if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_Transaction); ok {
  341. return x.Transaction
  342. }
  343. return nil
  344. }
  345. func (m *ListDocumentsRequest) GetReadTime() *timestamp.Timestamp {
  346. if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_ReadTime); ok {
  347. return x.ReadTime
  348. }
  349. return nil
  350. }
  351. func (m *ListDocumentsRequest) GetShowMissing() bool {
  352. if m != nil {
  353. return m.ShowMissing
  354. }
  355. return false
  356. }
  357. // XXX_OneofFuncs is for the internal use of the proto package.
  358. func (*ListDocumentsRequest) 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{}) {
  359. return _ListDocumentsRequest_OneofMarshaler, _ListDocumentsRequest_OneofUnmarshaler, _ListDocumentsRequest_OneofSizer, []interface{}{
  360. (*ListDocumentsRequest_Transaction)(nil),
  361. (*ListDocumentsRequest_ReadTime)(nil),
  362. }
  363. }
  364. func _ListDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  365. m := msg.(*ListDocumentsRequest)
  366. // consistency_selector
  367. switch x := m.ConsistencySelector.(type) {
  368. case *ListDocumentsRequest_Transaction:
  369. b.EncodeVarint(8<<3 | proto.WireBytes)
  370. b.EncodeRawBytes(x.Transaction)
  371. case *ListDocumentsRequest_ReadTime:
  372. b.EncodeVarint(10<<3 | proto.WireBytes)
  373. if err := b.EncodeMessage(x.ReadTime); err != nil {
  374. return err
  375. }
  376. case nil:
  377. default:
  378. return fmt.Errorf("ListDocumentsRequest.ConsistencySelector has unexpected type %T", x)
  379. }
  380. return nil
  381. }
  382. func _ListDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  383. m := msg.(*ListDocumentsRequest)
  384. switch tag {
  385. case 8: // consistency_selector.transaction
  386. if wire != proto.WireBytes {
  387. return true, proto.ErrInternalBadWireType
  388. }
  389. x, err := b.DecodeRawBytes(true)
  390. m.ConsistencySelector = &ListDocumentsRequest_Transaction{x}
  391. return true, err
  392. case 10: // consistency_selector.read_time
  393. if wire != proto.WireBytes {
  394. return true, proto.ErrInternalBadWireType
  395. }
  396. msg := new(timestamp.Timestamp)
  397. err := b.DecodeMessage(msg)
  398. m.ConsistencySelector = &ListDocumentsRequest_ReadTime{msg}
  399. return true, err
  400. default:
  401. return false, nil
  402. }
  403. }
  404. func _ListDocumentsRequest_OneofSizer(msg proto.Message) (n int) {
  405. m := msg.(*ListDocumentsRequest)
  406. // consistency_selector
  407. switch x := m.ConsistencySelector.(type) {
  408. case *ListDocumentsRequest_Transaction:
  409. n += 1 // tag and wire
  410. n += proto.SizeVarint(uint64(len(x.Transaction)))
  411. n += len(x.Transaction)
  412. case *ListDocumentsRequest_ReadTime:
  413. s := proto.Size(x.ReadTime)
  414. n += 1 // tag and wire
  415. n += proto.SizeVarint(uint64(s))
  416. n += s
  417. case nil:
  418. default:
  419. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  420. }
  421. return n
  422. }
  423. // The response for
  424. // [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
  425. type ListDocumentsResponse struct {
  426. // The Documents found.
  427. Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
  428. // The next page token.
  429. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  430. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  431. XXX_unrecognized []byte `json:"-"`
  432. XXX_sizecache int32 `json:"-"`
  433. }
  434. func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} }
  435. func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) }
  436. func (*ListDocumentsResponse) ProtoMessage() {}
  437. func (*ListDocumentsResponse) Descriptor() ([]byte, []int) {
  438. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{2}
  439. }
  440. func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error {
  441. return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b)
  442. }
  443. func (m *ListDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  444. return xxx_messageInfo_ListDocumentsResponse.Marshal(b, m, deterministic)
  445. }
  446. func (dst *ListDocumentsResponse) XXX_Merge(src proto.Message) {
  447. xxx_messageInfo_ListDocumentsResponse.Merge(dst, src)
  448. }
  449. func (m *ListDocumentsResponse) XXX_Size() int {
  450. return xxx_messageInfo_ListDocumentsResponse.Size(m)
  451. }
  452. func (m *ListDocumentsResponse) XXX_DiscardUnknown() {
  453. xxx_messageInfo_ListDocumentsResponse.DiscardUnknown(m)
  454. }
  455. var xxx_messageInfo_ListDocumentsResponse proto.InternalMessageInfo
  456. func (m *ListDocumentsResponse) GetDocuments() []*Document {
  457. if m != nil {
  458. return m.Documents
  459. }
  460. return nil
  461. }
  462. func (m *ListDocumentsResponse) GetNextPageToken() string {
  463. if m != nil {
  464. return m.NextPageToken
  465. }
  466. return ""
  467. }
  468. // The request for
  469. // [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
  470. type CreateDocumentRequest struct {
  471. // The parent resource. For example:
  472. // `projects/{project_id}/databases/{database_id}/documents` or
  473. // `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
  474. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  475. // The collection ID, relative to `parent`, to list. For example: `chatrooms`.
  476. CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
  477. // The client-assigned document ID to use for this document.
  478. //
  479. // Optional. If not specified, an ID will be assigned by the service.
  480. DocumentId string `protobuf:"bytes,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
  481. // The document to create. `name` must not be set.
  482. Document *Document `protobuf:"bytes,4,opt,name=document,proto3" json:"document,omitempty"`
  483. // The fields to return. If not set, returns all fields.
  484. //
  485. // If the document has a field that is not present in this mask, that field
  486. // will not be returned in the response.
  487. Mask *DocumentMask `protobuf:"bytes,5,opt,name=mask,proto3" json:"mask,omitempty"`
  488. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  489. XXX_unrecognized []byte `json:"-"`
  490. XXX_sizecache int32 `json:"-"`
  491. }
  492. func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} }
  493. func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) }
  494. func (*CreateDocumentRequest) ProtoMessage() {}
  495. func (*CreateDocumentRequest) Descriptor() ([]byte, []int) {
  496. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{3}
  497. }
  498. func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error {
  499. return xxx_messageInfo_CreateDocumentRequest.Unmarshal(m, b)
  500. }
  501. func (m *CreateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  502. return xxx_messageInfo_CreateDocumentRequest.Marshal(b, m, deterministic)
  503. }
  504. func (dst *CreateDocumentRequest) XXX_Merge(src proto.Message) {
  505. xxx_messageInfo_CreateDocumentRequest.Merge(dst, src)
  506. }
  507. func (m *CreateDocumentRequest) XXX_Size() int {
  508. return xxx_messageInfo_CreateDocumentRequest.Size(m)
  509. }
  510. func (m *CreateDocumentRequest) XXX_DiscardUnknown() {
  511. xxx_messageInfo_CreateDocumentRequest.DiscardUnknown(m)
  512. }
  513. var xxx_messageInfo_CreateDocumentRequest proto.InternalMessageInfo
  514. func (m *CreateDocumentRequest) GetParent() string {
  515. if m != nil {
  516. return m.Parent
  517. }
  518. return ""
  519. }
  520. func (m *CreateDocumentRequest) GetCollectionId() string {
  521. if m != nil {
  522. return m.CollectionId
  523. }
  524. return ""
  525. }
  526. func (m *CreateDocumentRequest) GetDocumentId() string {
  527. if m != nil {
  528. return m.DocumentId
  529. }
  530. return ""
  531. }
  532. func (m *CreateDocumentRequest) GetDocument() *Document {
  533. if m != nil {
  534. return m.Document
  535. }
  536. return nil
  537. }
  538. func (m *CreateDocumentRequest) GetMask() *DocumentMask {
  539. if m != nil {
  540. return m.Mask
  541. }
  542. return nil
  543. }
  544. // The request for
  545. // [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
  546. type UpdateDocumentRequest struct {
  547. // The updated document.
  548. // Creates the document if it does not already exist.
  549. Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
  550. // The fields to update.
  551. // None of the field paths in the mask may contain a reserved name.
  552. //
  553. // If the document exists on the server and has fields not referenced in the
  554. // mask, they are left unchanged.
  555. // Fields referenced in the mask, but not present in the input document, are
  556. // deleted from the document on the server.
  557. UpdateMask *DocumentMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  558. // The fields to return. If not set, returns all fields.
  559. //
  560. // If the document has a field that is not present in this mask, that field
  561. // will not be returned in the response.
  562. Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"`
  563. // An optional precondition on the document.
  564. // The request will fail if this is set and not met by the target document.
  565. CurrentDocument *Precondition `protobuf:"bytes,4,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"`
  566. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  567. XXX_unrecognized []byte `json:"-"`
  568. XXX_sizecache int32 `json:"-"`
  569. }
  570. func (m *UpdateDocumentRequest) Reset() { *m = UpdateDocumentRequest{} }
  571. func (m *UpdateDocumentRequest) String() string { return proto.CompactTextString(m) }
  572. func (*UpdateDocumentRequest) ProtoMessage() {}
  573. func (*UpdateDocumentRequest) Descriptor() ([]byte, []int) {
  574. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{4}
  575. }
  576. func (m *UpdateDocumentRequest) XXX_Unmarshal(b []byte) error {
  577. return xxx_messageInfo_UpdateDocumentRequest.Unmarshal(m, b)
  578. }
  579. func (m *UpdateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  580. return xxx_messageInfo_UpdateDocumentRequest.Marshal(b, m, deterministic)
  581. }
  582. func (dst *UpdateDocumentRequest) XXX_Merge(src proto.Message) {
  583. xxx_messageInfo_UpdateDocumentRequest.Merge(dst, src)
  584. }
  585. func (m *UpdateDocumentRequest) XXX_Size() int {
  586. return xxx_messageInfo_UpdateDocumentRequest.Size(m)
  587. }
  588. func (m *UpdateDocumentRequest) XXX_DiscardUnknown() {
  589. xxx_messageInfo_UpdateDocumentRequest.DiscardUnknown(m)
  590. }
  591. var xxx_messageInfo_UpdateDocumentRequest proto.InternalMessageInfo
  592. func (m *UpdateDocumentRequest) GetDocument() *Document {
  593. if m != nil {
  594. return m.Document
  595. }
  596. return nil
  597. }
  598. func (m *UpdateDocumentRequest) GetUpdateMask() *DocumentMask {
  599. if m != nil {
  600. return m.UpdateMask
  601. }
  602. return nil
  603. }
  604. func (m *UpdateDocumentRequest) GetMask() *DocumentMask {
  605. if m != nil {
  606. return m.Mask
  607. }
  608. return nil
  609. }
  610. func (m *UpdateDocumentRequest) GetCurrentDocument() *Precondition {
  611. if m != nil {
  612. return m.CurrentDocument
  613. }
  614. return nil
  615. }
  616. // The request for
  617. // [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
  618. type DeleteDocumentRequest struct {
  619. // The resource name of the Document to delete. In the format:
  620. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  621. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  622. // An optional precondition on the document.
  623. // The request will fail if this is set and not met by the target document.
  624. CurrentDocument *Precondition `protobuf:"bytes,2,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"`
  625. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  626. XXX_unrecognized []byte `json:"-"`
  627. XXX_sizecache int32 `json:"-"`
  628. }
  629. func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} }
  630. func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) }
  631. func (*DeleteDocumentRequest) ProtoMessage() {}
  632. func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) {
  633. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{5}
  634. }
  635. func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error {
  636. return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b)
  637. }
  638. func (m *DeleteDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  639. return xxx_messageInfo_DeleteDocumentRequest.Marshal(b, m, deterministic)
  640. }
  641. func (dst *DeleteDocumentRequest) XXX_Merge(src proto.Message) {
  642. xxx_messageInfo_DeleteDocumentRequest.Merge(dst, src)
  643. }
  644. func (m *DeleteDocumentRequest) XXX_Size() int {
  645. return xxx_messageInfo_DeleteDocumentRequest.Size(m)
  646. }
  647. func (m *DeleteDocumentRequest) XXX_DiscardUnknown() {
  648. xxx_messageInfo_DeleteDocumentRequest.DiscardUnknown(m)
  649. }
  650. var xxx_messageInfo_DeleteDocumentRequest proto.InternalMessageInfo
  651. func (m *DeleteDocumentRequest) GetName() string {
  652. if m != nil {
  653. return m.Name
  654. }
  655. return ""
  656. }
  657. func (m *DeleteDocumentRequest) GetCurrentDocument() *Precondition {
  658. if m != nil {
  659. return m.CurrentDocument
  660. }
  661. return nil
  662. }
  663. // The request for
  664. // [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
  665. type BatchGetDocumentsRequest struct {
  666. // The database name. In the format:
  667. // `projects/{project_id}/databases/{database_id}`.
  668. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  669. // The names of the documents to retrieve. In the format:
  670. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  671. // The request will fail if any of the document is not a child resource of the
  672. // given `database`. Duplicate names will be elided.
  673. Documents []string `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"`
  674. // The fields to return. If not set, returns all fields.
  675. //
  676. // If a document has a field that is not present in this mask, that field will
  677. // not be returned in the response.
  678. Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"`
  679. // The consistency mode for this transaction.
  680. // If not set, defaults to strong consistency.
  681. //
  682. // Types that are valid to be assigned to ConsistencySelector:
  683. // *BatchGetDocumentsRequest_Transaction
  684. // *BatchGetDocumentsRequest_NewTransaction
  685. // *BatchGetDocumentsRequest_ReadTime
  686. ConsistencySelector isBatchGetDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
  687. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  688. XXX_unrecognized []byte `json:"-"`
  689. XXX_sizecache int32 `json:"-"`
  690. }
  691. func (m *BatchGetDocumentsRequest) Reset() { *m = BatchGetDocumentsRequest{} }
  692. func (m *BatchGetDocumentsRequest) String() string { return proto.CompactTextString(m) }
  693. func (*BatchGetDocumentsRequest) ProtoMessage() {}
  694. func (*BatchGetDocumentsRequest) Descriptor() ([]byte, []int) {
  695. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{6}
  696. }
  697. func (m *BatchGetDocumentsRequest) XXX_Unmarshal(b []byte) error {
  698. return xxx_messageInfo_BatchGetDocumentsRequest.Unmarshal(m, b)
  699. }
  700. func (m *BatchGetDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  701. return xxx_messageInfo_BatchGetDocumentsRequest.Marshal(b, m, deterministic)
  702. }
  703. func (dst *BatchGetDocumentsRequest) XXX_Merge(src proto.Message) {
  704. xxx_messageInfo_BatchGetDocumentsRequest.Merge(dst, src)
  705. }
  706. func (m *BatchGetDocumentsRequest) XXX_Size() int {
  707. return xxx_messageInfo_BatchGetDocumentsRequest.Size(m)
  708. }
  709. func (m *BatchGetDocumentsRequest) XXX_DiscardUnknown() {
  710. xxx_messageInfo_BatchGetDocumentsRequest.DiscardUnknown(m)
  711. }
  712. var xxx_messageInfo_BatchGetDocumentsRequest proto.InternalMessageInfo
  713. func (m *BatchGetDocumentsRequest) GetDatabase() string {
  714. if m != nil {
  715. return m.Database
  716. }
  717. return ""
  718. }
  719. func (m *BatchGetDocumentsRequest) GetDocuments() []string {
  720. if m != nil {
  721. return m.Documents
  722. }
  723. return nil
  724. }
  725. func (m *BatchGetDocumentsRequest) GetMask() *DocumentMask {
  726. if m != nil {
  727. return m.Mask
  728. }
  729. return nil
  730. }
  731. type isBatchGetDocumentsRequest_ConsistencySelector interface {
  732. isBatchGetDocumentsRequest_ConsistencySelector()
  733. }
  734. type BatchGetDocumentsRequest_Transaction struct {
  735. Transaction []byte `protobuf:"bytes,4,opt,name=transaction,proto3,oneof"`
  736. }
  737. type BatchGetDocumentsRequest_NewTransaction struct {
  738. NewTransaction *TransactionOptions `protobuf:"bytes,5,opt,name=new_transaction,json=newTransaction,proto3,oneof"`
  739. }
  740. type BatchGetDocumentsRequest_ReadTime struct {
  741. ReadTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3,oneof"`
  742. }
  743. func (*BatchGetDocumentsRequest_Transaction) isBatchGetDocumentsRequest_ConsistencySelector() {}
  744. func (*BatchGetDocumentsRequest_NewTransaction) isBatchGetDocumentsRequest_ConsistencySelector() {}
  745. func (*BatchGetDocumentsRequest_ReadTime) isBatchGetDocumentsRequest_ConsistencySelector() {}
  746. func (m *BatchGetDocumentsRequest) GetConsistencySelector() isBatchGetDocumentsRequest_ConsistencySelector {
  747. if m != nil {
  748. return m.ConsistencySelector
  749. }
  750. return nil
  751. }
  752. func (m *BatchGetDocumentsRequest) GetTransaction() []byte {
  753. if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_Transaction); ok {
  754. return x.Transaction
  755. }
  756. return nil
  757. }
  758. func (m *BatchGetDocumentsRequest) GetNewTransaction() *TransactionOptions {
  759. if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_NewTransaction); ok {
  760. return x.NewTransaction
  761. }
  762. return nil
  763. }
  764. func (m *BatchGetDocumentsRequest) GetReadTime() *timestamp.Timestamp {
  765. if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_ReadTime); ok {
  766. return x.ReadTime
  767. }
  768. return nil
  769. }
  770. // XXX_OneofFuncs is for the internal use of the proto package.
  771. func (*BatchGetDocumentsRequest) 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{}) {
  772. return _BatchGetDocumentsRequest_OneofMarshaler, _BatchGetDocumentsRequest_OneofUnmarshaler, _BatchGetDocumentsRequest_OneofSizer, []interface{}{
  773. (*BatchGetDocumentsRequest_Transaction)(nil),
  774. (*BatchGetDocumentsRequest_NewTransaction)(nil),
  775. (*BatchGetDocumentsRequest_ReadTime)(nil),
  776. }
  777. }
  778. func _BatchGetDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  779. m := msg.(*BatchGetDocumentsRequest)
  780. // consistency_selector
  781. switch x := m.ConsistencySelector.(type) {
  782. case *BatchGetDocumentsRequest_Transaction:
  783. b.EncodeVarint(4<<3 | proto.WireBytes)
  784. b.EncodeRawBytes(x.Transaction)
  785. case *BatchGetDocumentsRequest_NewTransaction:
  786. b.EncodeVarint(5<<3 | proto.WireBytes)
  787. if err := b.EncodeMessage(x.NewTransaction); err != nil {
  788. return err
  789. }
  790. case *BatchGetDocumentsRequest_ReadTime:
  791. b.EncodeVarint(7<<3 | proto.WireBytes)
  792. if err := b.EncodeMessage(x.ReadTime); err != nil {
  793. return err
  794. }
  795. case nil:
  796. default:
  797. return fmt.Errorf("BatchGetDocumentsRequest.ConsistencySelector has unexpected type %T", x)
  798. }
  799. return nil
  800. }
  801. func _BatchGetDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  802. m := msg.(*BatchGetDocumentsRequest)
  803. switch tag {
  804. case 4: // consistency_selector.transaction
  805. if wire != proto.WireBytes {
  806. return true, proto.ErrInternalBadWireType
  807. }
  808. x, err := b.DecodeRawBytes(true)
  809. m.ConsistencySelector = &BatchGetDocumentsRequest_Transaction{x}
  810. return true, err
  811. case 5: // consistency_selector.new_transaction
  812. if wire != proto.WireBytes {
  813. return true, proto.ErrInternalBadWireType
  814. }
  815. msg := new(TransactionOptions)
  816. err := b.DecodeMessage(msg)
  817. m.ConsistencySelector = &BatchGetDocumentsRequest_NewTransaction{msg}
  818. return true, err
  819. case 7: // consistency_selector.read_time
  820. if wire != proto.WireBytes {
  821. return true, proto.ErrInternalBadWireType
  822. }
  823. msg := new(timestamp.Timestamp)
  824. err := b.DecodeMessage(msg)
  825. m.ConsistencySelector = &BatchGetDocumentsRequest_ReadTime{msg}
  826. return true, err
  827. default:
  828. return false, nil
  829. }
  830. }
  831. func _BatchGetDocumentsRequest_OneofSizer(msg proto.Message) (n int) {
  832. m := msg.(*BatchGetDocumentsRequest)
  833. // consistency_selector
  834. switch x := m.ConsistencySelector.(type) {
  835. case *BatchGetDocumentsRequest_Transaction:
  836. n += 1 // tag and wire
  837. n += proto.SizeVarint(uint64(len(x.Transaction)))
  838. n += len(x.Transaction)
  839. case *BatchGetDocumentsRequest_NewTransaction:
  840. s := proto.Size(x.NewTransaction)
  841. n += 1 // tag and wire
  842. n += proto.SizeVarint(uint64(s))
  843. n += s
  844. case *BatchGetDocumentsRequest_ReadTime:
  845. s := proto.Size(x.ReadTime)
  846. n += 1 // tag and wire
  847. n += proto.SizeVarint(uint64(s))
  848. n += s
  849. case nil:
  850. default:
  851. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  852. }
  853. return n
  854. }
  855. // The streamed response for
  856. // [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
  857. type BatchGetDocumentsResponse struct {
  858. // A single result.
  859. // This can be empty if the server is just returning a transaction.
  860. //
  861. // Types that are valid to be assigned to Result:
  862. // *BatchGetDocumentsResponse_Found
  863. // *BatchGetDocumentsResponse_Missing
  864. Result isBatchGetDocumentsResponse_Result `protobuf_oneof:"result"`
  865. // The transaction that was started as part of this request.
  866. // Will only be set in the first response, and only if
  867. // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction]
  868. // was set in the request.
  869. Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`
  870. // The time at which the document was read.
  871. // This may be monotically increasing, in this case the previous documents in
  872. // the result stream are guaranteed not to have changed between their
  873. // read_time and this one.
  874. ReadTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
  875. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  876. XXX_unrecognized []byte `json:"-"`
  877. XXX_sizecache int32 `json:"-"`
  878. }
  879. func (m *BatchGetDocumentsResponse) Reset() { *m = BatchGetDocumentsResponse{} }
  880. func (m *BatchGetDocumentsResponse) String() string { return proto.CompactTextString(m) }
  881. func (*BatchGetDocumentsResponse) ProtoMessage() {}
  882. func (*BatchGetDocumentsResponse) Descriptor() ([]byte, []int) {
  883. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{7}
  884. }
  885. func (m *BatchGetDocumentsResponse) XXX_Unmarshal(b []byte) error {
  886. return xxx_messageInfo_BatchGetDocumentsResponse.Unmarshal(m, b)
  887. }
  888. func (m *BatchGetDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  889. return xxx_messageInfo_BatchGetDocumentsResponse.Marshal(b, m, deterministic)
  890. }
  891. func (dst *BatchGetDocumentsResponse) XXX_Merge(src proto.Message) {
  892. xxx_messageInfo_BatchGetDocumentsResponse.Merge(dst, src)
  893. }
  894. func (m *BatchGetDocumentsResponse) XXX_Size() int {
  895. return xxx_messageInfo_BatchGetDocumentsResponse.Size(m)
  896. }
  897. func (m *BatchGetDocumentsResponse) XXX_DiscardUnknown() {
  898. xxx_messageInfo_BatchGetDocumentsResponse.DiscardUnknown(m)
  899. }
  900. var xxx_messageInfo_BatchGetDocumentsResponse proto.InternalMessageInfo
  901. type isBatchGetDocumentsResponse_Result interface {
  902. isBatchGetDocumentsResponse_Result()
  903. }
  904. type BatchGetDocumentsResponse_Found struct {
  905. Found *Document `protobuf:"bytes,1,opt,name=found,proto3,oneof"`
  906. }
  907. type BatchGetDocumentsResponse_Missing struct {
  908. Missing string `protobuf:"bytes,2,opt,name=missing,proto3,oneof"`
  909. }
  910. func (*BatchGetDocumentsResponse_Found) isBatchGetDocumentsResponse_Result() {}
  911. func (*BatchGetDocumentsResponse_Missing) isBatchGetDocumentsResponse_Result() {}
  912. func (m *BatchGetDocumentsResponse) GetResult() isBatchGetDocumentsResponse_Result {
  913. if m != nil {
  914. return m.Result
  915. }
  916. return nil
  917. }
  918. func (m *BatchGetDocumentsResponse) GetFound() *Document {
  919. if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Found); ok {
  920. return x.Found
  921. }
  922. return nil
  923. }
  924. func (m *BatchGetDocumentsResponse) GetMissing() string {
  925. if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Missing); ok {
  926. return x.Missing
  927. }
  928. return ""
  929. }
  930. func (m *BatchGetDocumentsResponse) GetTransaction() []byte {
  931. if m != nil {
  932. return m.Transaction
  933. }
  934. return nil
  935. }
  936. func (m *BatchGetDocumentsResponse) GetReadTime() *timestamp.Timestamp {
  937. if m != nil {
  938. return m.ReadTime
  939. }
  940. return nil
  941. }
  942. // XXX_OneofFuncs is for the internal use of the proto package.
  943. func (*BatchGetDocumentsResponse) 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{}) {
  944. return _BatchGetDocumentsResponse_OneofMarshaler, _BatchGetDocumentsResponse_OneofUnmarshaler, _BatchGetDocumentsResponse_OneofSizer, []interface{}{
  945. (*BatchGetDocumentsResponse_Found)(nil),
  946. (*BatchGetDocumentsResponse_Missing)(nil),
  947. }
  948. }
  949. func _BatchGetDocumentsResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  950. m := msg.(*BatchGetDocumentsResponse)
  951. // result
  952. switch x := m.Result.(type) {
  953. case *BatchGetDocumentsResponse_Found:
  954. b.EncodeVarint(1<<3 | proto.WireBytes)
  955. if err := b.EncodeMessage(x.Found); err != nil {
  956. return err
  957. }
  958. case *BatchGetDocumentsResponse_Missing:
  959. b.EncodeVarint(2<<3 | proto.WireBytes)
  960. b.EncodeStringBytes(x.Missing)
  961. case nil:
  962. default:
  963. return fmt.Errorf("BatchGetDocumentsResponse.Result has unexpected type %T", x)
  964. }
  965. return nil
  966. }
  967. func _BatchGetDocumentsResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  968. m := msg.(*BatchGetDocumentsResponse)
  969. switch tag {
  970. case 1: // result.found
  971. if wire != proto.WireBytes {
  972. return true, proto.ErrInternalBadWireType
  973. }
  974. msg := new(Document)
  975. err := b.DecodeMessage(msg)
  976. m.Result = &BatchGetDocumentsResponse_Found{msg}
  977. return true, err
  978. case 2: // result.missing
  979. if wire != proto.WireBytes {
  980. return true, proto.ErrInternalBadWireType
  981. }
  982. x, err := b.DecodeStringBytes()
  983. m.Result = &BatchGetDocumentsResponse_Missing{x}
  984. return true, err
  985. default:
  986. return false, nil
  987. }
  988. }
  989. func _BatchGetDocumentsResponse_OneofSizer(msg proto.Message) (n int) {
  990. m := msg.(*BatchGetDocumentsResponse)
  991. // result
  992. switch x := m.Result.(type) {
  993. case *BatchGetDocumentsResponse_Found:
  994. s := proto.Size(x.Found)
  995. n += 1 // tag and wire
  996. n += proto.SizeVarint(uint64(s))
  997. n += s
  998. case *BatchGetDocumentsResponse_Missing:
  999. n += 1 // tag and wire
  1000. n += proto.SizeVarint(uint64(len(x.Missing)))
  1001. n += len(x.Missing)
  1002. case nil:
  1003. default:
  1004. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1005. }
  1006. return n
  1007. }
  1008. // The request for
  1009. // [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
  1010. type BeginTransactionRequest struct {
  1011. // The database name. In the format:
  1012. // `projects/{project_id}/databases/{database_id}`.
  1013. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  1014. // The options for the transaction.
  1015. // Defaults to a read-write transaction.
  1016. Options *TransactionOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
  1017. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1018. XXX_unrecognized []byte `json:"-"`
  1019. XXX_sizecache int32 `json:"-"`
  1020. }
  1021. func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} }
  1022. func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) }
  1023. func (*BeginTransactionRequest) ProtoMessage() {}
  1024. func (*BeginTransactionRequest) Descriptor() ([]byte, []int) {
  1025. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{8}
  1026. }
  1027. func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error {
  1028. return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b)
  1029. }
  1030. func (m *BeginTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1031. return xxx_messageInfo_BeginTransactionRequest.Marshal(b, m, deterministic)
  1032. }
  1033. func (dst *BeginTransactionRequest) XXX_Merge(src proto.Message) {
  1034. xxx_messageInfo_BeginTransactionRequest.Merge(dst, src)
  1035. }
  1036. func (m *BeginTransactionRequest) XXX_Size() int {
  1037. return xxx_messageInfo_BeginTransactionRequest.Size(m)
  1038. }
  1039. func (m *BeginTransactionRequest) XXX_DiscardUnknown() {
  1040. xxx_messageInfo_BeginTransactionRequest.DiscardUnknown(m)
  1041. }
  1042. var xxx_messageInfo_BeginTransactionRequest proto.InternalMessageInfo
  1043. func (m *BeginTransactionRequest) GetDatabase() string {
  1044. if m != nil {
  1045. return m.Database
  1046. }
  1047. return ""
  1048. }
  1049. func (m *BeginTransactionRequest) GetOptions() *TransactionOptions {
  1050. if m != nil {
  1051. return m.Options
  1052. }
  1053. return nil
  1054. }
  1055. // The response for
  1056. // [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
  1057. type BeginTransactionResponse struct {
  1058. // The transaction that was started.
  1059. Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1060. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1061. XXX_unrecognized []byte `json:"-"`
  1062. XXX_sizecache int32 `json:"-"`
  1063. }
  1064. func (m *BeginTransactionResponse) Reset() { *m = BeginTransactionResponse{} }
  1065. func (m *BeginTransactionResponse) String() string { return proto.CompactTextString(m) }
  1066. func (*BeginTransactionResponse) ProtoMessage() {}
  1067. func (*BeginTransactionResponse) Descriptor() ([]byte, []int) {
  1068. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{9}
  1069. }
  1070. func (m *BeginTransactionResponse) XXX_Unmarshal(b []byte) error {
  1071. return xxx_messageInfo_BeginTransactionResponse.Unmarshal(m, b)
  1072. }
  1073. func (m *BeginTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1074. return xxx_messageInfo_BeginTransactionResponse.Marshal(b, m, deterministic)
  1075. }
  1076. func (dst *BeginTransactionResponse) XXX_Merge(src proto.Message) {
  1077. xxx_messageInfo_BeginTransactionResponse.Merge(dst, src)
  1078. }
  1079. func (m *BeginTransactionResponse) XXX_Size() int {
  1080. return xxx_messageInfo_BeginTransactionResponse.Size(m)
  1081. }
  1082. func (m *BeginTransactionResponse) XXX_DiscardUnknown() {
  1083. xxx_messageInfo_BeginTransactionResponse.DiscardUnknown(m)
  1084. }
  1085. var xxx_messageInfo_BeginTransactionResponse proto.InternalMessageInfo
  1086. func (m *BeginTransactionResponse) GetTransaction() []byte {
  1087. if m != nil {
  1088. return m.Transaction
  1089. }
  1090. return nil
  1091. }
  1092. // The request for
  1093. // [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
  1094. type CommitRequest struct {
  1095. // The database name. In the format:
  1096. // `projects/{project_id}/databases/{database_id}`.
  1097. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  1098. // The writes to apply.
  1099. //
  1100. // Always executed atomically and in order.
  1101. Writes []*Write `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"`
  1102. // If set, applies all writes in this transaction, and commits it.
  1103. Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1104. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1105. XXX_unrecognized []byte `json:"-"`
  1106. XXX_sizecache int32 `json:"-"`
  1107. }
  1108. func (m *CommitRequest) Reset() { *m = CommitRequest{} }
  1109. func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
  1110. func (*CommitRequest) ProtoMessage() {}
  1111. func (*CommitRequest) Descriptor() ([]byte, []int) {
  1112. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{10}
  1113. }
  1114. func (m *CommitRequest) XXX_Unmarshal(b []byte) error {
  1115. return xxx_messageInfo_CommitRequest.Unmarshal(m, b)
  1116. }
  1117. func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1118. return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic)
  1119. }
  1120. func (dst *CommitRequest) XXX_Merge(src proto.Message) {
  1121. xxx_messageInfo_CommitRequest.Merge(dst, src)
  1122. }
  1123. func (m *CommitRequest) XXX_Size() int {
  1124. return xxx_messageInfo_CommitRequest.Size(m)
  1125. }
  1126. func (m *CommitRequest) XXX_DiscardUnknown() {
  1127. xxx_messageInfo_CommitRequest.DiscardUnknown(m)
  1128. }
  1129. var xxx_messageInfo_CommitRequest proto.InternalMessageInfo
  1130. func (m *CommitRequest) GetDatabase() string {
  1131. if m != nil {
  1132. return m.Database
  1133. }
  1134. return ""
  1135. }
  1136. func (m *CommitRequest) GetWrites() []*Write {
  1137. if m != nil {
  1138. return m.Writes
  1139. }
  1140. return nil
  1141. }
  1142. func (m *CommitRequest) GetTransaction() []byte {
  1143. if m != nil {
  1144. return m.Transaction
  1145. }
  1146. return nil
  1147. }
  1148. // The response for
  1149. // [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
  1150. type CommitResponse struct {
  1151. // The result of applying the writes.
  1152. //
  1153. // This i-th write result corresponds to the i-th write in the
  1154. // request.
  1155. WriteResults []*WriteResult `protobuf:"bytes,1,rep,name=write_results,json=writeResults,proto3" json:"write_results,omitempty"`
  1156. // The time at which the commit occurred.
  1157. CommitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"`
  1158. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1159. XXX_unrecognized []byte `json:"-"`
  1160. XXX_sizecache int32 `json:"-"`
  1161. }
  1162. func (m *CommitResponse) Reset() { *m = CommitResponse{} }
  1163. func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
  1164. func (*CommitResponse) ProtoMessage() {}
  1165. func (*CommitResponse) Descriptor() ([]byte, []int) {
  1166. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{11}
  1167. }
  1168. func (m *CommitResponse) XXX_Unmarshal(b []byte) error {
  1169. return xxx_messageInfo_CommitResponse.Unmarshal(m, b)
  1170. }
  1171. func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1172. return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic)
  1173. }
  1174. func (dst *CommitResponse) XXX_Merge(src proto.Message) {
  1175. xxx_messageInfo_CommitResponse.Merge(dst, src)
  1176. }
  1177. func (m *CommitResponse) XXX_Size() int {
  1178. return xxx_messageInfo_CommitResponse.Size(m)
  1179. }
  1180. func (m *CommitResponse) XXX_DiscardUnknown() {
  1181. xxx_messageInfo_CommitResponse.DiscardUnknown(m)
  1182. }
  1183. var xxx_messageInfo_CommitResponse proto.InternalMessageInfo
  1184. func (m *CommitResponse) GetWriteResults() []*WriteResult {
  1185. if m != nil {
  1186. return m.WriteResults
  1187. }
  1188. return nil
  1189. }
  1190. func (m *CommitResponse) GetCommitTime() *timestamp.Timestamp {
  1191. if m != nil {
  1192. return m.CommitTime
  1193. }
  1194. return nil
  1195. }
  1196. // The request for
  1197. // [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
  1198. type RollbackRequest struct {
  1199. // The database name. In the format:
  1200. // `projects/{project_id}/databases/{database_id}`.
  1201. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  1202. // The transaction to roll back.
  1203. Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1204. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1205. XXX_unrecognized []byte `json:"-"`
  1206. XXX_sizecache int32 `json:"-"`
  1207. }
  1208. func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
  1209. func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
  1210. func (*RollbackRequest) ProtoMessage() {}
  1211. func (*RollbackRequest) Descriptor() ([]byte, []int) {
  1212. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{12}
  1213. }
  1214. func (m *RollbackRequest) XXX_Unmarshal(b []byte) error {
  1215. return xxx_messageInfo_RollbackRequest.Unmarshal(m, b)
  1216. }
  1217. func (m *RollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1218. return xxx_messageInfo_RollbackRequest.Marshal(b, m, deterministic)
  1219. }
  1220. func (dst *RollbackRequest) XXX_Merge(src proto.Message) {
  1221. xxx_messageInfo_RollbackRequest.Merge(dst, src)
  1222. }
  1223. func (m *RollbackRequest) XXX_Size() int {
  1224. return xxx_messageInfo_RollbackRequest.Size(m)
  1225. }
  1226. func (m *RollbackRequest) XXX_DiscardUnknown() {
  1227. xxx_messageInfo_RollbackRequest.DiscardUnknown(m)
  1228. }
  1229. var xxx_messageInfo_RollbackRequest proto.InternalMessageInfo
  1230. func (m *RollbackRequest) GetDatabase() string {
  1231. if m != nil {
  1232. return m.Database
  1233. }
  1234. return ""
  1235. }
  1236. func (m *RollbackRequest) GetTransaction() []byte {
  1237. if m != nil {
  1238. return m.Transaction
  1239. }
  1240. return nil
  1241. }
  1242. // The request for
  1243. // [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
  1244. type RunQueryRequest struct {
  1245. // The parent resource name. In the format:
  1246. // `projects/{project_id}/databases/{database_id}/documents` or
  1247. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  1248. // For example:
  1249. // `projects/my-project/databases/my-database/documents` or
  1250. // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
  1251. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  1252. // The query to run.
  1253. //
  1254. // Types that are valid to be assigned to QueryType:
  1255. // *RunQueryRequest_StructuredQuery
  1256. QueryType isRunQueryRequest_QueryType `protobuf_oneof:"query_type"`
  1257. // The consistency mode for this transaction.
  1258. // If not set, defaults to strong consistency.
  1259. //
  1260. // Types that are valid to be assigned to ConsistencySelector:
  1261. // *RunQueryRequest_Transaction
  1262. // *RunQueryRequest_NewTransaction
  1263. // *RunQueryRequest_ReadTime
  1264. ConsistencySelector isRunQueryRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
  1265. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1266. XXX_unrecognized []byte `json:"-"`
  1267. XXX_sizecache int32 `json:"-"`
  1268. }
  1269. func (m *RunQueryRequest) Reset() { *m = RunQueryRequest{} }
  1270. func (m *RunQueryRequest) String() string { return proto.CompactTextString(m) }
  1271. func (*RunQueryRequest) ProtoMessage() {}
  1272. func (*RunQueryRequest) Descriptor() ([]byte, []int) {
  1273. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{13}
  1274. }
  1275. func (m *RunQueryRequest) XXX_Unmarshal(b []byte) error {
  1276. return xxx_messageInfo_RunQueryRequest.Unmarshal(m, b)
  1277. }
  1278. func (m *RunQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1279. return xxx_messageInfo_RunQueryRequest.Marshal(b, m, deterministic)
  1280. }
  1281. func (dst *RunQueryRequest) XXX_Merge(src proto.Message) {
  1282. xxx_messageInfo_RunQueryRequest.Merge(dst, src)
  1283. }
  1284. func (m *RunQueryRequest) XXX_Size() int {
  1285. return xxx_messageInfo_RunQueryRequest.Size(m)
  1286. }
  1287. func (m *RunQueryRequest) XXX_DiscardUnknown() {
  1288. xxx_messageInfo_RunQueryRequest.DiscardUnknown(m)
  1289. }
  1290. var xxx_messageInfo_RunQueryRequest proto.InternalMessageInfo
  1291. func (m *RunQueryRequest) GetParent() string {
  1292. if m != nil {
  1293. return m.Parent
  1294. }
  1295. return ""
  1296. }
  1297. type isRunQueryRequest_QueryType interface {
  1298. isRunQueryRequest_QueryType()
  1299. }
  1300. type RunQueryRequest_StructuredQuery struct {
  1301. StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,proto3,oneof"`
  1302. }
  1303. func (*RunQueryRequest_StructuredQuery) isRunQueryRequest_QueryType() {}
  1304. func (m *RunQueryRequest) GetQueryType() isRunQueryRequest_QueryType {
  1305. if m != nil {
  1306. return m.QueryType
  1307. }
  1308. return nil
  1309. }
  1310. func (m *RunQueryRequest) GetStructuredQuery() *StructuredQuery {
  1311. if x, ok := m.GetQueryType().(*RunQueryRequest_StructuredQuery); ok {
  1312. return x.StructuredQuery
  1313. }
  1314. return nil
  1315. }
  1316. type isRunQueryRequest_ConsistencySelector interface {
  1317. isRunQueryRequest_ConsistencySelector()
  1318. }
  1319. type RunQueryRequest_Transaction struct {
  1320. Transaction []byte `protobuf:"bytes,5,opt,name=transaction,proto3,oneof"`
  1321. }
  1322. type RunQueryRequest_NewTransaction struct {
  1323. NewTransaction *TransactionOptions `protobuf:"bytes,6,opt,name=new_transaction,json=newTransaction,proto3,oneof"`
  1324. }
  1325. type RunQueryRequest_ReadTime struct {
  1326. ReadTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3,oneof"`
  1327. }
  1328. func (*RunQueryRequest_Transaction) isRunQueryRequest_ConsistencySelector() {}
  1329. func (*RunQueryRequest_NewTransaction) isRunQueryRequest_ConsistencySelector() {}
  1330. func (*RunQueryRequest_ReadTime) isRunQueryRequest_ConsistencySelector() {}
  1331. func (m *RunQueryRequest) GetConsistencySelector() isRunQueryRequest_ConsistencySelector {
  1332. if m != nil {
  1333. return m.ConsistencySelector
  1334. }
  1335. return nil
  1336. }
  1337. func (m *RunQueryRequest) GetTransaction() []byte {
  1338. if x, ok := m.GetConsistencySelector().(*RunQueryRequest_Transaction); ok {
  1339. return x.Transaction
  1340. }
  1341. return nil
  1342. }
  1343. func (m *RunQueryRequest) GetNewTransaction() *TransactionOptions {
  1344. if x, ok := m.GetConsistencySelector().(*RunQueryRequest_NewTransaction); ok {
  1345. return x.NewTransaction
  1346. }
  1347. return nil
  1348. }
  1349. func (m *RunQueryRequest) GetReadTime() *timestamp.Timestamp {
  1350. if x, ok := m.GetConsistencySelector().(*RunQueryRequest_ReadTime); ok {
  1351. return x.ReadTime
  1352. }
  1353. return nil
  1354. }
  1355. // XXX_OneofFuncs is for the internal use of the proto package.
  1356. func (*RunQueryRequest) 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{}) {
  1357. return _RunQueryRequest_OneofMarshaler, _RunQueryRequest_OneofUnmarshaler, _RunQueryRequest_OneofSizer, []interface{}{
  1358. (*RunQueryRequest_StructuredQuery)(nil),
  1359. (*RunQueryRequest_Transaction)(nil),
  1360. (*RunQueryRequest_NewTransaction)(nil),
  1361. (*RunQueryRequest_ReadTime)(nil),
  1362. }
  1363. }
  1364. func _RunQueryRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1365. m := msg.(*RunQueryRequest)
  1366. // query_type
  1367. switch x := m.QueryType.(type) {
  1368. case *RunQueryRequest_StructuredQuery:
  1369. b.EncodeVarint(2<<3 | proto.WireBytes)
  1370. if err := b.EncodeMessage(x.StructuredQuery); err != nil {
  1371. return err
  1372. }
  1373. case nil:
  1374. default:
  1375. return fmt.Errorf("RunQueryRequest.QueryType has unexpected type %T", x)
  1376. }
  1377. // consistency_selector
  1378. switch x := m.ConsistencySelector.(type) {
  1379. case *RunQueryRequest_Transaction:
  1380. b.EncodeVarint(5<<3 | proto.WireBytes)
  1381. b.EncodeRawBytes(x.Transaction)
  1382. case *RunQueryRequest_NewTransaction:
  1383. b.EncodeVarint(6<<3 | proto.WireBytes)
  1384. if err := b.EncodeMessage(x.NewTransaction); err != nil {
  1385. return err
  1386. }
  1387. case *RunQueryRequest_ReadTime:
  1388. b.EncodeVarint(7<<3 | proto.WireBytes)
  1389. if err := b.EncodeMessage(x.ReadTime); err != nil {
  1390. return err
  1391. }
  1392. case nil:
  1393. default:
  1394. return fmt.Errorf("RunQueryRequest.ConsistencySelector has unexpected type %T", x)
  1395. }
  1396. return nil
  1397. }
  1398. func _RunQueryRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1399. m := msg.(*RunQueryRequest)
  1400. switch tag {
  1401. case 2: // query_type.structured_query
  1402. if wire != proto.WireBytes {
  1403. return true, proto.ErrInternalBadWireType
  1404. }
  1405. msg := new(StructuredQuery)
  1406. err := b.DecodeMessage(msg)
  1407. m.QueryType = &RunQueryRequest_StructuredQuery{msg}
  1408. return true, err
  1409. case 5: // consistency_selector.transaction
  1410. if wire != proto.WireBytes {
  1411. return true, proto.ErrInternalBadWireType
  1412. }
  1413. x, err := b.DecodeRawBytes(true)
  1414. m.ConsistencySelector = &RunQueryRequest_Transaction{x}
  1415. return true, err
  1416. case 6: // consistency_selector.new_transaction
  1417. if wire != proto.WireBytes {
  1418. return true, proto.ErrInternalBadWireType
  1419. }
  1420. msg := new(TransactionOptions)
  1421. err := b.DecodeMessage(msg)
  1422. m.ConsistencySelector = &RunQueryRequest_NewTransaction{msg}
  1423. return true, err
  1424. case 7: // consistency_selector.read_time
  1425. if wire != proto.WireBytes {
  1426. return true, proto.ErrInternalBadWireType
  1427. }
  1428. msg := new(timestamp.Timestamp)
  1429. err := b.DecodeMessage(msg)
  1430. m.ConsistencySelector = &RunQueryRequest_ReadTime{msg}
  1431. return true, err
  1432. default:
  1433. return false, nil
  1434. }
  1435. }
  1436. func _RunQueryRequest_OneofSizer(msg proto.Message) (n int) {
  1437. m := msg.(*RunQueryRequest)
  1438. // query_type
  1439. switch x := m.QueryType.(type) {
  1440. case *RunQueryRequest_StructuredQuery:
  1441. s := proto.Size(x.StructuredQuery)
  1442. n += 1 // tag and wire
  1443. n += proto.SizeVarint(uint64(s))
  1444. n += s
  1445. case nil:
  1446. default:
  1447. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1448. }
  1449. // consistency_selector
  1450. switch x := m.ConsistencySelector.(type) {
  1451. case *RunQueryRequest_Transaction:
  1452. n += 1 // tag and wire
  1453. n += proto.SizeVarint(uint64(len(x.Transaction)))
  1454. n += len(x.Transaction)
  1455. case *RunQueryRequest_NewTransaction:
  1456. s := proto.Size(x.NewTransaction)
  1457. n += 1 // tag and wire
  1458. n += proto.SizeVarint(uint64(s))
  1459. n += s
  1460. case *RunQueryRequest_ReadTime:
  1461. s := proto.Size(x.ReadTime)
  1462. n += 1 // tag and wire
  1463. n += proto.SizeVarint(uint64(s))
  1464. n += s
  1465. case nil:
  1466. default:
  1467. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1468. }
  1469. return n
  1470. }
  1471. // The response for
  1472. // [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
  1473. type RunQueryResponse struct {
  1474. // The transaction that was started as part of this request.
  1475. // Can only be set in the first response, and only if
  1476. // [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction]
  1477. // was set in the request. If set, no other fields will be set in this
  1478. // response.
  1479. Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1480. // A query result.
  1481. // Not set when reporting partial progress.
  1482. Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
  1483. // The time at which the document was read. This may be monotonically
  1484. // increasing; in this case, the previous documents in the result stream are
  1485. // guaranteed not to have changed between their `read_time` and this one.
  1486. //
  1487. // If the query returns no results, a response with `read_time` and no
  1488. // `document` will be sent, and this represents the time at which the query
  1489. // was run.
  1490. ReadTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
  1491. // The number of results that have been skipped due to an offset between
  1492. // the last response and the current response.
  1493. SkippedResults int32 `protobuf:"varint,4,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"`
  1494. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1495. XXX_unrecognized []byte `json:"-"`
  1496. XXX_sizecache int32 `json:"-"`
  1497. }
  1498. func (m *RunQueryResponse) Reset() { *m = RunQueryResponse{} }
  1499. func (m *RunQueryResponse) String() string { return proto.CompactTextString(m) }
  1500. func (*RunQueryResponse) ProtoMessage() {}
  1501. func (*RunQueryResponse) Descriptor() ([]byte, []int) {
  1502. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{14}
  1503. }
  1504. func (m *RunQueryResponse) XXX_Unmarshal(b []byte) error {
  1505. return xxx_messageInfo_RunQueryResponse.Unmarshal(m, b)
  1506. }
  1507. func (m *RunQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1508. return xxx_messageInfo_RunQueryResponse.Marshal(b, m, deterministic)
  1509. }
  1510. func (dst *RunQueryResponse) XXX_Merge(src proto.Message) {
  1511. xxx_messageInfo_RunQueryResponse.Merge(dst, src)
  1512. }
  1513. func (m *RunQueryResponse) XXX_Size() int {
  1514. return xxx_messageInfo_RunQueryResponse.Size(m)
  1515. }
  1516. func (m *RunQueryResponse) XXX_DiscardUnknown() {
  1517. xxx_messageInfo_RunQueryResponse.DiscardUnknown(m)
  1518. }
  1519. var xxx_messageInfo_RunQueryResponse proto.InternalMessageInfo
  1520. func (m *RunQueryResponse) GetTransaction() []byte {
  1521. if m != nil {
  1522. return m.Transaction
  1523. }
  1524. return nil
  1525. }
  1526. func (m *RunQueryResponse) GetDocument() *Document {
  1527. if m != nil {
  1528. return m.Document
  1529. }
  1530. return nil
  1531. }
  1532. func (m *RunQueryResponse) GetReadTime() *timestamp.Timestamp {
  1533. if m != nil {
  1534. return m.ReadTime
  1535. }
  1536. return nil
  1537. }
  1538. func (m *RunQueryResponse) GetSkippedResults() int32 {
  1539. if m != nil {
  1540. return m.SkippedResults
  1541. }
  1542. return 0
  1543. }
  1544. // The request for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
  1545. //
  1546. // The first request creates a stream, or resumes an existing one from a token.
  1547. //
  1548. // When creating a new stream, the server replies with a response containing
  1549. // only an ID and a token, to use in the next request.
  1550. //
  1551. // When resuming a stream, the server first streams any responses later than the
  1552. // given token, then a response containing only an up-to-date token, to use in
  1553. // the next request.
  1554. type WriteRequest struct {
  1555. // The database name. In the format:
  1556. // `projects/{project_id}/databases/{database_id}`.
  1557. // This is only required in the first message.
  1558. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  1559. // The ID of the write stream to resume.
  1560. // This may only be set in the first message. When left empty, a new write
  1561. // stream will be created.
  1562. StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
  1563. // The writes to apply.
  1564. //
  1565. // Always executed atomically and in order.
  1566. // This must be empty on the first request.
  1567. // This may be empty on the last request.
  1568. // This must not be empty on all other requests.
  1569. Writes []*Write `protobuf:"bytes,3,rep,name=writes,proto3" json:"writes,omitempty"`
  1570. // A stream token that was previously sent by the server.
  1571. //
  1572. // The client should set this field to the token from the most recent
  1573. // [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received.
  1574. // This acknowledges that the client has received responses up to this token.
  1575. // After sending this token, earlier tokens may not be used anymore.
  1576. //
  1577. // The server may close the stream if there are too many unacknowledged
  1578. // responses.
  1579. //
  1580. // Leave this field unset when creating a new stream. To resume a stream at
  1581. // a specific point, set this field and the `stream_id` field.
  1582. //
  1583. // Leave this field unset when creating a new stream.
  1584. StreamToken []byte `protobuf:"bytes,4,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"`
  1585. // Labels associated with this write request.
  1586. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1587. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1588. XXX_unrecognized []byte `json:"-"`
  1589. XXX_sizecache int32 `json:"-"`
  1590. }
  1591. func (m *WriteRequest) Reset() { *m = WriteRequest{} }
  1592. func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
  1593. func (*WriteRequest) ProtoMessage() {}
  1594. func (*WriteRequest) Descriptor() ([]byte, []int) {
  1595. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{15}
  1596. }
  1597. func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
  1598. return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
  1599. }
  1600. func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1601. return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
  1602. }
  1603. func (dst *WriteRequest) XXX_Merge(src proto.Message) {
  1604. xxx_messageInfo_WriteRequest.Merge(dst, src)
  1605. }
  1606. func (m *WriteRequest) XXX_Size() int {
  1607. return xxx_messageInfo_WriteRequest.Size(m)
  1608. }
  1609. func (m *WriteRequest) XXX_DiscardUnknown() {
  1610. xxx_messageInfo_WriteRequest.DiscardUnknown(m)
  1611. }
  1612. var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
  1613. func (m *WriteRequest) GetDatabase() string {
  1614. if m != nil {
  1615. return m.Database
  1616. }
  1617. return ""
  1618. }
  1619. func (m *WriteRequest) GetStreamId() string {
  1620. if m != nil {
  1621. return m.StreamId
  1622. }
  1623. return ""
  1624. }
  1625. func (m *WriteRequest) GetWrites() []*Write {
  1626. if m != nil {
  1627. return m.Writes
  1628. }
  1629. return nil
  1630. }
  1631. func (m *WriteRequest) GetStreamToken() []byte {
  1632. if m != nil {
  1633. return m.StreamToken
  1634. }
  1635. return nil
  1636. }
  1637. func (m *WriteRequest) GetLabels() map[string]string {
  1638. if m != nil {
  1639. return m.Labels
  1640. }
  1641. return nil
  1642. }
  1643. // The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
  1644. type WriteResponse struct {
  1645. // The ID of the stream.
  1646. // Only set on the first message, when a new stream was created.
  1647. StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
  1648. // A token that represents the position of this response in the stream.
  1649. // This can be used by a client to resume the stream at this point.
  1650. //
  1651. // This field is always set.
  1652. StreamToken []byte `protobuf:"bytes,2,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"`
  1653. // The result of applying the writes.
  1654. //
  1655. // This i-th write result corresponds to the i-th write in the
  1656. // request.
  1657. WriteResults []*WriteResult `protobuf:"bytes,3,rep,name=write_results,json=writeResults,proto3" json:"write_results,omitempty"`
  1658. // The time at which the commit occurred.
  1659. CommitTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"`
  1660. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1661. XXX_unrecognized []byte `json:"-"`
  1662. XXX_sizecache int32 `json:"-"`
  1663. }
  1664. func (m *WriteResponse) Reset() { *m = WriteResponse{} }
  1665. func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
  1666. func (*WriteResponse) ProtoMessage() {}
  1667. func (*WriteResponse) Descriptor() ([]byte, []int) {
  1668. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{16}
  1669. }
  1670. func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
  1671. return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
  1672. }
  1673. func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1674. return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
  1675. }
  1676. func (dst *WriteResponse) XXX_Merge(src proto.Message) {
  1677. xxx_messageInfo_WriteResponse.Merge(dst, src)
  1678. }
  1679. func (m *WriteResponse) XXX_Size() int {
  1680. return xxx_messageInfo_WriteResponse.Size(m)
  1681. }
  1682. func (m *WriteResponse) XXX_DiscardUnknown() {
  1683. xxx_messageInfo_WriteResponse.DiscardUnknown(m)
  1684. }
  1685. var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
  1686. func (m *WriteResponse) GetStreamId() string {
  1687. if m != nil {
  1688. return m.StreamId
  1689. }
  1690. return ""
  1691. }
  1692. func (m *WriteResponse) GetStreamToken() []byte {
  1693. if m != nil {
  1694. return m.StreamToken
  1695. }
  1696. return nil
  1697. }
  1698. func (m *WriteResponse) GetWriteResults() []*WriteResult {
  1699. if m != nil {
  1700. return m.WriteResults
  1701. }
  1702. return nil
  1703. }
  1704. func (m *WriteResponse) GetCommitTime() *timestamp.Timestamp {
  1705. if m != nil {
  1706. return m.CommitTime
  1707. }
  1708. return nil
  1709. }
  1710. // A request for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]
  1711. type ListenRequest struct {
  1712. // The database name. In the format:
  1713. // `projects/{project_id}/databases/{database_id}`.
  1714. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  1715. // The supported target changes.
  1716. //
  1717. // Types that are valid to be assigned to TargetChange:
  1718. // *ListenRequest_AddTarget
  1719. // *ListenRequest_RemoveTarget
  1720. TargetChange isListenRequest_TargetChange `protobuf_oneof:"target_change"`
  1721. // Labels associated with this target change.
  1722. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1723. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1724. XXX_unrecognized []byte `json:"-"`
  1725. XXX_sizecache int32 `json:"-"`
  1726. }
  1727. func (m *ListenRequest) Reset() { *m = ListenRequest{} }
  1728. func (m *ListenRequest) String() string { return proto.CompactTextString(m) }
  1729. func (*ListenRequest) ProtoMessage() {}
  1730. func (*ListenRequest) Descriptor() ([]byte, []int) {
  1731. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{17}
  1732. }
  1733. func (m *ListenRequest) XXX_Unmarshal(b []byte) error {
  1734. return xxx_messageInfo_ListenRequest.Unmarshal(m, b)
  1735. }
  1736. func (m *ListenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1737. return xxx_messageInfo_ListenRequest.Marshal(b, m, deterministic)
  1738. }
  1739. func (dst *ListenRequest) XXX_Merge(src proto.Message) {
  1740. xxx_messageInfo_ListenRequest.Merge(dst, src)
  1741. }
  1742. func (m *ListenRequest) XXX_Size() int {
  1743. return xxx_messageInfo_ListenRequest.Size(m)
  1744. }
  1745. func (m *ListenRequest) XXX_DiscardUnknown() {
  1746. xxx_messageInfo_ListenRequest.DiscardUnknown(m)
  1747. }
  1748. var xxx_messageInfo_ListenRequest proto.InternalMessageInfo
  1749. func (m *ListenRequest) GetDatabase() string {
  1750. if m != nil {
  1751. return m.Database
  1752. }
  1753. return ""
  1754. }
  1755. type isListenRequest_TargetChange interface {
  1756. isListenRequest_TargetChange()
  1757. }
  1758. type ListenRequest_AddTarget struct {
  1759. AddTarget *Target `protobuf:"bytes,2,opt,name=add_target,json=addTarget,proto3,oneof"`
  1760. }
  1761. type ListenRequest_RemoveTarget struct {
  1762. RemoveTarget int32 `protobuf:"varint,3,opt,name=remove_target,json=removeTarget,proto3,oneof"`
  1763. }
  1764. func (*ListenRequest_AddTarget) isListenRequest_TargetChange() {}
  1765. func (*ListenRequest_RemoveTarget) isListenRequest_TargetChange() {}
  1766. func (m *ListenRequest) GetTargetChange() isListenRequest_TargetChange {
  1767. if m != nil {
  1768. return m.TargetChange
  1769. }
  1770. return nil
  1771. }
  1772. func (m *ListenRequest) GetAddTarget() *Target {
  1773. if x, ok := m.GetTargetChange().(*ListenRequest_AddTarget); ok {
  1774. return x.AddTarget
  1775. }
  1776. return nil
  1777. }
  1778. func (m *ListenRequest) GetRemoveTarget() int32 {
  1779. if x, ok := m.GetTargetChange().(*ListenRequest_RemoveTarget); ok {
  1780. return x.RemoveTarget
  1781. }
  1782. return 0
  1783. }
  1784. func (m *ListenRequest) GetLabels() map[string]string {
  1785. if m != nil {
  1786. return m.Labels
  1787. }
  1788. return nil
  1789. }
  1790. // XXX_OneofFuncs is for the internal use of the proto package.
  1791. func (*ListenRequest) 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{}) {
  1792. return _ListenRequest_OneofMarshaler, _ListenRequest_OneofUnmarshaler, _ListenRequest_OneofSizer, []interface{}{
  1793. (*ListenRequest_AddTarget)(nil),
  1794. (*ListenRequest_RemoveTarget)(nil),
  1795. }
  1796. }
  1797. func _ListenRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1798. m := msg.(*ListenRequest)
  1799. // target_change
  1800. switch x := m.TargetChange.(type) {
  1801. case *ListenRequest_AddTarget:
  1802. b.EncodeVarint(2<<3 | proto.WireBytes)
  1803. if err := b.EncodeMessage(x.AddTarget); err != nil {
  1804. return err
  1805. }
  1806. case *ListenRequest_RemoveTarget:
  1807. b.EncodeVarint(3<<3 | proto.WireVarint)
  1808. b.EncodeVarint(uint64(x.RemoveTarget))
  1809. case nil:
  1810. default:
  1811. return fmt.Errorf("ListenRequest.TargetChange has unexpected type %T", x)
  1812. }
  1813. return nil
  1814. }
  1815. func _ListenRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1816. m := msg.(*ListenRequest)
  1817. switch tag {
  1818. case 2: // target_change.add_target
  1819. if wire != proto.WireBytes {
  1820. return true, proto.ErrInternalBadWireType
  1821. }
  1822. msg := new(Target)
  1823. err := b.DecodeMessage(msg)
  1824. m.TargetChange = &ListenRequest_AddTarget{msg}
  1825. return true, err
  1826. case 3: // target_change.remove_target
  1827. if wire != proto.WireVarint {
  1828. return true, proto.ErrInternalBadWireType
  1829. }
  1830. x, err := b.DecodeVarint()
  1831. m.TargetChange = &ListenRequest_RemoveTarget{int32(x)}
  1832. return true, err
  1833. default:
  1834. return false, nil
  1835. }
  1836. }
  1837. func _ListenRequest_OneofSizer(msg proto.Message) (n int) {
  1838. m := msg.(*ListenRequest)
  1839. // target_change
  1840. switch x := m.TargetChange.(type) {
  1841. case *ListenRequest_AddTarget:
  1842. s := proto.Size(x.AddTarget)
  1843. n += 1 // tag and wire
  1844. n += proto.SizeVarint(uint64(s))
  1845. n += s
  1846. case *ListenRequest_RemoveTarget:
  1847. n += 1 // tag and wire
  1848. n += proto.SizeVarint(uint64(x.RemoveTarget))
  1849. case nil:
  1850. default:
  1851. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1852. }
  1853. return n
  1854. }
  1855. // The response for
  1856. // [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
  1857. type ListenResponse struct {
  1858. // The supported responses.
  1859. //
  1860. // Types that are valid to be assigned to ResponseType:
  1861. // *ListenResponse_TargetChange
  1862. // *ListenResponse_DocumentChange
  1863. // *ListenResponse_DocumentDelete
  1864. // *ListenResponse_DocumentRemove
  1865. // *ListenResponse_Filter
  1866. ResponseType isListenResponse_ResponseType `protobuf_oneof:"response_type"`
  1867. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1868. XXX_unrecognized []byte `json:"-"`
  1869. XXX_sizecache int32 `json:"-"`
  1870. }
  1871. func (m *ListenResponse) Reset() { *m = ListenResponse{} }
  1872. func (m *ListenResponse) String() string { return proto.CompactTextString(m) }
  1873. func (*ListenResponse) ProtoMessage() {}
  1874. func (*ListenResponse) Descriptor() ([]byte, []int) {
  1875. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{18}
  1876. }
  1877. func (m *ListenResponse) XXX_Unmarshal(b []byte) error {
  1878. return xxx_messageInfo_ListenResponse.Unmarshal(m, b)
  1879. }
  1880. func (m *ListenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1881. return xxx_messageInfo_ListenResponse.Marshal(b, m, deterministic)
  1882. }
  1883. func (dst *ListenResponse) XXX_Merge(src proto.Message) {
  1884. xxx_messageInfo_ListenResponse.Merge(dst, src)
  1885. }
  1886. func (m *ListenResponse) XXX_Size() int {
  1887. return xxx_messageInfo_ListenResponse.Size(m)
  1888. }
  1889. func (m *ListenResponse) XXX_DiscardUnknown() {
  1890. xxx_messageInfo_ListenResponse.DiscardUnknown(m)
  1891. }
  1892. var xxx_messageInfo_ListenResponse proto.InternalMessageInfo
  1893. type isListenResponse_ResponseType interface {
  1894. isListenResponse_ResponseType()
  1895. }
  1896. type ListenResponse_TargetChange struct {
  1897. TargetChange *TargetChange `protobuf:"bytes,2,opt,name=target_change,json=targetChange,proto3,oneof"`
  1898. }
  1899. type ListenResponse_DocumentChange struct {
  1900. DocumentChange *DocumentChange `protobuf:"bytes,3,opt,name=document_change,json=documentChange,proto3,oneof"`
  1901. }
  1902. type ListenResponse_DocumentDelete struct {
  1903. DocumentDelete *DocumentDelete `protobuf:"bytes,4,opt,name=document_delete,json=documentDelete,proto3,oneof"`
  1904. }
  1905. type ListenResponse_DocumentRemove struct {
  1906. DocumentRemove *DocumentRemove `protobuf:"bytes,6,opt,name=document_remove,json=documentRemove,proto3,oneof"`
  1907. }
  1908. type ListenResponse_Filter struct {
  1909. Filter *ExistenceFilter `protobuf:"bytes,5,opt,name=filter,proto3,oneof"`
  1910. }
  1911. func (*ListenResponse_TargetChange) isListenResponse_ResponseType() {}
  1912. func (*ListenResponse_DocumentChange) isListenResponse_ResponseType() {}
  1913. func (*ListenResponse_DocumentDelete) isListenResponse_ResponseType() {}
  1914. func (*ListenResponse_DocumentRemove) isListenResponse_ResponseType() {}
  1915. func (*ListenResponse_Filter) isListenResponse_ResponseType() {}
  1916. func (m *ListenResponse) GetResponseType() isListenResponse_ResponseType {
  1917. if m != nil {
  1918. return m.ResponseType
  1919. }
  1920. return nil
  1921. }
  1922. func (m *ListenResponse) GetTargetChange() *TargetChange {
  1923. if x, ok := m.GetResponseType().(*ListenResponse_TargetChange); ok {
  1924. return x.TargetChange
  1925. }
  1926. return nil
  1927. }
  1928. func (m *ListenResponse) GetDocumentChange() *DocumentChange {
  1929. if x, ok := m.GetResponseType().(*ListenResponse_DocumentChange); ok {
  1930. return x.DocumentChange
  1931. }
  1932. return nil
  1933. }
  1934. func (m *ListenResponse) GetDocumentDelete() *DocumentDelete {
  1935. if x, ok := m.GetResponseType().(*ListenResponse_DocumentDelete); ok {
  1936. return x.DocumentDelete
  1937. }
  1938. return nil
  1939. }
  1940. func (m *ListenResponse) GetDocumentRemove() *DocumentRemove {
  1941. if x, ok := m.GetResponseType().(*ListenResponse_DocumentRemove); ok {
  1942. return x.DocumentRemove
  1943. }
  1944. return nil
  1945. }
  1946. func (m *ListenResponse) GetFilter() *ExistenceFilter {
  1947. if x, ok := m.GetResponseType().(*ListenResponse_Filter); ok {
  1948. return x.Filter
  1949. }
  1950. return nil
  1951. }
  1952. // XXX_OneofFuncs is for the internal use of the proto package.
  1953. func (*ListenResponse) 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{}) {
  1954. return _ListenResponse_OneofMarshaler, _ListenResponse_OneofUnmarshaler, _ListenResponse_OneofSizer, []interface{}{
  1955. (*ListenResponse_TargetChange)(nil),
  1956. (*ListenResponse_DocumentChange)(nil),
  1957. (*ListenResponse_DocumentDelete)(nil),
  1958. (*ListenResponse_DocumentRemove)(nil),
  1959. (*ListenResponse_Filter)(nil),
  1960. }
  1961. }
  1962. func _ListenResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1963. m := msg.(*ListenResponse)
  1964. // response_type
  1965. switch x := m.ResponseType.(type) {
  1966. case *ListenResponse_TargetChange:
  1967. b.EncodeVarint(2<<3 | proto.WireBytes)
  1968. if err := b.EncodeMessage(x.TargetChange); err != nil {
  1969. return err
  1970. }
  1971. case *ListenResponse_DocumentChange:
  1972. b.EncodeVarint(3<<3 | proto.WireBytes)
  1973. if err := b.EncodeMessage(x.DocumentChange); err != nil {
  1974. return err
  1975. }
  1976. case *ListenResponse_DocumentDelete:
  1977. b.EncodeVarint(4<<3 | proto.WireBytes)
  1978. if err := b.EncodeMessage(x.DocumentDelete); err != nil {
  1979. return err
  1980. }
  1981. case *ListenResponse_DocumentRemove:
  1982. b.EncodeVarint(6<<3 | proto.WireBytes)
  1983. if err := b.EncodeMessage(x.DocumentRemove); err != nil {
  1984. return err
  1985. }
  1986. case *ListenResponse_Filter:
  1987. b.EncodeVarint(5<<3 | proto.WireBytes)
  1988. if err := b.EncodeMessage(x.Filter); err != nil {
  1989. return err
  1990. }
  1991. case nil:
  1992. default:
  1993. return fmt.Errorf("ListenResponse.ResponseType has unexpected type %T", x)
  1994. }
  1995. return nil
  1996. }
  1997. func _ListenResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1998. m := msg.(*ListenResponse)
  1999. switch tag {
  2000. case 2: // response_type.target_change
  2001. if wire != proto.WireBytes {
  2002. return true, proto.ErrInternalBadWireType
  2003. }
  2004. msg := new(TargetChange)
  2005. err := b.DecodeMessage(msg)
  2006. m.ResponseType = &ListenResponse_TargetChange{msg}
  2007. return true, err
  2008. case 3: // response_type.document_change
  2009. if wire != proto.WireBytes {
  2010. return true, proto.ErrInternalBadWireType
  2011. }
  2012. msg := new(DocumentChange)
  2013. err := b.DecodeMessage(msg)
  2014. m.ResponseType = &ListenResponse_DocumentChange{msg}
  2015. return true, err
  2016. case 4: // response_type.document_delete
  2017. if wire != proto.WireBytes {
  2018. return true, proto.ErrInternalBadWireType
  2019. }
  2020. msg := new(DocumentDelete)
  2021. err := b.DecodeMessage(msg)
  2022. m.ResponseType = &ListenResponse_DocumentDelete{msg}
  2023. return true, err
  2024. case 6: // response_type.document_remove
  2025. if wire != proto.WireBytes {
  2026. return true, proto.ErrInternalBadWireType
  2027. }
  2028. msg := new(DocumentRemove)
  2029. err := b.DecodeMessage(msg)
  2030. m.ResponseType = &ListenResponse_DocumentRemove{msg}
  2031. return true, err
  2032. case 5: // response_type.filter
  2033. if wire != proto.WireBytes {
  2034. return true, proto.ErrInternalBadWireType
  2035. }
  2036. msg := new(ExistenceFilter)
  2037. err := b.DecodeMessage(msg)
  2038. m.ResponseType = &ListenResponse_Filter{msg}
  2039. return true, err
  2040. default:
  2041. return false, nil
  2042. }
  2043. }
  2044. func _ListenResponse_OneofSizer(msg proto.Message) (n int) {
  2045. m := msg.(*ListenResponse)
  2046. // response_type
  2047. switch x := m.ResponseType.(type) {
  2048. case *ListenResponse_TargetChange:
  2049. s := proto.Size(x.TargetChange)
  2050. n += 1 // tag and wire
  2051. n += proto.SizeVarint(uint64(s))
  2052. n += s
  2053. case *ListenResponse_DocumentChange:
  2054. s := proto.Size(x.DocumentChange)
  2055. n += 1 // tag and wire
  2056. n += proto.SizeVarint(uint64(s))
  2057. n += s
  2058. case *ListenResponse_DocumentDelete:
  2059. s := proto.Size(x.DocumentDelete)
  2060. n += 1 // tag and wire
  2061. n += proto.SizeVarint(uint64(s))
  2062. n += s
  2063. case *ListenResponse_DocumentRemove:
  2064. s := proto.Size(x.DocumentRemove)
  2065. n += 1 // tag and wire
  2066. n += proto.SizeVarint(uint64(s))
  2067. n += s
  2068. case *ListenResponse_Filter:
  2069. s := proto.Size(x.Filter)
  2070. n += 1 // tag and wire
  2071. n += proto.SizeVarint(uint64(s))
  2072. n += s
  2073. case nil:
  2074. default:
  2075. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2076. }
  2077. return n
  2078. }
  2079. // A specification of a set of documents to listen to.
  2080. type Target struct {
  2081. // The type of target to listen to.
  2082. //
  2083. // Types that are valid to be assigned to TargetType:
  2084. // *Target_Query
  2085. // *Target_Documents
  2086. TargetType isTarget_TargetType `protobuf_oneof:"target_type"`
  2087. // When to start listening.
  2088. //
  2089. // If not specified, all matching Documents are returned before any
  2090. // subsequent changes.
  2091. //
  2092. // Types that are valid to be assigned to ResumeType:
  2093. // *Target_ResumeToken
  2094. // *Target_ReadTime
  2095. ResumeType isTarget_ResumeType `protobuf_oneof:"resume_type"`
  2096. // A client provided target ID.
  2097. //
  2098. // If not set, the server will assign an ID for the target.
  2099. //
  2100. // Used for resuming a target without changing IDs. The IDs can either be
  2101. // client-assigned or be server-assigned in a previous stream. All targets
  2102. // with client provided IDs must be added before adding a target that needs
  2103. // a server-assigned id.
  2104. TargetId int32 `protobuf:"varint,5,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
  2105. // If the target should be removed once it is current and consistent.
  2106. Once bool `protobuf:"varint,6,opt,name=once,proto3" json:"once,omitempty"`
  2107. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2108. XXX_unrecognized []byte `json:"-"`
  2109. XXX_sizecache int32 `json:"-"`
  2110. }
  2111. func (m *Target) Reset() { *m = Target{} }
  2112. func (m *Target) String() string { return proto.CompactTextString(m) }
  2113. func (*Target) ProtoMessage() {}
  2114. func (*Target) Descriptor() ([]byte, []int) {
  2115. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{19}
  2116. }
  2117. func (m *Target) XXX_Unmarshal(b []byte) error {
  2118. return xxx_messageInfo_Target.Unmarshal(m, b)
  2119. }
  2120. func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2121. return xxx_messageInfo_Target.Marshal(b, m, deterministic)
  2122. }
  2123. func (dst *Target) XXX_Merge(src proto.Message) {
  2124. xxx_messageInfo_Target.Merge(dst, src)
  2125. }
  2126. func (m *Target) XXX_Size() int {
  2127. return xxx_messageInfo_Target.Size(m)
  2128. }
  2129. func (m *Target) XXX_DiscardUnknown() {
  2130. xxx_messageInfo_Target.DiscardUnknown(m)
  2131. }
  2132. var xxx_messageInfo_Target proto.InternalMessageInfo
  2133. type isTarget_TargetType interface {
  2134. isTarget_TargetType()
  2135. }
  2136. type Target_Query struct {
  2137. Query *Target_QueryTarget `protobuf:"bytes,2,opt,name=query,proto3,oneof"`
  2138. }
  2139. type Target_Documents struct {
  2140. Documents *Target_DocumentsTarget `protobuf:"bytes,3,opt,name=documents,proto3,oneof"`
  2141. }
  2142. func (*Target_Query) isTarget_TargetType() {}
  2143. func (*Target_Documents) isTarget_TargetType() {}
  2144. func (m *Target) GetTargetType() isTarget_TargetType {
  2145. if m != nil {
  2146. return m.TargetType
  2147. }
  2148. return nil
  2149. }
  2150. func (m *Target) GetQuery() *Target_QueryTarget {
  2151. if x, ok := m.GetTargetType().(*Target_Query); ok {
  2152. return x.Query
  2153. }
  2154. return nil
  2155. }
  2156. func (m *Target) GetDocuments() *Target_DocumentsTarget {
  2157. if x, ok := m.GetTargetType().(*Target_Documents); ok {
  2158. return x.Documents
  2159. }
  2160. return nil
  2161. }
  2162. type isTarget_ResumeType interface {
  2163. isTarget_ResumeType()
  2164. }
  2165. type Target_ResumeToken struct {
  2166. ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3,oneof"`
  2167. }
  2168. type Target_ReadTime struct {
  2169. ReadTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=read_time,json=readTime,proto3,oneof"`
  2170. }
  2171. func (*Target_ResumeToken) isTarget_ResumeType() {}
  2172. func (*Target_ReadTime) isTarget_ResumeType() {}
  2173. func (m *Target) GetResumeType() isTarget_ResumeType {
  2174. if m != nil {
  2175. return m.ResumeType
  2176. }
  2177. return nil
  2178. }
  2179. func (m *Target) GetResumeToken() []byte {
  2180. if x, ok := m.GetResumeType().(*Target_ResumeToken); ok {
  2181. return x.ResumeToken
  2182. }
  2183. return nil
  2184. }
  2185. func (m *Target) GetReadTime() *timestamp.Timestamp {
  2186. if x, ok := m.GetResumeType().(*Target_ReadTime); ok {
  2187. return x.ReadTime
  2188. }
  2189. return nil
  2190. }
  2191. func (m *Target) GetTargetId() int32 {
  2192. if m != nil {
  2193. return m.TargetId
  2194. }
  2195. return 0
  2196. }
  2197. func (m *Target) GetOnce() bool {
  2198. if m != nil {
  2199. return m.Once
  2200. }
  2201. return false
  2202. }
  2203. // XXX_OneofFuncs is for the internal use of the proto package.
  2204. func (*Target) 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{}) {
  2205. return _Target_OneofMarshaler, _Target_OneofUnmarshaler, _Target_OneofSizer, []interface{}{
  2206. (*Target_Query)(nil),
  2207. (*Target_Documents)(nil),
  2208. (*Target_ResumeToken)(nil),
  2209. (*Target_ReadTime)(nil),
  2210. }
  2211. }
  2212. func _Target_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  2213. m := msg.(*Target)
  2214. // target_type
  2215. switch x := m.TargetType.(type) {
  2216. case *Target_Query:
  2217. b.EncodeVarint(2<<3 | proto.WireBytes)
  2218. if err := b.EncodeMessage(x.Query); err != nil {
  2219. return err
  2220. }
  2221. case *Target_Documents:
  2222. b.EncodeVarint(3<<3 | proto.WireBytes)
  2223. if err := b.EncodeMessage(x.Documents); err != nil {
  2224. return err
  2225. }
  2226. case nil:
  2227. default:
  2228. return fmt.Errorf("Target.TargetType has unexpected type %T", x)
  2229. }
  2230. // resume_type
  2231. switch x := m.ResumeType.(type) {
  2232. case *Target_ResumeToken:
  2233. b.EncodeVarint(4<<3 | proto.WireBytes)
  2234. b.EncodeRawBytes(x.ResumeToken)
  2235. case *Target_ReadTime:
  2236. b.EncodeVarint(11<<3 | proto.WireBytes)
  2237. if err := b.EncodeMessage(x.ReadTime); err != nil {
  2238. return err
  2239. }
  2240. case nil:
  2241. default:
  2242. return fmt.Errorf("Target.ResumeType has unexpected type %T", x)
  2243. }
  2244. return nil
  2245. }
  2246. func _Target_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  2247. m := msg.(*Target)
  2248. switch tag {
  2249. case 2: // target_type.query
  2250. if wire != proto.WireBytes {
  2251. return true, proto.ErrInternalBadWireType
  2252. }
  2253. msg := new(Target_QueryTarget)
  2254. err := b.DecodeMessage(msg)
  2255. m.TargetType = &Target_Query{msg}
  2256. return true, err
  2257. case 3: // target_type.documents
  2258. if wire != proto.WireBytes {
  2259. return true, proto.ErrInternalBadWireType
  2260. }
  2261. msg := new(Target_DocumentsTarget)
  2262. err := b.DecodeMessage(msg)
  2263. m.TargetType = &Target_Documents{msg}
  2264. return true, err
  2265. case 4: // resume_type.resume_token
  2266. if wire != proto.WireBytes {
  2267. return true, proto.ErrInternalBadWireType
  2268. }
  2269. x, err := b.DecodeRawBytes(true)
  2270. m.ResumeType = &Target_ResumeToken{x}
  2271. return true, err
  2272. case 11: // resume_type.read_time
  2273. if wire != proto.WireBytes {
  2274. return true, proto.ErrInternalBadWireType
  2275. }
  2276. msg := new(timestamp.Timestamp)
  2277. err := b.DecodeMessage(msg)
  2278. m.ResumeType = &Target_ReadTime{msg}
  2279. return true, err
  2280. default:
  2281. return false, nil
  2282. }
  2283. }
  2284. func _Target_OneofSizer(msg proto.Message) (n int) {
  2285. m := msg.(*Target)
  2286. // target_type
  2287. switch x := m.TargetType.(type) {
  2288. case *Target_Query:
  2289. s := proto.Size(x.Query)
  2290. n += 1 // tag and wire
  2291. n += proto.SizeVarint(uint64(s))
  2292. n += s
  2293. case *Target_Documents:
  2294. s := proto.Size(x.Documents)
  2295. n += 1 // tag and wire
  2296. n += proto.SizeVarint(uint64(s))
  2297. n += s
  2298. case nil:
  2299. default:
  2300. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2301. }
  2302. // resume_type
  2303. switch x := m.ResumeType.(type) {
  2304. case *Target_ResumeToken:
  2305. n += 1 // tag and wire
  2306. n += proto.SizeVarint(uint64(len(x.ResumeToken)))
  2307. n += len(x.ResumeToken)
  2308. case *Target_ReadTime:
  2309. s := proto.Size(x.ReadTime)
  2310. n += 1 // tag and wire
  2311. n += proto.SizeVarint(uint64(s))
  2312. n += s
  2313. case nil:
  2314. default:
  2315. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2316. }
  2317. return n
  2318. }
  2319. // A target specified by a set of documents names.
  2320. type Target_DocumentsTarget struct {
  2321. // The names of the documents to retrieve. In the format:
  2322. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  2323. // The request will fail if any of the document is not a child resource of
  2324. // the given `database`. Duplicate names will be elided.
  2325. Documents []string `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"`
  2326. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2327. XXX_unrecognized []byte `json:"-"`
  2328. XXX_sizecache int32 `json:"-"`
  2329. }
  2330. func (m *Target_DocumentsTarget) Reset() { *m = Target_DocumentsTarget{} }
  2331. func (m *Target_DocumentsTarget) String() string { return proto.CompactTextString(m) }
  2332. func (*Target_DocumentsTarget) ProtoMessage() {}
  2333. func (*Target_DocumentsTarget) Descriptor() ([]byte, []int) {
  2334. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{19, 0}
  2335. }
  2336. func (m *Target_DocumentsTarget) XXX_Unmarshal(b []byte) error {
  2337. return xxx_messageInfo_Target_DocumentsTarget.Unmarshal(m, b)
  2338. }
  2339. func (m *Target_DocumentsTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2340. return xxx_messageInfo_Target_DocumentsTarget.Marshal(b, m, deterministic)
  2341. }
  2342. func (dst *Target_DocumentsTarget) XXX_Merge(src proto.Message) {
  2343. xxx_messageInfo_Target_DocumentsTarget.Merge(dst, src)
  2344. }
  2345. func (m *Target_DocumentsTarget) XXX_Size() int {
  2346. return xxx_messageInfo_Target_DocumentsTarget.Size(m)
  2347. }
  2348. func (m *Target_DocumentsTarget) XXX_DiscardUnknown() {
  2349. xxx_messageInfo_Target_DocumentsTarget.DiscardUnknown(m)
  2350. }
  2351. var xxx_messageInfo_Target_DocumentsTarget proto.InternalMessageInfo
  2352. func (m *Target_DocumentsTarget) GetDocuments() []string {
  2353. if m != nil {
  2354. return m.Documents
  2355. }
  2356. return nil
  2357. }
  2358. // A target specified by a query.
  2359. type Target_QueryTarget struct {
  2360. // The parent resource name. In the format:
  2361. // `projects/{project_id}/databases/{database_id}/documents` or
  2362. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  2363. // For example:
  2364. // `projects/my-project/databases/my-database/documents` or
  2365. // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
  2366. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  2367. // The query to run.
  2368. //
  2369. // Types that are valid to be assigned to QueryType:
  2370. // *Target_QueryTarget_StructuredQuery
  2371. QueryType isTarget_QueryTarget_QueryType `protobuf_oneof:"query_type"`
  2372. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2373. XXX_unrecognized []byte `json:"-"`
  2374. XXX_sizecache int32 `json:"-"`
  2375. }
  2376. func (m *Target_QueryTarget) Reset() { *m = Target_QueryTarget{} }
  2377. func (m *Target_QueryTarget) String() string { return proto.CompactTextString(m) }
  2378. func (*Target_QueryTarget) ProtoMessage() {}
  2379. func (*Target_QueryTarget) Descriptor() ([]byte, []int) {
  2380. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{19, 1}
  2381. }
  2382. func (m *Target_QueryTarget) XXX_Unmarshal(b []byte) error {
  2383. return xxx_messageInfo_Target_QueryTarget.Unmarshal(m, b)
  2384. }
  2385. func (m *Target_QueryTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2386. return xxx_messageInfo_Target_QueryTarget.Marshal(b, m, deterministic)
  2387. }
  2388. func (dst *Target_QueryTarget) XXX_Merge(src proto.Message) {
  2389. xxx_messageInfo_Target_QueryTarget.Merge(dst, src)
  2390. }
  2391. func (m *Target_QueryTarget) XXX_Size() int {
  2392. return xxx_messageInfo_Target_QueryTarget.Size(m)
  2393. }
  2394. func (m *Target_QueryTarget) XXX_DiscardUnknown() {
  2395. xxx_messageInfo_Target_QueryTarget.DiscardUnknown(m)
  2396. }
  2397. var xxx_messageInfo_Target_QueryTarget proto.InternalMessageInfo
  2398. func (m *Target_QueryTarget) GetParent() string {
  2399. if m != nil {
  2400. return m.Parent
  2401. }
  2402. return ""
  2403. }
  2404. type isTarget_QueryTarget_QueryType interface {
  2405. isTarget_QueryTarget_QueryType()
  2406. }
  2407. type Target_QueryTarget_StructuredQuery struct {
  2408. StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,proto3,oneof"`
  2409. }
  2410. func (*Target_QueryTarget_StructuredQuery) isTarget_QueryTarget_QueryType() {}
  2411. func (m *Target_QueryTarget) GetQueryType() isTarget_QueryTarget_QueryType {
  2412. if m != nil {
  2413. return m.QueryType
  2414. }
  2415. return nil
  2416. }
  2417. func (m *Target_QueryTarget) GetStructuredQuery() *StructuredQuery {
  2418. if x, ok := m.GetQueryType().(*Target_QueryTarget_StructuredQuery); ok {
  2419. return x.StructuredQuery
  2420. }
  2421. return nil
  2422. }
  2423. // XXX_OneofFuncs is for the internal use of the proto package.
  2424. func (*Target_QueryTarget) 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{}) {
  2425. return _Target_QueryTarget_OneofMarshaler, _Target_QueryTarget_OneofUnmarshaler, _Target_QueryTarget_OneofSizer, []interface{}{
  2426. (*Target_QueryTarget_StructuredQuery)(nil),
  2427. }
  2428. }
  2429. func _Target_QueryTarget_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  2430. m := msg.(*Target_QueryTarget)
  2431. // query_type
  2432. switch x := m.QueryType.(type) {
  2433. case *Target_QueryTarget_StructuredQuery:
  2434. b.EncodeVarint(2<<3 | proto.WireBytes)
  2435. if err := b.EncodeMessage(x.StructuredQuery); err != nil {
  2436. return err
  2437. }
  2438. case nil:
  2439. default:
  2440. return fmt.Errorf("Target_QueryTarget.QueryType has unexpected type %T", x)
  2441. }
  2442. return nil
  2443. }
  2444. func _Target_QueryTarget_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  2445. m := msg.(*Target_QueryTarget)
  2446. switch tag {
  2447. case 2: // query_type.structured_query
  2448. if wire != proto.WireBytes {
  2449. return true, proto.ErrInternalBadWireType
  2450. }
  2451. msg := new(StructuredQuery)
  2452. err := b.DecodeMessage(msg)
  2453. m.QueryType = &Target_QueryTarget_StructuredQuery{msg}
  2454. return true, err
  2455. default:
  2456. return false, nil
  2457. }
  2458. }
  2459. func _Target_QueryTarget_OneofSizer(msg proto.Message) (n int) {
  2460. m := msg.(*Target_QueryTarget)
  2461. // query_type
  2462. switch x := m.QueryType.(type) {
  2463. case *Target_QueryTarget_StructuredQuery:
  2464. s := proto.Size(x.StructuredQuery)
  2465. n += 1 // tag and wire
  2466. n += proto.SizeVarint(uint64(s))
  2467. n += s
  2468. case nil:
  2469. default:
  2470. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2471. }
  2472. return n
  2473. }
  2474. // Targets being watched have changed.
  2475. type TargetChange struct {
  2476. // The type of change that occurred.
  2477. TargetChangeType TargetChange_TargetChangeType `protobuf:"varint,1,opt,name=target_change_type,json=targetChangeType,proto3,enum=google.firestore.v1beta1.TargetChange_TargetChangeType" json:"target_change_type,omitempty"`
  2478. // The target IDs of targets that have changed.
  2479. //
  2480. // If empty, the change applies to all targets.
  2481. //
  2482. // For `target_change_type=ADD`, the order of the target IDs matches the order
  2483. // of the requests to add the targets. This allows clients to unambiguously
  2484. // associate server-assigned target IDs with added targets.
  2485. //
  2486. // For other states, the order of the target IDs is not defined.
  2487. TargetIds []int32 `protobuf:"varint,2,rep,packed,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"`
  2488. // The error that resulted in this change, if applicable.
  2489. Cause *status.Status `protobuf:"bytes,3,opt,name=cause,proto3" json:"cause,omitempty"`
  2490. // A token that can be used to resume the stream for the given `target_ids`,
  2491. // or all targets if `target_ids` is empty.
  2492. //
  2493. // Not set on every target change.
  2494. ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
  2495. // The consistent `read_time` for the given `target_ids` (omitted when the
  2496. // target_ids are not at a consistent snapshot).
  2497. //
  2498. // The stream is guaranteed to send a `read_time` with `target_ids` empty
  2499. // whenever the entire stream reaches a new consistent snapshot. ADD,
  2500. // CURRENT, and RESET messages are guaranteed to (eventually) result in a
  2501. // new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
  2502. //
  2503. // For a given stream, `read_time` is guaranteed to be monotonically
  2504. // increasing.
  2505. ReadTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
  2506. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2507. XXX_unrecognized []byte `json:"-"`
  2508. XXX_sizecache int32 `json:"-"`
  2509. }
  2510. func (m *TargetChange) Reset() { *m = TargetChange{} }
  2511. func (m *TargetChange) String() string { return proto.CompactTextString(m) }
  2512. func (*TargetChange) ProtoMessage() {}
  2513. func (*TargetChange) Descriptor() ([]byte, []int) {
  2514. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{20}
  2515. }
  2516. func (m *TargetChange) XXX_Unmarshal(b []byte) error {
  2517. return xxx_messageInfo_TargetChange.Unmarshal(m, b)
  2518. }
  2519. func (m *TargetChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2520. return xxx_messageInfo_TargetChange.Marshal(b, m, deterministic)
  2521. }
  2522. func (dst *TargetChange) XXX_Merge(src proto.Message) {
  2523. xxx_messageInfo_TargetChange.Merge(dst, src)
  2524. }
  2525. func (m *TargetChange) XXX_Size() int {
  2526. return xxx_messageInfo_TargetChange.Size(m)
  2527. }
  2528. func (m *TargetChange) XXX_DiscardUnknown() {
  2529. xxx_messageInfo_TargetChange.DiscardUnknown(m)
  2530. }
  2531. var xxx_messageInfo_TargetChange proto.InternalMessageInfo
  2532. func (m *TargetChange) GetTargetChangeType() TargetChange_TargetChangeType {
  2533. if m != nil {
  2534. return m.TargetChangeType
  2535. }
  2536. return TargetChange_NO_CHANGE
  2537. }
  2538. func (m *TargetChange) GetTargetIds() []int32 {
  2539. if m != nil {
  2540. return m.TargetIds
  2541. }
  2542. return nil
  2543. }
  2544. func (m *TargetChange) GetCause() *status.Status {
  2545. if m != nil {
  2546. return m.Cause
  2547. }
  2548. return nil
  2549. }
  2550. func (m *TargetChange) GetResumeToken() []byte {
  2551. if m != nil {
  2552. return m.ResumeToken
  2553. }
  2554. return nil
  2555. }
  2556. func (m *TargetChange) GetReadTime() *timestamp.Timestamp {
  2557. if m != nil {
  2558. return m.ReadTime
  2559. }
  2560. return nil
  2561. }
  2562. // The request for
  2563. // [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
  2564. type ListCollectionIdsRequest struct {
  2565. // The parent document. In the format:
  2566. // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
  2567. // For example:
  2568. // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
  2569. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  2570. // The maximum number of results to return.
  2571. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  2572. // A page token. Must be a value from
  2573. // [ListCollectionIdsResponse][google.firestore.v1beta1.ListCollectionIdsResponse].
  2574. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  2575. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2576. XXX_unrecognized []byte `json:"-"`
  2577. XXX_sizecache int32 `json:"-"`
  2578. }
  2579. func (m *ListCollectionIdsRequest) Reset() { *m = ListCollectionIdsRequest{} }
  2580. func (m *ListCollectionIdsRequest) String() string { return proto.CompactTextString(m) }
  2581. func (*ListCollectionIdsRequest) ProtoMessage() {}
  2582. func (*ListCollectionIdsRequest) Descriptor() ([]byte, []int) {
  2583. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{21}
  2584. }
  2585. func (m *ListCollectionIdsRequest) XXX_Unmarshal(b []byte) error {
  2586. return xxx_messageInfo_ListCollectionIdsRequest.Unmarshal(m, b)
  2587. }
  2588. func (m *ListCollectionIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2589. return xxx_messageInfo_ListCollectionIdsRequest.Marshal(b, m, deterministic)
  2590. }
  2591. func (dst *ListCollectionIdsRequest) XXX_Merge(src proto.Message) {
  2592. xxx_messageInfo_ListCollectionIdsRequest.Merge(dst, src)
  2593. }
  2594. func (m *ListCollectionIdsRequest) XXX_Size() int {
  2595. return xxx_messageInfo_ListCollectionIdsRequest.Size(m)
  2596. }
  2597. func (m *ListCollectionIdsRequest) XXX_DiscardUnknown() {
  2598. xxx_messageInfo_ListCollectionIdsRequest.DiscardUnknown(m)
  2599. }
  2600. var xxx_messageInfo_ListCollectionIdsRequest proto.InternalMessageInfo
  2601. func (m *ListCollectionIdsRequest) GetParent() string {
  2602. if m != nil {
  2603. return m.Parent
  2604. }
  2605. return ""
  2606. }
  2607. func (m *ListCollectionIdsRequest) GetPageSize() int32 {
  2608. if m != nil {
  2609. return m.PageSize
  2610. }
  2611. return 0
  2612. }
  2613. func (m *ListCollectionIdsRequest) GetPageToken() string {
  2614. if m != nil {
  2615. return m.PageToken
  2616. }
  2617. return ""
  2618. }
  2619. // The response from
  2620. // [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
  2621. type ListCollectionIdsResponse struct {
  2622. // The collection ids.
  2623. CollectionIds []string `protobuf:"bytes,1,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"`
  2624. // A page token that may be used to continue the list.
  2625. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  2626. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2627. XXX_unrecognized []byte `json:"-"`
  2628. XXX_sizecache int32 `json:"-"`
  2629. }
  2630. func (m *ListCollectionIdsResponse) Reset() { *m = ListCollectionIdsResponse{} }
  2631. func (m *ListCollectionIdsResponse) String() string { return proto.CompactTextString(m) }
  2632. func (*ListCollectionIdsResponse) ProtoMessage() {}
  2633. func (*ListCollectionIdsResponse) Descriptor() ([]byte, []int) {
  2634. return fileDescriptor_firestore_4d274d4ffc7f75e9, []int{22}
  2635. }
  2636. func (m *ListCollectionIdsResponse) XXX_Unmarshal(b []byte) error {
  2637. return xxx_messageInfo_ListCollectionIdsResponse.Unmarshal(m, b)
  2638. }
  2639. func (m *ListCollectionIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2640. return xxx_messageInfo_ListCollectionIdsResponse.Marshal(b, m, deterministic)
  2641. }
  2642. func (dst *ListCollectionIdsResponse) XXX_Merge(src proto.Message) {
  2643. xxx_messageInfo_ListCollectionIdsResponse.Merge(dst, src)
  2644. }
  2645. func (m *ListCollectionIdsResponse) XXX_Size() int {
  2646. return xxx_messageInfo_ListCollectionIdsResponse.Size(m)
  2647. }
  2648. func (m *ListCollectionIdsResponse) XXX_DiscardUnknown() {
  2649. xxx_messageInfo_ListCollectionIdsResponse.DiscardUnknown(m)
  2650. }
  2651. var xxx_messageInfo_ListCollectionIdsResponse proto.InternalMessageInfo
  2652. func (m *ListCollectionIdsResponse) GetCollectionIds() []string {
  2653. if m != nil {
  2654. return m.CollectionIds
  2655. }
  2656. return nil
  2657. }
  2658. func (m *ListCollectionIdsResponse) GetNextPageToken() string {
  2659. if m != nil {
  2660. return m.NextPageToken
  2661. }
  2662. return ""
  2663. }
  2664. func init() {
  2665. proto.RegisterType((*GetDocumentRequest)(nil), "google.firestore.v1beta1.GetDocumentRequest")
  2666. proto.RegisterType((*ListDocumentsRequest)(nil), "google.firestore.v1beta1.ListDocumentsRequest")
  2667. proto.RegisterType((*ListDocumentsResponse)(nil), "google.firestore.v1beta1.ListDocumentsResponse")
  2668. proto.RegisterType((*CreateDocumentRequest)(nil), "google.firestore.v1beta1.CreateDocumentRequest")
  2669. proto.RegisterType((*UpdateDocumentRequest)(nil), "google.firestore.v1beta1.UpdateDocumentRequest")
  2670. proto.RegisterType((*DeleteDocumentRequest)(nil), "google.firestore.v1beta1.DeleteDocumentRequest")
  2671. proto.RegisterType((*BatchGetDocumentsRequest)(nil), "google.firestore.v1beta1.BatchGetDocumentsRequest")
  2672. proto.RegisterType((*BatchGetDocumentsResponse)(nil), "google.firestore.v1beta1.BatchGetDocumentsResponse")
  2673. proto.RegisterType((*BeginTransactionRequest)(nil), "google.firestore.v1beta1.BeginTransactionRequest")
  2674. proto.RegisterType((*BeginTransactionResponse)(nil), "google.firestore.v1beta1.BeginTransactionResponse")
  2675. proto.RegisterType((*CommitRequest)(nil), "google.firestore.v1beta1.CommitRequest")
  2676. proto.RegisterType((*CommitResponse)(nil), "google.firestore.v1beta1.CommitResponse")
  2677. proto.RegisterType((*RollbackRequest)(nil), "google.firestore.v1beta1.RollbackRequest")
  2678. proto.RegisterType((*RunQueryRequest)(nil), "google.firestore.v1beta1.RunQueryRequest")
  2679. proto.RegisterType((*RunQueryResponse)(nil), "google.firestore.v1beta1.RunQueryResponse")
  2680. proto.RegisterType((*WriteRequest)(nil), "google.firestore.v1beta1.WriteRequest")
  2681. proto.RegisterMapType((map[string]string)(nil), "google.firestore.v1beta1.WriteRequest.LabelsEntry")
  2682. proto.RegisterType((*WriteResponse)(nil), "google.firestore.v1beta1.WriteResponse")
  2683. proto.RegisterType((*ListenRequest)(nil), "google.firestore.v1beta1.ListenRequest")
  2684. proto.RegisterMapType((map[string]string)(nil), "google.firestore.v1beta1.ListenRequest.LabelsEntry")
  2685. proto.RegisterType((*ListenResponse)(nil), "google.firestore.v1beta1.ListenResponse")
  2686. proto.RegisterType((*Target)(nil), "google.firestore.v1beta1.Target")
  2687. proto.RegisterType((*Target_DocumentsTarget)(nil), "google.firestore.v1beta1.Target.DocumentsTarget")
  2688. proto.RegisterType((*Target_QueryTarget)(nil), "google.firestore.v1beta1.Target.QueryTarget")
  2689. proto.RegisterType((*TargetChange)(nil), "google.firestore.v1beta1.TargetChange")
  2690. proto.RegisterType((*ListCollectionIdsRequest)(nil), "google.firestore.v1beta1.ListCollectionIdsRequest")
  2691. proto.RegisterType((*ListCollectionIdsResponse)(nil), "google.firestore.v1beta1.ListCollectionIdsResponse")
  2692. proto.RegisterEnum("google.firestore.v1beta1.TargetChange_TargetChangeType", TargetChange_TargetChangeType_name, TargetChange_TargetChangeType_value)
  2693. }
  2694. // Reference imports to suppress errors if they are not otherwise used.
  2695. var _ context.Context
  2696. var _ grpc.ClientConn
  2697. // This is a compile-time assertion to ensure that this generated file
  2698. // is compatible with the grpc package it is being compiled against.
  2699. const _ = grpc.SupportPackageIsVersion4
  2700. // FirestoreClient is the client API for Firestore service.
  2701. //
  2702. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2703. type FirestoreClient interface {
  2704. // Gets a single document.
  2705. GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error)
  2706. // Lists documents.
  2707. ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
  2708. // Creates a new document.
  2709. CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error)
  2710. // Updates or inserts a document.
  2711. UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error)
  2712. // Deletes a document.
  2713. DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2714. // Gets multiple documents.
  2715. //
  2716. // Documents returned by this method are not guaranteed to be returned in the
  2717. // same order that they were requested.
  2718. BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error)
  2719. // Starts a new transaction.
  2720. BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error)
  2721. // Commits a transaction, while optionally updating documents.
  2722. Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
  2723. // Rolls back a transaction.
  2724. Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2725. // Runs a query.
  2726. RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error)
  2727. // Streams batches of document updates and deletes, in order.
  2728. Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error)
  2729. // Listens to changes.
  2730. Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error)
  2731. // Lists all the collection IDs underneath a document.
  2732. ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error)
  2733. }
  2734. type firestoreClient struct {
  2735. cc *grpc.ClientConn
  2736. }
  2737. func NewFirestoreClient(cc *grpc.ClientConn) FirestoreClient {
  2738. return &firestoreClient{cc}
  2739. }
  2740. func (c *firestoreClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
  2741. out := new(Document)
  2742. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/GetDocument", in, out, opts...)
  2743. if err != nil {
  2744. return nil, err
  2745. }
  2746. return out, nil
  2747. }
  2748. func (c *firestoreClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) {
  2749. out := new(ListDocumentsResponse)
  2750. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/ListDocuments", in, out, opts...)
  2751. if err != nil {
  2752. return nil, err
  2753. }
  2754. return out, nil
  2755. }
  2756. func (c *firestoreClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
  2757. out := new(Document)
  2758. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/CreateDocument", in, out, opts...)
  2759. if err != nil {
  2760. return nil, err
  2761. }
  2762. return out, nil
  2763. }
  2764. func (c *firestoreClient) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
  2765. out := new(Document)
  2766. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/UpdateDocument", in, out, opts...)
  2767. if err != nil {
  2768. return nil, err
  2769. }
  2770. return out, nil
  2771. }
  2772. func (c *firestoreClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2773. out := new(empty.Empty)
  2774. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/DeleteDocument", in, out, opts...)
  2775. if err != nil {
  2776. return nil, err
  2777. }
  2778. return out, nil
  2779. }
  2780. func (c *firestoreClient) BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error) {
  2781. stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[0], "/google.firestore.v1beta1.Firestore/BatchGetDocuments", opts...)
  2782. if err != nil {
  2783. return nil, err
  2784. }
  2785. x := &firestoreBatchGetDocumentsClient{stream}
  2786. if err := x.ClientStream.SendMsg(in); err != nil {
  2787. return nil, err
  2788. }
  2789. if err := x.ClientStream.CloseSend(); err != nil {
  2790. return nil, err
  2791. }
  2792. return x, nil
  2793. }
  2794. type Firestore_BatchGetDocumentsClient interface {
  2795. Recv() (*BatchGetDocumentsResponse, error)
  2796. grpc.ClientStream
  2797. }
  2798. type firestoreBatchGetDocumentsClient struct {
  2799. grpc.ClientStream
  2800. }
  2801. func (x *firestoreBatchGetDocumentsClient) Recv() (*BatchGetDocumentsResponse, error) {
  2802. m := new(BatchGetDocumentsResponse)
  2803. if err := x.ClientStream.RecvMsg(m); err != nil {
  2804. return nil, err
  2805. }
  2806. return m, nil
  2807. }
  2808. func (c *firestoreClient) BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error) {
  2809. out := new(BeginTransactionResponse)
  2810. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/BeginTransaction", in, out, opts...)
  2811. if err != nil {
  2812. return nil, err
  2813. }
  2814. return out, nil
  2815. }
  2816. func (c *firestoreClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) {
  2817. out := new(CommitResponse)
  2818. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/Commit", in, out, opts...)
  2819. if err != nil {
  2820. return nil, err
  2821. }
  2822. return out, nil
  2823. }
  2824. func (c *firestoreClient) Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2825. out := new(empty.Empty)
  2826. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/Rollback", in, out, opts...)
  2827. if err != nil {
  2828. return nil, err
  2829. }
  2830. return out, nil
  2831. }
  2832. func (c *firestoreClient) RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error) {
  2833. stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[1], "/google.firestore.v1beta1.Firestore/RunQuery", opts...)
  2834. if err != nil {
  2835. return nil, err
  2836. }
  2837. x := &firestoreRunQueryClient{stream}
  2838. if err := x.ClientStream.SendMsg(in); err != nil {
  2839. return nil, err
  2840. }
  2841. if err := x.ClientStream.CloseSend(); err != nil {
  2842. return nil, err
  2843. }
  2844. return x, nil
  2845. }
  2846. type Firestore_RunQueryClient interface {
  2847. Recv() (*RunQueryResponse, error)
  2848. grpc.ClientStream
  2849. }
  2850. type firestoreRunQueryClient struct {
  2851. grpc.ClientStream
  2852. }
  2853. func (x *firestoreRunQueryClient) Recv() (*RunQueryResponse, error) {
  2854. m := new(RunQueryResponse)
  2855. if err := x.ClientStream.RecvMsg(m); err != nil {
  2856. return nil, err
  2857. }
  2858. return m, nil
  2859. }
  2860. func (c *firestoreClient) Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error) {
  2861. stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[2], "/google.firestore.v1beta1.Firestore/Write", opts...)
  2862. if err != nil {
  2863. return nil, err
  2864. }
  2865. x := &firestoreWriteClient{stream}
  2866. return x, nil
  2867. }
  2868. type Firestore_WriteClient interface {
  2869. Send(*WriteRequest) error
  2870. Recv() (*WriteResponse, error)
  2871. grpc.ClientStream
  2872. }
  2873. type firestoreWriteClient struct {
  2874. grpc.ClientStream
  2875. }
  2876. func (x *firestoreWriteClient) Send(m *WriteRequest) error {
  2877. return x.ClientStream.SendMsg(m)
  2878. }
  2879. func (x *firestoreWriteClient) Recv() (*WriteResponse, error) {
  2880. m := new(WriteResponse)
  2881. if err := x.ClientStream.RecvMsg(m); err != nil {
  2882. return nil, err
  2883. }
  2884. return m, nil
  2885. }
  2886. func (c *firestoreClient) Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error) {
  2887. stream, err := c.cc.NewStream(ctx, &_Firestore_serviceDesc.Streams[3], "/google.firestore.v1beta1.Firestore/Listen", opts...)
  2888. if err != nil {
  2889. return nil, err
  2890. }
  2891. x := &firestoreListenClient{stream}
  2892. return x, nil
  2893. }
  2894. type Firestore_ListenClient interface {
  2895. Send(*ListenRequest) error
  2896. Recv() (*ListenResponse, error)
  2897. grpc.ClientStream
  2898. }
  2899. type firestoreListenClient struct {
  2900. grpc.ClientStream
  2901. }
  2902. func (x *firestoreListenClient) Send(m *ListenRequest) error {
  2903. return x.ClientStream.SendMsg(m)
  2904. }
  2905. func (x *firestoreListenClient) Recv() (*ListenResponse, error) {
  2906. m := new(ListenResponse)
  2907. if err := x.ClientStream.RecvMsg(m); err != nil {
  2908. return nil, err
  2909. }
  2910. return m, nil
  2911. }
  2912. func (c *firestoreClient) ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error) {
  2913. out := new(ListCollectionIdsResponse)
  2914. err := c.cc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/ListCollectionIds", in, out, opts...)
  2915. if err != nil {
  2916. return nil, err
  2917. }
  2918. return out, nil
  2919. }
  2920. // FirestoreServer is the server API for Firestore service.
  2921. type FirestoreServer interface {
  2922. // Gets a single document.
  2923. GetDocument(context.Context, *GetDocumentRequest) (*Document, error)
  2924. // Lists documents.
  2925. ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
  2926. // Creates a new document.
  2927. CreateDocument(context.Context, *CreateDocumentRequest) (*Document, error)
  2928. // Updates or inserts a document.
  2929. UpdateDocument(context.Context, *UpdateDocumentRequest) (*Document, error)
  2930. // Deletes a document.
  2931. DeleteDocument(context.Context, *DeleteDocumentRequest) (*empty.Empty, error)
  2932. // Gets multiple documents.
  2933. //
  2934. // Documents returned by this method are not guaranteed to be returned in the
  2935. // same order that they were requested.
  2936. BatchGetDocuments(*BatchGetDocumentsRequest, Firestore_BatchGetDocumentsServer) error
  2937. // Starts a new transaction.
  2938. BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error)
  2939. // Commits a transaction, while optionally updating documents.
  2940. Commit(context.Context, *CommitRequest) (*CommitResponse, error)
  2941. // Rolls back a transaction.
  2942. Rollback(context.Context, *RollbackRequest) (*empty.Empty, error)
  2943. // Runs a query.
  2944. RunQuery(*RunQueryRequest, Firestore_RunQueryServer) error
  2945. // Streams batches of document updates and deletes, in order.
  2946. Write(Firestore_WriteServer) error
  2947. // Listens to changes.
  2948. Listen(Firestore_ListenServer) error
  2949. // Lists all the collection IDs underneath a document.
  2950. ListCollectionIds(context.Context, *ListCollectionIdsRequest) (*ListCollectionIdsResponse, error)
  2951. }
  2952. func RegisterFirestoreServer(s *grpc.Server, srv FirestoreServer) {
  2953. s.RegisterService(&_Firestore_serviceDesc, srv)
  2954. }
  2955. func _Firestore_GetDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2956. in := new(GetDocumentRequest)
  2957. if err := dec(in); err != nil {
  2958. return nil, err
  2959. }
  2960. if interceptor == nil {
  2961. return srv.(FirestoreServer).GetDocument(ctx, in)
  2962. }
  2963. info := &grpc.UnaryServerInfo{
  2964. Server: srv,
  2965. FullMethod: "/google.firestore.v1beta1.Firestore/GetDocument",
  2966. }
  2967. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2968. return srv.(FirestoreServer).GetDocument(ctx, req.(*GetDocumentRequest))
  2969. }
  2970. return interceptor(ctx, in, info, handler)
  2971. }
  2972. func _Firestore_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2973. in := new(ListDocumentsRequest)
  2974. if err := dec(in); err != nil {
  2975. return nil, err
  2976. }
  2977. if interceptor == nil {
  2978. return srv.(FirestoreServer).ListDocuments(ctx, in)
  2979. }
  2980. info := &grpc.UnaryServerInfo{
  2981. Server: srv,
  2982. FullMethod: "/google.firestore.v1beta1.Firestore/ListDocuments",
  2983. }
  2984. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2985. return srv.(FirestoreServer).ListDocuments(ctx, req.(*ListDocumentsRequest))
  2986. }
  2987. return interceptor(ctx, in, info, handler)
  2988. }
  2989. func _Firestore_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2990. in := new(CreateDocumentRequest)
  2991. if err := dec(in); err != nil {
  2992. return nil, err
  2993. }
  2994. if interceptor == nil {
  2995. return srv.(FirestoreServer).CreateDocument(ctx, in)
  2996. }
  2997. info := &grpc.UnaryServerInfo{
  2998. Server: srv,
  2999. FullMethod: "/google.firestore.v1beta1.Firestore/CreateDocument",
  3000. }
  3001. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3002. return srv.(FirestoreServer).CreateDocument(ctx, req.(*CreateDocumentRequest))
  3003. }
  3004. return interceptor(ctx, in, info, handler)
  3005. }
  3006. func _Firestore_UpdateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3007. in := new(UpdateDocumentRequest)
  3008. if err := dec(in); err != nil {
  3009. return nil, err
  3010. }
  3011. if interceptor == nil {
  3012. return srv.(FirestoreServer).UpdateDocument(ctx, in)
  3013. }
  3014. info := &grpc.UnaryServerInfo{
  3015. Server: srv,
  3016. FullMethod: "/google.firestore.v1beta1.Firestore/UpdateDocument",
  3017. }
  3018. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3019. return srv.(FirestoreServer).UpdateDocument(ctx, req.(*UpdateDocumentRequest))
  3020. }
  3021. return interceptor(ctx, in, info, handler)
  3022. }
  3023. func _Firestore_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3024. in := new(DeleteDocumentRequest)
  3025. if err := dec(in); err != nil {
  3026. return nil, err
  3027. }
  3028. if interceptor == nil {
  3029. return srv.(FirestoreServer).DeleteDocument(ctx, in)
  3030. }
  3031. info := &grpc.UnaryServerInfo{
  3032. Server: srv,
  3033. FullMethod: "/google.firestore.v1beta1.Firestore/DeleteDocument",
  3034. }
  3035. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3036. return srv.(FirestoreServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest))
  3037. }
  3038. return interceptor(ctx, in, info, handler)
  3039. }
  3040. func _Firestore_BatchGetDocuments_Handler(srv interface{}, stream grpc.ServerStream) error {
  3041. m := new(BatchGetDocumentsRequest)
  3042. if err := stream.RecvMsg(m); err != nil {
  3043. return err
  3044. }
  3045. return srv.(FirestoreServer).BatchGetDocuments(m, &firestoreBatchGetDocumentsServer{stream})
  3046. }
  3047. type Firestore_BatchGetDocumentsServer interface {
  3048. Send(*BatchGetDocumentsResponse) error
  3049. grpc.ServerStream
  3050. }
  3051. type firestoreBatchGetDocumentsServer struct {
  3052. grpc.ServerStream
  3053. }
  3054. func (x *firestoreBatchGetDocumentsServer) Send(m *BatchGetDocumentsResponse) error {
  3055. return x.ServerStream.SendMsg(m)
  3056. }
  3057. func _Firestore_BeginTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3058. in := new(BeginTransactionRequest)
  3059. if err := dec(in); err != nil {
  3060. return nil, err
  3061. }
  3062. if interceptor == nil {
  3063. return srv.(FirestoreServer).BeginTransaction(ctx, in)
  3064. }
  3065. info := &grpc.UnaryServerInfo{
  3066. Server: srv,
  3067. FullMethod: "/google.firestore.v1beta1.Firestore/BeginTransaction",
  3068. }
  3069. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3070. return srv.(FirestoreServer).BeginTransaction(ctx, req.(*BeginTransactionRequest))
  3071. }
  3072. return interceptor(ctx, in, info, handler)
  3073. }
  3074. func _Firestore_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3075. in := new(CommitRequest)
  3076. if err := dec(in); err != nil {
  3077. return nil, err
  3078. }
  3079. if interceptor == nil {
  3080. return srv.(FirestoreServer).Commit(ctx, in)
  3081. }
  3082. info := &grpc.UnaryServerInfo{
  3083. Server: srv,
  3084. FullMethod: "/google.firestore.v1beta1.Firestore/Commit",
  3085. }
  3086. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3087. return srv.(FirestoreServer).Commit(ctx, req.(*CommitRequest))
  3088. }
  3089. return interceptor(ctx, in, info, handler)
  3090. }
  3091. func _Firestore_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3092. in := new(RollbackRequest)
  3093. if err := dec(in); err != nil {
  3094. return nil, err
  3095. }
  3096. if interceptor == nil {
  3097. return srv.(FirestoreServer).Rollback(ctx, in)
  3098. }
  3099. info := &grpc.UnaryServerInfo{
  3100. Server: srv,
  3101. FullMethod: "/google.firestore.v1beta1.Firestore/Rollback",
  3102. }
  3103. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3104. return srv.(FirestoreServer).Rollback(ctx, req.(*RollbackRequest))
  3105. }
  3106. return interceptor(ctx, in, info, handler)
  3107. }
  3108. func _Firestore_RunQuery_Handler(srv interface{}, stream grpc.ServerStream) error {
  3109. m := new(RunQueryRequest)
  3110. if err := stream.RecvMsg(m); err != nil {
  3111. return err
  3112. }
  3113. return srv.(FirestoreServer).RunQuery(m, &firestoreRunQueryServer{stream})
  3114. }
  3115. type Firestore_RunQueryServer interface {
  3116. Send(*RunQueryResponse) error
  3117. grpc.ServerStream
  3118. }
  3119. type firestoreRunQueryServer struct {
  3120. grpc.ServerStream
  3121. }
  3122. func (x *firestoreRunQueryServer) Send(m *RunQueryResponse) error {
  3123. return x.ServerStream.SendMsg(m)
  3124. }
  3125. func _Firestore_Write_Handler(srv interface{}, stream grpc.ServerStream) error {
  3126. return srv.(FirestoreServer).Write(&firestoreWriteServer{stream})
  3127. }
  3128. type Firestore_WriteServer interface {
  3129. Send(*WriteResponse) error
  3130. Recv() (*WriteRequest, error)
  3131. grpc.ServerStream
  3132. }
  3133. type firestoreWriteServer struct {
  3134. grpc.ServerStream
  3135. }
  3136. func (x *firestoreWriteServer) Send(m *WriteResponse) error {
  3137. return x.ServerStream.SendMsg(m)
  3138. }
  3139. func (x *firestoreWriteServer) Recv() (*WriteRequest, error) {
  3140. m := new(WriteRequest)
  3141. if err := x.ServerStream.RecvMsg(m); err != nil {
  3142. return nil, err
  3143. }
  3144. return m, nil
  3145. }
  3146. func _Firestore_Listen_Handler(srv interface{}, stream grpc.ServerStream) error {
  3147. return srv.(FirestoreServer).Listen(&firestoreListenServer{stream})
  3148. }
  3149. type Firestore_ListenServer interface {
  3150. Send(*ListenResponse) error
  3151. Recv() (*ListenRequest, error)
  3152. grpc.ServerStream
  3153. }
  3154. type firestoreListenServer struct {
  3155. grpc.ServerStream
  3156. }
  3157. func (x *firestoreListenServer) Send(m *ListenResponse) error {
  3158. return x.ServerStream.SendMsg(m)
  3159. }
  3160. func (x *firestoreListenServer) Recv() (*ListenRequest, error) {
  3161. m := new(ListenRequest)
  3162. if err := x.ServerStream.RecvMsg(m); err != nil {
  3163. return nil, err
  3164. }
  3165. return m, nil
  3166. }
  3167. func _Firestore_ListCollectionIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3168. in := new(ListCollectionIdsRequest)
  3169. if err := dec(in); err != nil {
  3170. return nil, err
  3171. }
  3172. if interceptor == nil {
  3173. return srv.(FirestoreServer).ListCollectionIds(ctx, in)
  3174. }
  3175. info := &grpc.UnaryServerInfo{
  3176. Server: srv,
  3177. FullMethod: "/google.firestore.v1beta1.Firestore/ListCollectionIds",
  3178. }
  3179. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3180. return srv.(FirestoreServer).ListCollectionIds(ctx, req.(*ListCollectionIdsRequest))
  3181. }
  3182. return interceptor(ctx, in, info, handler)
  3183. }
  3184. var _Firestore_serviceDesc = grpc.ServiceDesc{
  3185. ServiceName: "google.firestore.v1beta1.Firestore",
  3186. HandlerType: (*FirestoreServer)(nil),
  3187. Methods: []grpc.MethodDesc{
  3188. {
  3189. MethodName: "GetDocument",
  3190. Handler: _Firestore_GetDocument_Handler,
  3191. },
  3192. {
  3193. MethodName: "ListDocuments",
  3194. Handler: _Firestore_ListDocuments_Handler,
  3195. },
  3196. {
  3197. MethodName: "CreateDocument",
  3198. Handler: _Firestore_CreateDocument_Handler,
  3199. },
  3200. {
  3201. MethodName: "UpdateDocument",
  3202. Handler: _Firestore_UpdateDocument_Handler,
  3203. },
  3204. {
  3205. MethodName: "DeleteDocument",
  3206. Handler: _Firestore_DeleteDocument_Handler,
  3207. },
  3208. {
  3209. MethodName: "BeginTransaction",
  3210. Handler: _Firestore_BeginTransaction_Handler,
  3211. },
  3212. {
  3213. MethodName: "Commit",
  3214. Handler: _Firestore_Commit_Handler,
  3215. },
  3216. {
  3217. MethodName: "Rollback",
  3218. Handler: _Firestore_Rollback_Handler,
  3219. },
  3220. {
  3221. MethodName: "ListCollectionIds",
  3222. Handler: _Firestore_ListCollectionIds_Handler,
  3223. },
  3224. },
  3225. Streams: []grpc.StreamDesc{
  3226. {
  3227. StreamName: "BatchGetDocuments",
  3228. Handler: _Firestore_BatchGetDocuments_Handler,
  3229. ServerStreams: true,
  3230. },
  3231. {
  3232. StreamName: "RunQuery",
  3233. Handler: _Firestore_RunQuery_Handler,
  3234. ServerStreams: true,
  3235. },
  3236. {
  3237. StreamName: "Write",
  3238. Handler: _Firestore_Write_Handler,
  3239. ServerStreams: true,
  3240. ClientStreams: true,
  3241. },
  3242. {
  3243. StreamName: "Listen",
  3244. Handler: _Firestore_Listen_Handler,
  3245. ServerStreams: true,
  3246. ClientStreams: true,
  3247. },
  3248. },
  3249. Metadata: "google/firestore/v1beta1/firestore.proto",
  3250. }
  3251. func init() {
  3252. proto.RegisterFile("google/firestore/v1beta1/firestore.proto", fileDescriptor_firestore_4d274d4ffc7f75e9)
  3253. }
  3254. var fileDescriptor_firestore_4d274d4ffc7f75e9 = []byte{
  3255. // 2214 bytes of a gzipped FileDescriptorProto
  3256. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcd, 0x8f, 0x1b, 0x49,
  3257. 0x15, 0x77, 0xb5, 0x3f, 0xc6, 0x7e, 0xfe, 0x18, 0x6f, 0x91, 0x64, 0x1d, 0x27, 0x4b, 0x86, 0x5e,
  3258. 0x92, 0x18, 0x6b, 0x65, 0x27, 0x13, 0xa1, 0xb0, 0x0e, 0x59, 0x92, 0x99, 0xf1, 0x8c, 0x27, 0x24,
  3259. 0x33, 0x93, 0x9e, 0xd9, 0x44, 0x5a, 0x45, 0xb2, 0x7a, 0xba, 0x2b, 0x4e, 0xef, 0xd8, 0xdd, 0xde,
  3260. 0xee, 0x76, 0x66, 0x67, 0x57, 0x83, 0x80, 0x03, 0x1c, 0x90, 0xf6, 0xc2, 0x01, 0xf6, 0x02, 0x08,
  3261. 0x0e, 0x48, 0x7b, 0x80, 0x0b, 0x12, 0x17, 0x84, 0xc4, 0x6d, 0x05, 0x47, 0x24, 0x84, 0xc4, 0x01,
  3262. 0x0e, 0x9c, 0xb8, 0x21, 0xf1, 0x07, 0xa0, 0xae, 0xaa, 0x6e, 0x77, 0xb7, 0xbf, 0xda, 0x9e, 0x68,
  3263. 0x6f, 0x5d, 0xcf, 0xaf, 0x5e, 0xbd, 0x8f, 0xdf, 0x7b, 0xf5, 0xea, 0xcd, 0x40, 0xa5, 0x63, 0x18,
  3264. 0x9d, 0x2e, 0xa9, 0x3f, 0xd7, 0x4c, 0x62, 0xd9, 0x86, 0x49, 0xea, 0x2f, 0x6f, 0x1e, 0x12, 0x5b,
  3265. 0xbe, 0x39, 0xa4, 0xd4, 0xfa, 0xa6, 0x61, 0x1b, 0xb8, 0xc4, 0x38, 0x6b, 0x43, 0x3a, 0xe7, 0x2c,
  3266. 0x5f, 0xe6, 0x32, 0xe4, 0xbe, 0x56, 0x97, 0x75, 0xdd, 0xb0, 0x65, 0x5b, 0x33, 0x74, 0x8b, 0xed,
  3267. 0x2b, 0x5f, 0x9d, 0x78, 0x82, 0x62, 0xf4, 0x7a, 0x86, 0xce, 0xd9, 0xae, 0x4f, 0x64, 0x53, 0x0d,
  3268. 0x65, 0xd0, 0x23, 0xba, 0xcd, 0x19, 0xbf, 0x3a, 0x91, 0xf1, 0x83, 0x01, 0x31, 0x4f, 0x66, 0x72,
  3269. 0x1d, 0x9b, 0x9a, 0xcd, 0x6d, 0x2a, 0x5f, 0xe2, 0x5c, 0x74, 0x75, 0x38, 0x78, 0x5e, 0x27, 0xbd,
  3270. 0xbe, 0xed, 0x8a, 0xb8, 0x12, 0xfe, 0xd1, 0xd6, 0x7a, 0xc4, 0xb2, 0xe5, 0x5e, 0x9f, 0x33, 0xbc,
  3271. 0xce, 0x19, 0xcc, 0xbe, 0x52, 0xb7, 0x6c, 0xd9, 0x1e, 0x70, 0x93, 0xc5, 0x7f, 0x20, 0xc0, 0x5b,
  3272. 0xc4, 0xde, 0xe0, 0x8a, 0x4b, 0xe4, 0x83, 0x01, 0xb1, 0x6c, 0x8c, 0x21, 0xa1, 0xcb, 0x3d, 0x52,
  3273. 0x42, 0x2b, 0xa8, 0x92, 0x91, 0xe8, 0x37, 0x6e, 0x40, 0xa2, 0x27, 0x5b, 0x47, 0x25, 0x61, 0x05,
  3274. 0x55, 0xb2, 0xab, 0xd7, 0x6a, 0x93, 0x9c, 0x5c, 0x73, 0x85, 0x3d, 0x92, 0xad, 0x23, 0x89, 0xee,
  3275. 0xc1, 0x22, 0x64, 0x6d, 0x53, 0xd6, 0x2d, 0x59, 0x71, 0xfc, 0x5d, 0x8a, 0xaf, 0xa0, 0x4a, 0xae,
  3276. 0x15, 0x93, 0xfc, 0x44, 0xfc, 0x36, 0x64, 0x4c, 0x22, 0xab, 0x6d, 0x47, 0xf7, 0x52, 0x92, 0x1e,
  3277. 0x52, 0x76, 0x0f, 0x71, 0x0d, 0xab, 0x1d, 0xb8, 0x86, 0xb5, 0x62, 0x52, 0xda, 0x61, 0x77, 0x08,
  3278. 0x6b, 0x17, 0xe0, 0x9c, 0x62, 0xe8, 0x96, 0x66, 0xd9, 0x44, 0x57, 0x4e, 0xda, 0x16, 0xe9, 0x12,
  3279. 0xc5, 0x36, 0x4c, 0xf1, 0xbb, 0x71, 0x38, 0xf7, 0x50, 0xb3, 0x3c, 0xf3, 0x2c, 0xd7, 0xbe, 0x0b,
  3280. 0x90, 0xea, 0xcb, 0x26, 0xd1, 0x6d, 0x6e, 0x21, 0x5f, 0xe1, 0x37, 0x21, 0xaf, 0x18, 0x5d, 0x67,
  3281. 0xb7, 0x66, 0xe8, 0x6d, 0x4d, 0xa5, 0xc6, 0x66, 0xa4, 0xdc, 0x90, 0xb8, 0xad, 0xe2, 0x4b, 0x90,
  3282. 0xe9, 0xcb, 0x1d, 0xd2, 0xb6, 0xb4, 0x8f, 0x08, 0x35, 0x25, 0x29, 0xa5, 0x1d, 0xc2, 0xbe, 0xf6,
  3283. 0x11, 0xc1, 0x6f, 0x00, 0xd0, 0x1f, 0x6d, 0xe3, 0x88, 0xe8, 0xa5, 0x04, 0xdd, 0x4e, 0xd9, 0x0f,
  3284. 0x1c, 0x02, 0xbe, 0x08, 0x69, 0xc3, 0x54, 0x89, 0xd9, 0x3e, 0x3c, 0x29, 0xa5, 0xe8, 0x8f, 0x4b,
  3285. 0x74, 0xbd, 0x76, 0xe2, 0xf9, 0x77, 0xe9, 0xec, 0xfe, 0x4d, 0xcf, 0xf4, 0x2f, 0xcc, 0xe3, 0x5f,
  3286. 0xfc, 0x15, 0xc8, 0x59, 0x2f, 0x8c, 0xe3, 0x76, 0x4f, 0xb3, 0x2c, 0x4d, 0xef, 0x94, 0x72, 0x2b,
  3287. 0xa8, 0x92, 0x96, 0xb2, 0x0e, 0xed, 0x11, 0x23, 0x4d, 0x0c, 0xc1, 0xf7, 0x10, 0x9c, 0x0f, 0x85,
  3288. 0xc0, 0xea, 0x1b, 0xba, 0x45, 0xf0, 0x3d, 0xc8, 0xb8, 0xf9, 0x62, 0x95, 0xd0, 0x4a, 0xbc, 0x92,
  3289. 0x5d, 0x15, 0x67, 0x1b, 0x2d, 0x0d, 0x37, 0xe1, 0x6b, 0xb0, 0xac, 0x93, 0x0f, 0xed, 0xb6, 0xcf,
  3290. 0xe1, 0x2c, 0x5e, 0x79, 0x87, 0xbc, 0xe7, 0x3a, 0x5d, 0xfc, 0x2f, 0x82, 0xf3, 0xeb, 0x26, 0x91,
  3291. 0x6d, 0x12, 0xc6, 0xf9, 0x99, 0x70, 0x70, 0x05, 0xb2, 0xae, 0x2e, 0x0e, 0x4b, 0x9c, 0xb2, 0x80,
  3292. 0x4b, 0xda, 0x56, 0xf1, 0x3b, 0x90, 0x76, 0x57, 0x14, 0x09, 0xd1, 0x0c, 0xf4, 0xf6, 0x78, 0x88,
  3293. 0x48, 0xce, 0x8f, 0x08, 0xf1, 0xb7, 0x02, 0x9c, 0x7f, 0xb7, 0xaf, 0x8e, 0xb1, 0xd9, 0xaf, 0x15,
  3294. 0x5a, 0x40, 0xab, 0x2d, 0xc8, 0x0e, 0xa8, 0xe0, 0xf6, 0x02, 0xe5, 0x00, 0xd8, 0x56, 0xe7, 0xdb,
  3295. 0x33, 0x2f, 0xbe, 0x00, 0xe0, 0x1f, 0x43, 0x51, 0x19, 0x98, 0x4e, 0xac, 0xda, 0x21, 0x17, 0x4f,
  3296. 0x91, 0xb3, 0x67, 0x12, 0xc5, 0xd0, 0x55, 0xcd, 0x89, 0x9f, 0xb4, 0xcc, 0xf7, 0xbb, 0xc2, 0xc5,
  3297. 0xef, 0xc0, 0xf9, 0x0d, 0xd2, 0x25, 0xa3, 0x0e, 0x1b, 0x57, 0x0c, 0xc7, 0x9d, 0x2f, 0x9c, 0xed,
  3298. 0xfc, 0x7f, 0x09, 0x50, 0x5a, 0x93, 0x6d, 0xe5, 0x85, 0xaf, 0x1e, 0x7b, 0x05, 0xab, 0x0c, 0x69,
  3299. 0x55, 0xb6, 0xe5, 0x43, 0xd9, 0x72, 0xf5, 0xf0, 0xd6, 0xf8, 0xb2, 0x3f, 0x91, 0x84, 0x95, 0xb8,
  3300. 0x53, 0x71, 0x86, 0x49, 0x72, 0x16, 0x2f, 0x87, 0xca, 0x4a, 0x62, 0x5c, 0x59, 0x79, 0xea, 0x24,
  3301. 0xe1, 0x71, 0xdb, 0xcf, 0xc7, 0xf0, 0xfa, 0xd6, 0xe4, 0xa3, 0x0e, 0x86, 0xcc, 0xbb, 0x7d, 0x7a,
  3302. 0x03, 0xb7, 0x62, 0x52, 0x41, 0x27, 0xc7, 0x07, 0x93, 0xea, 0xd5, 0xd2, 0x2b, 0xb9, 0x0f, 0xfe,
  3303. 0x8e, 0xe0, 0xe2, 0x18, 0x17, 0xf3, 0x82, 0xd4, 0x80, 0xe4, 0x73, 0x63, 0xa0, 0xab, 0xd1, 0xb3,
  3304. 0xa2, 0x15, 0x93, 0xd8, 0x16, 0x5c, 0x86, 0x25, 0xb7, 0x38, 0xd2, 0x52, 0xd1, 0x8a, 0x49, 0x2e,
  3305. 0x01, 0xaf, 0x8c, 0xb9, 0xfc, 0x82, 0x3e, 0xbc, 0xed, 0x37, 0x35, 0x31, 0xcb, 0x54, 0x9f, 0xa1,
  3306. 0x69, 0x48, 0x99, 0xc4, 0x1a, 0x74, 0x6d, 0xf1, 0x14, 0x5e, 0x5f, 0x23, 0x1d, 0x4d, 0xf7, 0x79,
  3307. 0x30, 0x0a, 0x76, 0x36, 0x61, 0xc9, 0x60, 0x11, 0xe0, 0xf0, 0x9d, 0x2b, 0x6a, 0x92, 0xbb, 0x59,
  3308. 0xfc, 0x26, 0x94, 0x46, 0x8f, 0xe7, 0x7e, 0x0d, 0xd9, 0x8f, 0x46, 0xec, 0x17, 0x7f, 0x80, 0x20,
  3309. 0xbf, 0x6e, 0xf4, 0x7a, 0x9a, 0x1d, 0x45, 0xe7, 0xdb, 0x90, 0xa2, 0x9d, 0x11, 0x03, 0x7b, 0x76,
  3310. 0xf5, 0xca, 0x64, 0x95, 0x9f, 0x3a, 0x7c, 0x12, 0x67, 0x9f, 0x1d, 0x08, 0xf1, 0x53, 0x04, 0x05,
  3311. 0x57, 0x11, 0xae, 0xfd, 0x03, 0xc8, 0xd3, 0xed, 0x6d, 0xe6, 0x68, 0xf7, 0xaa, 0xba, 0x3a, 0xeb,
  3312. 0x50, 0xca, 0x2d, 0xe5, 0x8e, 0x87, 0x0b, 0x0b, 0xdf, 0x81, 0xac, 0x42, 0xa5, 0xb3, 0x48, 0x0b,
  3313. 0x33, 0x23, 0x0d, 0x8c, 0xdd, 0x21, 0x88, 0xbb, 0xb0, 0x2c, 0x19, 0xdd, 0xee, 0xa1, 0xac, 0x1c,
  3314. 0x45, 0xf1, 0x52, 0xc8, 0x58, 0x61, 0xd4, 0xd8, 0x7f, 0x0a, 0xb0, 0x2c, 0x0d, 0xf4, 0xc7, 0x4e,
  3315. 0x2f, 0x3a, 0xeb, 0x42, 0x7c, 0x02, 0x45, 0xcb, 0x36, 0x07, 0x8a, 0x3d, 0x30, 0x89, 0xda, 0xa6,
  3316. 0xed, 0x2b, 0x57, 0xff, 0x6b, 0x93, 0x1d, 0xb1, 0xef, 0xed, 0xa0, 0x67, 0xb4, 0x62, 0xd2, 0xb2,
  3317. 0x15, 0x24, 0x85, 0x2b, 0x4c, 0x92, 0x56, 0x18, 0x34, 0xb3, 0xc2, 0xa4, 0x16, 0xa8, 0x30, 0xe8,
  3318. 0xac, 0x15, 0x06, 0xf9, 0x12, 0x2f, 0x07, 0x40, 0x9d, 0xd0, 0xb6, 0x4f, 0xfa, 0x93, 0xeb, 0xcd,
  3319. 0xdf, 0x10, 0x14, 0x87, 0x1e, 0x1e, 0x9f, 0x0e, 0xa3, 0x81, 0x39, 0xf3, 0x0d, 0x1d, 0x28, 0x27,
  3320. 0xf1, 0xe8, 0xe5, 0x04, 0x5f, 0x87, 0x65, 0xeb, 0x48, 0xeb, 0xf7, 0x89, 0xea, 0xa1, 0x3d, 0x41,
  3321. 0xfb, 0xdb, 0x02, 0x27, 0x73, 0x20, 0x8b, 0x9f, 0x09, 0x90, 0xe3, 0x30, 0x9f, 0x8d, 0xc4, 0x4b,
  3322. 0x90, 0xb1, 0x6c, 0x93, 0xc8, 0xbd, 0x61, 0x23, 0x95, 0x66, 0x84, 0x6d, 0xd5, 0x97, 0xcc, 0xf1,
  3323. 0xf9, 0x92, 0xd9, 0xe9, 0x49, 0x99, 0xd4, 0x61, 0xab, 0x9d, 0x93, 0xb2, 0x8c, 0xc6, 0x9a, 0xed,
  3324. 0x07, 0x90, 0xea, 0xca, 0x87, 0xa4, 0x6b, 0x95, 0x92, 0x54, 0xf6, 0xea, 0xcc, 0x9c, 0xa5, 0xc6,
  3325. 0xd4, 0x1e, 0xd2, 0x4d, 0x4d, 0xdd, 0x36, 0x4f, 0x24, 0x2e, 0xa1, 0xfc, 0x36, 0x64, 0x7d, 0x64,
  3326. 0x5c, 0x84, 0xf8, 0x11, 0x39, 0xe1, 0xa6, 0x3a, 0x9f, 0xf8, 0x1c, 0x24, 0x5f, 0xca, 0xdd, 0x01,
  3327. 0xe1, 0x16, 0xb2, 0x45, 0x43, 0xf8, 0x06, 0x72, 0x6e, 0x9d, 0xbc, 0x5b, 0x13, 0x18, 0x04, 0x02,
  3328. 0x1e, 0x41, 0x21, 0x8f, 0x84, 0x0d, 0x13, 0xc6, 0x19, 0x16, 0xaa, 0x49, 0xf1, 0x57, 0x56, 0x93,
  3329. 0x12, 0x73, 0xd5, 0xa4, 0xdf, 0x08, 0x90, 0x7f, 0x48, 0x61, 0x1f, 0x05, 0x08, 0xf7, 0x01, 0x64,
  3330. 0x55, 0x6d, 0xdb, 0xb2, 0xd9, 0x21, 0x6e, 0xbb, 0xb4, 0x32, 0x25, 0x87, 0x29, 0x5f, 0x2b, 0x26,
  3331. 0x65, 0x64, 0x55, 0x65, 0x0b, 0x7c, 0x15, 0xf2, 0x26, 0xe9, 0x19, 0x2f, 0x89, 0x2b, 0x85, 0xbe,
  3332. 0xbf, 0x5a, 0x31, 0x29, 0xc7, 0xc8, 0x9c, 0xed, 0xdb, 0x5e, 0xe4, 0x13, 0xd4, 0x33, 0xb7, 0x26,
  3333. 0x9f, 0x12, 0x50, 0xff, 0x15, 0x87, 0x7e, 0x6d, 0x19, 0xf2, 0x4c, 0xcf, 0xb6, 0xf2, 0x42, 0xd6,
  3334. 0x3b, 0x44, 0xfc, 0x5d, 0x1c, 0x0a, 0xee, 0x89, 0x1c, 0x0c, 0x8f, 0x42, 0x3c, 0xb3, 0xfb, 0x48,
  3335. 0x66, 0xe4, 0x3a, 0xe5, 0x76, 0x4c, 0xb7, 0x7d, 0x6b, 0xbc, 0x0f, 0xcb, 0xde, 0xab, 0x84, 0x0b,
  3336. 0x64, 0x25, 0xa0, 0x32, 0xbb, 0x86, 0x78, 0x22, 0x0b, 0x6a, 0x80, 0x12, 0x10, 0xaa, 0xd2, 0x26,
  3337. 0x99, 0x03, 0x25, 0x82, 0x50, 0xd6, 0x54, 0xfb, 0x85, 0x32, 0x4a, 0x40, 0x28, 0x8b, 0x1e, 0xaf,
  3338. 0xeb, 0x11, 0x84, 0x4a, 0x94, 0xdf, 0x2f, 0x94, 0x51, 0xf0, 0x3a, 0xa4, 0x9e, 0x6b, 0x5d, 0x9b,
  3339. 0x98, 0xbc, 0x0b, 0x9d, 0x72, 0x3d, 0x35, 0x3f, 0x64, 0x05, 0x9b, 0x6c, 0xd2, 0x0d, 0xad, 0x98,
  3340. 0xc4, 0xb7, 0x3a, 0x61, 0x33, 0x79, 0x78, 0x68, 0x81, 0x17, 0x3f, 0x49, 0x40, 0x8a, 0x43, 0x6b,
  3341. 0x03, 0x92, 0xfe, 0xeb, 0xef, 0xad, 0x59, 0x61, 0xaa, 0xd1, 0xea, 0xef, 0x61, 0x99, 0x6d, 0xc6,
  3342. 0x7b, 0xfe, 0x9e, 0x9d, 0xc5, 0xe7, 0xc6, 0x4c, 0x49, 0x5e, 0xcb, 0x3a, 0xcc, 0x8c, 0x61, 0x9f,
  3343. 0xff, 0x26, 0xe4, 0x9c, 0x6a, 0xd0, 0xf3, 0x8f, 0x1e, 0xe8, 0x55, 0xca, 0xa8, 0xac, 0x70, 0x04,
  3344. 0x6e, 0xbc, 0xec, 0x3c, 0x37, 0x9e, 0x53, 0xb3, 0x38, 0x4c, 0x35, 0x95, 0xfa, 0x36, 0x29, 0xa5,
  3345. 0x19, 0x61, 0x5b, 0x75, 0x9e, 0x48, 0x86, 0xae, 0xb0, 0xf8, 0xa5, 0x25, 0xfa, 0x5d, 0xae, 0xc3,
  3346. 0x72, 0x48, 0xe1, 0xe9, 0x2f, 0x95, 0xf2, 0x8f, 0x10, 0x64, 0x7d, 0xce, 0xfa, 0xa2, 0x7b, 0x91,
  3347. 0xd0, 0x9d, 0x9e, 0x87, 0x2c, 0xb7, 0xd7, 0x5d, 0xba, 0xee, 0x75, 0x00, 0xf1, 0x1f, 0x01, 0x72,
  3348. 0xfe, 0x34, 0xc4, 0x04, 0x70, 0x20, 0x8b, 0x29, 0x1b, 0x55, 0xbc, 0xb0, 0x7a, 0x3b, 0x5a, 0x2a,
  3349. 0x07, 0x16, 0x07, 0x27, 0x7d, 0x22, 0x15, 0xed, 0x10, 0x05, 0xbf, 0x01, 0xe0, 0x45, 0x81, 0xb9,
  3350. 0x30, 0x29, 0x65, 0xdc, 0x30, 0x58, 0xb8, 0x02, 0x49, 0x45, 0x1e, 0x58, 0x6e, 0xca, 0x63, 0xf7,
  3351. 0x60, 0xb3, 0xaf, 0xd4, 0xf6, 0xe9, 0xdc, 0x4f, 0x62, 0x0c, 0xce, 0x2d, 0x33, 0x0a, 0x97, 0x20,
  3352. 0x58, 0x02, 0x6d, 0x44, 0x2a, 0x7a, 0x1b, 0x21, 0xee, 0x40, 0x31, 0x6c, 0x0a, 0xce, 0x43, 0x66,
  3353. 0x67, 0xb7, 0xbd, 0xde, 0xba, 0xbf, 0xb3, 0xd5, 0x2c, 0xc6, 0xf0, 0x12, 0xc4, 0xef, 0x6f, 0x6c,
  3354. 0x14, 0x11, 0x06, 0x48, 0x49, 0xcd, 0x47, 0xbb, 0x4f, 0x9a, 0x45, 0x01, 0x67, 0x61, 0x69, 0xfd,
  3355. 0x5d, 0x49, 0x6a, 0xee, 0x1c, 0x14, 0xe3, 0x38, 0x03, 0x49, 0xa9, 0xb9, 0xdf, 0x3c, 0x28, 0x26,
  3356. 0x44, 0x1d, 0x4a, 0x4e, 0xcd, 0x5c, 0xf7, 0x0d, 0x5f, 0x66, 0x4e, 0xf2, 0x02, 0x43, 0x3a, 0x61,
  3357. 0xea, 0x90, 0x2e, 0x1e, 0x1a, 0xd2, 0x89, 0xef, 0xc3, 0xc5, 0x31, 0xe7, 0xf1, 0x72, 0x7d, 0x15,
  3358. 0x0a, 0x81, 0xd1, 0x10, 0x7b, 0x10, 0x64, 0xa4, 0xbc, 0x7f, 0x36, 0x14, 0x79, 0x36, 0xb5, 0xfa,
  3359. 0xf9, 0x97, 0x20, 0xb3, 0xe9, 0xc2, 0x02, 0xff, 0x0c, 0x41, 0xd6, 0xf7, 0x36, 0xc5, 0x53, 0xaa,
  3360. 0xcb, 0xe8, 0xd4, 0xb6, 0x1c, 0xa1, 0x4b, 0x14, 0xef, 0x7e, 0xff, 0xaf, 0xff, 0xfe, 0xb1, 0x70,
  3361. 0x1b, 0x7f, 0xdd, 0x9b, 0x32, 0x7f, 0xac, 0xcb, 0x3d, 0x72, 0xb7, 0x6f, 0x1a, 0xef, 0x13, 0xc5,
  3362. 0xb6, 0xea, 0xd5, 0xba, 0x7b, 0x5f, 0xd3, 0x6f, 0x37, 0x3b, 0xeb, 0xd5, 0x7a, 0xb5, 0x7a, 0x8a,
  3363. 0xff, 0x84, 0xd8, 0x85, 0xef, 0x65, 0x36, 0xae, 0x4d, 0xbf, 0x5a, 0xc3, 0x93, 0x8c, 0x72, 0x3d,
  3364. 0x32, 0x3f, 0x73, 0xb8, 0xb8, 0x4b, 0x35, 0xde, 0xc6, 0x5b, 0x43, 0x8d, 0x59, 0x8c, 0x23, 0xea,
  3365. 0x5c, 0xff, 0x38, 0x10, 0xaf, 0x53, 0xfc, 0x47, 0xe7, 0x91, 0x17, 0x18, 0x07, 0xe2, 0x29, 0x4a,
  3366. 0x8d, 0x1d, 0x1c, 0x46, 0x72, 0xf5, 0x53, 0xaa, 0xf8, 0x63, 0xb1, 0xb9, 0x80, 0xe2, 0xa3, 0x6a,
  3367. 0x37, 0x86, 0xfd, 0xfd, 0xef, 0x11, 0x14, 0x82, 0xb3, 0xbd, 0x69, 0x06, 0x8c, 0x9d, 0x02, 0x46,
  3368. 0x32, 0x60, 0x8f, 0x1a, 0xf0, 0x60, 0xf5, 0x9d, 0xa1, 0x01, 0xde, 0x5f, 0x38, 0xe6, 0x00, 0x8d,
  3369. 0x4f, 0xf3, 0x9f, 0x22, 0x28, 0x04, 0x87, 0x6c, 0xd3, 0x34, 0x1f, 0x3b, 0x8e, 0x2b, 0x5f, 0x18,
  3370. 0xa9, 0x41, 0xcd, 0x5e, 0xdf, 0x3e, 0x71, 0x91, 0x5d, 0x5d, 0x10, 0xd9, 0x9f, 0x23, 0x78, 0x6d,
  3371. 0x64, 0x36, 0x84, 0xa7, 0x3c, 0x19, 0x26, 0xcd, 0xea, 0xca, 0xb7, 0xe6, 0xda, 0xc3, 0x51, 0xde,
  3372. 0xa2, 0xda, 0xaf, 0x89, 0x77, 0x7d, 0xbe, 0xe6, 0xda, 0x4e, 0xb0, 0xe0, 0x74, 0x68, 0x42, 0xe3,
  3373. 0x90, 0xcb, 0x6d, 0xa0, 0xea, 0x0d, 0x84, 0xff, 0x82, 0xa0, 0x18, 0x9e, 0xc6, 0xe0, 0x9b, 0x53,
  3374. 0xb4, 0x1a, 0x3f, 0x38, 0x2a, 0xaf, 0xce, 0xb3, 0x85, 0xdb, 0xc1, 0x31, 0xe3, 0x07, 0xfd, 0x3c,
  3375. 0x76, 0x84, 0xc4, 0x36, 0x50, 0x15, 0xff, 0x0a, 0x41, 0x8a, 0xcd, 0x64, 0xf0, 0xf5, 0x29, 0x69,
  3376. 0xea, 0x1f, 0x1f, 0x95, 0x2b, 0xb3, 0x19, 0xb9, 0xbe, 0x9b, 0x54, 0xdf, 0x7b, 0xe2, 0x9d, 0x85,
  3377. 0xf4, 0x65, 0x4f, 0x21, 0x47, 0xcb, 0x9f, 0x20, 0x48, 0xbb, 0xe3, 0x19, 0x3c, 0xa5, 0x0f, 0x09,
  3378. 0x8d, 0x70, 0x26, 0xa2, 0xf9, 0x6c, 0x78, 0x30, 0xf9, 0x29, 0x8e, 0x66, 0xff, 0x73, 0x34, 0xe3,
  3379. 0x43, 0x88, 0xa9, 0x9a, 0x05, 0x47, 0x41, 0xe5, 0x6a, 0x14, 0x56, 0xee, 0xc5, 0x4f, 0x10, 0x55,
  3380. 0xf7, 0x87, 0xc8, 0xef, 0xc7, 0x88, 0xc5, 0xee, 0xb4, 0x61, 0x72, 0x71, 0x0d, 0x54, 0x7d, 0xaf,
  3381. 0x29, 0xde, 0x5b, 0xb0, 0xce, 0xfb, 0xc5, 0xdc, 0x40, 0x0e, 0x6c, 0x92, 0xf4, 0xd5, 0x8b, 0xaf,
  3382. 0x45, 0x7b, 0xf6, 0x97, 0xaf, 0xcf, 0x7e, 0x3e, 0x33, 0x6b, 0x9b, 0xd4, 0xd8, 0x6f, 0x89, 0x8d,
  3383. 0x85, 0x62, 0x43, 0x5f, 0xdf, 0x0d, 0x54, 0xad, 0xa0, 0x1b, 0x08, 0xff, 0x1a, 0x41, 0x8a, 0xbd,
  3384. 0x07, 0xa7, 0x81, 0x3b, 0xf0, 0x46, 0x9d, 0x06, 0xee, 0xe0, 0xd3, 0xf2, 0x8c, 0xe0, 0xee, 0x52,
  3385. 0x61, 0xae, 0xa6, 0x3f, 0x17, 0xe0, 0xb5, 0x91, 0xae, 0x68, 0x5a, 0x7d, 0x9c, 0xd4, 0xb2, 0x95,
  3386. 0x6f, 0xcd, 0xb5, 0x87, 0x9b, 0xf2, 0x0b, 0x86, 0xb0, 0x4f, 0x91, 0xb8, 0xb1, 0x00, 0xc2, 0xba,
  3387. 0x61, 0xb9, 0x0e, 0xd4, 0x76, 0xc4, 0xed, 0x45, 0xa1, 0x36, 0x4e, 0xde, 0xda, 0x1f, 0x10, 0x5c,
  3388. 0x56, 0x8c, 0xde, 0x44, 0xeb, 0xd6, 0x0a, 0x5e, 0xa3, 0xb7, 0xe7, 0x24, 0xfb, 0x1e, 0x7a, 0xef,
  3389. 0x3e, 0xe7, 0xed, 0x18, 0x5d, 0x59, 0xef, 0xd4, 0x0c, 0xb3, 0x53, 0xef, 0x10, 0x9d, 0x96, 0x82,
  3390. 0x3a, 0xfb, 0x49, 0xee, 0x6b, 0xd6, 0xe8, 0xbf, 0x06, 0xdc, 0xf1, 0x28, 0xbf, 0x14, 0x12, 0x5b,
  3391. 0xeb, 0x9b, 0xfb, 0x9f, 0x09, 0x5f, 0xde, 0x62, 0xa2, 0xd6, 0xbb, 0xc6, 0x40, 0xad, 0x79, 0x27,
  3392. 0xd5, 0x9e, 0xdc, 0x5c, 0x73, 0x76, 0xfc, 0xd9, 0x65, 0x78, 0x46, 0x19, 0x9e, 0x79, 0x0c, 0xcf,
  3393. 0x9e, 0x30, 0x91, 0x87, 0x29, 0x7a, 0xec, 0xad, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x53, 0x38,
  3394. 0xf0, 0x00, 0x68, 0x21, 0x00, 0x00,
  3395. }