Class RestoreDatabaseMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.firestore.admin.v1.RestoreDatabaseMetadata
All Implemented Interfaces:
RestoreDatabaseMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RestoreDatabaseMetadata extends com.google.protobuf.GeneratedMessage implements RestoreDatabaseMetadataOrBuilder
 Metadata for the [long-running operation][google.longrunning.Operation] from
 the [RestoreDatabase][google.firestore.admin.v1.RestoreDatabase] request.
 
Protobuf type google.firestore.admin.v1.RestoreDatabaseMetadata
See Also:
  • Field Details

    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • OPERATION_STATE_FIELD_NUMBER

      public static final int OPERATION_STATE_FIELD_NUMBER
      See Also:
    • DATABASE_FIELD_NUMBER

      public static final int DATABASE_FIELD_NUMBER
      See Also:
    • BACKUP_FIELD_NUMBER

      public static final int BACKUP_FIELD_NUMBER
      See Also:
    • PROGRESS_PERCENTAGE_FIELD_NUMBER

      public static final int PROGRESS_PERCENTAGE_FIELD_NUMBER
      See Also:
  • 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
    • hasStartTime

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

      public com.google.protobuf.Timestamp getStartTime()
       The time the restore was started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       The time the restore was started.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface RestoreDatabaseMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The time the restore finished, unset for ongoing restores.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      hasEndTime in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The time the restore finished, unset for ongoing restores.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTime in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The time the restore finished, unset for ongoing restores.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTimeOrBuilder in interface RestoreDatabaseMetadataOrBuilder
    • getOperationStateValue

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

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

      public String getDatabase()
       The name of the database being restored to.
       
      string database = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDatabase in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.ByteString getDatabaseBytes()
       The name of the database being restored to.
       
      string database = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDatabaseBytes in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The bytes for database.
    • getBackup

      public String getBackup()
       The name of the backup restoring from.
       
      string backup = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getBackup in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The backup.
    • getBackupBytes

      public com.google.protobuf.ByteString getBackupBytes()
       The name of the backup restoring from.
       
      string backup = 5 [(.google.api.resource_reference) = { ... }
      Specified by:
      getBackupBytes in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The bytes for backup.
    • hasProgressPercentage

      public boolean hasProgressPercentage()
       How far along the restore is as an estimated percentage of remaining time.
       
      .google.firestore.admin.v1.Progress progress_percentage = 8;
      Specified by:
      hasProgressPercentage in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      Whether the progressPercentage field is set.
    • getProgressPercentage

      public Progress getProgressPercentage()
       How far along the restore is as an estimated percentage of remaining time.
       
      .google.firestore.admin.v1.Progress progress_percentage = 8;
      Specified by:
      getProgressPercentage in interface RestoreDatabaseMetadataOrBuilder
      Returns:
      The progressPercentage.
    • getProgressPercentageOrBuilder

      public ProgressOrBuilder getProgressPercentageOrBuilder()
       How far along the restore is as an estimated percentage of remaining time.
       
      .google.firestore.admin.v1.Progress progress_percentage = 8;
      Specified by:
      getProgressPercentageOrBuilder in interface RestoreDatabaseMetadataOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RestoreDatabaseMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RestoreDatabaseMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreDatabaseMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RestoreDatabaseMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RestoreDatabaseMetadata.Builder newBuilder()
    • newBuilder

      public static RestoreDatabaseMetadata.Builder newBuilder(RestoreDatabaseMetadata prototype)
    • toBuilder

      public RestoreDatabaseMetadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RestoreDatabaseMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RestoreDatabaseMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RestoreDatabaseMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<RestoreDatabaseMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RestoreDatabaseMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder