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.
 
 
 

1147 lines
48 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/firestore/admin/v1beta2/firestore_admin.proto
  3. package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1beta2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import longrunning "google.golang.org/genproto/googleapis/longrunning"
  10. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // The request for
  25. // [FirestoreAdmin.CreateIndex][google.firestore.admin.v1beta2.FirestoreAdmin.CreateIndex].
  26. type CreateIndexRequest struct {
  27. // A parent name of the form
  28. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
  29. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  30. // The composite index to create.
  31. Index *Index `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"`
  32. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  33. XXX_unrecognized []byte `json:"-"`
  34. XXX_sizecache int32 `json:"-"`
  35. }
  36. func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} }
  37. func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) }
  38. func (*CreateIndexRequest) ProtoMessage() {}
  39. func (*CreateIndexRequest) Descriptor() ([]byte, []int) {
  40. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{0}
  41. }
  42. func (m *CreateIndexRequest) XXX_Unmarshal(b []byte) error {
  43. return xxx_messageInfo_CreateIndexRequest.Unmarshal(m, b)
  44. }
  45. func (m *CreateIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  46. return xxx_messageInfo_CreateIndexRequest.Marshal(b, m, deterministic)
  47. }
  48. func (dst *CreateIndexRequest) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_CreateIndexRequest.Merge(dst, src)
  50. }
  51. func (m *CreateIndexRequest) XXX_Size() int {
  52. return xxx_messageInfo_CreateIndexRequest.Size(m)
  53. }
  54. func (m *CreateIndexRequest) XXX_DiscardUnknown() {
  55. xxx_messageInfo_CreateIndexRequest.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_CreateIndexRequest proto.InternalMessageInfo
  58. func (m *CreateIndexRequest) GetParent() string {
  59. if m != nil {
  60. return m.Parent
  61. }
  62. return ""
  63. }
  64. func (m *CreateIndexRequest) GetIndex() *Index {
  65. if m != nil {
  66. return m.Index
  67. }
  68. return nil
  69. }
  70. // The request for
  71. // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes].
  72. type ListIndexesRequest struct {
  73. // A parent name of the form
  74. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
  75. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  76. // The filter to apply to list results.
  77. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
  78. // The number of results to return.
  79. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  80. // A page token, returned from a previous call to
  81. // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes],
  82. // that may be used to get the next page of results.
  83. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  84. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  85. XXX_unrecognized []byte `json:"-"`
  86. XXX_sizecache int32 `json:"-"`
  87. }
  88. func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} }
  89. func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) }
  90. func (*ListIndexesRequest) ProtoMessage() {}
  91. func (*ListIndexesRequest) Descriptor() ([]byte, []int) {
  92. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{1}
  93. }
  94. func (m *ListIndexesRequest) XXX_Unmarshal(b []byte) error {
  95. return xxx_messageInfo_ListIndexesRequest.Unmarshal(m, b)
  96. }
  97. func (m *ListIndexesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  98. return xxx_messageInfo_ListIndexesRequest.Marshal(b, m, deterministic)
  99. }
  100. func (dst *ListIndexesRequest) XXX_Merge(src proto.Message) {
  101. xxx_messageInfo_ListIndexesRequest.Merge(dst, src)
  102. }
  103. func (m *ListIndexesRequest) XXX_Size() int {
  104. return xxx_messageInfo_ListIndexesRequest.Size(m)
  105. }
  106. func (m *ListIndexesRequest) XXX_DiscardUnknown() {
  107. xxx_messageInfo_ListIndexesRequest.DiscardUnknown(m)
  108. }
  109. var xxx_messageInfo_ListIndexesRequest proto.InternalMessageInfo
  110. func (m *ListIndexesRequest) GetParent() string {
  111. if m != nil {
  112. return m.Parent
  113. }
  114. return ""
  115. }
  116. func (m *ListIndexesRequest) GetFilter() string {
  117. if m != nil {
  118. return m.Filter
  119. }
  120. return ""
  121. }
  122. func (m *ListIndexesRequest) GetPageSize() int32 {
  123. if m != nil {
  124. return m.PageSize
  125. }
  126. return 0
  127. }
  128. func (m *ListIndexesRequest) GetPageToken() string {
  129. if m != nil {
  130. return m.PageToken
  131. }
  132. return ""
  133. }
  134. // The response for
  135. // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1beta2.FirestoreAdmin.ListIndexes].
  136. type ListIndexesResponse struct {
  137. // The requested indexes.
  138. Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"`
  139. // A page token that may be used to request another page of results. If blank,
  140. // this is the last page.
  141. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  143. XXX_unrecognized []byte `json:"-"`
  144. XXX_sizecache int32 `json:"-"`
  145. }
  146. func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} }
  147. func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) }
  148. func (*ListIndexesResponse) ProtoMessage() {}
  149. func (*ListIndexesResponse) Descriptor() ([]byte, []int) {
  150. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{2}
  151. }
  152. func (m *ListIndexesResponse) XXX_Unmarshal(b []byte) error {
  153. return xxx_messageInfo_ListIndexesResponse.Unmarshal(m, b)
  154. }
  155. func (m *ListIndexesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  156. return xxx_messageInfo_ListIndexesResponse.Marshal(b, m, deterministic)
  157. }
  158. func (dst *ListIndexesResponse) XXX_Merge(src proto.Message) {
  159. xxx_messageInfo_ListIndexesResponse.Merge(dst, src)
  160. }
  161. func (m *ListIndexesResponse) XXX_Size() int {
  162. return xxx_messageInfo_ListIndexesResponse.Size(m)
  163. }
  164. func (m *ListIndexesResponse) XXX_DiscardUnknown() {
  165. xxx_messageInfo_ListIndexesResponse.DiscardUnknown(m)
  166. }
  167. var xxx_messageInfo_ListIndexesResponse proto.InternalMessageInfo
  168. func (m *ListIndexesResponse) GetIndexes() []*Index {
  169. if m != nil {
  170. return m.Indexes
  171. }
  172. return nil
  173. }
  174. func (m *ListIndexesResponse) GetNextPageToken() string {
  175. if m != nil {
  176. return m.NextPageToken
  177. }
  178. return ""
  179. }
  180. // The request for
  181. // [FirestoreAdmin.GetIndex][google.firestore.admin.v1beta2.FirestoreAdmin.GetIndex].
  182. type GetIndexRequest struct {
  183. // A name of the form
  184. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
  185. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  186. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  187. XXX_unrecognized []byte `json:"-"`
  188. XXX_sizecache int32 `json:"-"`
  189. }
  190. func (m *GetIndexRequest) Reset() { *m = GetIndexRequest{} }
  191. func (m *GetIndexRequest) String() string { return proto.CompactTextString(m) }
  192. func (*GetIndexRequest) ProtoMessage() {}
  193. func (*GetIndexRequest) Descriptor() ([]byte, []int) {
  194. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{3}
  195. }
  196. func (m *GetIndexRequest) XXX_Unmarshal(b []byte) error {
  197. return xxx_messageInfo_GetIndexRequest.Unmarshal(m, b)
  198. }
  199. func (m *GetIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  200. return xxx_messageInfo_GetIndexRequest.Marshal(b, m, deterministic)
  201. }
  202. func (dst *GetIndexRequest) XXX_Merge(src proto.Message) {
  203. xxx_messageInfo_GetIndexRequest.Merge(dst, src)
  204. }
  205. func (m *GetIndexRequest) XXX_Size() int {
  206. return xxx_messageInfo_GetIndexRequest.Size(m)
  207. }
  208. func (m *GetIndexRequest) XXX_DiscardUnknown() {
  209. xxx_messageInfo_GetIndexRequest.DiscardUnknown(m)
  210. }
  211. var xxx_messageInfo_GetIndexRequest proto.InternalMessageInfo
  212. func (m *GetIndexRequest) GetName() string {
  213. if m != nil {
  214. return m.Name
  215. }
  216. return ""
  217. }
  218. // The request for
  219. // [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1beta2.FirestoreAdmin.DeleteIndex].
  220. type DeleteIndexRequest struct {
  221. // A name of the form
  222. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
  223. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  224. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  225. XXX_unrecognized []byte `json:"-"`
  226. XXX_sizecache int32 `json:"-"`
  227. }
  228. func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} }
  229. func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) }
  230. func (*DeleteIndexRequest) ProtoMessage() {}
  231. func (*DeleteIndexRequest) Descriptor() ([]byte, []int) {
  232. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{4}
  233. }
  234. func (m *DeleteIndexRequest) XXX_Unmarshal(b []byte) error {
  235. return xxx_messageInfo_DeleteIndexRequest.Unmarshal(m, b)
  236. }
  237. func (m *DeleteIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  238. return xxx_messageInfo_DeleteIndexRequest.Marshal(b, m, deterministic)
  239. }
  240. func (dst *DeleteIndexRequest) XXX_Merge(src proto.Message) {
  241. xxx_messageInfo_DeleteIndexRequest.Merge(dst, src)
  242. }
  243. func (m *DeleteIndexRequest) XXX_Size() int {
  244. return xxx_messageInfo_DeleteIndexRequest.Size(m)
  245. }
  246. func (m *DeleteIndexRequest) XXX_DiscardUnknown() {
  247. xxx_messageInfo_DeleteIndexRequest.DiscardUnknown(m)
  248. }
  249. var xxx_messageInfo_DeleteIndexRequest proto.InternalMessageInfo
  250. func (m *DeleteIndexRequest) GetName() string {
  251. if m != nil {
  252. return m.Name
  253. }
  254. return ""
  255. }
  256. // The request for
  257. // [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField].
  258. type UpdateFieldRequest struct {
  259. // The field to be updated.
  260. Field *Field `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
  261. // A mask, relative to the field. If specified, only configuration specified
  262. // by this field_mask will be updated in the field.
  263. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  264. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  265. XXX_unrecognized []byte `json:"-"`
  266. XXX_sizecache int32 `json:"-"`
  267. }
  268. func (m *UpdateFieldRequest) Reset() { *m = UpdateFieldRequest{} }
  269. func (m *UpdateFieldRequest) String() string { return proto.CompactTextString(m) }
  270. func (*UpdateFieldRequest) ProtoMessage() {}
  271. func (*UpdateFieldRequest) Descriptor() ([]byte, []int) {
  272. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{5}
  273. }
  274. func (m *UpdateFieldRequest) XXX_Unmarshal(b []byte) error {
  275. return xxx_messageInfo_UpdateFieldRequest.Unmarshal(m, b)
  276. }
  277. func (m *UpdateFieldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  278. return xxx_messageInfo_UpdateFieldRequest.Marshal(b, m, deterministic)
  279. }
  280. func (dst *UpdateFieldRequest) XXX_Merge(src proto.Message) {
  281. xxx_messageInfo_UpdateFieldRequest.Merge(dst, src)
  282. }
  283. func (m *UpdateFieldRequest) XXX_Size() int {
  284. return xxx_messageInfo_UpdateFieldRequest.Size(m)
  285. }
  286. func (m *UpdateFieldRequest) XXX_DiscardUnknown() {
  287. xxx_messageInfo_UpdateFieldRequest.DiscardUnknown(m)
  288. }
  289. var xxx_messageInfo_UpdateFieldRequest proto.InternalMessageInfo
  290. func (m *UpdateFieldRequest) GetField() *Field {
  291. if m != nil {
  292. return m.Field
  293. }
  294. return nil
  295. }
  296. func (m *UpdateFieldRequest) GetUpdateMask() *field_mask.FieldMask {
  297. if m != nil {
  298. return m.UpdateMask
  299. }
  300. return nil
  301. }
  302. // The request for
  303. // [FirestoreAdmin.GetField][google.firestore.admin.v1beta2.FirestoreAdmin.GetField].
  304. type GetFieldRequest struct {
  305. // A name of the form
  306. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
  307. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  308. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  309. XXX_unrecognized []byte `json:"-"`
  310. XXX_sizecache int32 `json:"-"`
  311. }
  312. func (m *GetFieldRequest) Reset() { *m = GetFieldRequest{} }
  313. func (m *GetFieldRequest) String() string { return proto.CompactTextString(m) }
  314. func (*GetFieldRequest) ProtoMessage() {}
  315. func (*GetFieldRequest) Descriptor() ([]byte, []int) {
  316. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{6}
  317. }
  318. func (m *GetFieldRequest) XXX_Unmarshal(b []byte) error {
  319. return xxx_messageInfo_GetFieldRequest.Unmarshal(m, b)
  320. }
  321. func (m *GetFieldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  322. return xxx_messageInfo_GetFieldRequest.Marshal(b, m, deterministic)
  323. }
  324. func (dst *GetFieldRequest) XXX_Merge(src proto.Message) {
  325. xxx_messageInfo_GetFieldRequest.Merge(dst, src)
  326. }
  327. func (m *GetFieldRequest) XXX_Size() int {
  328. return xxx_messageInfo_GetFieldRequest.Size(m)
  329. }
  330. func (m *GetFieldRequest) XXX_DiscardUnknown() {
  331. xxx_messageInfo_GetFieldRequest.DiscardUnknown(m)
  332. }
  333. var xxx_messageInfo_GetFieldRequest proto.InternalMessageInfo
  334. func (m *GetFieldRequest) GetName() string {
  335. if m != nil {
  336. return m.Name
  337. }
  338. return ""
  339. }
  340. // The request for
  341. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields].
  342. type ListFieldsRequest struct {
  343. // A parent name of the form
  344. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
  345. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  346. // The filter to apply to list results. Currently,
  347. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  348. // only supports listing fields that have been explicitly overridden. To issue
  349. // this query, call
  350. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  351. // with the filter set to `indexConfig.usesAncestorConfig:false`.
  352. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
  353. // The number of results to return.
  354. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  355. // A page token, returned from a previous call to
  356. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields],
  357. // that may be used to get the next page of results.
  358. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  359. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  360. XXX_unrecognized []byte `json:"-"`
  361. XXX_sizecache int32 `json:"-"`
  362. }
  363. func (m *ListFieldsRequest) Reset() { *m = ListFieldsRequest{} }
  364. func (m *ListFieldsRequest) String() string { return proto.CompactTextString(m) }
  365. func (*ListFieldsRequest) ProtoMessage() {}
  366. func (*ListFieldsRequest) Descriptor() ([]byte, []int) {
  367. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{7}
  368. }
  369. func (m *ListFieldsRequest) XXX_Unmarshal(b []byte) error {
  370. return xxx_messageInfo_ListFieldsRequest.Unmarshal(m, b)
  371. }
  372. func (m *ListFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  373. return xxx_messageInfo_ListFieldsRequest.Marshal(b, m, deterministic)
  374. }
  375. func (dst *ListFieldsRequest) XXX_Merge(src proto.Message) {
  376. xxx_messageInfo_ListFieldsRequest.Merge(dst, src)
  377. }
  378. func (m *ListFieldsRequest) XXX_Size() int {
  379. return xxx_messageInfo_ListFieldsRequest.Size(m)
  380. }
  381. func (m *ListFieldsRequest) XXX_DiscardUnknown() {
  382. xxx_messageInfo_ListFieldsRequest.DiscardUnknown(m)
  383. }
  384. var xxx_messageInfo_ListFieldsRequest proto.InternalMessageInfo
  385. func (m *ListFieldsRequest) GetParent() string {
  386. if m != nil {
  387. return m.Parent
  388. }
  389. return ""
  390. }
  391. func (m *ListFieldsRequest) GetFilter() string {
  392. if m != nil {
  393. return m.Filter
  394. }
  395. return ""
  396. }
  397. func (m *ListFieldsRequest) GetPageSize() int32 {
  398. if m != nil {
  399. return m.PageSize
  400. }
  401. return 0
  402. }
  403. func (m *ListFieldsRequest) GetPageToken() string {
  404. if m != nil {
  405. return m.PageToken
  406. }
  407. return ""
  408. }
  409. // The response for
  410. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields].
  411. type ListFieldsResponse struct {
  412. // The requested fields.
  413. Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
  414. // A page token that may be used to request another page of results. If blank,
  415. // this is the last page.
  416. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  417. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  418. XXX_unrecognized []byte `json:"-"`
  419. XXX_sizecache int32 `json:"-"`
  420. }
  421. func (m *ListFieldsResponse) Reset() { *m = ListFieldsResponse{} }
  422. func (m *ListFieldsResponse) String() string { return proto.CompactTextString(m) }
  423. func (*ListFieldsResponse) ProtoMessage() {}
  424. func (*ListFieldsResponse) Descriptor() ([]byte, []int) {
  425. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{8}
  426. }
  427. func (m *ListFieldsResponse) XXX_Unmarshal(b []byte) error {
  428. return xxx_messageInfo_ListFieldsResponse.Unmarshal(m, b)
  429. }
  430. func (m *ListFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  431. return xxx_messageInfo_ListFieldsResponse.Marshal(b, m, deterministic)
  432. }
  433. func (dst *ListFieldsResponse) XXX_Merge(src proto.Message) {
  434. xxx_messageInfo_ListFieldsResponse.Merge(dst, src)
  435. }
  436. func (m *ListFieldsResponse) XXX_Size() int {
  437. return xxx_messageInfo_ListFieldsResponse.Size(m)
  438. }
  439. func (m *ListFieldsResponse) XXX_DiscardUnknown() {
  440. xxx_messageInfo_ListFieldsResponse.DiscardUnknown(m)
  441. }
  442. var xxx_messageInfo_ListFieldsResponse proto.InternalMessageInfo
  443. func (m *ListFieldsResponse) GetFields() []*Field {
  444. if m != nil {
  445. return m.Fields
  446. }
  447. return nil
  448. }
  449. func (m *ListFieldsResponse) GetNextPageToken() string {
  450. if m != nil {
  451. return m.NextPageToken
  452. }
  453. return ""
  454. }
  455. // The request for
  456. // [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ExportDocuments].
  457. type ExportDocumentsRequest struct {
  458. // Database to export. Should be of the form:
  459. // `projects/{project_id}/databases/{database_id}`.
  460. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  461. // Which collection ids to export. Unspecified means all collections.
  462. CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"`
  463. // The output URI. Currently only supports Google Cloud Storage URIs of the
  464. // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
  465. // of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
  466. // Google Cloud Storage namespace path. When
  467. // choosing a name, be sure to consider Google Cloud Storage naming
  468. // guidelines: https://cloud.google.com/storage/docs/naming.
  469. // If the URI is a bucket (without a namespace path), a prefix will be
  470. // generated based on the start time.
  471. OutputUriPrefix string `protobuf:"bytes,3,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
  472. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  473. XXX_unrecognized []byte `json:"-"`
  474. XXX_sizecache int32 `json:"-"`
  475. }
  476. func (m *ExportDocumentsRequest) Reset() { *m = ExportDocumentsRequest{} }
  477. func (m *ExportDocumentsRequest) String() string { return proto.CompactTextString(m) }
  478. func (*ExportDocumentsRequest) ProtoMessage() {}
  479. func (*ExportDocumentsRequest) Descriptor() ([]byte, []int) {
  480. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{9}
  481. }
  482. func (m *ExportDocumentsRequest) XXX_Unmarshal(b []byte) error {
  483. return xxx_messageInfo_ExportDocumentsRequest.Unmarshal(m, b)
  484. }
  485. func (m *ExportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  486. return xxx_messageInfo_ExportDocumentsRequest.Marshal(b, m, deterministic)
  487. }
  488. func (dst *ExportDocumentsRequest) XXX_Merge(src proto.Message) {
  489. xxx_messageInfo_ExportDocumentsRequest.Merge(dst, src)
  490. }
  491. func (m *ExportDocumentsRequest) XXX_Size() int {
  492. return xxx_messageInfo_ExportDocumentsRequest.Size(m)
  493. }
  494. func (m *ExportDocumentsRequest) XXX_DiscardUnknown() {
  495. xxx_messageInfo_ExportDocumentsRequest.DiscardUnknown(m)
  496. }
  497. var xxx_messageInfo_ExportDocumentsRequest proto.InternalMessageInfo
  498. func (m *ExportDocumentsRequest) GetName() string {
  499. if m != nil {
  500. return m.Name
  501. }
  502. return ""
  503. }
  504. func (m *ExportDocumentsRequest) GetCollectionIds() []string {
  505. if m != nil {
  506. return m.CollectionIds
  507. }
  508. return nil
  509. }
  510. func (m *ExportDocumentsRequest) GetOutputUriPrefix() string {
  511. if m != nil {
  512. return m.OutputUriPrefix
  513. }
  514. return ""
  515. }
  516. // The request for
  517. // [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ImportDocuments].
  518. type ImportDocumentsRequest struct {
  519. // Database to import into. Should be of the form:
  520. // `projects/{project_id}/databases/{database_id}`.
  521. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  522. // Which collection ids to import. Unspecified means all collections included
  523. // in the import.
  524. CollectionIds []string `protobuf:"bytes,2,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"`
  525. // Location of the exported files.
  526. // This must match the output_uri_prefix of an ExportDocumentsResponse from
  527. // an export that has completed successfully.
  528. // See:
  529. // [google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix].
  530. InputUriPrefix string `protobuf:"bytes,3,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"`
  531. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  532. XXX_unrecognized []byte `json:"-"`
  533. XXX_sizecache int32 `json:"-"`
  534. }
  535. func (m *ImportDocumentsRequest) Reset() { *m = ImportDocumentsRequest{} }
  536. func (m *ImportDocumentsRequest) String() string { return proto.CompactTextString(m) }
  537. func (*ImportDocumentsRequest) ProtoMessage() {}
  538. func (*ImportDocumentsRequest) Descriptor() ([]byte, []int) {
  539. return fileDescriptor_firestore_admin_6e970f5f749e23d0, []int{10}
  540. }
  541. func (m *ImportDocumentsRequest) XXX_Unmarshal(b []byte) error {
  542. return xxx_messageInfo_ImportDocumentsRequest.Unmarshal(m, b)
  543. }
  544. func (m *ImportDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  545. return xxx_messageInfo_ImportDocumentsRequest.Marshal(b, m, deterministic)
  546. }
  547. func (dst *ImportDocumentsRequest) XXX_Merge(src proto.Message) {
  548. xxx_messageInfo_ImportDocumentsRequest.Merge(dst, src)
  549. }
  550. func (m *ImportDocumentsRequest) XXX_Size() int {
  551. return xxx_messageInfo_ImportDocumentsRequest.Size(m)
  552. }
  553. func (m *ImportDocumentsRequest) XXX_DiscardUnknown() {
  554. xxx_messageInfo_ImportDocumentsRequest.DiscardUnknown(m)
  555. }
  556. var xxx_messageInfo_ImportDocumentsRequest proto.InternalMessageInfo
  557. func (m *ImportDocumentsRequest) GetName() string {
  558. if m != nil {
  559. return m.Name
  560. }
  561. return ""
  562. }
  563. func (m *ImportDocumentsRequest) GetCollectionIds() []string {
  564. if m != nil {
  565. return m.CollectionIds
  566. }
  567. return nil
  568. }
  569. func (m *ImportDocumentsRequest) GetInputUriPrefix() string {
  570. if m != nil {
  571. return m.InputUriPrefix
  572. }
  573. return ""
  574. }
  575. func init() {
  576. proto.RegisterType((*CreateIndexRequest)(nil), "google.firestore.admin.v1beta2.CreateIndexRequest")
  577. proto.RegisterType((*ListIndexesRequest)(nil), "google.firestore.admin.v1beta2.ListIndexesRequest")
  578. proto.RegisterType((*ListIndexesResponse)(nil), "google.firestore.admin.v1beta2.ListIndexesResponse")
  579. proto.RegisterType((*GetIndexRequest)(nil), "google.firestore.admin.v1beta2.GetIndexRequest")
  580. proto.RegisterType((*DeleteIndexRequest)(nil), "google.firestore.admin.v1beta2.DeleteIndexRequest")
  581. proto.RegisterType((*UpdateFieldRequest)(nil), "google.firestore.admin.v1beta2.UpdateFieldRequest")
  582. proto.RegisterType((*GetFieldRequest)(nil), "google.firestore.admin.v1beta2.GetFieldRequest")
  583. proto.RegisterType((*ListFieldsRequest)(nil), "google.firestore.admin.v1beta2.ListFieldsRequest")
  584. proto.RegisterType((*ListFieldsResponse)(nil), "google.firestore.admin.v1beta2.ListFieldsResponse")
  585. proto.RegisterType((*ExportDocumentsRequest)(nil), "google.firestore.admin.v1beta2.ExportDocumentsRequest")
  586. proto.RegisterType((*ImportDocumentsRequest)(nil), "google.firestore.admin.v1beta2.ImportDocumentsRequest")
  587. }
  588. // Reference imports to suppress errors if they are not otherwise used.
  589. var _ context.Context
  590. var _ grpc.ClientConn
  591. // This is a compile-time assertion to ensure that this generated file
  592. // is compatible with the grpc package it is being compiled against.
  593. const _ = grpc.SupportPackageIsVersion4
  594. // FirestoreAdminClient is the client API for FirestoreAdmin service.
  595. //
  596. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  597. type FirestoreAdminClient interface {
  598. // Creates a composite index. This returns a
  599. // [google.longrunning.Operation][google.longrunning.Operation] which may be
  600. // used to track the status of the creation. The metadata for the operation
  601. // will be the type
  602. // [IndexOperationMetadata][google.firestore.admin.v1beta2.IndexOperationMetadata].
  603. CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
  604. // Lists composite indexes.
  605. ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error)
  606. // Gets a composite index.
  607. GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error)
  608. // Deletes a composite index.
  609. DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  610. // Gets the metadata and configuration for a Field.
  611. GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error)
  612. // Updates a field configuration. Currently, field updates apply only to
  613. // single field index configuration. However, calls to
  614. // [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField]
  615. // should provide a field mask to avoid changing any configuration that the
  616. // caller isn't aware of. The field mask should be specified as: `{ paths:
  617. // "index_config" }`.
  618. //
  619. // This call returns a
  620. // [google.longrunning.Operation][google.longrunning.Operation] which may be
  621. // used to track the status of the field update. The metadata for the
  622. // operation will be the type
  623. // [FieldOperationMetadata][google.firestore.admin.v1beta2.FieldOperationMetadata].
  624. //
  625. // To configure the default field settings for the database, use
  626. // the special `Field` with resource name:
  627. // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
  628. UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
  629. // Lists the field configuration and metadata for this database.
  630. //
  631. // Currently,
  632. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  633. // only supports listing fields that have been explicitly overridden. To issue
  634. // this query, call
  635. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  636. // with the filter set to `indexConfig.usesAncestorConfig:false`.
  637. ListFields(ctx context.Context, in *ListFieldsRequest, opts ...grpc.CallOption) (*ListFieldsResponse, error)
  638. // Exports a copy of all or a subset of documents from Google Cloud Firestore
  639. // to another storage system, such as Google Cloud Storage. Recent updates to
  640. // documents may not be reflected in the export. The export occurs in the
  641. // background and its progress can be monitored and managed via the
  642. // Operation resource that is created. The output of an export may only be
  643. // used once the associated operation is done. If an export operation is
  644. // cancelled before completion it may leave partial data behind in Google
  645. // Cloud Storage.
  646. ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
  647. // Imports documents into Google Cloud Firestore. Existing documents with the
  648. // same name are overwritten. The import occurs in the background and its
  649. // progress can be monitored and managed via the Operation resource that is
  650. // created. If an ImportDocuments operation is cancelled, it is possible
  651. // that a subset of the data has already been imported to Cloud Firestore.
  652. ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
  653. }
  654. type firestoreAdminClient struct {
  655. cc *grpc.ClientConn
  656. }
  657. func NewFirestoreAdminClient(cc *grpc.ClientConn) FirestoreAdminClient {
  658. return &firestoreAdminClient{cc}
  659. }
  660. func (c *firestoreAdminClient) CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
  661. out := new(longrunning.Operation)
  662. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/CreateIndex", in, out, opts...)
  663. if err != nil {
  664. return nil, err
  665. }
  666. return out, nil
  667. }
  668. func (c *firestoreAdminClient) ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error) {
  669. out := new(ListIndexesResponse)
  670. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ListIndexes", in, out, opts...)
  671. if err != nil {
  672. return nil, err
  673. }
  674. return out, nil
  675. }
  676. func (c *firestoreAdminClient) GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error) {
  677. out := new(Index)
  678. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/GetIndex", in, out, opts...)
  679. if err != nil {
  680. return nil, err
  681. }
  682. return out, nil
  683. }
  684. func (c *firestoreAdminClient) DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  685. out := new(empty.Empty)
  686. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/DeleteIndex", in, out, opts...)
  687. if err != nil {
  688. return nil, err
  689. }
  690. return out, nil
  691. }
  692. func (c *firestoreAdminClient) GetField(ctx context.Context, in *GetFieldRequest, opts ...grpc.CallOption) (*Field, error) {
  693. out := new(Field)
  694. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/GetField", in, out, opts...)
  695. if err != nil {
  696. return nil, err
  697. }
  698. return out, nil
  699. }
  700. func (c *firestoreAdminClient) UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
  701. out := new(longrunning.Operation)
  702. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/UpdateField", in, out, opts...)
  703. if err != nil {
  704. return nil, err
  705. }
  706. return out, nil
  707. }
  708. func (c *firestoreAdminClient) ListFields(ctx context.Context, in *ListFieldsRequest, opts ...grpc.CallOption) (*ListFieldsResponse, error) {
  709. out := new(ListFieldsResponse)
  710. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ListFields", in, out, opts...)
  711. if err != nil {
  712. return nil, err
  713. }
  714. return out, nil
  715. }
  716. func (c *firestoreAdminClient) ExportDocuments(ctx context.Context, in *ExportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
  717. out := new(longrunning.Operation)
  718. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ExportDocuments", in, out, opts...)
  719. if err != nil {
  720. return nil, err
  721. }
  722. return out, nil
  723. }
  724. func (c *firestoreAdminClient) ImportDocuments(ctx context.Context, in *ImportDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
  725. out := new(longrunning.Operation)
  726. err := c.cc.Invoke(ctx, "/google.firestore.admin.v1beta2.FirestoreAdmin/ImportDocuments", in, out, opts...)
  727. if err != nil {
  728. return nil, err
  729. }
  730. return out, nil
  731. }
  732. // FirestoreAdminServer is the server API for FirestoreAdmin service.
  733. type FirestoreAdminServer interface {
  734. // Creates a composite index. This returns a
  735. // [google.longrunning.Operation][google.longrunning.Operation] which may be
  736. // used to track the status of the creation. The metadata for the operation
  737. // will be the type
  738. // [IndexOperationMetadata][google.firestore.admin.v1beta2.IndexOperationMetadata].
  739. CreateIndex(context.Context, *CreateIndexRequest) (*longrunning.Operation, error)
  740. // Lists composite indexes.
  741. ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
  742. // Gets a composite index.
  743. GetIndex(context.Context, *GetIndexRequest) (*Index, error)
  744. // Deletes a composite index.
  745. DeleteIndex(context.Context, *DeleteIndexRequest) (*empty.Empty, error)
  746. // Gets the metadata and configuration for a Field.
  747. GetField(context.Context, *GetFieldRequest) (*Field, error)
  748. // Updates a field configuration. Currently, field updates apply only to
  749. // single field index configuration. However, calls to
  750. // [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField]
  751. // should provide a field mask to avoid changing any configuration that the
  752. // caller isn't aware of. The field mask should be specified as: `{ paths:
  753. // "index_config" }`.
  754. //
  755. // This call returns a
  756. // [google.longrunning.Operation][google.longrunning.Operation] which may be
  757. // used to track the status of the field update. The metadata for the
  758. // operation will be the type
  759. // [FieldOperationMetadata][google.firestore.admin.v1beta2.FieldOperationMetadata].
  760. //
  761. // To configure the default field settings for the database, use
  762. // the special `Field` with resource name:
  763. // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
  764. UpdateField(context.Context, *UpdateFieldRequest) (*longrunning.Operation, error)
  765. // Lists the field configuration and metadata for this database.
  766. //
  767. // Currently,
  768. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  769. // only supports listing fields that have been explicitly overridden. To issue
  770. // this query, call
  771. // [FirestoreAdmin.ListFields][google.firestore.admin.v1beta2.FirestoreAdmin.ListFields]
  772. // with the filter set to `indexConfig.usesAncestorConfig:false`.
  773. ListFields(context.Context, *ListFieldsRequest) (*ListFieldsResponse, error)
  774. // Exports a copy of all or a subset of documents from Google Cloud Firestore
  775. // to another storage system, such as Google Cloud Storage. Recent updates to
  776. // documents may not be reflected in the export. The export occurs in the
  777. // background and its progress can be monitored and managed via the
  778. // Operation resource that is created. The output of an export may only be
  779. // used once the associated operation is done. If an export operation is
  780. // cancelled before completion it may leave partial data behind in Google
  781. // Cloud Storage.
  782. ExportDocuments(context.Context, *ExportDocumentsRequest) (*longrunning.Operation, error)
  783. // Imports documents into Google Cloud Firestore. Existing documents with the
  784. // same name are overwritten. The import occurs in the background and its
  785. // progress can be monitored and managed via the Operation resource that is
  786. // created. If an ImportDocuments operation is cancelled, it is possible
  787. // that a subset of the data has already been imported to Cloud Firestore.
  788. ImportDocuments(context.Context, *ImportDocumentsRequest) (*longrunning.Operation, error)
  789. }
  790. func RegisterFirestoreAdminServer(s *grpc.Server, srv FirestoreAdminServer) {
  791. s.RegisterService(&_FirestoreAdmin_serviceDesc, srv)
  792. }
  793. func _FirestoreAdmin_CreateIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  794. in := new(CreateIndexRequest)
  795. if err := dec(in); err != nil {
  796. return nil, err
  797. }
  798. if interceptor == nil {
  799. return srv.(FirestoreAdminServer).CreateIndex(ctx, in)
  800. }
  801. info := &grpc.UnaryServerInfo{
  802. Server: srv,
  803. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/CreateIndex",
  804. }
  805. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  806. return srv.(FirestoreAdminServer).CreateIndex(ctx, req.(*CreateIndexRequest))
  807. }
  808. return interceptor(ctx, in, info, handler)
  809. }
  810. func _FirestoreAdmin_ListIndexes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  811. in := new(ListIndexesRequest)
  812. if err := dec(in); err != nil {
  813. return nil, err
  814. }
  815. if interceptor == nil {
  816. return srv.(FirestoreAdminServer).ListIndexes(ctx, in)
  817. }
  818. info := &grpc.UnaryServerInfo{
  819. Server: srv,
  820. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ListIndexes",
  821. }
  822. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  823. return srv.(FirestoreAdminServer).ListIndexes(ctx, req.(*ListIndexesRequest))
  824. }
  825. return interceptor(ctx, in, info, handler)
  826. }
  827. func _FirestoreAdmin_GetIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  828. in := new(GetIndexRequest)
  829. if err := dec(in); err != nil {
  830. return nil, err
  831. }
  832. if interceptor == nil {
  833. return srv.(FirestoreAdminServer).GetIndex(ctx, in)
  834. }
  835. info := &grpc.UnaryServerInfo{
  836. Server: srv,
  837. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/GetIndex",
  838. }
  839. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  840. return srv.(FirestoreAdminServer).GetIndex(ctx, req.(*GetIndexRequest))
  841. }
  842. return interceptor(ctx, in, info, handler)
  843. }
  844. func _FirestoreAdmin_DeleteIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  845. in := new(DeleteIndexRequest)
  846. if err := dec(in); err != nil {
  847. return nil, err
  848. }
  849. if interceptor == nil {
  850. return srv.(FirestoreAdminServer).DeleteIndex(ctx, in)
  851. }
  852. info := &grpc.UnaryServerInfo{
  853. Server: srv,
  854. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/DeleteIndex",
  855. }
  856. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  857. return srv.(FirestoreAdminServer).DeleteIndex(ctx, req.(*DeleteIndexRequest))
  858. }
  859. return interceptor(ctx, in, info, handler)
  860. }
  861. func _FirestoreAdmin_GetField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  862. in := new(GetFieldRequest)
  863. if err := dec(in); err != nil {
  864. return nil, err
  865. }
  866. if interceptor == nil {
  867. return srv.(FirestoreAdminServer).GetField(ctx, in)
  868. }
  869. info := &grpc.UnaryServerInfo{
  870. Server: srv,
  871. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/GetField",
  872. }
  873. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  874. return srv.(FirestoreAdminServer).GetField(ctx, req.(*GetFieldRequest))
  875. }
  876. return interceptor(ctx, in, info, handler)
  877. }
  878. func _FirestoreAdmin_UpdateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  879. in := new(UpdateFieldRequest)
  880. if err := dec(in); err != nil {
  881. return nil, err
  882. }
  883. if interceptor == nil {
  884. return srv.(FirestoreAdminServer).UpdateField(ctx, in)
  885. }
  886. info := &grpc.UnaryServerInfo{
  887. Server: srv,
  888. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/UpdateField",
  889. }
  890. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  891. return srv.(FirestoreAdminServer).UpdateField(ctx, req.(*UpdateFieldRequest))
  892. }
  893. return interceptor(ctx, in, info, handler)
  894. }
  895. func _FirestoreAdmin_ListFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  896. in := new(ListFieldsRequest)
  897. if err := dec(in); err != nil {
  898. return nil, err
  899. }
  900. if interceptor == nil {
  901. return srv.(FirestoreAdminServer).ListFields(ctx, in)
  902. }
  903. info := &grpc.UnaryServerInfo{
  904. Server: srv,
  905. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ListFields",
  906. }
  907. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  908. return srv.(FirestoreAdminServer).ListFields(ctx, req.(*ListFieldsRequest))
  909. }
  910. return interceptor(ctx, in, info, handler)
  911. }
  912. func _FirestoreAdmin_ExportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  913. in := new(ExportDocumentsRequest)
  914. if err := dec(in); err != nil {
  915. return nil, err
  916. }
  917. if interceptor == nil {
  918. return srv.(FirestoreAdminServer).ExportDocuments(ctx, in)
  919. }
  920. info := &grpc.UnaryServerInfo{
  921. Server: srv,
  922. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ExportDocuments",
  923. }
  924. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  925. return srv.(FirestoreAdminServer).ExportDocuments(ctx, req.(*ExportDocumentsRequest))
  926. }
  927. return interceptor(ctx, in, info, handler)
  928. }
  929. func _FirestoreAdmin_ImportDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  930. in := new(ImportDocumentsRequest)
  931. if err := dec(in); err != nil {
  932. return nil, err
  933. }
  934. if interceptor == nil {
  935. return srv.(FirestoreAdminServer).ImportDocuments(ctx, in)
  936. }
  937. info := &grpc.UnaryServerInfo{
  938. Server: srv,
  939. FullMethod: "/google.firestore.admin.v1beta2.FirestoreAdmin/ImportDocuments",
  940. }
  941. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  942. return srv.(FirestoreAdminServer).ImportDocuments(ctx, req.(*ImportDocumentsRequest))
  943. }
  944. return interceptor(ctx, in, info, handler)
  945. }
  946. var _FirestoreAdmin_serviceDesc = grpc.ServiceDesc{
  947. ServiceName: "google.firestore.admin.v1beta2.FirestoreAdmin",
  948. HandlerType: (*FirestoreAdminServer)(nil),
  949. Methods: []grpc.MethodDesc{
  950. {
  951. MethodName: "CreateIndex",
  952. Handler: _FirestoreAdmin_CreateIndex_Handler,
  953. },
  954. {
  955. MethodName: "ListIndexes",
  956. Handler: _FirestoreAdmin_ListIndexes_Handler,
  957. },
  958. {
  959. MethodName: "GetIndex",
  960. Handler: _FirestoreAdmin_GetIndex_Handler,
  961. },
  962. {
  963. MethodName: "DeleteIndex",
  964. Handler: _FirestoreAdmin_DeleteIndex_Handler,
  965. },
  966. {
  967. MethodName: "GetField",
  968. Handler: _FirestoreAdmin_GetField_Handler,
  969. },
  970. {
  971. MethodName: "UpdateField",
  972. Handler: _FirestoreAdmin_UpdateField_Handler,
  973. },
  974. {
  975. MethodName: "ListFields",
  976. Handler: _FirestoreAdmin_ListFields_Handler,
  977. },
  978. {
  979. MethodName: "ExportDocuments",
  980. Handler: _FirestoreAdmin_ExportDocuments_Handler,
  981. },
  982. {
  983. MethodName: "ImportDocuments",
  984. Handler: _FirestoreAdmin_ImportDocuments_Handler,
  985. },
  986. },
  987. Streams: []grpc.StreamDesc{},
  988. Metadata: "google/firestore/admin/v1beta2/firestore_admin.proto",
  989. }
  990. func init() {
  991. proto.RegisterFile("google/firestore/admin/v1beta2/firestore_admin.proto", fileDescriptor_firestore_admin_6e970f5f749e23d0)
  992. }
  993. var fileDescriptor_firestore_admin_6e970f5f749e23d0 = []byte{
  994. // 940 bytes of a gzipped FileDescriptorProto
  995. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcb, 0x6e, 0x1c, 0x45,
  996. 0x17, 0x56, 0x8d, 0x2f, 0x7f, 0x7c, 0xe6, 0xc7, 0x26, 0x15, 0x69, 0x34, 0xea, 0x10, 0x34, 0x6a,
  997. 0x30, 0x1a, 0xcd, 0xa2, 0x5b, 0x9e, 0xa0, 0x2c, 0x3c, 0x8a, 0x50, 0x3c, 0xbe, 0x60, 0x08, 0xc2,
  998. 0x4c, 0x08, 0x48, 0x6c, 0x46, 0xe5, 0x99, 0x72, 0xab, 0x70, 0x4f, 0x55, 0xd3, 0x55, 0x8d, 0x4c,
  999. 0x22, 0x13, 0xc4, 0x03, 0xb0, 0xe1, 0x0d, 0x58, 0xb0, 0x00, 0x29, 0x6c, 0xd8, 0xb0, 0x62, 0xc1,
  1000. 0x23, 0xf0, 0x0a, 0xbc, 0x01, 0x2f, 0x80, 0xea, 0xd2, 0x73, 0x27, 0xdd, 0x8e, 0x2c, 0xb1, 0xeb,
  1001. 0x3a, 0x75, 0xbe, 0x3a, 0xdf, 0x39, 0x75, 0xea, 0x3b, 0x0d, 0x6f, 0x47, 0x42, 0x44, 0x31, 0x0d,
  1002. 0xcf, 0x58, 0x4a, 0xa5, 0x12, 0x29, 0x0d, 0xc9, 0x70, 0xc4, 0x78, 0xf8, 0xe5, 0xce, 0x29, 0x55,
  1003. 0xa4, 0x3d, 0xb1, 0xf7, 0x8d, 0x3d, 0x48, 0x52, 0xa1, 0x04, 0x7e, 0xdd, 0xa2, 0x82, 0xf1, 0x6e,
  1004. 0x60, 0x77, 0x1d, 0xca, 0x7b, 0xcd, 0x9d, 0x4a, 0x12, 0x16, 0x12, 0xce, 0x85, 0x22, 0x8a, 0x09,
  1005. 0x2e, 0x2d, 0xda, 0x6b, 0x15, 0xc6, 0xa4, 0xf1, 0xb0, 0xa4, 0x2f, 0xe3, 0x43, 0x7a, 0xe1, 0x7c,
  1006. 0xdf, 0x70, 0xbe, 0xb1, 0xe0, 0x51, 0x9a, 0x71, 0xce, 0x78, 0x14, 0x8a, 0x84, 0xa6, 0x33, 0xc1,
  1007. 0x6f, 0x3b, 0x27, 0xb3, 0x3a, 0xcd, 0xce, 0x42, 0x3a, 0x4a, 0xd4, 0x57, 0x6e, 0xb3, 0x31, 0xbf,
  1008. 0x69, 0xa8, 0xf4, 0x47, 0x44, 0x9e, 0x5b, 0x0f, 0x9f, 0x01, 0xee, 0xa6, 0x94, 0x28, 0x7a, 0xac,
  1009. 0x03, 0xf7, 0xe8, 0x17, 0x19, 0x95, 0x0a, 0xd7, 0x60, 0x3d, 0x21, 0x29, 0xe5, 0xaa, 0x8e, 0x1a,
  1010. 0xa8, 0xb9, 0xd1, 0x73, 0x2b, 0xdc, 0x81, 0x35, 0x43, 0xb0, 0x5e, 0x69, 0xa0, 0x66, 0xb5, 0xbd,
  1011. 0x1d, 0xbc, 0xb8, 0x6e, 0x81, 0x3d, 0xd4, 0x62, 0xfc, 0x6f, 0x10, 0xe0, 0x87, 0x4c, 0x2a, 0x63,
  1012. 0xa4, 0xb2, 0x28, 0x56, 0x0d, 0xd6, 0xcf, 0x58, 0xac, 0x68, 0x6a, 0x82, 0x6d, 0xf4, 0xdc, 0x0a,
  1013. 0xdf, 0x86, 0x8d, 0x84, 0x44, 0xb4, 0x2f, 0xd9, 0x13, 0x5a, 0x5f, 0x69, 0xa0, 0xe6, 0x5a, 0xef,
  1014. 0x86, 0x36, 0x3c, 0x62, 0x4f, 0x28, 0xbe, 0x03, 0x60, 0x36, 0x95, 0x38, 0xa7, 0xbc, 0xbe, 0x6a,
  1015. 0x80, 0xc6, 0xfd, 0x63, 0x6d, 0xf0, 0xbf, 0x86, 0x5b, 0x33, 0x0c, 0x64, 0x22, 0xb8, 0xa4, 0xf8,
  1016. 0x1d, 0xf8, 0x1f, 0xb3, 0xa6, 0x3a, 0x6a, 0xac, 0x94, 0x4f, 0x2c, 0x47, 0xe1, 0xb7, 0x60, 0x8b,
  1017. 0xd3, 0x0b, 0xd5, 0x9f, 0x8a, 0x6d, 0x49, 0xbf, 0xa2, 0xcd, 0x27, 0xe3, 0xf8, 0xdb, 0xb0, 0x75,
  1018. 0x44, 0xd5, 0x4c, 0xa9, 0x31, 0xac, 0x72, 0x32, 0xa2, 0x2e, 0x79, 0xf3, 0xed, 0x37, 0x01, 0xef,
  1019. 0xd3, 0x98, 0xce, 0x5d, 0xca, 0x32, 0xcf, 0xef, 0x10, 0xe0, 0xc7, 0xc9, 0x90, 0x28, 0x7a, 0xa8,
  1020. 0x6f, 0x36, 0x77, 0xed, 0xc0, 0x9a, 0xb9, 0x69, 0xe3, 0x5b, 0x22, 0x1d, 0x0b, 0xb6, 0x18, 0xdc,
  1021. 0x81, 0x6a, 0x66, 0x8e, 0x34, 0x7d, 0xe2, 0xae, 0xda, 0xcb, 0x8f, 0xc8, 0x5b, 0xc9, 0x62, 0x3e,
  1022. 0x20, 0xf2, 0xbc, 0x07, 0xd6, 0x5d, 0x7f, 0xbb, 0x0c, 0x67, 0xc8, 0x2c, 0xe3, 0xfd, 0x0c, 0x6e,
  1023. 0xea, 0x8b, 0x30, 0x7e, 0xff, 0x49, 0x27, 0x3c, 0xb5, 0xbd, 0x98, 0x13, 0x70, 0x8d, 0x70, 0x5f,
  1024. 0x47, 0xd2, 0x96, 0xb2, 0x7d, 0x60, 0x13, 0x75, 0xa0, 0xd2, 0x6d, 0xf0, 0x0c, 0x6a, 0x07, 0x17,
  1025. 0x89, 0x48, 0xd5, 0xbe, 0x18, 0x64, 0x23, 0xca, 0x95, 0x7c, 0x41, 0xad, 0xf0, 0x36, 0x6c, 0x0e,
  1026. 0x44, 0x1c, 0xd3, 0x81, 0x7e, 0xf6, 0x7d, 0x36, 0x94, 0xf5, 0x4a, 0x63, 0x45, 0x1f, 0x3a, 0xb1,
  1027. 0x1e, 0x0f, 0x25, 0x6e, 0xc1, 0x4d, 0x91, 0xa9, 0x24, 0x53, 0xfd, 0x2c, 0x65, 0xfd, 0x24, 0xa5,
  1028. 0x67, 0xec, 0xc2, 0x54, 0x65, 0xa3, 0xb7, 0x65, 0x37, 0x1e, 0xa7, 0xec, 0xc4, 0x98, 0xfd, 0x4b,
  1029. 0xa8, 0x1d, 0x8f, 0xae, 0x9b, 0x40, 0x13, 0x5e, 0x65, 0x7c, 0x69, 0xfc, 0x4d, 0x63, 0x1f, 0x87,
  1030. 0x6f, 0xff, 0xfd, 0x7f, 0xd8, 0x3c, 0xcc, 0x2b, 0xfa, 0x40, 0x17, 0x14, 0xff, 0x8a, 0xa0, 0x3a,
  1031. 0x25, 0x44, 0xb8, 0x5d, 0x54, 0xf9, 0x45, 0xd5, 0xf2, 0xee, 0xe4, 0x98, 0x29, 0xc1, 0x0c, 0x3e,
  1032. 0xcc, 0x05, 0xd3, 0xef, 0x7d, 0xfb, 0xe7, 0x5f, 0xdf, 0x57, 0x1e, 0xfa, 0xdd, 0xb1, 0xd8, 0x3e,
  1033. 0xb5, 0x0d, 0x76, 0x3f, 0x49, 0xc5, 0xe7, 0x74, 0xa0, 0x64, 0xd8, 0x0a, 0x87, 0x44, 0x91, 0x53,
  1034. 0x22, 0xa9, 0xfe, 0x9e, 0xa4, 0x77, 0x94, 0x8a, 0x2c, 0x91, 0x61, 0xeb, 0x32, 0x74, 0x2f, 0x7e,
  1035. 0xd7, 0x6a, 0x1a, 0xfe, 0x03, 0x41, 0x75, 0x4a, 0x51, 0x8a, 0x69, 0x2f, 0x0a, 0xa0, 0x77, 0xf7,
  1036. 0x4a, 0x18, 0xdb, 0xa9, 0xfe, 0xfb, 0x26, 0x99, 0x03, 0x7c, 0x1d, 0xc9, 0xe0, 0x5f, 0x10, 0xdc,
  1037. 0xc8, 0x75, 0x09, 0x87, 0x45, 0x74, 0xe6, 0x14, 0xcc, 0x2b, 0x27, 0x96, 0xcb, 0x18, 0xeb, 0xee,
  1038. 0x2a, 0xcf, 0x37, 0xa7, 0x1b, 0xb6, 0x2e, 0xf1, 0x8f, 0x08, 0xaa, 0x53, 0x12, 0x59, 0x5c, 0xf7,
  1039. 0x45, 0x3d, 0xf5, 0x6a, 0x0b, 0x92, 0x76, 0xa0, 0x47, 0x67, 0x4e, 0xb4, 0x75, 0x2d, 0x44, 0x9f,
  1040. 0xdb, 0xd2, 0x1a, 0x9d, 0x28, 0x55, 0xda, 0x69, 0xe9, 0xf4, 0xca, 0xe9, 0x8f, 0xff, 0x9e, 0x61,
  1041. 0xbc, 0x8f, 0xf7, 0x5e, 0x9a, 0xb1, 0x15, 0x30, 0x4d, 0xf8, 0x37, 0x04, 0xd5, 0xa9, 0x89, 0x52,
  1042. 0x5c, 0xd9, 0xc5, 0xf1, 0x53, 0xf4, 0x10, 0x3f, 0x35, 0x74, 0x3f, 0x6a, 0xbf, 0x3b, 0xa1, 0x6b,
  1043. 0x7f, 0x91, 0x5e, 0x96, 0xf4, 0xae, 0x9b, 0x5c, 0xbf, 0x23, 0x80, 0x89, 0xaa, 0xe3, 0x9d, 0x32,
  1044. 0x0f, 0x6b, 0x66, 0x04, 0x79, 0xed, 0xab, 0x40, 0xdc, 0x53, 0x5c, 0x52, 0xfd, 0xab, 0x3f, 0x45,
  1045. 0x37, 0x41, 0x7e, 0x46, 0xb0, 0x35, 0x37, 0x1a, 0xf0, 0xbd, 0x22, 0x4e, 0xcb, 0x67, 0x49, 0xd1,
  1046. 0x2d, 0x3c, 0x30, 0xb4, 0x3b, 0xfe, 0xbd, 0x52, 0x4d, 0x73, 0xb9, 0x4b, 0x67, 0xa3, 0xec, 0xa2,
  1047. 0x96, 0x61, 0x3b, 0x37, 0x47, 0x8a, 0xd9, 0x2e, 0x1f, 0x3c, 0xd7, 0xcd, 0x96, 0x8d, 0xe6, 0xd9,
  1048. 0xee, 0x3d, 0x47, 0xe0, 0x0f, 0xc4, 0xa8, 0x80, 0xdf, 0xde, 0xad, 0xd9, 0xc9, 0x74, 0xa2, 0xc5,
  1049. 0xe1, 0x04, 0x7d, 0xd6, 0x75, 0xb0, 0x48, 0xc4, 0x84, 0x47, 0x81, 0x48, 0xa3, 0x30, 0xa2, 0xdc,
  1050. 0x48, 0x47, 0x68, 0xb7, 0x48, 0xc2, 0xe4, 0xbf, 0xfd, 0xd7, 0x77, 0xcc, 0xea, 0x87, 0xca, 0xea,
  1051. 0x51, 0xf7, 0xf0, 0xd1, 0x4f, 0x95, 0x37, 0x8f, 0xec, 0x61, 0xdd, 0x58, 0x64, 0xc3, 0x60, 0x1c,
  1052. 0x30, 0x30, 0x11, 0x83, 0x4f, 0x76, 0xf6, 0x34, 0xe6, 0x74, 0xdd, 0x9c, 0x7e, 0xf7, 0x9f, 0x00,
  1053. 0x00, 0x00, 0xff, 0xff, 0xc9, 0xcc, 0x19, 0xb3, 0xd4, 0x0c, 0x00, 0x00,
  1054. }