Class Backup.Builder

  • All Implemented Interfaces:
    BackupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Backup

    public static final class Backup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
    implements BackupOrBuilder
     The details of a backup resource.
     
    Protobuf type google.cloud.metastore.v1alpha.Backup
    • Method Detail

      • getDescriptor

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

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

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

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

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

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

        public Backup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • setField

        public Backup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • clearField

        public Backup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • clearOneof

        public Backup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • setRepeatedField

        public Backup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • addRepeatedField

        public Backup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • mergeFrom

        public Backup.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<Backup.Builder>
      • isInitialized

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

        public Backup.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<Backup.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Immutable. The relative resource name of the backup, in the following form:
        
         `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getName in interface BackupOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. The relative resource name of the backup, in the following form:
        
         `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getNameBytes in interface BackupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Backup.Builder setName​(String value)
         Immutable. The relative resource name of the backup, in the following form:
        
         `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Backup.Builder clearName()
         Immutable. The relative resource name of the backup, in the following form:
        
         `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Backup.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The relative resource name of the backup, in the following form:
        
         `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface BackupOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface BackupOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Backup.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Backup.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Backup.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Backup.Builder clearCreateTime()
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the backup was started.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface BackupOrBuilder
      • hasEndTime

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

        public com.google.protobuf.Timestamp getEndTime()
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTime in interface BackupOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Backup.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEndTime

        public Backup.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEndTime

        public Backup.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEndTime

        public Backup.Builder clearEndTime()
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Output only. The time when the backup finished creating.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeOrBuilder in interface BackupOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. The current state of the backup.
         
        .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface BackupOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Backup.Builder setStateValue​(int value)
         Output only. The current state of the backup.
         
        .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.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 Backup.State getState()
         Output only. The current state of the backup.
         
        .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface BackupOrBuilder
        Returns:
        The state.
      • setState

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

        public Backup.Builder clearState()
         Output only. The current state of the backup.
         
        .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasServiceRevision

        public boolean hasServiceRevision()
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasServiceRevision in interface BackupOrBuilder
        Returns:
        Whether the serviceRevision field is set.
      • getServiceRevision

        public Service getServiceRevision()
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceRevision in interface BackupOrBuilder
        Returns:
        The serviceRevision.
      • setServiceRevision

        public Backup.Builder setServiceRevision​(Service value)
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setServiceRevision

        public Backup.Builder setServiceRevision​(Service.Builder builderForValue)
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeServiceRevision

        public Backup.Builder mergeServiceRevision​(Service value)
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearServiceRevision

        public Backup.Builder clearServiceRevision()
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServiceRevisionBuilder

        public Service.Builder getServiceRevisionBuilder()
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getServiceRevisionOrBuilder

        public ServiceOrBuilder getServiceRevisionOrBuilder()
         Output only. The revision of the service at the time of backup.
         
        .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceRevisionOrBuilder in interface BackupOrBuilder
      • getDescription

        public String getDescription()
         The description of the backup.
         
        string description = 6;
        Specified by:
        getDescription in interface BackupOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the backup.
         
        string description = 6;
        Specified by:
        getDescriptionBytes in interface BackupOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Backup.Builder setDescription​(String value)
         The description of the backup.
         
        string description = 6;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Backup.Builder clearDescription()
         The description of the backup.
         
        string description = 6;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Backup.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the backup.
         
        string description = 6;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getRestoringServicesList

        public com.google.protobuf.ProtocolStringList getRestoringServicesList()
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoringServicesList in interface BackupOrBuilder
        Returns:
        A list containing the restoringServices.
      • getRestoringServicesCount

        public int getRestoringServicesCount()
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoringServicesCount in interface BackupOrBuilder
        Returns:
        The count of restoringServices.
      • getRestoringServices

        public String getRestoringServices​(int index)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoringServices in interface BackupOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The restoringServices at the given index.
      • getRestoringServicesBytes

        public com.google.protobuf.ByteString getRestoringServicesBytes​(int index)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoringServicesBytes in interface BackupOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the restoringServices at the given index.
      • setRestoringServices

        public Backup.Builder setRestoringServices​(int index,
                                                   String value)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The restoringServices to set.
        Returns:
        This builder for chaining.
      • addRestoringServices

        public Backup.Builder addRestoringServices​(String value)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The restoringServices to add.
        Returns:
        This builder for chaining.
      • addAllRestoringServices

        public Backup.Builder addAllRestoringServices​(Iterable<String> values)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The restoringServices to add.
        Returns:
        This builder for chaining.
      • clearRestoringServices

        public Backup.Builder clearRestoringServices()
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addRestoringServicesBytes

        public Backup.Builder addRestoringServicesBytes​(com.google.protobuf.ByteString value)
         Output only. Services that are restoring from the backup.
         
        repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the restoringServices to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Backup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • mergeUnknownFields

        public final Backup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>