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.
 
 
 

1884 lines
58 KiB

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