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.
 
 
 

706 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/firestore/admin/v1beta2/operation.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 timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Describes the state of the operation.
  19. type OperationState int32
  20. const (
  21. // Unspecified.
  22. OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0
  23. // Request is being prepared for processing.
  24. OperationState_INITIALIZING OperationState = 1
  25. // Request is actively being processed.
  26. OperationState_PROCESSING OperationState = 2
  27. // Request is in the process of being cancelled after user called
  28. // google.longrunning.Operations.CancelOperation on the operation.
  29. OperationState_CANCELLING OperationState = 3
  30. // Request has been processed and is in its finalization stage.
  31. OperationState_FINALIZING OperationState = 4
  32. // Request has completed successfully.
  33. OperationState_SUCCESSFUL OperationState = 5
  34. // Request has finished being processed, but encountered an error.
  35. OperationState_FAILED OperationState = 6
  36. // Request has finished being cancelled after user called
  37. // google.longrunning.Operations.CancelOperation.
  38. OperationState_CANCELLED OperationState = 7
  39. )
  40. var OperationState_name = map[int32]string{
  41. 0: "OPERATION_STATE_UNSPECIFIED",
  42. 1: "INITIALIZING",
  43. 2: "PROCESSING",
  44. 3: "CANCELLING",
  45. 4: "FINALIZING",
  46. 5: "SUCCESSFUL",
  47. 6: "FAILED",
  48. 7: "CANCELLED",
  49. }
  50. var OperationState_value = map[string]int32{
  51. "OPERATION_STATE_UNSPECIFIED": 0,
  52. "INITIALIZING": 1,
  53. "PROCESSING": 2,
  54. "CANCELLING": 3,
  55. "FINALIZING": 4,
  56. "SUCCESSFUL": 5,
  57. "FAILED": 6,
  58. "CANCELLED": 7,
  59. }
  60. func (x OperationState) String() string {
  61. return proto.EnumName(OperationState_name, int32(x))
  62. }
  63. func (OperationState) EnumDescriptor() ([]byte, []int) {
  64. return fileDescriptor_operation_01ea62015323b97b, []int{0}
  65. }
  66. // Specifies how the index is changing.
  67. type FieldOperationMetadata_IndexConfigDelta_ChangeType int32
  68. const (
  69. // The type of change is not specified or known.
  70. FieldOperationMetadata_IndexConfigDelta_CHANGE_TYPE_UNSPECIFIED FieldOperationMetadata_IndexConfigDelta_ChangeType = 0
  71. // The single field index is being added.
  72. FieldOperationMetadata_IndexConfigDelta_ADD FieldOperationMetadata_IndexConfigDelta_ChangeType = 1
  73. // The single field index is being removed.
  74. FieldOperationMetadata_IndexConfigDelta_REMOVE FieldOperationMetadata_IndexConfigDelta_ChangeType = 2
  75. )
  76. var FieldOperationMetadata_IndexConfigDelta_ChangeType_name = map[int32]string{
  77. 0: "CHANGE_TYPE_UNSPECIFIED",
  78. 1: "ADD",
  79. 2: "REMOVE",
  80. }
  81. var FieldOperationMetadata_IndexConfigDelta_ChangeType_value = map[string]int32{
  82. "CHANGE_TYPE_UNSPECIFIED": 0,
  83. "ADD": 1,
  84. "REMOVE": 2,
  85. }
  86. func (x FieldOperationMetadata_IndexConfigDelta_ChangeType) String() string {
  87. return proto.EnumName(FieldOperationMetadata_IndexConfigDelta_ChangeType_name, int32(x))
  88. }
  89. func (FieldOperationMetadata_IndexConfigDelta_ChangeType) EnumDescriptor() ([]byte, []int) {
  90. return fileDescriptor_operation_01ea62015323b97b, []int{1, 0, 0}
  91. }
  92. // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
  93. // results from
  94. // [FirestoreAdmin.CreateIndex][google.firestore.admin.v1beta2.FirestoreAdmin.CreateIndex].
  95. type IndexOperationMetadata struct {
  96. // The time this operation started.
  97. StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  98. // The time this operation completed. Will be unset if operation still in
  99. // progress.
  100. EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  101. // The index resource that this operation is acting on. For example:
  102. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
  103. Index string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"`
  104. // The state of the operation.
  105. State OperationState `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"state,omitempty"`
  106. // The progress, in documents, of this operation.
  107. ProgressDocuments *Progress `protobuf:"bytes,5,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"`
  108. // The progress, in bytes, of this operation.
  109. ProgressBytes *Progress `protobuf:"bytes,6,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"`
  110. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  111. XXX_unrecognized []byte `json:"-"`
  112. XXX_sizecache int32 `json:"-"`
  113. }
  114. func (m *IndexOperationMetadata) Reset() { *m = IndexOperationMetadata{} }
  115. func (m *IndexOperationMetadata) String() string { return proto.CompactTextString(m) }
  116. func (*IndexOperationMetadata) ProtoMessage() {}
  117. func (*IndexOperationMetadata) Descriptor() ([]byte, []int) {
  118. return fileDescriptor_operation_01ea62015323b97b, []int{0}
  119. }
  120. func (m *IndexOperationMetadata) XXX_Unmarshal(b []byte) error {
  121. return xxx_messageInfo_IndexOperationMetadata.Unmarshal(m, b)
  122. }
  123. func (m *IndexOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  124. return xxx_messageInfo_IndexOperationMetadata.Marshal(b, m, deterministic)
  125. }
  126. func (dst *IndexOperationMetadata) XXX_Merge(src proto.Message) {
  127. xxx_messageInfo_IndexOperationMetadata.Merge(dst, src)
  128. }
  129. func (m *IndexOperationMetadata) XXX_Size() int {
  130. return xxx_messageInfo_IndexOperationMetadata.Size(m)
  131. }
  132. func (m *IndexOperationMetadata) XXX_DiscardUnknown() {
  133. xxx_messageInfo_IndexOperationMetadata.DiscardUnknown(m)
  134. }
  135. var xxx_messageInfo_IndexOperationMetadata proto.InternalMessageInfo
  136. func (m *IndexOperationMetadata) GetStartTime() *timestamp.Timestamp {
  137. if m != nil {
  138. return m.StartTime
  139. }
  140. return nil
  141. }
  142. func (m *IndexOperationMetadata) GetEndTime() *timestamp.Timestamp {
  143. if m != nil {
  144. return m.EndTime
  145. }
  146. return nil
  147. }
  148. func (m *IndexOperationMetadata) GetIndex() string {
  149. if m != nil {
  150. return m.Index
  151. }
  152. return ""
  153. }
  154. func (m *IndexOperationMetadata) GetState() OperationState {
  155. if m != nil {
  156. return m.State
  157. }
  158. return OperationState_OPERATION_STATE_UNSPECIFIED
  159. }
  160. func (m *IndexOperationMetadata) GetProgressDocuments() *Progress {
  161. if m != nil {
  162. return m.ProgressDocuments
  163. }
  164. return nil
  165. }
  166. func (m *IndexOperationMetadata) GetProgressBytes() *Progress {
  167. if m != nil {
  168. return m.ProgressBytes
  169. }
  170. return nil
  171. }
  172. // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
  173. // results from
  174. // [FirestoreAdmin.UpdateField][google.firestore.admin.v1beta2.FirestoreAdmin.UpdateField].
  175. type FieldOperationMetadata struct {
  176. // The time this operation started.
  177. StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  178. // The time this operation completed. Will be unset if operation still in
  179. // progress.
  180. EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  181. // The field resource that this operation is acting on. For example:
  182. // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
  183. Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
  184. // A list of
  185. // [IndexConfigDelta][google.firestore.admin.v1beta2.FieldOperationMetadata.IndexConfigDelta],
  186. // which describe the intent of this operation.
  187. IndexConfigDeltas []*FieldOperationMetadata_IndexConfigDelta `protobuf:"bytes,4,rep,name=index_config_deltas,json=indexConfigDeltas,proto3" json:"index_config_deltas,omitempty"`
  188. // The state of the operation.
  189. State OperationState `protobuf:"varint,5,opt,name=state,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"state,omitempty"`
  190. // The progress, in documents, of this operation.
  191. DocumentProgress *Progress `protobuf:"bytes,6,opt,name=document_progress,json=documentProgress,proto3" json:"document_progress,omitempty"`
  192. // The progress, in bytes, of this operation.
  193. BytesProgress *Progress `protobuf:"bytes,7,opt,name=bytes_progress,json=bytesProgress,proto3" json:"bytes_progress,omitempty"`
  194. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  195. XXX_unrecognized []byte `json:"-"`
  196. XXX_sizecache int32 `json:"-"`
  197. }
  198. func (m *FieldOperationMetadata) Reset() { *m = FieldOperationMetadata{} }
  199. func (m *FieldOperationMetadata) String() string { return proto.CompactTextString(m) }
  200. func (*FieldOperationMetadata) ProtoMessage() {}
  201. func (*FieldOperationMetadata) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_operation_01ea62015323b97b, []int{1}
  203. }
  204. func (m *FieldOperationMetadata) XXX_Unmarshal(b []byte) error {
  205. return xxx_messageInfo_FieldOperationMetadata.Unmarshal(m, b)
  206. }
  207. func (m *FieldOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. return xxx_messageInfo_FieldOperationMetadata.Marshal(b, m, deterministic)
  209. }
  210. func (dst *FieldOperationMetadata) XXX_Merge(src proto.Message) {
  211. xxx_messageInfo_FieldOperationMetadata.Merge(dst, src)
  212. }
  213. func (m *FieldOperationMetadata) XXX_Size() int {
  214. return xxx_messageInfo_FieldOperationMetadata.Size(m)
  215. }
  216. func (m *FieldOperationMetadata) XXX_DiscardUnknown() {
  217. xxx_messageInfo_FieldOperationMetadata.DiscardUnknown(m)
  218. }
  219. var xxx_messageInfo_FieldOperationMetadata proto.InternalMessageInfo
  220. func (m *FieldOperationMetadata) GetStartTime() *timestamp.Timestamp {
  221. if m != nil {
  222. return m.StartTime
  223. }
  224. return nil
  225. }
  226. func (m *FieldOperationMetadata) GetEndTime() *timestamp.Timestamp {
  227. if m != nil {
  228. return m.EndTime
  229. }
  230. return nil
  231. }
  232. func (m *FieldOperationMetadata) GetField() string {
  233. if m != nil {
  234. return m.Field
  235. }
  236. return ""
  237. }
  238. func (m *FieldOperationMetadata) GetIndexConfigDeltas() []*FieldOperationMetadata_IndexConfigDelta {
  239. if m != nil {
  240. return m.IndexConfigDeltas
  241. }
  242. return nil
  243. }
  244. func (m *FieldOperationMetadata) GetState() OperationState {
  245. if m != nil {
  246. return m.State
  247. }
  248. return OperationState_OPERATION_STATE_UNSPECIFIED
  249. }
  250. func (m *FieldOperationMetadata) GetDocumentProgress() *Progress {
  251. if m != nil {
  252. return m.DocumentProgress
  253. }
  254. return nil
  255. }
  256. func (m *FieldOperationMetadata) GetBytesProgress() *Progress {
  257. if m != nil {
  258. return m.BytesProgress
  259. }
  260. return nil
  261. }
  262. // Information about an index configuration change.
  263. type FieldOperationMetadata_IndexConfigDelta struct {
  264. // Specifies how the index is changing.
  265. ChangeType FieldOperationMetadata_IndexConfigDelta_ChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=google.firestore.admin.v1beta2.FieldOperationMetadata_IndexConfigDelta_ChangeType" json:"change_type,omitempty"`
  266. // The index being changed.
  267. Index *Index `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"`
  268. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  269. XXX_unrecognized []byte `json:"-"`
  270. XXX_sizecache int32 `json:"-"`
  271. }
  272. func (m *FieldOperationMetadata_IndexConfigDelta) Reset() {
  273. *m = FieldOperationMetadata_IndexConfigDelta{}
  274. }
  275. func (m *FieldOperationMetadata_IndexConfigDelta) String() string { return proto.CompactTextString(m) }
  276. func (*FieldOperationMetadata_IndexConfigDelta) ProtoMessage() {}
  277. func (*FieldOperationMetadata_IndexConfigDelta) Descriptor() ([]byte, []int) {
  278. return fileDescriptor_operation_01ea62015323b97b, []int{1, 0}
  279. }
  280. func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Unmarshal(b []byte) error {
  281. return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Unmarshal(m, b)
  282. }
  283. func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  284. return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Marshal(b, m, deterministic)
  285. }
  286. func (dst *FieldOperationMetadata_IndexConfigDelta) XXX_Merge(src proto.Message) {
  287. xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Merge(dst, src)
  288. }
  289. func (m *FieldOperationMetadata_IndexConfigDelta) XXX_Size() int {
  290. return xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.Size(m)
  291. }
  292. func (m *FieldOperationMetadata_IndexConfigDelta) XXX_DiscardUnknown() {
  293. xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta.DiscardUnknown(m)
  294. }
  295. var xxx_messageInfo_FieldOperationMetadata_IndexConfigDelta proto.InternalMessageInfo
  296. func (m *FieldOperationMetadata_IndexConfigDelta) GetChangeType() FieldOperationMetadata_IndexConfigDelta_ChangeType {
  297. if m != nil {
  298. return m.ChangeType
  299. }
  300. return FieldOperationMetadata_IndexConfigDelta_CHANGE_TYPE_UNSPECIFIED
  301. }
  302. func (m *FieldOperationMetadata_IndexConfigDelta) GetIndex() *Index {
  303. if m != nil {
  304. return m.Index
  305. }
  306. return nil
  307. }
  308. // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
  309. // results from
  310. // [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ExportDocuments].
  311. type ExportDocumentsMetadata struct {
  312. // The time this operation started.
  313. StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  314. // The time this operation completed. Will be unset if operation still in
  315. // progress.
  316. EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  317. // The state of the export operation.
  318. OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"operation_state,omitempty"`
  319. // The progress, in documents, of this operation.
  320. ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"`
  321. // The progress, in bytes, of this operation.
  322. ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"`
  323. // Which collection ids are being exported.
  324. CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"`
  325. // Where the entities are being exported to.
  326. OutputUriPrefix string `protobuf:"bytes,7,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
  327. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  328. XXX_unrecognized []byte `json:"-"`
  329. XXX_sizecache int32 `json:"-"`
  330. }
  331. func (m *ExportDocumentsMetadata) Reset() { *m = ExportDocumentsMetadata{} }
  332. func (m *ExportDocumentsMetadata) String() string { return proto.CompactTextString(m) }
  333. func (*ExportDocumentsMetadata) ProtoMessage() {}
  334. func (*ExportDocumentsMetadata) Descriptor() ([]byte, []int) {
  335. return fileDescriptor_operation_01ea62015323b97b, []int{2}
  336. }
  337. func (m *ExportDocumentsMetadata) XXX_Unmarshal(b []byte) error {
  338. return xxx_messageInfo_ExportDocumentsMetadata.Unmarshal(m, b)
  339. }
  340. func (m *ExportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  341. return xxx_messageInfo_ExportDocumentsMetadata.Marshal(b, m, deterministic)
  342. }
  343. func (dst *ExportDocumentsMetadata) XXX_Merge(src proto.Message) {
  344. xxx_messageInfo_ExportDocumentsMetadata.Merge(dst, src)
  345. }
  346. func (m *ExportDocumentsMetadata) XXX_Size() int {
  347. return xxx_messageInfo_ExportDocumentsMetadata.Size(m)
  348. }
  349. func (m *ExportDocumentsMetadata) XXX_DiscardUnknown() {
  350. xxx_messageInfo_ExportDocumentsMetadata.DiscardUnknown(m)
  351. }
  352. var xxx_messageInfo_ExportDocumentsMetadata proto.InternalMessageInfo
  353. func (m *ExportDocumentsMetadata) GetStartTime() *timestamp.Timestamp {
  354. if m != nil {
  355. return m.StartTime
  356. }
  357. return nil
  358. }
  359. func (m *ExportDocumentsMetadata) GetEndTime() *timestamp.Timestamp {
  360. if m != nil {
  361. return m.EndTime
  362. }
  363. return nil
  364. }
  365. func (m *ExportDocumentsMetadata) GetOperationState() OperationState {
  366. if m != nil {
  367. return m.OperationState
  368. }
  369. return OperationState_OPERATION_STATE_UNSPECIFIED
  370. }
  371. func (m *ExportDocumentsMetadata) GetProgressDocuments() *Progress {
  372. if m != nil {
  373. return m.ProgressDocuments
  374. }
  375. return nil
  376. }
  377. func (m *ExportDocumentsMetadata) GetProgressBytes() *Progress {
  378. if m != nil {
  379. return m.ProgressBytes
  380. }
  381. return nil
  382. }
  383. func (m *ExportDocumentsMetadata) GetCollectionIds() []string {
  384. if m != nil {
  385. return m.CollectionIds
  386. }
  387. return nil
  388. }
  389. func (m *ExportDocumentsMetadata) GetOutputUriPrefix() string {
  390. if m != nil {
  391. return m.OutputUriPrefix
  392. }
  393. return ""
  394. }
  395. // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
  396. // results from
  397. // [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1beta2.FirestoreAdmin.ImportDocuments].
  398. type ImportDocumentsMetadata struct {
  399. // The time this operation started.
  400. StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  401. // The time this operation completed. Will be unset if operation still in
  402. // progress.
  403. EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  404. // The state of the import operation.
  405. OperationState OperationState `protobuf:"varint,3,opt,name=operation_state,json=operationState,proto3,enum=google.firestore.admin.v1beta2.OperationState" json:"operation_state,omitempty"`
  406. // The progress, in documents, of this operation.
  407. ProgressDocuments *Progress `protobuf:"bytes,4,opt,name=progress_documents,json=progressDocuments,proto3" json:"progress_documents,omitempty"`
  408. // The progress, in bytes, of this operation.
  409. ProgressBytes *Progress `protobuf:"bytes,5,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"`
  410. // Which collection ids are being imported.
  411. CollectionIds []string `protobuf:"bytes,6,rep,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"`
  412. // The location of the documents being imported.
  413. InputUriPrefix string `protobuf:"bytes,7,opt,name=input_uri_prefix,json=inputUriPrefix,proto3" json:"input_uri_prefix,omitempty"`
  414. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  415. XXX_unrecognized []byte `json:"-"`
  416. XXX_sizecache int32 `json:"-"`
  417. }
  418. func (m *ImportDocumentsMetadata) Reset() { *m = ImportDocumentsMetadata{} }
  419. func (m *ImportDocumentsMetadata) String() string { return proto.CompactTextString(m) }
  420. func (*ImportDocumentsMetadata) ProtoMessage() {}
  421. func (*ImportDocumentsMetadata) Descriptor() ([]byte, []int) {
  422. return fileDescriptor_operation_01ea62015323b97b, []int{3}
  423. }
  424. func (m *ImportDocumentsMetadata) XXX_Unmarshal(b []byte) error {
  425. return xxx_messageInfo_ImportDocumentsMetadata.Unmarshal(m, b)
  426. }
  427. func (m *ImportDocumentsMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  428. return xxx_messageInfo_ImportDocumentsMetadata.Marshal(b, m, deterministic)
  429. }
  430. func (dst *ImportDocumentsMetadata) XXX_Merge(src proto.Message) {
  431. xxx_messageInfo_ImportDocumentsMetadata.Merge(dst, src)
  432. }
  433. func (m *ImportDocumentsMetadata) XXX_Size() int {
  434. return xxx_messageInfo_ImportDocumentsMetadata.Size(m)
  435. }
  436. func (m *ImportDocumentsMetadata) XXX_DiscardUnknown() {
  437. xxx_messageInfo_ImportDocumentsMetadata.DiscardUnknown(m)
  438. }
  439. var xxx_messageInfo_ImportDocumentsMetadata proto.InternalMessageInfo
  440. func (m *ImportDocumentsMetadata) GetStartTime() *timestamp.Timestamp {
  441. if m != nil {
  442. return m.StartTime
  443. }
  444. return nil
  445. }
  446. func (m *ImportDocumentsMetadata) GetEndTime() *timestamp.Timestamp {
  447. if m != nil {
  448. return m.EndTime
  449. }
  450. return nil
  451. }
  452. func (m *ImportDocumentsMetadata) GetOperationState() OperationState {
  453. if m != nil {
  454. return m.OperationState
  455. }
  456. return OperationState_OPERATION_STATE_UNSPECIFIED
  457. }
  458. func (m *ImportDocumentsMetadata) GetProgressDocuments() *Progress {
  459. if m != nil {
  460. return m.ProgressDocuments
  461. }
  462. return nil
  463. }
  464. func (m *ImportDocumentsMetadata) GetProgressBytes() *Progress {
  465. if m != nil {
  466. return m.ProgressBytes
  467. }
  468. return nil
  469. }
  470. func (m *ImportDocumentsMetadata) GetCollectionIds() []string {
  471. if m != nil {
  472. return m.CollectionIds
  473. }
  474. return nil
  475. }
  476. func (m *ImportDocumentsMetadata) GetInputUriPrefix() string {
  477. if m != nil {
  478. return m.InputUriPrefix
  479. }
  480. return ""
  481. }
  482. // Returned in the [google.longrunning.Operation][google.longrunning.Operation]
  483. // response field.
  484. type ExportDocumentsResponse struct {
  485. // Location of the output files. This can be used to begin an import
  486. // into Cloud Firestore (this project or another project) after the operation
  487. // completes successfully.
  488. OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
  489. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  490. XXX_unrecognized []byte `json:"-"`
  491. XXX_sizecache int32 `json:"-"`
  492. }
  493. func (m *ExportDocumentsResponse) Reset() { *m = ExportDocumentsResponse{} }
  494. func (m *ExportDocumentsResponse) String() string { return proto.CompactTextString(m) }
  495. func (*ExportDocumentsResponse) ProtoMessage() {}
  496. func (*ExportDocumentsResponse) Descriptor() ([]byte, []int) {
  497. return fileDescriptor_operation_01ea62015323b97b, []int{4}
  498. }
  499. func (m *ExportDocumentsResponse) XXX_Unmarshal(b []byte) error {
  500. return xxx_messageInfo_ExportDocumentsResponse.Unmarshal(m, b)
  501. }
  502. func (m *ExportDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  503. return xxx_messageInfo_ExportDocumentsResponse.Marshal(b, m, deterministic)
  504. }
  505. func (dst *ExportDocumentsResponse) XXX_Merge(src proto.Message) {
  506. xxx_messageInfo_ExportDocumentsResponse.Merge(dst, src)
  507. }
  508. func (m *ExportDocumentsResponse) XXX_Size() int {
  509. return xxx_messageInfo_ExportDocumentsResponse.Size(m)
  510. }
  511. func (m *ExportDocumentsResponse) XXX_DiscardUnknown() {
  512. xxx_messageInfo_ExportDocumentsResponse.DiscardUnknown(m)
  513. }
  514. var xxx_messageInfo_ExportDocumentsResponse proto.InternalMessageInfo
  515. func (m *ExportDocumentsResponse) GetOutputUriPrefix() string {
  516. if m != nil {
  517. return m.OutputUriPrefix
  518. }
  519. return ""
  520. }
  521. // Describes the progress of the operation.
  522. // Unit of work is generic and must be interpreted based on where
  523. // [Progress][google.firestore.admin.v1beta2.Progress] is used.
  524. type Progress struct {
  525. // The amount of work estimated.
  526. EstimatedWork int64 `protobuf:"varint,1,opt,name=estimated_work,json=estimatedWork,proto3" json:"estimated_work,omitempty"`
  527. // The amount of work completed.
  528. CompletedWork int64 `protobuf:"varint,2,opt,name=completed_work,json=completedWork,proto3" json:"completed_work,omitempty"`
  529. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  530. XXX_unrecognized []byte `json:"-"`
  531. XXX_sizecache int32 `json:"-"`
  532. }
  533. func (m *Progress) Reset() { *m = Progress{} }
  534. func (m *Progress) String() string { return proto.CompactTextString(m) }
  535. func (*Progress) ProtoMessage() {}
  536. func (*Progress) Descriptor() ([]byte, []int) {
  537. return fileDescriptor_operation_01ea62015323b97b, []int{5}
  538. }
  539. func (m *Progress) XXX_Unmarshal(b []byte) error {
  540. return xxx_messageInfo_Progress.Unmarshal(m, b)
  541. }
  542. func (m *Progress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  543. return xxx_messageInfo_Progress.Marshal(b, m, deterministic)
  544. }
  545. func (dst *Progress) XXX_Merge(src proto.Message) {
  546. xxx_messageInfo_Progress.Merge(dst, src)
  547. }
  548. func (m *Progress) XXX_Size() int {
  549. return xxx_messageInfo_Progress.Size(m)
  550. }
  551. func (m *Progress) XXX_DiscardUnknown() {
  552. xxx_messageInfo_Progress.DiscardUnknown(m)
  553. }
  554. var xxx_messageInfo_Progress proto.InternalMessageInfo
  555. func (m *Progress) GetEstimatedWork() int64 {
  556. if m != nil {
  557. return m.EstimatedWork
  558. }
  559. return 0
  560. }
  561. func (m *Progress) GetCompletedWork() int64 {
  562. if m != nil {
  563. return m.CompletedWork
  564. }
  565. return 0
  566. }
  567. func init() {
  568. proto.RegisterType((*IndexOperationMetadata)(nil), "google.firestore.admin.v1beta2.IndexOperationMetadata")
  569. proto.RegisterType((*FieldOperationMetadata)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata")
  570. proto.RegisterType((*FieldOperationMetadata_IndexConfigDelta)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata.IndexConfigDelta")
  571. proto.RegisterType((*ExportDocumentsMetadata)(nil), "google.firestore.admin.v1beta2.ExportDocumentsMetadata")
  572. proto.RegisterType((*ImportDocumentsMetadata)(nil), "google.firestore.admin.v1beta2.ImportDocumentsMetadata")
  573. proto.RegisterType((*ExportDocumentsResponse)(nil), "google.firestore.admin.v1beta2.ExportDocumentsResponse")
  574. proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1beta2.Progress")
  575. proto.RegisterEnum("google.firestore.admin.v1beta2.OperationState", OperationState_name, OperationState_value)
  576. proto.RegisterEnum("google.firestore.admin.v1beta2.FieldOperationMetadata_IndexConfigDelta_ChangeType", FieldOperationMetadata_IndexConfigDelta_ChangeType_name, FieldOperationMetadata_IndexConfigDelta_ChangeType_value)
  577. }
  578. func init() {
  579. proto.RegisterFile("google/firestore/admin/v1beta2/operation.proto", fileDescriptor_operation_01ea62015323b97b)
  580. }
  581. var fileDescriptor_operation_01ea62015323b97b = []byte{
  582. // 857 bytes of a gzipped FileDescriptorProto
  583. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x5d, 0x6f, 0xe3, 0x44,
  584. 0x14, 0xc5, 0x71, 0x92, 0x6e, 0x6e, 0xa9, 0xd7, 0x1d, 0xd0, 0x36, 0xea, 0x22, 0xb6, 0x8a, 0xa8,
  585. 0x14, 0xf5, 0xc1, 0xd1, 0x06, 0xf1, 0x80, 0x56, 0x42, 0x4a, 0x1d, 0x27, 0x58, 0xca, 0x26, 0x91,
  586. 0x93, 0x6c, 0x61, 0x5f, 0xac, 0x69, 0x3c, 0x31, 0xa3, 0x8d, 0x3d, 0x96, 0x67, 0xc2, 0xb6, 0xef,
  587. 0x3c, 0x23, 0x7e, 0x01, 0x0f, 0xbc, 0xc1, 0x9f, 0x42, 0xfc, 0x13, 0x34, 0xe3, 0x8f, 0x68, 0x4b,
  588. 0x97, 0xa8, 0x14, 0x04, 0x48, 0xfb, 0xd6, 0x73, 0x73, 0xce, 0xf1, 0xcc, 0xdc, 0x73, 0xaf, 0x0a,
  589. 0x56, 0xc8, 0x58, 0xb8, 0x26, 0x9d, 0x15, 0x4d, 0x09, 0x17, 0x2c, 0x25, 0x1d, 0x1c, 0x44, 0x34,
  590. 0xee, 0x7c, 0xfb, 0xf4, 0x92, 0x08, 0xdc, 0xed, 0xb0, 0x84, 0xa4, 0x58, 0x50, 0x16, 0x5b, 0x49,
  591. 0xca, 0x04, 0x43, 0x1f, 0x67, 0x7c, 0xab, 0xe4, 0x5b, 0x8a, 0x6f, 0xe5, 0xfc, 0xe3, 0x8f, 0x72,
  592. 0x3f, 0x9c, 0xd0, 0x0e, 0x8e, 0x63, 0x26, 0x94, 0x98, 0x67, 0xea, 0xe3, 0xb3, 0x1d, 0x5f, 0xa3,
  593. 0x71, 0x40, 0xae, 0x72, 0xee, 0x93, 0x9c, 0xab, 0xd0, 0xe5, 0x66, 0xd5, 0x11, 0x34, 0x22, 0x5c,
  594. 0xe0, 0x28, 0xc9, 0x08, 0xad, 0x1f, 0x74, 0x78, 0xe4, 0x4a, 0xc1, 0xa4, 0x38, 0xe3, 0x73, 0x22,
  595. 0x70, 0x80, 0x05, 0x46, 0x9f, 0x03, 0x70, 0x81, 0x53, 0xe1, 0x4b, 0x4d, 0x53, 0x3b, 0xd1, 0xda,
  596. 0xfb, 0xdd, 0xe3, 0xfc, 0xaa, 0x56, 0x61, 0x68, 0xcd, 0x0b, 0x43, 0xaf, 0xa1, 0xd8, 0x12, 0xa3,
  597. 0xcf, 0xe0, 0x01, 0x89, 0x83, 0x4c, 0x58, 0xd9, 0x29, 0xdc, 0x23, 0x71, 0xa0, 0x64, 0x1f, 0x42,
  598. 0x4d, 0x1d, 0xbe, 0xa9, 0x9f, 0x68, 0xed, 0x86, 0x97, 0x01, 0xd4, 0x87, 0x1a, 0x17, 0x58, 0x90,
  599. 0x66, 0xf5, 0x44, 0x6b, 0x1b, 0x5d, 0xcb, 0xfa, 0xf3, 0xd7, 0xb3, 0xca, 0x9b, 0xcc, 0xa4, 0xca,
  600. 0xcb, 0xc4, 0xe8, 0x02, 0x50, 0x92, 0xb2, 0x30, 0x25, 0x9c, 0xfb, 0x01, 0x5b, 0x6e, 0x22, 0x12,
  601. 0x0b, 0xde, 0xac, 0xa9, 0xc3, 0xb5, 0x77, 0x59, 0x4e, 0x73, 0xa5, 0x77, 0x58, 0x78, 0xf4, 0x0b,
  602. 0x0b, 0x34, 0x01, 0xa3, 0x34, 0xbe, 0xbc, 0x16, 0x84, 0x37, 0xeb, 0x77, 0x34, 0x3d, 0x28, 0xf4,
  603. 0xe7, 0x52, 0xde, 0xfa, 0xbe, 0x0e, 0x8f, 0x06, 0x94, 0xac, 0x83, 0xff, 0x48, 0x4b, 0x56, 0xf2,
  604. 0x2c, 0x45, 0x4b, 0x14, 0x40, 0xaf, 0xe1, 0x03, 0xd5, 0x1b, 0x7f, 0xc9, 0xe2, 0x15, 0x0d, 0xfd,
  605. 0x80, 0xac, 0x05, 0xe6, 0xcd, 0xea, 0x89, 0xde, 0xde, 0xef, 0x0e, 0x77, 0x5d, 0xfc, 0xf6, 0xcb,
  606. 0x59, 0x2a, 0x86, 0xb6, 0x32, 0xec, 0x4b, 0x3f, 0xef, 0x90, 0xde, 0xa8, 0xf0, 0x6d, 0x16, 0x6a,
  607. 0xf7, 0xc9, 0xc2, 0x02, 0x0e, 0x8b, 0x08, 0xf8, 0xc5, 0xdb, 0xdf, 0xb9, 0x6b, 0x66, 0x61, 0x51,
  608. 0x54, 0x64, 0x12, 0x54, 0x00, 0xb6, 0x9e, 0x7b, 0x77, 0x4d, 0x82, 0xd2, 0x17, 0xf0, 0xf8, 0xbb,
  609. 0x0a, 0x98, 0x37, 0x5f, 0x05, 0x71, 0xd8, 0x5f, 0x7e, 0x83, 0xe3, 0x90, 0xf8, 0xe2, 0x3a, 0xc9,
  610. 0x42, 0x60, 0x74, 0xbd, 0xbf, 0xe9, 0xcd, 0x2d, 0x5b, 0x59, 0xcf, 0xaf, 0x13, 0xe2, 0xc1, 0xb2,
  611. 0xfc, 0x1b, 0x3d, 0x2b, 0x26, 0x33, 0x8b, 0xce, 0xe9, 0xae, 0xcf, 0x29, 0xdf, 0x7c, 0x80, 0x5b,
  612. 0x5f, 0x00, 0x6c, 0x6d, 0xd1, 0x63, 0x38, 0xb2, 0xbf, 0xec, 0x8d, 0x87, 0x8e, 0x3f, 0xff, 0x7a,
  613. 0xea, 0xf8, 0x8b, 0xf1, 0x6c, 0xea, 0xd8, 0xee, 0xc0, 0x75, 0xfa, 0xe6, 0x7b, 0x68, 0x0f, 0xf4,
  614. 0x5e, 0xbf, 0x6f, 0x6a, 0x08, 0xa0, 0xee, 0x39, 0xcf, 0x27, 0x2f, 0x1c, 0xb3, 0xd2, 0xfa, 0x4d,
  615. 0x87, 0x23, 0xe7, 0x2a, 0x61, 0xa9, 0x28, 0xa7, 0xee, 0x5f, 0x9c, 0x88, 0x0b, 0x78, 0x58, 0xee,
  616. 0x73, 0x3f, 0x0b, 0xa3, 0xfe, 0x97, 0xc2, 0x68, 0xb0, 0x37, 0xf0, 0x5b, 0x36, 0x54, 0xf5, 0x9f,
  617. 0xd8, 0x50, 0xb5, 0x7b, 0x6d, 0x28, 0x74, 0x0a, 0xc6, 0x92, 0xad, 0xd7, 0x64, 0xa9, 0xde, 0x80,
  618. 0x06, 0x72, 0x78, 0xf4, 0x76, 0xc3, 0x3b, 0xd8, 0x56, 0xdd, 0x80, 0xa3, 0x33, 0x38, 0x64, 0x1b,
  619. 0x91, 0x6c, 0x84, 0xbf, 0x49, 0xa9, 0x9f, 0xa4, 0x64, 0x45, 0xaf, 0xd4, 0x48, 0x34, 0xbc, 0x87,
  620. 0xd9, 0x0f, 0x8b, 0x94, 0x4e, 0x55, 0xb9, 0xf5, 0xab, 0x0e, 0x47, 0x6e, 0xf4, 0xae, 0xc7, 0xff,
  621. 0xb7, 0x1e, 0xb7, 0xc1, 0xa4, 0xf1, 0xad, 0x2d, 0x36, 0x54, 0x7d, 0xdb, 0x61, 0xe7, 0x0f, 0x43,
  622. 0xec, 0x11, 0x9e, 0xb0, 0x98, 0x93, 0xdb, 0x83, 0xa2, 0xdd, 0x1e, 0x94, 0xaf, 0xe0, 0x41, 0xb9,
  623. 0x70, 0x4f, 0xc1, 0x20, 0x5c, 0xd0, 0x08, 0x0b, 0x12, 0xf8, 0xaf, 0x59, 0xfa, 0x4a, 0x89, 0x74,
  624. 0xef, 0xa0, 0xac, 0x5e, 0xb0, 0xf4, 0x55, 0x76, 0x95, 0x28, 0x59, 0x93, 0x92, 0x56, 0xc9, 0x68,
  625. 0x65, 0x55, 0xd2, 0xce, 0x7e, 0xd4, 0xc0, 0x78, 0xb3, 0x7d, 0xe8, 0x09, 0x3c, 0x9e, 0x4c, 0x1d,
  626. 0xaf, 0x37, 0x77, 0x27, 0x63, 0x7f, 0x36, 0xef, 0xcd, 0x6f, 0xee, 0x2b, 0x13, 0xde, 0x77, 0xc7,
  627. 0xee, 0xdc, 0xed, 0x8d, 0xdc, 0x97, 0xee, 0x78, 0x68, 0x6a, 0xc8, 0x00, 0x98, 0x7a, 0x13, 0xdb,
  628. 0x99, 0xcd, 0x24, 0xae, 0x48, 0x6c, 0xf7, 0xc6, 0xb6, 0x33, 0x1a, 0x49, 0xac, 0x4b, 0x3c, 0x70,
  629. 0xc7, 0x05, 0xbf, 0x2a, 0xf1, 0x6c, 0x61, 0x4b, 0xfe, 0x60, 0x31, 0x32, 0x6b, 0x72, 0xf1, 0x0d,
  630. 0x7a, 0xee, 0xc8, 0xe9, 0x9b, 0x75, 0x74, 0x00, 0x8d, 0x5c, 0xeb, 0xf4, 0xcd, 0xbd, 0xf3, 0x9f,
  631. 0x35, 0x68, 0x2d, 0x59, 0xb4, 0xa3, 0xa3, 0xe7, 0xdb, 0x4b, 0x4c, 0x65, 0xc4, 0xa7, 0xda, 0x4b,
  632. 0x3b, 0x57, 0x84, 0x6c, 0x8d, 0xe3, 0xd0, 0x62, 0x69, 0xd8, 0x09, 0x49, 0xac, 0x06, 0xa0, 0x93,
  633. 0xfd, 0x84, 0x13, 0xca, 0xdf, 0xf6, 0x0f, 0xe5, 0x33, 0x85, 0x7e, 0xaa, 0x54, 0x87, 0xf6, 0x60,
  634. 0xf6, 0x4b, 0xe5, 0x93, 0x61, 0x66, 0x66, 0xaf, 0xd9, 0x26, 0xb0, 0x06, 0xe5, 0x21, 0x7a, 0xea,
  635. 0x10, 0x2f, 0x9e, 0x9e, 0x4b, 0xcd, 0x65, 0x5d, 0xb9, 0x7f, 0xfa, 0x7b, 0x00, 0x00, 0x00, 0xff,
  636. 0xff, 0x66, 0x9c, 0x3d, 0x65, 0x1b, 0x0b, 0x00, 0x00,
  637. }