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.
 
 
 

1444 lines
46 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: test.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package tests is a generated protocol buffer package.
  6. It is generated from these files:
  7. test.proto
  8. It has these top-level messages:
  9. TestSuite
  10. Test
  11. GetTest
  12. CreateTest
  13. SetTest
  14. UpdateTest
  15. UpdatePathsTest
  16. DeleteTest
  17. SetOption
  18. QueryTest
  19. Clause
  20. Select
  21. Where
  22. OrderBy
  23. Cursor
  24. DocSnapshot
  25. FieldPath
  26. ListenTest
  27. Snapshot
  28. DocChange
  29. */
  30. package tests
  31. import proto "github.com/golang/protobuf/proto"
  32. import fmt "fmt"
  33. import math "math"
  34. import google_firestore_v1beta1 "google.golang.org/genproto/googleapis/firestore/v1beta1"
  35. import google_firestore_v1beta11 "google.golang.org/genproto/googleapis/firestore/v1beta1"
  36. import google_firestore_v1beta14 "google.golang.org/genproto/googleapis/firestore/v1beta1"
  37. import google_firestore_v1beta12 "google.golang.org/genproto/googleapis/firestore/v1beta1"
  38. import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
  39. // Reference imports to suppress errors if they are not otherwise used.
  40. var _ = proto.Marshal
  41. var _ = fmt.Errorf
  42. var _ = math.Inf
  43. // This is a compile-time assertion to ensure that this generated file
  44. // is compatible with the proto package it is being compiled against.
  45. // A compilation error at this line likely means your copy of the
  46. // proto package needs to be updated.
  47. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  48. type DocChange_Kind int32
  49. const (
  50. DocChange_KIND_UNSPECIFIED DocChange_Kind = 0
  51. DocChange_ADDED DocChange_Kind = 1
  52. DocChange_REMOVED DocChange_Kind = 2
  53. DocChange_MODIFIED DocChange_Kind = 3
  54. )
  55. var DocChange_Kind_name = map[int32]string{
  56. 0: "KIND_UNSPECIFIED",
  57. 1: "ADDED",
  58. 2: "REMOVED",
  59. 3: "MODIFIED",
  60. }
  61. var DocChange_Kind_value = map[string]int32{
  62. "KIND_UNSPECIFIED": 0,
  63. "ADDED": 1,
  64. "REMOVED": 2,
  65. "MODIFIED": 3,
  66. }
  67. func (x DocChange_Kind) String() string {
  68. return proto.EnumName(DocChange_Kind_name, int32(x))
  69. }
  70. func (DocChange_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{19, 0} }
  71. // A collection of tests.
  72. type TestSuite struct {
  73. Tests []*Test `protobuf:"bytes,1,rep,name=tests" json:"tests,omitempty"`
  74. }
  75. func (m *TestSuite) Reset() { *m = TestSuite{} }
  76. func (m *TestSuite) String() string { return proto.CompactTextString(m) }
  77. func (*TestSuite) ProtoMessage() {}
  78. func (*TestSuite) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  79. func (m *TestSuite) GetTests() []*Test {
  80. if m != nil {
  81. return m.Tests
  82. }
  83. return nil
  84. }
  85. // A Test describes a single client method call and its expected result.
  86. type Test struct {
  87. Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
  88. // Types that are valid to be assigned to Test:
  89. // *Test_Get
  90. // *Test_Create
  91. // *Test_Set
  92. // *Test_Update
  93. // *Test_UpdatePaths
  94. // *Test_Delete
  95. // *Test_Query
  96. // *Test_Listen
  97. Test isTest_Test `protobuf_oneof:"test"`
  98. }
  99. func (m *Test) Reset() { *m = Test{} }
  100. func (m *Test) String() string { return proto.CompactTextString(m) }
  101. func (*Test) ProtoMessage() {}
  102. func (*Test) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  103. type isTest_Test interface {
  104. isTest_Test()
  105. }
  106. type Test_Get struct {
  107. Get *GetTest `protobuf:"bytes,2,opt,name=get,oneof"`
  108. }
  109. type Test_Create struct {
  110. Create *CreateTest `protobuf:"bytes,3,opt,name=create,oneof"`
  111. }
  112. type Test_Set struct {
  113. Set *SetTest `protobuf:"bytes,4,opt,name=set,oneof"`
  114. }
  115. type Test_Update struct {
  116. Update *UpdateTest `protobuf:"bytes,5,opt,name=update,oneof"`
  117. }
  118. type Test_UpdatePaths struct {
  119. UpdatePaths *UpdatePathsTest `protobuf:"bytes,6,opt,name=update_paths,json=updatePaths,oneof"`
  120. }
  121. type Test_Delete struct {
  122. Delete *DeleteTest `protobuf:"bytes,7,opt,name=delete,oneof"`
  123. }
  124. type Test_Query struct {
  125. Query *QueryTest `protobuf:"bytes,8,opt,name=query,oneof"`
  126. }
  127. type Test_Listen struct {
  128. Listen *ListenTest `protobuf:"bytes,9,opt,name=listen,oneof"`
  129. }
  130. func (*Test_Get) isTest_Test() {}
  131. func (*Test_Create) isTest_Test() {}
  132. func (*Test_Set) isTest_Test() {}
  133. func (*Test_Update) isTest_Test() {}
  134. func (*Test_UpdatePaths) isTest_Test() {}
  135. func (*Test_Delete) isTest_Test() {}
  136. func (*Test_Query) isTest_Test() {}
  137. func (*Test_Listen) isTest_Test() {}
  138. func (m *Test) GetTest() isTest_Test {
  139. if m != nil {
  140. return m.Test
  141. }
  142. return nil
  143. }
  144. func (m *Test) GetDescription() string {
  145. if m != nil {
  146. return m.Description
  147. }
  148. return ""
  149. }
  150. func (m *Test) GetGet() *GetTest {
  151. if x, ok := m.GetTest().(*Test_Get); ok {
  152. return x.Get
  153. }
  154. return nil
  155. }
  156. func (m *Test) GetCreate() *CreateTest {
  157. if x, ok := m.GetTest().(*Test_Create); ok {
  158. return x.Create
  159. }
  160. return nil
  161. }
  162. func (m *Test) GetSet() *SetTest {
  163. if x, ok := m.GetTest().(*Test_Set); ok {
  164. return x.Set
  165. }
  166. return nil
  167. }
  168. func (m *Test) GetUpdate() *UpdateTest {
  169. if x, ok := m.GetTest().(*Test_Update); ok {
  170. return x.Update
  171. }
  172. return nil
  173. }
  174. func (m *Test) GetUpdatePaths() *UpdatePathsTest {
  175. if x, ok := m.GetTest().(*Test_UpdatePaths); ok {
  176. return x.UpdatePaths
  177. }
  178. return nil
  179. }
  180. func (m *Test) GetDelete() *DeleteTest {
  181. if x, ok := m.GetTest().(*Test_Delete); ok {
  182. return x.Delete
  183. }
  184. return nil
  185. }
  186. func (m *Test) GetQuery() *QueryTest {
  187. if x, ok := m.GetTest().(*Test_Query); ok {
  188. return x.Query
  189. }
  190. return nil
  191. }
  192. func (m *Test) GetListen() *ListenTest {
  193. if x, ok := m.GetTest().(*Test_Listen); ok {
  194. return x.Listen
  195. }
  196. return nil
  197. }
  198. // XXX_OneofFuncs is for the internal use of the proto package.
  199. func (*Test) 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{}) {
  200. return _Test_OneofMarshaler, _Test_OneofUnmarshaler, _Test_OneofSizer, []interface{}{
  201. (*Test_Get)(nil),
  202. (*Test_Create)(nil),
  203. (*Test_Set)(nil),
  204. (*Test_Update)(nil),
  205. (*Test_UpdatePaths)(nil),
  206. (*Test_Delete)(nil),
  207. (*Test_Query)(nil),
  208. (*Test_Listen)(nil),
  209. }
  210. }
  211. func _Test_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  212. m := msg.(*Test)
  213. // test
  214. switch x := m.Test.(type) {
  215. case *Test_Get:
  216. b.EncodeVarint(2<<3 | proto.WireBytes)
  217. if err := b.EncodeMessage(x.Get); err != nil {
  218. return err
  219. }
  220. case *Test_Create:
  221. b.EncodeVarint(3<<3 | proto.WireBytes)
  222. if err := b.EncodeMessage(x.Create); err != nil {
  223. return err
  224. }
  225. case *Test_Set:
  226. b.EncodeVarint(4<<3 | proto.WireBytes)
  227. if err := b.EncodeMessage(x.Set); err != nil {
  228. return err
  229. }
  230. case *Test_Update:
  231. b.EncodeVarint(5<<3 | proto.WireBytes)
  232. if err := b.EncodeMessage(x.Update); err != nil {
  233. return err
  234. }
  235. case *Test_UpdatePaths:
  236. b.EncodeVarint(6<<3 | proto.WireBytes)
  237. if err := b.EncodeMessage(x.UpdatePaths); err != nil {
  238. return err
  239. }
  240. case *Test_Delete:
  241. b.EncodeVarint(7<<3 | proto.WireBytes)
  242. if err := b.EncodeMessage(x.Delete); err != nil {
  243. return err
  244. }
  245. case *Test_Query:
  246. b.EncodeVarint(8<<3 | proto.WireBytes)
  247. if err := b.EncodeMessage(x.Query); err != nil {
  248. return err
  249. }
  250. case *Test_Listen:
  251. b.EncodeVarint(9<<3 | proto.WireBytes)
  252. if err := b.EncodeMessage(x.Listen); err != nil {
  253. return err
  254. }
  255. case nil:
  256. default:
  257. return fmt.Errorf("Test.Test has unexpected type %T", x)
  258. }
  259. return nil
  260. }
  261. func _Test_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  262. m := msg.(*Test)
  263. switch tag {
  264. case 2: // test.get
  265. if wire != proto.WireBytes {
  266. return true, proto.ErrInternalBadWireType
  267. }
  268. msg := new(GetTest)
  269. err := b.DecodeMessage(msg)
  270. m.Test = &Test_Get{msg}
  271. return true, err
  272. case 3: // test.create
  273. if wire != proto.WireBytes {
  274. return true, proto.ErrInternalBadWireType
  275. }
  276. msg := new(CreateTest)
  277. err := b.DecodeMessage(msg)
  278. m.Test = &Test_Create{msg}
  279. return true, err
  280. case 4: // test.set
  281. if wire != proto.WireBytes {
  282. return true, proto.ErrInternalBadWireType
  283. }
  284. msg := new(SetTest)
  285. err := b.DecodeMessage(msg)
  286. m.Test = &Test_Set{msg}
  287. return true, err
  288. case 5: // test.update
  289. if wire != proto.WireBytes {
  290. return true, proto.ErrInternalBadWireType
  291. }
  292. msg := new(UpdateTest)
  293. err := b.DecodeMessage(msg)
  294. m.Test = &Test_Update{msg}
  295. return true, err
  296. case 6: // test.update_paths
  297. if wire != proto.WireBytes {
  298. return true, proto.ErrInternalBadWireType
  299. }
  300. msg := new(UpdatePathsTest)
  301. err := b.DecodeMessage(msg)
  302. m.Test = &Test_UpdatePaths{msg}
  303. return true, err
  304. case 7: // test.delete
  305. if wire != proto.WireBytes {
  306. return true, proto.ErrInternalBadWireType
  307. }
  308. msg := new(DeleteTest)
  309. err := b.DecodeMessage(msg)
  310. m.Test = &Test_Delete{msg}
  311. return true, err
  312. case 8: // test.query
  313. if wire != proto.WireBytes {
  314. return true, proto.ErrInternalBadWireType
  315. }
  316. msg := new(QueryTest)
  317. err := b.DecodeMessage(msg)
  318. m.Test = &Test_Query{msg}
  319. return true, err
  320. case 9: // test.listen
  321. if wire != proto.WireBytes {
  322. return true, proto.ErrInternalBadWireType
  323. }
  324. msg := new(ListenTest)
  325. err := b.DecodeMessage(msg)
  326. m.Test = &Test_Listen{msg}
  327. return true, err
  328. default:
  329. return false, nil
  330. }
  331. }
  332. func _Test_OneofSizer(msg proto.Message) (n int) {
  333. m := msg.(*Test)
  334. // test
  335. switch x := m.Test.(type) {
  336. case *Test_Get:
  337. s := proto.Size(x.Get)
  338. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  339. n += proto.SizeVarint(uint64(s))
  340. n += s
  341. case *Test_Create:
  342. s := proto.Size(x.Create)
  343. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  344. n += proto.SizeVarint(uint64(s))
  345. n += s
  346. case *Test_Set:
  347. s := proto.Size(x.Set)
  348. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  349. n += proto.SizeVarint(uint64(s))
  350. n += s
  351. case *Test_Update:
  352. s := proto.Size(x.Update)
  353. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  354. n += proto.SizeVarint(uint64(s))
  355. n += s
  356. case *Test_UpdatePaths:
  357. s := proto.Size(x.UpdatePaths)
  358. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  359. n += proto.SizeVarint(uint64(s))
  360. n += s
  361. case *Test_Delete:
  362. s := proto.Size(x.Delete)
  363. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  364. n += proto.SizeVarint(uint64(s))
  365. n += s
  366. case *Test_Query:
  367. s := proto.Size(x.Query)
  368. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  369. n += proto.SizeVarint(uint64(s))
  370. n += s
  371. case *Test_Listen:
  372. s := proto.Size(x.Listen)
  373. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  374. n += proto.SizeVarint(uint64(s))
  375. n += s
  376. case nil:
  377. default:
  378. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  379. }
  380. return n
  381. }
  382. // Call to the DocumentRef.Get method.
  383. type GetTest struct {
  384. // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
  385. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  386. // The request that the call should send to the Firestore service.
  387. Request *google_firestore_v1beta14.GetDocumentRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"`
  388. }
  389. func (m *GetTest) Reset() { *m = GetTest{} }
  390. func (m *GetTest) String() string { return proto.CompactTextString(m) }
  391. func (*GetTest) ProtoMessage() {}
  392. func (*GetTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  393. func (m *GetTest) GetDocRefPath() string {
  394. if m != nil {
  395. return m.DocRefPath
  396. }
  397. return ""
  398. }
  399. func (m *GetTest) GetRequest() *google_firestore_v1beta14.GetDocumentRequest {
  400. if m != nil {
  401. return m.Request
  402. }
  403. return nil
  404. }
  405. // Call to DocumentRef.Create.
  406. type CreateTest struct {
  407. // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
  408. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  409. // The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp"
  410. // denote the two special sentinel values. Values that could be interpreted as integers
  411. // (i.e. digit strings) should be treated as integers.
  412. JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
  413. // The request that the call should generate.
  414. Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,3,opt,name=request" json:"request,omitempty"`
  415. // If true, the call should result in an error without generating a request.
  416. // If this is true, request should not be set.
  417. IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  418. }
  419. func (m *CreateTest) Reset() { *m = CreateTest{} }
  420. func (m *CreateTest) String() string { return proto.CompactTextString(m) }
  421. func (*CreateTest) ProtoMessage() {}
  422. func (*CreateTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  423. func (m *CreateTest) GetDocRefPath() string {
  424. if m != nil {
  425. return m.DocRefPath
  426. }
  427. return ""
  428. }
  429. func (m *CreateTest) GetJsonData() string {
  430. if m != nil {
  431. return m.JsonData
  432. }
  433. return ""
  434. }
  435. func (m *CreateTest) GetRequest() *google_firestore_v1beta14.CommitRequest {
  436. if m != nil {
  437. return m.Request
  438. }
  439. return nil
  440. }
  441. func (m *CreateTest) GetIsError() bool {
  442. if m != nil {
  443. return m.IsError
  444. }
  445. return false
  446. }
  447. // A call to DocumentRef.Set.
  448. type SetTest struct {
  449. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  450. Option *SetOption `protobuf:"bytes,2,opt,name=option" json:"option,omitempty"`
  451. JsonData string `protobuf:"bytes,3,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
  452. Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"`
  453. IsError bool `protobuf:"varint,5,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  454. }
  455. func (m *SetTest) Reset() { *m = SetTest{} }
  456. func (m *SetTest) String() string { return proto.CompactTextString(m) }
  457. func (*SetTest) ProtoMessage() {}
  458. func (*SetTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  459. func (m *SetTest) GetDocRefPath() string {
  460. if m != nil {
  461. return m.DocRefPath
  462. }
  463. return ""
  464. }
  465. func (m *SetTest) GetOption() *SetOption {
  466. if m != nil {
  467. return m.Option
  468. }
  469. return nil
  470. }
  471. func (m *SetTest) GetJsonData() string {
  472. if m != nil {
  473. return m.JsonData
  474. }
  475. return ""
  476. }
  477. func (m *SetTest) GetRequest() *google_firestore_v1beta14.CommitRequest {
  478. if m != nil {
  479. return m.Request
  480. }
  481. return nil
  482. }
  483. func (m *SetTest) GetIsError() bool {
  484. if m != nil {
  485. return m.IsError
  486. }
  487. return false
  488. }
  489. // A call to the form of DocumentRef.Update that represents the data as a map
  490. // or dictionary.
  491. type UpdateTest struct {
  492. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  493. Precondition *google_firestore_v1beta1.Precondition `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
  494. JsonData string `protobuf:"bytes,3,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
  495. Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"`
  496. IsError bool `protobuf:"varint,5,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  497. }
  498. func (m *UpdateTest) Reset() { *m = UpdateTest{} }
  499. func (m *UpdateTest) String() string { return proto.CompactTextString(m) }
  500. func (*UpdateTest) ProtoMessage() {}
  501. func (*UpdateTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  502. func (m *UpdateTest) GetDocRefPath() string {
  503. if m != nil {
  504. return m.DocRefPath
  505. }
  506. return ""
  507. }
  508. func (m *UpdateTest) GetPrecondition() *google_firestore_v1beta1.Precondition {
  509. if m != nil {
  510. return m.Precondition
  511. }
  512. return nil
  513. }
  514. func (m *UpdateTest) GetJsonData() string {
  515. if m != nil {
  516. return m.JsonData
  517. }
  518. return ""
  519. }
  520. func (m *UpdateTest) GetRequest() *google_firestore_v1beta14.CommitRequest {
  521. if m != nil {
  522. return m.Request
  523. }
  524. return nil
  525. }
  526. func (m *UpdateTest) GetIsError() bool {
  527. if m != nil {
  528. return m.IsError
  529. }
  530. return false
  531. }
  532. // A call to the form of DocumentRef.Update that represents the data as a list
  533. // of field paths and their values.
  534. type UpdatePathsTest struct {
  535. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  536. Precondition *google_firestore_v1beta1.Precondition `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
  537. // parallel sequences: field_paths[i] corresponds to json_values[i]
  538. FieldPaths []*FieldPath `protobuf:"bytes,3,rep,name=field_paths,json=fieldPaths" json:"field_paths,omitempty"`
  539. JsonValues []string `protobuf:"bytes,4,rep,name=json_values,json=jsonValues" json:"json_values,omitempty"`
  540. Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,5,opt,name=request" json:"request,omitempty"`
  541. IsError bool `protobuf:"varint,6,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  542. }
  543. func (m *UpdatePathsTest) Reset() { *m = UpdatePathsTest{} }
  544. func (m *UpdatePathsTest) String() string { return proto.CompactTextString(m) }
  545. func (*UpdatePathsTest) ProtoMessage() {}
  546. func (*UpdatePathsTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  547. func (m *UpdatePathsTest) GetDocRefPath() string {
  548. if m != nil {
  549. return m.DocRefPath
  550. }
  551. return ""
  552. }
  553. func (m *UpdatePathsTest) GetPrecondition() *google_firestore_v1beta1.Precondition {
  554. if m != nil {
  555. return m.Precondition
  556. }
  557. return nil
  558. }
  559. func (m *UpdatePathsTest) GetFieldPaths() []*FieldPath {
  560. if m != nil {
  561. return m.FieldPaths
  562. }
  563. return nil
  564. }
  565. func (m *UpdatePathsTest) GetJsonValues() []string {
  566. if m != nil {
  567. return m.JsonValues
  568. }
  569. return nil
  570. }
  571. func (m *UpdatePathsTest) GetRequest() *google_firestore_v1beta14.CommitRequest {
  572. if m != nil {
  573. return m.Request
  574. }
  575. return nil
  576. }
  577. func (m *UpdatePathsTest) GetIsError() bool {
  578. if m != nil {
  579. return m.IsError
  580. }
  581. return false
  582. }
  583. // A call to DocmentRef.Delete
  584. type DeleteTest struct {
  585. DocRefPath string `protobuf:"bytes,1,opt,name=doc_ref_path,json=docRefPath" json:"doc_ref_path,omitempty"`
  586. Precondition *google_firestore_v1beta1.Precondition `protobuf:"bytes,2,opt,name=precondition" json:"precondition,omitempty"`
  587. Request *google_firestore_v1beta14.CommitRequest `protobuf:"bytes,3,opt,name=request" json:"request,omitempty"`
  588. IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  589. }
  590. func (m *DeleteTest) Reset() { *m = DeleteTest{} }
  591. func (m *DeleteTest) String() string { return proto.CompactTextString(m) }
  592. func (*DeleteTest) ProtoMessage() {}
  593. func (*DeleteTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  594. func (m *DeleteTest) GetDocRefPath() string {
  595. if m != nil {
  596. return m.DocRefPath
  597. }
  598. return ""
  599. }
  600. func (m *DeleteTest) GetPrecondition() *google_firestore_v1beta1.Precondition {
  601. if m != nil {
  602. return m.Precondition
  603. }
  604. return nil
  605. }
  606. func (m *DeleteTest) GetRequest() *google_firestore_v1beta14.CommitRequest {
  607. if m != nil {
  608. return m.Request
  609. }
  610. return nil
  611. }
  612. func (m *DeleteTest) GetIsError() bool {
  613. if m != nil {
  614. return m.IsError
  615. }
  616. return false
  617. }
  618. // An option to the DocumentRef.Set call.
  619. type SetOption struct {
  620. All bool `protobuf:"varint,1,opt,name=all" json:"all,omitempty"`
  621. Fields []*FieldPath `protobuf:"bytes,2,rep,name=fields" json:"fields,omitempty"`
  622. }
  623. func (m *SetOption) Reset() { *m = SetOption{} }
  624. func (m *SetOption) String() string { return proto.CompactTextString(m) }
  625. func (*SetOption) ProtoMessage() {}
  626. func (*SetOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  627. func (m *SetOption) GetAll() bool {
  628. if m != nil {
  629. return m.All
  630. }
  631. return false
  632. }
  633. func (m *SetOption) GetFields() []*FieldPath {
  634. if m != nil {
  635. return m.Fields
  636. }
  637. return nil
  638. }
  639. type QueryTest struct {
  640. CollPath string `protobuf:"bytes,1,opt,name=coll_path,json=collPath" json:"coll_path,omitempty"`
  641. Clauses []*Clause `protobuf:"bytes,2,rep,name=clauses" json:"clauses,omitempty"`
  642. Query *google_firestore_v1beta12.StructuredQuery `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"`
  643. IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  644. }
  645. func (m *QueryTest) Reset() { *m = QueryTest{} }
  646. func (m *QueryTest) String() string { return proto.CompactTextString(m) }
  647. func (*QueryTest) ProtoMessage() {}
  648. func (*QueryTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  649. func (m *QueryTest) GetCollPath() string {
  650. if m != nil {
  651. return m.CollPath
  652. }
  653. return ""
  654. }
  655. func (m *QueryTest) GetClauses() []*Clause {
  656. if m != nil {
  657. return m.Clauses
  658. }
  659. return nil
  660. }
  661. func (m *QueryTest) GetQuery() *google_firestore_v1beta12.StructuredQuery {
  662. if m != nil {
  663. return m.Query
  664. }
  665. return nil
  666. }
  667. func (m *QueryTest) GetIsError() bool {
  668. if m != nil {
  669. return m.IsError
  670. }
  671. return false
  672. }
  673. type Clause struct {
  674. // Types that are valid to be assigned to Clause:
  675. // *Clause_Select
  676. // *Clause_Where
  677. // *Clause_OrderBy
  678. // *Clause_Offset
  679. // *Clause_Limit
  680. // *Clause_StartAt
  681. // *Clause_StartAfter
  682. // *Clause_EndAt
  683. // *Clause_EndBefore
  684. Clause isClause_Clause `protobuf_oneof:"clause"`
  685. }
  686. func (m *Clause) Reset() { *m = Clause{} }
  687. func (m *Clause) String() string { return proto.CompactTextString(m) }
  688. func (*Clause) ProtoMessage() {}
  689. func (*Clause) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  690. type isClause_Clause interface {
  691. isClause_Clause()
  692. }
  693. type Clause_Select struct {
  694. Select *Select `protobuf:"bytes,1,opt,name=select,oneof"`
  695. }
  696. type Clause_Where struct {
  697. Where *Where `protobuf:"bytes,2,opt,name=where,oneof"`
  698. }
  699. type Clause_OrderBy struct {
  700. OrderBy *OrderBy `protobuf:"bytes,3,opt,name=order_by,json=orderBy,oneof"`
  701. }
  702. type Clause_Offset struct {
  703. Offset int32 `protobuf:"varint,4,opt,name=offset,oneof"`
  704. }
  705. type Clause_Limit struct {
  706. Limit int32 `protobuf:"varint,5,opt,name=limit,oneof"`
  707. }
  708. type Clause_StartAt struct {
  709. StartAt *Cursor `protobuf:"bytes,6,opt,name=start_at,json=startAt,oneof"`
  710. }
  711. type Clause_StartAfter struct {
  712. StartAfter *Cursor `protobuf:"bytes,7,opt,name=start_after,json=startAfter,oneof"`
  713. }
  714. type Clause_EndAt struct {
  715. EndAt *Cursor `protobuf:"bytes,8,opt,name=end_at,json=endAt,oneof"`
  716. }
  717. type Clause_EndBefore struct {
  718. EndBefore *Cursor `protobuf:"bytes,9,opt,name=end_before,json=endBefore,oneof"`
  719. }
  720. func (*Clause_Select) isClause_Clause() {}
  721. func (*Clause_Where) isClause_Clause() {}
  722. func (*Clause_OrderBy) isClause_Clause() {}
  723. func (*Clause_Offset) isClause_Clause() {}
  724. func (*Clause_Limit) isClause_Clause() {}
  725. func (*Clause_StartAt) isClause_Clause() {}
  726. func (*Clause_StartAfter) isClause_Clause() {}
  727. func (*Clause_EndAt) isClause_Clause() {}
  728. func (*Clause_EndBefore) isClause_Clause() {}
  729. func (m *Clause) GetClause() isClause_Clause {
  730. if m != nil {
  731. return m.Clause
  732. }
  733. return nil
  734. }
  735. func (m *Clause) GetSelect() *Select {
  736. if x, ok := m.GetClause().(*Clause_Select); ok {
  737. return x.Select
  738. }
  739. return nil
  740. }
  741. func (m *Clause) GetWhere() *Where {
  742. if x, ok := m.GetClause().(*Clause_Where); ok {
  743. return x.Where
  744. }
  745. return nil
  746. }
  747. func (m *Clause) GetOrderBy() *OrderBy {
  748. if x, ok := m.GetClause().(*Clause_OrderBy); ok {
  749. return x.OrderBy
  750. }
  751. return nil
  752. }
  753. func (m *Clause) GetOffset() int32 {
  754. if x, ok := m.GetClause().(*Clause_Offset); ok {
  755. return x.Offset
  756. }
  757. return 0
  758. }
  759. func (m *Clause) GetLimit() int32 {
  760. if x, ok := m.GetClause().(*Clause_Limit); ok {
  761. return x.Limit
  762. }
  763. return 0
  764. }
  765. func (m *Clause) GetStartAt() *Cursor {
  766. if x, ok := m.GetClause().(*Clause_StartAt); ok {
  767. return x.StartAt
  768. }
  769. return nil
  770. }
  771. func (m *Clause) GetStartAfter() *Cursor {
  772. if x, ok := m.GetClause().(*Clause_StartAfter); ok {
  773. return x.StartAfter
  774. }
  775. return nil
  776. }
  777. func (m *Clause) GetEndAt() *Cursor {
  778. if x, ok := m.GetClause().(*Clause_EndAt); ok {
  779. return x.EndAt
  780. }
  781. return nil
  782. }
  783. func (m *Clause) GetEndBefore() *Cursor {
  784. if x, ok := m.GetClause().(*Clause_EndBefore); ok {
  785. return x.EndBefore
  786. }
  787. return nil
  788. }
  789. // XXX_OneofFuncs is for the internal use of the proto package.
  790. func (*Clause) 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{}) {
  791. return _Clause_OneofMarshaler, _Clause_OneofUnmarshaler, _Clause_OneofSizer, []interface{}{
  792. (*Clause_Select)(nil),
  793. (*Clause_Where)(nil),
  794. (*Clause_OrderBy)(nil),
  795. (*Clause_Offset)(nil),
  796. (*Clause_Limit)(nil),
  797. (*Clause_StartAt)(nil),
  798. (*Clause_StartAfter)(nil),
  799. (*Clause_EndAt)(nil),
  800. (*Clause_EndBefore)(nil),
  801. }
  802. }
  803. func _Clause_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  804. m := msg.(*Clause)
  805. // clause
  806. switch x := m.Clause.(type) {
  807. case *Clause_Select:
  808. b.EncodeVarint(1<<3 | proto.WireBytes)
  809. if err := b.EncodeMessage(x.Select); err != nil {
  810. return err
  811. }
  812. case *Clause_Where:
  813. b.EncodeVarint(2<<3 | proto.WireBytes)
  814. if err := b.EncodeMessage(x.Where); err != nil {
  815. return err
  816. }
  817. case *Clause_OrderBy:
  818. b.EncodeVarint(3<<3 | proto.WireBytes)
  819. if err := b.EncodeMessage(x.OrderBy); err != nil {
  820. return err
  821. }
  822. case *Clause_Offset:
  823. b.EncodeVarint(4<<3 | proto.WireVarint)
  824. b.EncodeVarint(uint64(x.Offset))
  825. case *Clause_Limit:
  826. b.EncodeVarint(5<<3 | proto.WireVarint)
  827. b.EncodeVarint(uint64(x.Limit))
  828. case *Clause_StartAt:
  829. b.EncodeVarint(6<<3 | proto.WireBytes)
  830. if err := b.EncodeMessage(x.StartAt); err != nil {
  831. return err
  832. }
  833. case *Clause_StartAfter:
  834. b.EncodeVarint(7<<3 | proto.WireBytes)
  835. if err := b.EncodeMessage(x.StartAfter); err != nil {
  836. return err
  837. }
  838. case *Clause_EndAt:
  839. b.EncodeVarint(8<<3 | proto.WireBytes)
  840. if err := b.EncodeMessage(x.EndAt); err != nil {
  841. return err
  842. }
  843. case *Clause_EndBefore:
  844. b.EncodeVarint(9<<3 | proto.WireBytes)
  845. if err := b.EncodeMessage(x.EndBefore); err != nil {
  846. return err
  847. }
  848. case nil:
  849. default:
  850. return fmt.Errorf("Clause.Clause has unexpected type %T", x)
  851. }
  852. return nil
  853. }
  854. func _Clause_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  855. m := msg.(*Clause)
  856. switch tag {
  857. case 1: // clause.select
  858. if wire != proto.WireBytes {
  859. return true, proto.ErrInternalBadWireType
  860. }
  861. msg := new(Select)
  862. err := b.DecodeMessage(msg)
  863. m.Clause = &Clause_Select{msg}
  864. return true, err
  865. case 2: // clause.where
  866. if wire != proto.WireBytes {
  867. return true, proto.ErrInternalBadWireType
  868. }
  869. msg := new(Where)
  870. err := b.DecodeMessage(msg)
  871. m.Clause = &Clause_Where{msg}
  872. return true, err
  873. case 3: // clause.order_by
  874. if wire != proto.WireBytes {
  875. return true, proto.ErrInternalBadWireType
  876. }
  877. msg := new(OrderBy)
  878. err := b.DecodeMessage(msg)
  879. m.Clause = &Clause_OrderBy{msg}
  880. return true, err
  881. case 4: // clause.offset
  882. if wire != proto.WireVarint {
  883. return true, proto.ErrInternalBadWireType
  884. }
  885. x, err := b.DecodeVarint()
  886. m.Clause = &Clause_Offset{int32(x)}
  887. return true, err
  888. case 5: // clause.limit
  889. if wire != proto.WireVarint {
  890. return true, proto.ErrInternalBadWireType
  891. }
  892. x, err := b.DecodeVarint()
  893. m.Clause = &Clause_Limit{int32(x)}
  894. return true, err
  895. case 6: // clause.start_at
  896. if wire != proto.WireBytes {
  897. return true, proto.ErrInternalBadWireType
  898. }
  899. msg := new(Cursor)
  900. err := b.DecodeMessage(msg)
  901. m.Clause = &Clause_StartAt{msg}
  902. return true, err
  903. case 7: // clause.start_after
  904. if wire != proto.WireBytes {
  905. return true, proto.ErrInternalBadWireType
  906. }
  907. msg := new(Cursor)
  908. err := b.DecodeMessage(msg)
  909. m.Clause = &Clause_StartAfter{msg}
  910. return true, err
  911. case 8: // clause.end_at
  912. if wire != proto.WireBytes {
  913. return true, proto.ErrInternalBadWireType
  914. }
  915. msg := new(Cursor)
  916. err := b.DecodeMessage(msg)
  917. m.Clause = &Clause_EndAt{msg}
  918. return true, err
  919. case 9: // clause.end_before
  920. if wire != proto.WireBytes {
  921. return true, proto.ErrInternalBadWireType
  922. }
  923. msg := new(Cursor)
  924. err := b.DecodeMessage(msg)
  925. m.Clause = &Clause_EndBefore{msg}
  926. return true, err
  927. default:
  928. return false, nil
  929. }
  930. }
  931. func _Clause_OneofSizer(msg proto.Message) (n int) {
  932. m := msg.(*Clause)
  933. // clause
  934. switch x := m.Clause.(type) {
  935. case *Clause_Select:
  936. s := proto.Size(x.Select)
  937. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  938. n += proto.SizeVarint(uint64(s))
  939. n += s
  940. case *Clause_Where:
  941. s := proto.Size(x.Where)
  942. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  943. n += proto.SizeVarint(uint64(s))
  944. n += s
  945. case *Clause_OrderBy:
  946. s := proto.Size(x.OrderBy)
  947. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  948. n += proto.SizeVarint(uint64(s))
  949. n += s
  950. case *Clause_Offset:
  951. n += proto.SizeVarint(4<<3 | proto.WireVarint)
  952. n += proto.SizeVarint(uint64(x.Offset))
  953. case *Clause_Limit:
  954. n += proto.SizeVarint(5<<3 | proto.WireVarint)
  955. n += proto.SizeVarint(uint64(x.Limit))
  956. case *Clause_StartAt:
  957. s := proto.Size(x.StartAt)
  958. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  959. n += proto.SizeVarint(uint64(s))
  960. n += s
  961. case *Clause_StartAfter:
  962. s := proto.Size(x.StartAfter)
  963. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  964. n += proto.SizeVarint(uint64(s))
  965. n += s
  966. case *Clause_EndAt:
  967. s := proto.Size(x.EndAt)
  968. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  969. n += proto.SizeVarint(uint64(s))
  970. n += s
  971. case *Clause_EndBefore:
  972. s := proto.Size(x.EndBefore)
  973. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  974. n += proto.SizeVarint(uint64(s))
  975. n += s
  976. case nil:
  977. default:
  978. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  979. }
  980. return n
  981. }
  982. type Select struct {
  983. Fields []*FieldPath `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
  984. }
  985. func (m *Select) Reset() { *m = Select{} }
  986. func (m *Select) String() string { return proto.CompactTextString(m) }
  987. func (*Select) ProtoMessage() {}
  988. func (*Select) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  989. func (m *Select) GetFields() []*FieldPath {
  990. if m != nil {
  991. return m.Fields
  992. }
  993. return nil
  994. }
  995. type Where struct {
  996. Path *FieldPath `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
  997. Op string `protobuf:"bytes,2,opt,name=op" json:"op,omitempty"`
  998. JsonValue string `protobuf:"bytes,3,opt,name=json_value,json=jsonValue" json:"json_value,omitempty"`
  999. }
  1000. func (m *Where) Reset() { *m = Where{} }
  1001. func (m *Where) String() string { return proto.CompactTextString(m) }
  1002. func (*Where) ProtoMessage() {}
  1003. func (*Where) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  1004. func (m *Where) GetPath() *FieldPath {
  1005. if m != nil {
  1006. return m.Path
  1007. }
  1008. return nil
  1009. }
  1010. func (m *Where) GetOp() string {
  1011. if m != nil {
  1012. return m.Op
  1013. }
  1014. return ""
  1015. }
  1016. func (m *Where) GetJsonValue() string {
  1017. if m != nil {
  1018. return m.JsonValue
  1019. }
  1020. return ""
  1021. }
  1022. type OrderBy struct {
  1023. Path *FieldPath `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
  1024. Direction string `protobuf:"bytes,2,opt,name=direction" json:"direction,omitempty"`
  1025. }
  1026. func (m *OrderBy) Reset() { *m = OrderBy{} }
  1027. func (m *OrderBy) String() string { return proto.CompactTextString(m) }
  1028. func (*OrderBy) ProtoMessage() {}
  1029. func (*OrderBy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  1030. func (m *OrderBy) GetPath() *FieldPath {
  1031. if m != nil {
  1032. return m.Path
  1033. }
  1034. return nil
  1035. }
  1036. func (m *OrderBy) GetDirection() string {
  1037. if m != nil {
  1038. return m.Direction
  1039. }
  1040. return ""
  1041. }
  1042. type Cursor struct {
  1043. // one of:
  1044. DocSnapshot *DocSnapshot `protobuf:"bytes,1,opt,name=doc_snapshot,json=docSnapshot" json:"doc_snapshot,omitempty"`
  1045. JsonValues []string `protobuf:"bytes,2,rep,name=json_values,json=jsonValues" json:"json_values,omitempty"`
  1046. }
  1047. func (m *Cursor) Reset() { *m = Cursor{} }
  1048. func (m *Cursor) String() string { return proto.CompactTextString(m) }
  1049. func (*Cursor) ProtoMessage() {}
  1050. func (*Cursor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  1051. func (m *Cursor) GetDocSnapshot() *DocSnapshot {
  1052. if m != nil {
  1053. return m.DocSnapshot
  1054. }
  1055. return nil
  1056. }
  1057. func (m *Cursor) GetJsonValues() []string {
  1058. if m != nil {
  1059. return m.JsonValues
  1060. }
  1061. return nil
  1062. }
  1063. type DocSnapshot struct {
  1064. Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
  1065. JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData" json:"json_data,omitempty"`
  1066. }
  1067. func (m *DocSnapshot) Reset() { *m = DocSnapshot{} }
  1068. func (m *DocSnapshot) String() string { return proto.CompactTextString(m) }
  1069. func (*DocSnapshot) ProtoMessage() {}
  1070. func (*DocSnapshot) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  1071. func (m *DocSnapshot) GetPath() string {
  1072. if m != nil {
  1073. return m.Path
  1074. }
  1075. return ""
  1076. }
  1077. func (m *DocSnapshot) GetJsonData() string {
  1078. if m != nil {
  1079. return m.JsonData
  1080. }
  1081. return ""
  1082. }
  1083. type FieldPath struct {
  1084. Field []string `protobuf:"bytes,1,rep,name=field" json:"field,omitempty"`
  1085. }
  1086. func (m *FieldPath) Reset() { *m = FieldPath{} }
  1087. func (m *FieldPath) String() string { return proto.CompactTextString(m) }
  1088. func (*FieldPath) ProtoMessage() {}
  1089. func (*FieldPath) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  1090. func (m *FieldPath) GetField() []string {
  1091. if m != nil {
  1092. return m.Field
  1093. }
  1094. return nil
  1095. }
  1096. // A test of the Listen streaming RPC (a.k.a. FireStore watch).
  1097. // If the sequence of responses is provided to the implementation,
  1098. // it should produce the sequence of snapshots.
  1099. // If is_error is true, an error should occur after the snapshots.
  1100. //
  1101. // The tests assume that the query is
  1102. // Collection("projects/projectID/databases/(default)/documents/C").OrderBy("a", Ascending)
  1103. //
  1104. // The watch target ID used in these tests is 1. Test interpreters
  1105. // should either change their client's ID for testing,
  1106. // or change the ID in the tests before running them.
  1107. type ListenTest struct {
  1108. Responses []*google_firestore_v1beta14.ListenResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"`
  1109. Snapshots []*Snapshot `protobuf:"bytes,2,rep,name=snapshots" json:"snapshots,omitempty"`
  1110. IsError bool `protobuf:"varint,3,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  1111. }
  1112. func (m *ListenTest) Reset() { *m = ListenTest{} }
  1113. func (m *ListenTest) String() string { return proto.CompactTextString(m) }
  1114. func (*ListenTest) ProtoMessage() {}
  1115. func (*ListenTest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  1116. func (m *ListenTest) GetResponses() []*google_firestore_v1beta14.ListenResponse {
  1117. if m != nil {
  1118. return m.Responses
  1119. }
  1120. return nil
  1121. }
  1122. func (m *ListenTest) GetSnapshots() []*Snapshot {
  1123. if m != nil {
  1124. return m.Snapshots
  1125. }
  1126. return nil
  1127. }
  1128. func (m *ListenTest) GetIsError() bool {
  1129. if m != nil {
  1130. return m.IsError
  1131. }
  1132. return false
  1133. }
  1134. type Snapshot struct {
  1135. Docs []*google_firestore_v1beta11.Document `protobuf:"bytes,1,rep,name=docs" json:"docs,omitempty"`
  1136. Changes []*DocChange `protobuf:"bytes,2,rep,name=changes" json:"changes,omitempty"`
  1137. ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime" json:"read_time,omitempty"`
  1138. }
  1139. func (m *Snapshot) Reset() { *m = Snapshot{} }
  1140. func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  1141. func (*Snapshot) ProtoMessage() {}
  1142. func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  1143. func (m *Snapshot) GetDocs() []*google_firestore_v1beta11.Document {
  1144. if m != nil {
  1145. return m.Docs
  1146. }
  1147. return nil
  1148. }
  1149. func (m *Snapshot) GetChanges() []*DocChange {
  1150. if m != nil {
  1151. return m.Changes
  1152. }
  1153. return nil
  1154. }
  1155. func (m *Snapshot) GetReadTime() *google_protobuf1.Timestamp {
  1156. if m != nil {
  1157. return m.ReadTime
  1158. }
  1159. return nil
  1160. }
  1161. type DocChange struct {
  1162. Kind DocChange_Kind `protobuf:"varint,1,opt,name=kind,enum=tests.DocChange_Kind" json:"kind,omitempty"`
  1163. Doc *google_firestore_v1beta11.Document `protobuf:"bytes,2,opt,name=doc" json:"doc,omitempty"`
  1164. OldIndex int32 `protobuf:"varint,3,opt,name=old_index,json=oldIndex" json:"old_index,omitempty"`
  1165. NewIndex int32 `protobuf:"varint,4,opt,name=new_index,json=newIndex" json:"new_index,omitempty"`
  1166. }
  1167. func (m *DocChange) Reset() { *m = DocChange{} }
  1168. func (m *DocChange) String() string { return proto.CompactTextString(m) }
  1169. func (*DocChange) ProtoMessage() {}
  1170. func (*DocChange) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  1171. func (m *DocChange) GetKind() DocChange_Kind {
  1172. if m != nil {
  1173. return m.Kind
  1174. }
  1175. return DocChange_KIND_UNSPECIFIED
  1176. }
  1177. func (m *DocChange) GetDoc() *google_firestore_v1beta11.Document {
  1178. if m != nil {
  1179. return m.Doc
  1180. }
  1181. return nil
  1182. }
  1183. func (m *DocChange) GetOldIndex() int32 {
  1184. if m != nil {
  1185. return m.OldIndex
  1186. }
  1187. return 0
  1188. }
  1189. func (m *DocChange) GetNewIndex() int32 {
  1190. if m != nil {
  1191. return m.NewIndex
  1192. }
  1193. return 0
  1194. }
  1195. func init() {
  1196. proto.RegisterType((*TestSuite)(nil), "tests.TestSuite")
  1197. proto.RegisterType((*Test)(nil), "tests.Test")
  1198. proto.RegisterType((*GetTest)(nil), "tests.GetTest")
  1199. proto.RegisterType((*CreateTest)(nil), "tests.CreateTest")
  1200. proto.RegisterType((*SetTest)(nil), "tests.SetTest")
  1201. proto.RegisterType((*UpdateTest)(nil), "tests.UpdateTest")
  1202. proto.RegisterType((*UpdatePathsTest)(nil), "tests.UpdatePathsTest")
  1203. proto.RegisterType((*DeleteTest)(nil), "tests.DeleteTest")
  1204. proto.RegisterType((*SetOption)(nil), "tests.SetOption")
  1205. proto.RegisterType((*QueryTest)(nil), "tests.QueryTest")
  1206. proto.RegisterType((*Clause)(nil), "tests.Clause")
  1207. proto.RegisterType((*Select)(nil), "tests.Select")
  1208. proto.RegisterType((*Where)(nil), "tests.Where")
  1209. proto.RegisterType((*OrderBy)(nil), "tests.OrderBy")
  1210. proto.RegisterType((*Cursor)(nil), "tests.Cursor")
  1211. proto.RegisterType((*DocSnapshot)(nil), "tests.DocSnapshot")
  1212. proto.RegisterType((*FieldPath)(nil), "tests.FieldPath")
  1213. proto.RegisterType((*ListenTest)(nil), "tests.ListenTest")
  1214. proto.RegisterType((*Snapshot)(nil), "tests.Snapshot")
  1215. proto.RegisterType((*DocChange)(nil), "tests.DocChange")
  1216. proto.RegisterEnum("tests.DocChange_Kind", DocChange_Kind_name, DocChange_Kind_value)
  1217. }
  1218. func init() { proto.RegisterFile("test.proto", fileDescriptor0) }
  1219. var fileDescriptor0 = []byte{
  1220. // 1292 bytes of a gzipped FileDescriptorProto
  1221. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xc4, 0x57, 0x4d, 0x73, 0xdb, 0xc4,
  1222. 0x1b, 0xaf, 0x6c, 0x4b, 0x96, 0x1e, 0xe7, 0xdf, 0xe6, 0xbf, 0x53, 0x3a, 0x26, 0xc0, 0x34, 0xd5,
  1223. 0x94, 0xc6, 0x6d, 0xc1, 0xa1, 0xe1, 0xed, 0xc0, 0x0c, 0x4c, 0x12, 0x3b, 0x6d, 0x28, 0x6d, 0x82,
  1224. 0xdc, 0x96, 0x4b, 0x66, 0x8c, 0xa2, 0x5d, 0x27, 0x02, 0x59, 0xeb, 0xee, 0xae, 0xfa, 0xf2, 0x39,
  1225. 0xb8, 0x73, 0x65, 0x60, 0x86, 0x03, 0x5f, 0x83, 0x13, 0x47, 0x3e, 0x03, 0x77, 0x38, 0x33, 0xfb,
  1226. 0x26, 0x59, 0x69, 0x5d, 0x72, 0x28, 0xe5, 0xb6, 0xfb, 0x3c, 0xbf, 0xe7, 0xfd, 0x65, 0x25, 0x00,
  1227. 0x41, 0xb8, 0xe8, 0xcf, 0x18, 0x15, 0x14, 0xb9, 0xf2, 0xcc, 0x57, 0xde, 0x3e, 0xa2, 0xf4, 0x28,
  1228. 0x23, 0xeb, 0x93, 0x94, 0x11, 0x2e, 0x28, 0x23, 0xeb, 0x8f, 0x6e, 0x1c, 0x12, 0x11, 0xdf, 0x58,
  1229. 0x4f, 0xe8, 0x74, 0x4a, 0x73, 0x8d, 0x5e, 0x59, 0x5b, 0x08, 0xc3, 0x34, 0x29, 0xa6, 0x24, 0x37,
  1230. 0x6a, 0x57, 0x7a, 0x0b, 0x81, 0x25, 0xc5, 0x20, 0x2f, 0x2f, 0x44, 0x3e, 0x2c, 0x08, 0x7b, 0x6a,
  1231. 0x50, 0x17, 0x0d, 0x4a, 0xdd, 0x0e, 0x8b, 0xc9, 0xba, 0x48, 0xa7, 0x84, 0x8b, 0x78, 0x3a, 0xd3,
  1232. 0x80, 0xb0, 0x0f, 0xc1, 0x3d, 0xc2, 0xc5, 0xa8, 0x48, 0x05, 0x41, 0x97, 0x40, 0x87, 0xd5, 0x75,
  1233. 0x56, 0x9b, 0xbd, 0xce, 0x46, 0xa7, 0xaf, 0x6e, 0x7d, 0x09, 0x88, 0x34, 0x27, 0xfc, 0xae, 0x09,
  1234. 0x2d, 0x79, 0x47, 0xab, 0xd0, 0xc1, 0x84, 0x27, 0x2c, 0x9d, 0x89, 0x94, 0xe6, 0x5d, 0x67, 0xd5,
  1235. 0xe9, 0x05, 0xd1, 0x3c, 0x09, 0x85, 0xd0, 0x3c, 0x22, 0xa2, 0xdb, 0x58, 0x75, 0x7a, 0x9d, 0x8d,
  1236. 0xb3, 0x46, 0xd7, 0x4d, 0x22, 0xa4, 0xf8, 0xad, 0x33, 0x91, 0x64, 0xa2, 0xeb, 0xe0, 0x25, 0x8c,
  1237. 0xc4, 0x82, 0x74, 0x9b, 0x0a, 0xf6, 0x7f, 0x03, 0xdb, 0x56, 0x44, 0x83, 0x34, 0x10, 0xa9, 0x90,
  1238. 0x13, 0xd1, 0x6d, 0xd5, 0x14, 0x8e, 0x2a, 0x85, 0x5c, 0x2b, 0x2c, 0x66, 0x58, 0x2a, 0x74, 0x6b,
  1239. 0x0a, 0xef, 0x2b, 0xa2, 0x55, 0xa8, 0x21, 0xe8, 0x13, 0x58, 0xd2, 0xa7, 0xf1, 0x2c, 0x16, 0xc7,
  1240. 0xbc, 0xeb, 0x29, 0x91, 0x0b, 0x35, 0x91, 0x7d, 0xc9, 0x31, 0x72, 0x9d, 0xa2, 0x22, 0x49, 0x4b,
  1241. 0x98, 0x64, 0x44, 0x90, 0x6e, 0xbb, 0x66, 0x69, 0xa0, 0x88, 0xd6, 0x92, 0x86, 0xa0, 0x1e, 0xb8,
  1242. 0xaa, 0x2c, 0x5d, 0x5f, 0x61, 0x97, 0x0d, 0xf6, 0x4b, 0x49, 0x33, 0x50, 0x0d, 0x90, 0x6a, 0xb3,
  1243. 0x94, 0x0b, 0x92, 0x77, 0x83, 0x9a, 0xda, 0x2f, 0x14, 0xd1, 0xaa, 0xd5, 0x90, 0x2d, 0x0f, 0x5a,
  1244. 0x92, 0x1b, 0x72, 0x68, 0x9b, 0xc4, 0xa2, 0x55, 0x58, 0xc2, 0x34, 0x19, 0x33, 0x32, 0x51, 0x41,
  1245. 0x99, 0xc2, 0x00, 0xa6, 0x49, 0x44, 0x26, 0xd2, 0x73, 0xb4, 0x03, 0x6d, 0x46, 0x1e, 0x16, 0x84,
  1246. 0xdb, 0xda, 0xbc, 0xd3, 0xd7, 0x5d, 0xd2, 0xaf, 0x7a, 0xcc, 0xf4, 0x92, 0x2c, 0xd7, 0xc0, 0x74,
  1247. 0x68, 0xa4, 0x65, 0x22, 0x2b, 0x1c, 0xfe, 0xe8, 0x00, 0x54, 0x75, 0x3a, 0x85, 0xe1, 0x37, 0x20,
  1248. 0xf8, 0x86, 0xd3, 0x7c, 0x8c, 0x63, 0x11, 0x2b, 0xd3, 0x41, 0xe4, 0x4b, 0xc2, 0x20, 0x16, 0x31,
  1249. 0xda, 0xac, 0xbc, 0xd2, 0xad, 0xb0, 0xb6, 0xd8, 0xab, 0x6d, 0x3a, 0x9d, 0xa6, 0xcf, 0x38, 0x84,
  1250. 0x5e, 0x07, 0x3f, 0xe5, 0x63, 0xc2, 0x18, 0x65, 0xaa, 0x49, 0xfc, 0xa8, 0x9d, 0xf2, 0xa1, 0xbc,
  1251. 0x86, 0xbf, 0x39, 0xd0, 0x1e, 0x9d, 0x3a, 0x43, 0x3d, 0xf0, 0xa8, 0x6e, 0xeb, 0x46, 0xad, 0x5c,
  1252. 0x23, 0x22, 0xf6, 0x14, 0x3d, 0x32, 0xfc, 0x7a, 0x48, 0xcd, 0xc5, 0x21, 0xb5, 0x5e, 0x42, 0x48,
  1253. 0x6e, 0x3d, 0xa4, 0x3f, 0x1d, 0x80, 0xaa, 0xab, 0x4f, 0x11, 0xd5, 0xe7, 0xb0, 0x34, 0x63, 0x24,
  1254. 0xa1, 0x39, 0x4e, 0xe7, 0x62, 0xbb, 0xb2, 0xd8, 0xa7, 0xfd, 0x39, 0x74, 0x54, 0x93, 0xfd, 0x2f,
  1255. 0xe3, 0xfe, 0xa5, 0x01, 0xe7, 0x4e, 0x8c, 0xe6, 0x2b, 0x0e, 0xfe, 0x06, 0x74, 0x26, 0x29, 0xc9,
  1256. 0xb0, 0xd9, 0x1a, 0x4d, 0xb5, 0x2c, 0x6d, 0x8f, 0xec, 0x48, 0x8e, 0x34, 0x19, 0xc1, 0xc4, 0x1e,
  1257. 0x39, 0xba, 0x08, 0x1d, 0x95, 0xaf, 0x47, 0x71, 0x56, 0x10, 0xde, 0x6d, 0xad, 0x36, 0xa5, 0x7f,
  1258. 0x92, 0xf4, 0x40, 0x51, 0xe6, 0x73, 0xe6, 0xbe, 0x84, 0x9c, 0x79, 0xf5, 0x9c, 0xfd, 0xee, 0x00,
  1259. 0x54, 0x7b, 0xe9, 0x15, 0xa7, 0xeb, 0xdf, 0x9d, 0xec, 0x9b, 0x10, 0x94, 0x63, 0x89, 0x96, 0xa1,
  1260. 0x19, 0x67, 0x99, 0x8a, 0xc7, 0x8f, 0xe4, 0x51, 0x8e, 0xb2, 0x2a, 0x03, 0xef, 0x36, 0x16, 0x94,
  1261. 0xc9, 0xf0, 0xc3, 0x9f, 0x1d, 0x08, 0xca, 0x7d, 0x2c, 0x1b, 0x3c, 0xa1, 0x59, 0x36, 0x9f, 0x1f,
  1262. 0x5f, 0x12, 0x54, 0x76, 0xd6, 0xa0, 0x9d, 0x64, 0x71, 0xc1, 0x89, 0xd5, 0xfa, 0x3f, 0xfb, 0x6c,
  1263. 0x29, 0x6a, 0x64, 0xb9, 0xe8, 0x33, 0xbb, 0xf6, 0x75, 0xe0, 0x57, 0x17, 0x07, 0x3e, 0x12, 0xac,
  1264. 0x48, 0x44, 0xc1, 0x08, 0x56, 0x3e, 0xd8, 0xd7, 0xe0, 0x05, 0x81, 0xff, 0xd5, 0x00, 0x4f, 0xdb,
  1265. 0x43, 0x6b, 0xe0, 0x71, 0x92, 0x91, 0x44, 0x28, 0x4f, 0x2b, 0x77, 0x46, 0x8a, 0x28, 0xdf, 0x0b,
  1266. 0xcd, 0x46, 0x97, 0xc1, 0x7d, 0x7c, 0x4c, 0x18, 0x31, 0xf5, 0x5c, 0x32, 0xb8, 0xaf, 0x24, 0x4d,
  1267. 0x3e, 0x41, 0x8a, 0x89, 0xae, 0x83, 0x4f, 0x19, 0x26, 0x6c, 0x7c, 0x68, 0x1d, 0xb7, 0x8f, 0xed,
  1268. 0x9e, 0x24, 0x6f, 0x3d, 0xbd, 0x75, 0x26, 0x6a, 0x53, 0x7d, 0x44, 0x5d, 0xf0, 0xe8, 0x64, 0x62,
  1269. 0xdf, 0x65, 0x57, 0x1a, 0xd3, 0x77, 0x74, 0x01, 0xdc, 0x2c, 0x9d, 0xa6, 0xba, 0xa1, 0x25, 0x43,
  1270. 0x5f, 0xd1, 0x35, 0xf0, 0xb9, 0x88, 0x99, 0x18, 0xc7, 0xc2, 0xbc, 0xb8, 0x65, 0xfa, 0x0a, 0xc6,
  1271. 0x29, 0x93, 0xda, 0x15, 0x60, 0x53, 0xa0, 0xf7, 0xa0, 0x63, 0xb0, 0x13, 0x41, 0x98, 0x79, 0x69,
  1272. 0x9f, 0x81, 0x83, 0x86, 0x4b, 0x08, 0xba, 0x02, 0x1e, 0xc9, 0xb1, 0xd4, 0xed, 0x3f, 0x1f, 0xec,
  1273. 0x92, 0x1c, 0x6f, 0x0a, 0xd4, 0x07, 0x90, 0xb8, 0x43, 0x32, 0xa1, 0x8c, 0x98, 0xb7, 0xf6, 0x19,
  1274. 0x6c, 0x40, 0x72, 0xbc, 0xa5, 0x10, 0x5b, 0x3e, 0x78, 0xba, 0xaa, 0xe1, 0x06, 0x78, 0x3a, 0xb1,
  1275. 0x73, 0xcd, 0xe5, 0xfc, 0x43, 0x73, 0x1d, 0x80, 0xab, 0x92, 0x8c, 0x2e, 0x43, 0xab, 0x6c, 0xa9,
  1276. 0xe7, 0x09, 0x28, 0x2e, 0x3a, 0x0b, 0x0d, 0x3a, 0x33, 0x4f, 0x64, 0x83, 0xce, 0xd0, 0x5b, 0x00,
  1277. 0xd5, 0xfa, 0x30, 0xfb, 0x36, 0x28, 0xb7, 0x47, 0x78, 0x07, 0xda, 0xa6, 0x32, 0xa7, 0xd4, 0xff,
  1278. 0x26, 0x04, 0x38, 0x65, 0x24, 0x29, 0x67, 0x3b, 0x88, 0x2a, 0x42, 0xf8, 0x35, 0x78, 0x3a, 0x03,
  1279. 0xe8, 0x43, 0xbd, 0x28, 0x78, 0x1e, 0xcf, 0xf8, 0x31, 0xb5, 0xed, 0x85, 0xec, 0x97, 0x0e, 0x4d,
  1280. 0x46, 0x86, 0x13, 0x75, 0x70, 0x75, 0x39, 0xb9, 0xed, 0x1a, 0x27, 0xb7, 0x5d, 0xf8, 0x29, 0x74,
  1281. 0xe6, 0x84, 0x11, 0x9a, 0x73, 0x3a, 0x30, 0x2e, 0xbe, 0xe8, 0x63, 0x21, 0xbc, 0x04, 0x41, 0x19,
  1282. 0x12, 0x3a, 0x0f, 0xae, 0xca, 0xb2, 0x2a, 0x42, 0x10, 0xe9, 0x4b, 0xf8, 0xbd, 0x03, 0x50, 0x7d,
  1283. 0x33, 0xa1, 0x1d, 0x08, 0x18, 0xe1, 0x33, 0x9a, 0xcb, 0xa1, 0xd5, 0xd5, 0xea, 0x2d, 0x9e, 0x46,
  1284. 0x2d, 0x18, 0x19, 0x81, 0xa8, 0x12, 0x45, 0xef, 0x42, 0x60, 0xb3, 0x61, 0x87, 0xff, 0x9c, 0x9d,
  1285. 0x36, 0x9b, 0x8b, 0x0a, 0x51, 0x9b, 0xdf, 0x66, 0x7d, 0x7e, 0x7f, 0x70, 0xc0, 0x2f, 0x33, 0xf0,
  1286. 0x11, 0xb4, 0x30, 0x4d, 0xac, 0x67, 0xe1, 0x62, 0xcf, 0xca, 0xaf, 0x31, 0x85, 0x47, 0xd7, 0xa0,
  1287. 0x9d, 0x1c, 0xc7, 0xf9, 0x11, 0x39, 0xb9, 0xdf, 0x06, 0x34, 0xd9, 0x56, 0x8c, 0xc8, 0x02, 0xd0,
  1288. 0xc7, 0x32, 0x05, 0x31, 0x1e, 0xcb, 0x5f, 0x00, 0x33, 0xd7, 0x2b, 0xd6, 0x90, 0xfd, 0x3f, 0xe8,
  1289. 0xdf, 0xb3, 0xff, 0x07, 0x91, 0x2f, 0xc1, 0xf2, 0x1a, 0xfe, 0xe1, 0x40, 0x50, 0xea, 0x43, 0x57,
  1290. 0xa1, 0xf5, 0x6d, 0x9a, 0x63, 0x55, 0xac, 0xb3, 0x1b, 0xaf, 0x9d, 0xb4, 0xd7, 0xbf, 0x9d, 0xe6,
  1291. 0x38, 0x52, 0x10, 0xf4, 0x01, 0x34, 0x31, 0x4d, 0xcc, 0xb2, 0x39, 0x4d, 0x50, 0x12, 0x2e, 0x2b,
  1292. 0x4f, 0x33, 0x3c, 0x4e, 0x73, 0x4c, 0x9e, 0x28, 0x3f, 0xdd, 0xc8, 0xa7, 0x19, 0xde, 0x95, 0x77,
  1293. 0xc9, 0xcc, 0xc9, 0x63, 0xc3, 0x6c, 0x69, 0x66, 0x4e, 0x1e, 0x2b, 0x66, 0xb8, 0x05, 0x2d, 0x69,
  1294. 0x1d, 0x9d, 0x87, 0xe5, 0xdb, 0xbb, 0x77, 0x07, 0xe3, 0xfb, 0x77, 0x47, 0xfb, 0xc3, 0xed, 0xdd,
  1295. 0x9d, 0xdd, 0xe1, 0x60, 0xf9, 0x0c, 0x0a, 0xc0, 0xdd, 0x1c, 0x0c, 0x86, 0x83, 0x65, 0x07, 0x75,
  1296. 0xa0, 0x1d, 0x0d, 0xef, 0xec, 0x3d, 0x18, 0x0e, 0x96, 0x1b, 0x68, 0x09, 0xfc, 0x3b, 0x7b, 0x03,
  1297. 0x8d, 0x6a, 0x6e, 0x3d, 0x81, 0x2b, 0x09, 0x9d, 0x5a, 0x5f, 0x93, 0x8c, 0x16, 0x78, 0xce, 0xe3,
  1298. 0x84, 0xe6, 0x13, 0xca, 0xa6, 0x71, 0x9e, 0x90, 0x9f, 0x1a, 0xe1, 0x4d, 0x0d, 0xda, 0x56, 0xa0,
  1299. 0x9d, 0x12, 0x74, 0x4f, 0x65, 0x64, 0x5f, 0xa6, 0xf4, 0xd7, 0x46, 0x4f, 0x83, 0x0e, 0x14, 0xe8,
  1300. 0xa0, 0x04, 0x1d, 0x28, 0xd0, 0xc1, 0x76, 0xa5, 0xef, 0xd0, 0x53, 0x45, 0x78, 0xff, 0xef, 0x00,
  1301. 0x00, 0x00, 0xff, 0xff, 0xc2, 0x7a, 0x63, 0xd5, 0x67, 0x0e, 0x00, 0x00,
  1302. }