Class ImportDocumentsMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder>
com.google.firestore.admin.v1.ImportDocumentsMetadata.Builder
All Implemented Interfaces:
ImportDocumentsMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportDocumentsMetadata

public static final class ImportDocumentsMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder> implements ImportDocumentsMetadataOrBuilder
 Metadata for [google.longrunning.Operation][google.longrunning.Operation]
 results from
 [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
 
Protobuf type google.firestore.admin.v1.ImportDocumentsMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder>
    • getDefaultInstanceForType

      public ImportDocumentsMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImportDocumentsMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImportDocumentsMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportDocumentsMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDocumentsMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportDocumentsMetadata.Builder>
    • mergeFrom

      public ImportDocumentsMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportDocumentsMetadata.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      hasStartTime in interface ImportDocumentsMetadataOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ImportDocumentsMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
    • setStartTime

      public ImportDocumentsMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
    • mergeStartTime

      public ImportDocumentsMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
    • clearStartTime

      public ImportDocumentsMetadata.Builder clearStartTime()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface ImportDocumentsMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      hasEndTime in interface ImportDocumentsMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTime in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public ImportDocumentsMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
    • setEndTime

      public ImportDocumentsMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
    • mergeEndTime

      public ImportDocumentsMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
    • clearEndTime

      public ImportDocumentsMetadata.Builder clearEndTime()
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The time this operation completed. Will be unset if operation still in
       progress.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTimeOrBuilder in interface ImportDocumentsMetadataOrBuilder
    • getOperationStateValue

      public int getOperationStateValue()
       The state of the import operation.
       
      .google.firestore.admin.v1.OperationState operation_state = 3;
      Specified by:
      getOperationStateValue in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for operationState.
    • setOperationStateValue

      public ImportDocumentsMetadata.Builder setOperationStateValue(int value)
       The state of the import operation.
       
      .google.firestore.admin.v1.OperationState operation_state = 3;
      Parameters:
      value - The enum numeric value on the wire for operationState to set.
      Returns:
      This builder for chaining.
    • getOperationState

      public OperationState getOperationState()
       The state of the import operation.
       
      .google.firestore.admin.v1.OperationState operation_state = 3;
      Specified by:
      getOperationState in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The operationState.
    • setOperationState

      public ImportDocumentsMetadata.Builder setOperationState(OperationState value)
       The state of the import operation.
       
      .google.firestore.admin.v1.OperationState operation_state = 3;
      Parameters:
      value - The operationState to set.
      Returns:
      This builder for chaining.
    • clearOperationState

      public ImportDocumentsMetadata.Builder clearOperationState()
       The state of the import operation.
       
      .google.firestore.admin.v1.OperationState operation_state = 3;
      Returns:
      This builder for chaining.
    • hasProgressDocuments

      public boolean hasProgressDocuments()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
      Specified by:
      hasProgressDocuments in interface ImportDocumentsMetadataOrBuilder
      Returns:
      Whether the progressDocuments field is set.
    • getProgressDocuments

      public Progress getProgressDocuments()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
      Specified by:
      getProgressDocuments in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The progressDocuments.
    • setProgressDocuments

      public ImportDocumentsMetadata.Builder setProgressDocuments(Progress value)
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
    • setProgressDocuments

      public ImportDocumentsMetadata.Builder setProgressDocuments(Progress.Builder builderForValue)
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
    • mergeProgressDocuments

      public ImportDocumentsMetadata.Builder mergeProgressDocuments(Progress value)
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
    • clearProgressDocuments

      public ImportDocumentsMetadata.Builder clearProgressDocuments()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
    • getProgressDocumentsBuilder

      public Progress.Builder getProgressDocumentsBuilder()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
    • getProgressDocumentsOrBuilder

      public ProgressOrBuilder getProgressDocumentsOrBuilder()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 4;
      Specified by:
      getProgressDocumentsOrBuilder in interface ImportDocumentsMetadataOrBuilder
    • hasProgressBytes

      public boolean hasProgressBytes()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
      Specified by:
      hasProgressBytes in interface ImportDocumentsMetadataOrBuilder
      Returns:
      Whether the progressBytes field is set.
    • getProgressBytes

      public Progress getProgressBytes()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
      Specified by:
      getProgressBytes in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The progressBytes.
    • setProgressBytes

      public ImportDocumentsMetadata.Builder setProgressBytes(Progress value)
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
    • setProgressBytes

      public ImportDocumentsMetadata.Builder setProgressBytes(Progress.Builder builderForValue)
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
    • mergeProgressBytes

      public ImportDocumentsMetadata.Builder mergeProgressBytes(Progress value)
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
    • clearProgressBytes

      public ImportDocumentsMetadata.Builder clearProgressBytes()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
    • getProgressBytesBuilder

      public Progress.Builder getProgressBytesBuilder()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
    • getProgressBytesOrBuilder

      public ProgressOrBuilder getProgressBytesOrBuilder()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 5;
      Specified by:
      getProgressBytesOrBuilder in interface ImportDocumentsMetadataOrBuilder
    • getCollectionIdsList

      public com.google.protobuf.ProtocolStringList getCollectionIdsList()
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Specified by:
      getCollectionIdsList in interface ImportDocumentsMetadataOrBuilder
      Returns:
      A list containing the collectionIds.
    • getCollectionIdsCount

      public int getCollectionIdsCount()
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Specified by:
      getCollectionIdsCount in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The count of collectionIds.
    • getCollectionIds

      public String getCollectionIds(int index)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Specified by:
      getCollectionIds in interface ImportDocumentsMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The collectionIds at the given index.
    • getCollectionIdsBytes

      public com.google.protobuf.ByteString getCollectionIdsBytes(int index)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Specified by:
      getCollectionIdsBytes in interface ImportDocumentsMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the collectionIds at the given index.
    • setCollectionIds

      public ImportDocumentsMetadata.Builder setCollectionIds(int index, String value)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Parameters:
      index - The index to set the value at.
      value - The collectionIds to set.
      Returns:
      This builder for chaining.
    • addCollectionIds

      public ImportDocumentsMetadata.Builder addCollectionIds(String value)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Parameters:
      value - The collectionIds to add.
      Returns:
      This builder for chaining.
    • addAllCollectionIds

      public ImportDocumentsMetadata.Builder addAllCollectionIds(Iterable<String> values)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Parameters:
      values - The collectionIds to add.
      Returns:
      This builder for chaining.
    • clearCollectionIds

      public ImportDocumentsMetadata.Builder clearCollectionIds()
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Returns:
      This builder for chaining.
    • addCollectionIdsBytes

      public ImportDocumentsMetadata.Builder addCollectionIdsBytes(com.google.protobuf.ByteString value)
       Which collection IDs are being imported.
       
      repeated string collection_ids = 6;
      Parameters:
      value - The bytes of the collectionIds to add.
      Returns:
      This builder for chaining.
    • getInputUriPrefix

      public String getInputUriPrefix()
       The location of the documents being imported.
       
      string input_uri_prefix = 7;
      Specified by:
      getInputUriPrefix in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The inputUriPrefix.
    • getInputUriPrefixBytes

      public com.google.protobuf.ByteString getInputUriPrefixBytes()
       The location of the documents being imported.
       
      string input_uri_prefix = 7;
      Specified by:
      getInputUriPrefixBytes in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The bytes for inputUriPrefix.
    • setInputUriPrefix

      public ImportDocumentsMetadata.Builder setInputUriPrefix(String value)
       The location of the documents being imported.
       
      string input_uri_prefix = 7;
      Parameters:
      value - The inputUriPrefix to set.
      Returns:
      This builder for chaining.
    • clearInputUriPrefix

      public ImportDocumentsMetadata.Builder clearInputUriPrefix()
       The location of the documents being imported.
       
      string input_uri_prefix = 7;
      Returns:
      This builder for chaining.
    • setInputUriPrefixBytes

      public ImportDocumentsMetadata.Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value)
       The location of the documents being imported.
       
      string input_uri_prefix = 7;
      Parameters:
      value - The bytes for inputUriPrefix to set.
      Returns:
      This builder for chaining.
    • getNamespaceIdsList

      public com.google.protobuf.ProtocolStringList getNamespaceIdsList()
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Specified by:
      getNamespaceIdsList in interface ImportDocumentsMetadataOrBuilder
      Returns:
      A list containing the namespaceIds.
    • getNamespaceIdsCount

      public int getNamespaceIdsCount()
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Specified by:
      getNamespaceIdsCount in interface ImportDocumentsMetadataOrBuilder
      Returns:
      The count of namespaceIds.
    • getNamespaceIds

      public String getNamespaceIds(int index)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Specified by:
      getNamespaceIds in interface ImportDocumentsMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The namespaceIds at the given index.
    • getNamespaceIdsBytes

      public com.google.protobuf.ByteString getNamespaceIdsBytes(int index)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Specified by:
      getNamespaceIdsBytes in interface ImportDocumentsMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the namespaceIds at the given index.
    • setNamespaceIds

      public ImportDocumentsMetadata.Builder setNamespaceIds(int index, String value)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Parameters:
      index - The index to set the value at.
      value - The namespaceIds to set.
      Returns:
      This builder for chaining.
    • addNamespaceIds

      public ImportDocumentsMetadata.Builder addNamespaceIds(String value)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Parameters:
      value - The namespaceIds to add.
      Returns:
      This builder for chaining.
    • addAllNamespaceIds

      public ImportDocumentsMetadata.Builder addAllNamespaceIds(Iterable<String> values)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Parameters:
      values - The namespaceIds to add.
      Returns:
      This builder for chaining.
    • clearNamespaceIds

      public ImportDocumentsMetadata.Builder clearNamespaceIds()
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Returns:
      This builder for chaining.
    • addNamespaceIdsBytes

      public ImportDocumentsMetadata.Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value)
       Which namespace IDs are being imported.
       
      repeated string namespace_ids = 8;
      Parameters:
      value - The bytes of the namespaceIds to add.
      Returns:
      This builder for chaining.