Class Restore.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Restore.Builder>
com.google.cloud.metastore.v1beta.Restore.Builder
All Implemented Interfaces:
RestoreOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Restore

public static final class Restore.Builder extends com.google.protobuf.GeneratedMessage.Builder<Restore.Builder> implements RestoreOrBuilder
 The details of a metadata restore operation.
 
Protobuf type google.cloud.metastore.v1beta.Restore
  • 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<Restore.Builder>
    • clear

      public Restore.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<Restore.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<Restore.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Restore.Builder mergeFrom(Restore other)
    • isInitialized

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

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

      public boolean hasStartTime()
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStartTime in interface RestoreOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface RestoreOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Restore.Builder setStartTime(com.google.protobuf.Timestamp value)
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStartTime

      public Restore.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStartTime

      public Restore.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStartTime

      public Restore.Builder clearStartTime()
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. The time when the restore started.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeOrBuilder in interface RestoreOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndTime in interface RestoreOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTime in interface RestoreOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Restore.Builder setEndTime(com.google.protobuf.Timestamp value)
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEndTime

      public Restore.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeEndTime

      public Restore.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEndTime

      public Restore.Builder clearEndTime()
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Output only. The time when the restore ended.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeOrBuilder in interface RestoreOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The current state of the restore.
       
      .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface RestoreOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Restore.Builder setStateValue(int value)
       Output only. The current state of the restore.
       
      .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Restore.State getState()
       Output only. The current state of the restore.
       
      .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface RestoreOrBuilder
      Returns:
      The state.
    • setState

      public Restore.Builder setState(Restore.State value)
       Output only. The current state of the restore.
       
      .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Restore.Builder clearState()
       Output only. The current state of the restore.
       
      .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getBackup

      public String getBackup()
       Output only. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackup in interface RestoreOrBuilder
      Returns:
      The backup.
    • getBackupBytes

      public com.google.protobuf.ByteString getBackupBytes()
       Output only. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupBytes in interface RestoreOrBuilder
      Returns:
      The bytes for backup.
    • setBackup

      public Restore.Builder setBackup(String value)
       Output only. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The backup to set.
      Returns:
      This builder for chaining.
    • clearBackup

      public Restore.Builder clearBackup()
       Output only. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBackupBytes

      public Restore.Builder setBackupBytes(com.google.protobuf.ByteString value)
       Output only. The relative resource name of the metastore service backup to
       restore from, in the following form:
      
       `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
       
      string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for backup to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of restore.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface RestoreOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Restore.Builder setTypeValue(int value)
       Output only. The type of restore.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Restore.RestoreType getType()
       Output only. The type of restore.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface RestoreOrBuilder
      Returns:
      The type.
    • setType

      public Restore.Builder setType(Restore.RestoreType value)
       Output only. The type of restore.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Restore.Builder clearType()
       Output only. The type of restore.
       
      .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDetails

      public String getDetails()
       Output only. The restore details containing the revision of the service to
       be restored to, in format of JSON.
       
      string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetails in interface RestoreOrBuilder
      Returns:
      The details.
    • getDetailsBytes

      public com.google.protobuf.ByteString getDetailsBytes()
       Output only. The restore details containing the revision of the service to
       be restored to, in format of JSON.
       
      string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailsBytes in interface RestoreOrBuilder
      Returns:
      The bytes for details.
    • setDetails

      public Restore.Builder setDetails(String value)
       Output only. The restore details containing the revision of the service to
       be restored to, in format of JSON.
       
      string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The details to set.
      Returns:
      This builder for chaining.
    • clearDetails

      public Restore.Builder clearDetails()
       Output only. The restore details containing the revision of the service to
       be restored to, in format of JSON.
       
      string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDetailsBytes

      public Restore.Builder setDetailsBytes(com.google.protobuf.ByteString value)
       Output only. The restore details containing the revision of the service to
       be restored to, in format of JSON.
       
      string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for details to set.
      Returns:
      This builder for chaining.