Class IndexOperationMetadata.Builder

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

public static final class IndexOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<IndexOperationMetadata.Builder> implements IndexOperationMetadataOrBuilder
 Metadata for [google.longrunning.Operation][google.longrunning.Operation]
 results from
 [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
 
Protobuf type google.firestore.admin.v1.IndexOperationMetadata
  • 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<IndexOperationMetadata.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<IndexOperationMetadata.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<IndexOperationMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public IndexOperationMetadata.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<IndexOperationMetadata.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<IndexOperationMetadata.Builder>
    • mergeFrom

      public IndexOperationMetadata.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<IndexOperationMetadata.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       The time this operation started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      hasStartTime in interface IndexOperationMetadataOrBuilder
      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 IndexOperationMetadataOrBuilder
      Returns:
      The startTime.
    • setStartTime

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

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

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

      public IndexOperationMetadata.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 IndexOperationMetadataOrBuilder
    • 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 IndexOperationMetadataOrBuilder
      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 IndexOperationMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public IndexOperationMetadata.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 IndexOperationMetadata.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 IndexOperationMetadata.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 IndexOperationMetadata.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 IndexOperationMetadataOrBuilder
    • getIndex

      public String getIndex()
       The index resource that this operation is acting on. For example:
       `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
       
      string index = 3;
      Specified by:
      getIndex in interface IndexOperationMetadataOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       The index resource that this operation is acting on. For example:
       `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
       
      string index = 3;
      Specified by:
      getIndexBytes in interface IndexOperationMetadataOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public IndexOperationMetadata.Builder setIndex(String value)
       The index resource that this operation is acting on. For example:
       `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
       
      string index = 3;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public IndexOperationMetadata.Builder clearIndex()
       The index resource that this operation is acting on. For example:
       `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
       
      string index = 3;
      Returns:
      This builder for chaining.
    • setIndexBytes

      public IndexOperationMetadata.Builder setIndexBytes(com.google.protobuf.ByteString value)
       The index resource that this operation is acting on. For example:
       `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
       
      string index = 3;
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The state of the operation.
       
      .google.firestore.admin.v1.OperationState state = 4;
      Specified by:
      getStateValue in interface IndexOperationMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public IndexOperationMetadata.Builder setStateValue(int value)
       The state of the operation.
       
      .google.firestore.admin.v1.OperationState state = 4;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public OperationState getState()
       The state of the operation.
       
      .google.firestore.admin.v1.OperationState state = 4;
      Specified by:
      getState in interface IndexOperationMetadataOrBuilder
      Returns:
      The state.
    • setState

       The state of the operation.
       
      .google.firestore.admin.v1.OperationState state = 4;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public IndexOperationMetadata.Builder clearState()
       The state of the operation.
       
      .google.firestore.admin.v1.OperationState state = 4;
      Returns:
      This builder for chaining.
    • hasProgressDocuments

      public boolean hasProgressDocuments()
       The progress, in documents, of this operation.
       
      .google.firestore.admin.v1.Progress progress_documents = 5;
      Specified by:
      hasProgressDocuments in interface IndexOperationMetadataOrBuilder
      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 = 5;
      Specified by:
      getProgressDocuments in interface IndexOperationMetadataOrBuilder
      Returns:
      The progressDocuments.
    • setProgressDocuments

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

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

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

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

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

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

      public boolean hasProgressBytes()
       The progress, in bytes, of this operation.
       
      .google.firestore.admin.v1.Progress progress_bytes = 6;
      Specified by:
      hasProgressBytes in interface IndexOperationMetadataOrBuilder
      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 = 6;
      Specified by:
      getProgressBytes in interface IndexOperationMetadataOrBuilder
      Returns:
      The progressBytes.
    • setProgressBytes

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

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

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

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

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

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