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
     Represents a request to perform a single point-in-time capture of
     some portion of the state of a GKE cluster, the record of the backup
     operation itself, and an anchor for the underlying artifacts that
     comprise the Backup (the config backup and VolumeBackups).
     Next id: 28
     
    Protobuf type google.cloud.gkebackup.v1.Backup
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Backup.Builder>
      • 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()
         Output only. The fully qualified name of the Backup.
         `projects/*/locations/*/backupPlans/*/backups/*`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface BackupOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The fully qualified name of the Backup.
         `projects/*/locations/*/backupPlans/*/backups/*`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface BackupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Backup.Builder setName​(String value)
         Output only. The fully qualified name of the Backup.
         `projects/*/locations/*/backupPlans/*/backups/*`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Backup.Builder clearName()
         Output only. The fully qualified name of the Backup.
         `projects/*/locations/*/backupPlans/*/backups/*`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Backup.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The fully qualified name of the Backup.
         `projects/*/locations/*/backupPlans/*/backups/*`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getUid

        public String getUid()
         Output only. Server generated global unique identifier of
         [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface BackupOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. Server generated global unique identifier of
         [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface BackupOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public Backup.Builder setUid​(String value)
         Output only. Server generated global unique identifier of
         [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public Backup.Builder clearUid()
         Output only. Server generated global unique identifier of
         [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUidBytes

        public Backup.Builder setUidBytes​(com.google.protobuf.ByteString value)
         Output only. Server generated global unique identifier of
         [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.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 timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.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 timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Backup.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Backup.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Backup.Builder clearCreateTime()
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The timestamp when this Backup resource was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface BackupOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface BackupOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface BackupOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Backup.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Backup.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Backup.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Backup.Builder clearUpdateTime()
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The timestamp when this Backup resource was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface BackupOrBuilder
      • getManual

        public boolean getManual()
         Output only. This flag indicates whether this Backup resource was created
         manually by a user or via a schedule in the BackupPlan. A value of True
         means that the Backup was created manually.
         
        bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getManual in interface BackupOrBuilder
        Returns:
        The manual.
      • setManual

        public Backup.Builder setManual​(boolean value)
         Output only. This flag indicates whether this Backup resource was created
         manually by a user or via a schedule in the BackupPlan. A value of True
         means that the Backup was created manually.
         
        bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The manual to set.
        Returns:
        This builder for chaining.
      • clearManual

        public Backup.Builder clearManual()
         Output only. This flag indicates whether this Backup resource was created
         manually by a user or via a schedule in the BackupPlan. A value of True
         means that the Backup was created manually.
         
        bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: BackupOrBuilder
         A set of custom labels supplied by user.
         
        map<string, string> labels = 6;
        Specified by:
        getLabelsCount in interface BackupOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         A set of custom labels supplied by user.
         
        map<string, string> labels = 6;
        Specified by:
        containsLabels in interface BackupOrBuilder
      • removeLabels

        public Backup.Builder removeLabels​(String key)
         A set of custom labels supplied by user.
         
        map<string, string> labels = 6;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Backup.Builder putLabels​(String key,
                                        String value)
         A set of custom labels supplied by user.
         
        map<string, string> labels = 6;
      • putAllLabels

        public Backup.Builder putAllLabels​(Map<String,​String> values)
         A set of custom labels supplied by user.
         
        map<string, string> labels = 6;
      • getDeleteLockDays

        public int getDeleteLockDays()
         Minimum age for this Backup (in days). If this field is set to a non-zero
         value, the Backup will be "locked" against deletion (either manual or
         automatic deletion) for the number of days provided (measured from the
         creation time of the Backup).  MUST be an integer value between 0-90
         (inclusive).
        
         Defaults to parent BackupPlan's
         [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
         setting and may only be increased
         (either at creation time or in a subsequent update).
         
        int32 delete_lock_days = 7;
        Specified by:
        getDeleteLockDays in interface BackupOrBuilder
        Returns:
        The deleteLockDays.
      • setDeleteLockDays

        public Backup.Builder setDeleteLockDays​(int value)
         Minimum age for this Backup (in days). If this field is set to a non-zero
         value, the Backup will be "locked" against deletion (either manual or
         automatic deletion) for the number of days provided (measured from the
         creation time of the Backup).  MUST be an integer value between 0-90
         (inclusive).
        
         Defaults to parent BackupPlan's
         [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
         setting and may only be increased
         (either at creation time or in a subsequent update).
         
        int32 delete_lock_days = 7;
        Parameters:
        value - The deleteLockDays to set.
        Returns:
        This builder for chaining.
      • clearDeleteLockDays

        public Backup.Builder clearDeleteLockDays()
         Minimum age for this Backup (in days). If this field is set to a non-zero
         value, the Backup will be "locked" against deletion (either manual or
         automatic deletion) for the number of days provided (measured from the
         creation time of the Backup).  MUST be an integer value between 0-90
         (inclusive).
        
         Defaults to parent BackupPlan's
         [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
         setting and may only be increased
         (either at creation time or in a subsequent update).
         
        int32 delete_lock_days = 7;
        Returns:
        This builder for chaining.
      • hasDeleteLockExpireTime

        public boolean hasDeleteLockExpireTime()
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDeleteLockExpireTime in interface BackupOrBuilder
        Returns:
        Whether the deleteLockExpireTime field is set.
      • getDeleteLockExpireTime

        public com.google.protobuf.Timestamp getDeleteLockExpireTime()
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteLockExpireTime in interface BackupOrBuilder
        Returns:
        The deleteLockExpireTime.
      • setDeleteLockExpireTime

        public Backup.Builder setDeleteLockExpireTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setDeleteLockExpireTime

        public Backup.Builder setDeleteLockExpireTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeDeleteLockExpireTime

        public Backup.Builder mergeDeleteLockExpireTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearDeleteLockExpireTime

        public Backup.Builder clearDeleteLockExpireTime()
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteLockExpireTimeBuilder

        public com.google.protobuf.Timestamp.Builder getDeleteLockExpireTimeBuilder()
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteLockExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
         Output only. The time at which an existing delete lock will expire for this
         backup (calculated from create_time +
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
         
        .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteLockExpireTimeOrBuilder in interface BackupOrBuilder
      • getRetainDays

        public int getRetainDays()
         The age (in days) after which this Backup will be automatically deleted.
         Must be an integer value >= 0:
        
         - If 0, no automatic deletion will occur for this Backup.
         - If not 0, this must be >=
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
         <= 365.
        
         Once a Backup is created, this value may only be increased.
        
         Defaults to the parent BackupPlan's
         [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
         value.
         
        int32 retain_days = 9;
        Specified by:
        getRetainDays in interface BackupOrBuilder
        Returns:
        The retainDays.
      • setRetainDays

        public Backup.Builder setRetainDays​(int value)
         The age (in days) after which this Backup will be automatically deleted.
         Must be an integer value >= 0:
        
         - If 0, no automatic deletion will occur for this Backup.
         - If not 0, this must be >=
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
         <= 365.
        
         Once a Backup is created, this value may only be increased.
        
         Defaults to the parent BackupPlan's
         [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
         value.
         
        int32 retain_days = 9;
        Parameters:
        value - The retainDays to set.
        Returns:
        This builder for chaining.
      • clearRetainDays

        public Backup.Builder clearRetainDays()
         The age (in days) after which this Backup will be automatically deleted.
         Must be an integer value >= 0:
        
         - If 0, no automatic deletion will occur for this Backup.
         - If not 0, this must be >=
         [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
         <= 365.
        
         Once a Backup is created, this value may only be increased.
        
         Defaults to the parent BackupPlan's
         [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
         value.
         
        int32 retain_days = 9;
        Returns:
        This builder for chaining.
      • hasRetainExpireTime

        public boolean hasRetainExpireTime()
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasRetainExpireTime in interface BackupOrBuilder
        Returns:
        Whether the retainExpireTime field is set.
      • getRetainExpireTime

        public com.google.protobuf.Timestamp getRetainExpireTime()
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRetainExpireTime in interface BackupOrBuilder
        Returns:
        The retainExpireTime.
      • setRetainExpireTime

        public Backup.Builder setRetainExpireTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setRetainExpireTime

        public Backup.Builder setRetainExpireTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeRetainExpireTime

        public Backup.Builder mergeRetainExpireTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearRetainExpireTime

        public Backup.Builder clearRetainExpireTime()
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRetainExpireTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRetainExpireTimeBuilder()
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRetainExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder()
         Output only. The time at which this Backup will be automatically deleted
         (calculated from create_time +
         [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
         
        .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRetainExpireTimeOrBuilder in interface BackupOrBuilder
      • hasEncryptionKey

        public boolean hasEncryptionKey()
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEncryptionKey in interface BackupOrBuilder
        Returns:
        Whether the encryptionKey field is set.
      • getEncryptionKey

        public EncryptionKey getEncryptionKey()
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionKey in interface BackupOrBuilder
        Returns:
        The encryptionKey.
      • setEncryptionKey

        public Backup.Builder setEncryptionKey​(EncryptionKey value)
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEncryptionKey

        public Backup.Builder setEncryptionKey​(EncryptionKey.Builder builderForValue)
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEncryptionKey

        public Backup.Builder mergeEncryptionKey​(EncryptionKey value)
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEncryptionKey

        public Backup.Builder clearEncryptionKey()
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionKeyBuilder

        public EncryptionKey.Builder getEncryptionKeyBuilder()
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionKeyOrBuilder

        public EncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
         Output only. The customer managed encryption key that was used to encrypt
         the Backup's artifacts.  Inherited from the parent BackupPlan's
         [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
         value.
         
        .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionKeyOrBuilder in interface BackupOrBuilder
      • hasAllNamespaces

        public boolean hasAllNamespaces()
         Output only. If True, all namespaces were included in the Backup.
         
        bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAllNamespaces in interface BackupOrBuilder
        Returns:
        Whether the allNamespaces field is set.
      • getAllNamespaces

        public boolean getAllNamespaces()
         Output only. If True, all namespaces were included in the Backup.
         
        bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAllNamespaces in interface BackupOrBuilder
        Returns:
        The allNamespaces.
      • setAllNamespaces

        public Backup.Builder setAllNamespaces​(boolean value)
         Output only. If True, all namespaces were included in the Backup.
         
        bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The allNamespaces to set.
        Returns:
        This builder for chaining.
      • clearAllNamespaces

        public Backup.Builder clearAllNamespaces()
         Output only. If True, all namespaces were included in the Backup.
         
        bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasSelectedNamespaces

        public boolean hasSelectedNamespaces()
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasSelectedNamespaces in interface BackupOrBuilder
        Returns:
        Whether the selectedNamespaces field is set.
      • getSelectedNamespaces

        public Namespaces getSelectedNamespaces()
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSelectedNamespaces in interface BackupOrBuilder
        Returns:
        The selectedNamespaces.
      • setSelectedNamespaces

        public Backup.Builder setSelectedNamespaces​(Namespaces value)
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setSelectedNamespaces

        public Backup.Builder setSelectedNamespaces​(Namespaces.Builder builderForValue)
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeSelectedNamespaces

        public Backup.Builder mergeSelectedNamespaces​(Namespaces value)
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearSelectedNamespaces

        public Backup.Builder clearSelectedNamespaces()
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSelectedNamespacesBuilder

        public Namespaces.Builder getSelectedNamespacesBuilder()
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSelectedNamespacesOrBuilder

        public NamespacesOrBuilder getSelectedNamespacesOrBuilder()
         Output only. If set, the list of namespaces that were included in the
         Backup.
         
        .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSelectedNamespacesOrBuilder in interface BackupOrBuilder
      • hasSelectedApplications

        public boolean hasSelectedApplications()
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasSelectedApplications in interface BackupOrBuilder
        Returns:
        Whether the selectedApplications field is set.
      • getSelectedApplications

        public NamespacedNames getSelectedApplications()
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSelectedApplications in interface BackupOrBuilder
        Returns:
        The selectedApplications.
      • setSelectedApplications

        public Backup.Builder setSelectedApplications​(NamespacedNames value)
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setSelectedApplications

        public Backup.Builder setSelectedApplications​(NamespacedNames.Builder builderForValue)
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeSelectedApplications

        public Backup.Builder mergeSelectedApplications​(NamespacedNames value)
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearSelectedApplications

        public Backup.Builder clearSelectedApplications()
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSelectedApplicationsBuilder

        public NamespacedNames.Builder getSelectedApplicationsBuilder()
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSelectedApplicationsOrBuilder

        public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()
         Output only. If set, the list of ProtectedApplications whose resources
         were included in the Backup.
         
        .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSelectedApplicationsOrBuilder in interface BackupOrBuilder
      • getContainsVolumeData

        public boolean getContainsVolumeData()
         Output only. Whether or not the Backup contains volume data.  Controlled by
         the parent BackupPlan's
         [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
         value.
         
        bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getContainsVolumeData in interface BackupOrBuilder
        Returns:
        The containsVolumeData.
      • setContainsVolumeData

        public Backup.Builder setContainsVolumeData​(boolean value)
         Output only. Whether or not the Backup contains volume data.  Controlled by
         the parent BackupPlan's
         [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
         value.
         
        bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The containsVolumeData to set.
        Returns:
        This builder for chaining.
      • clearContainsVolumeData

        public Backup.Builder clearContainsVolumeData()
         Output only. Whether or not the Backup contains volume data.  Controlled by
         the parent BackupPlan's
         [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
         value.
         
        bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getContainsSecrets

        public boolean getContainsSecrets()
         Output only. Whether or not the Backup contains Kubernetes Secrets.
         Controlled by the parent BackupPlan's
         [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
         value.
         
        bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getContainsSecrets in interface BackupOrBuilder
        Returns:
        The containsSecrets.
      • setContainsSecrets

        public Backup.Builder setContainsSecrets​(boolean value)
         Output only. Whether or not the Backup contains Kubernetes Secrets.
         Controlled by the parent BackupPlan's
         [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
         value.
         
        bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The containsSecrets to set.
        Returns:
        This builder for chaining.
      • clearContainsSecrets

        public Backup.Builder clearContainsSecrets()
         Output only. Whether or not the Backup contains Kubernetes Secrets.
         Controlled by the parent BackupPlan's
         [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
         value.
         
        bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasClusterMetadata

        public boolean hasClusterMetadata()
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasClusterMetadata in interface BackupOrBuilder
        Returns:
        Whether the clusterMetadata field is set.
      • getClusterMetadata

        public Backup.ClusterMetadata getClusterMetadata()
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterMetadata in interface BackupOrBuilder
        Returns:
        The clusterMetadata.
      • setClusterMetadata

        public Backup.Builder setClusterMetadata​(Backup.ClusterMetadata value)
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setClusterMetadata

        public Backup.Builder setClusterMetadata​(Backup.ClusterMetadata.Builder builderForValue)
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeClusterMetadata

        public Backup.Builder mergeClusterMetadata​(Backup.ClusterMetadata value)
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearClusterMetadata

        public Backup.Builder clearClusterMetadata()
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getClusterMetadataBuilder

        public Backup.ClusterMetadata.Builder getClusterMetadataBuilder()
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getClusterMetadataOrBuilder

        public Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder()
         Output only. Information about the GKE cluster from which this Backup was
         created.
         
        .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterMetadataOrBuilder in interface BackupOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. Current state of the Backup
         
        .google.cloud.gkebackup.v1.Backup.State state = 18 [(.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. Current state of the Backup
         
        .google.cloud.gkebackup.v1.Backup.State state = 18 [(.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. Current state of the Backup
         
        .google.cloud.gkebackup.v1.Backup.State state = 18 [(.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. Current state of the Backup
         
        .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Backup.Builder clearState()
         Output only. Current state of the Backup
         
        .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStateReason

        public String getStateReason()
         Output only. Human-readable description of why the backup is in the current
         `state`.
         
        string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateReason in interface BackupOrBuilder
        Returns:
        The stateReason.
      • getStateReasonBytes

        public com.google.protobuf.ByteString getStateReasonBytes()
         Output only. Human-readable description of why the backup is in the current
         `state`.
         
        string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateReasonBytes in interface BackupOrBuilder
        Returns:
        The bytes for stateReason.
      • setStateReason

        public Backup.Builder setStateReason​(String value)
         Output only. Human-readable description of why the backup is in the current
         `state`.
         
        string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The stateReason to set.
        Returns:
        This builder for chaining.
      • clearStateReason

        public Backup.Builder clearStateReason()
         Output only. Human-readable description of why the backup is in the current
         `state`.
         
        string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStateReasonBytes

        public Backup.Builder setStateReasonBytes​(com.google.protobuf.ByteString value)
         Output only. Human-readable description of why the backup is in the current
         `state`.
         
        string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for stateReason to set.
        Returns:
        This builder for chaining.
      • hasCompleteTime

        public boolean hasCompleteTime()
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCompleteTime in interface BackupOrBuilder
        Returns:
        Whether the completeTime field is set.
      • getCompleteTime

        public com.google.protobuf.Timestamp getCompleteTime()
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCompleteTime in interface BackupOrBuilder
        Returns:
        The completeTime.
      • setCompleteTime

        public Backup.Builder setCompleteTime​(com.google.protobuf.Timestamp value)
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCompleteTime

        public Backup.Builder setCompleteTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCompleteTime

        public Backup.Builder mergeCompleteTime​(com.google.protobuf.Timestamp value)
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCompleteTime

        public Backup.Builder clearCompleteTime()
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCompleteTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder()
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCompleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
         Output only. Completion time of the Backup
         
        .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCompleteTimeOrBuilder in interface BackupOrBuilder
      • getResourceCount

        public int getResourceCount()
         Output only. The total number of Kubernetes resources included in the
         Backup.
         
        int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getResourceCount in interface BackupOrBuilder
        Returns:
        The resourceCount.
      • setResourceCount

        public Backup.Builder setResourceCount​(int value)
         Output only. The total number of Kubernetes resources included in the
         Backup.
         
        int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The resourceCount to set.
        Returns:
        This builder for chaining.
      • clearResourceCount

        public Backup.Builder clearResourceCount()
         Output only. The total number of Kubernetes resources included in the
         Backup.
         
        int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getVolumeCount

        public int getVolumeCount()
         Output only. The total number of volume backups contained in the Backup.
         
        int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getVolumeCount in interface BackupOrBuilder
        Returns:
        The volumeCount.
      • setVolumeCount

        public Backup.Builder setVolumeCount​(int value)
         Output only. The total number of volume backups contained in the Backup.
         
        int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The volumeCount to set.
        Returns:
        This builder for chaining.
      • clearVolumeCount

        public Backup.Builder clearVolumeCount()
         Output only. The total number of volume backups contained in the Backup.
         
        int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getSizeBytes

        public long getSizeBytes()
         Output only. The total size of the Backup in bytes = config backup size +
         sum(volume backup sizes)
         
        int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSizeBytes in interface BackupOrBuilder
        Returns:
        The sizeBytes.
      • setSizeBytes

        public Backup.Builder setSizeBytes​(long value)
         Output only. The total size of the Backup in bytes = config backup size +
         sum(volume backup sizes)
         
        int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The sizeBytes to set.
        Returns:
        This builder for chaining.
      • clearSizeBytes

        public Backup.Builder clearSizeBytes()
         Output only. The total size of the Backup in bytes = config backup size +
         sum(volume backup sizes)
         
        int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getEtag

        public String getEtag()
         Output only. `etag` is used for optimistic concurrency control as a way to
         help prevent simultaneous updates of a backup from overwriting each other.
         It is strongly suggested that systems make use of the `etag` in the
         read-modify-write cycle to perform backup updates in order to avoid
         race conditions: An `etag` is returned in the response to `GetBackup`,
         and systems are expected to put that etag in the request to
         `UpdateBackup` or `DeleteBackup` to ensure that their change will be
         applied to the same version of the resource.
         
        string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEtag in interface BackupOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Output only. `etag` is used for optimistic concurrency control as a way to
         help prevent simultaneous updates of a backup from overwriting each other.
         It is strongly suggested that systems make use of the `etag` in the
         read-modify-write cycle to perform backup updates in order to avoid
         race conditions: An `etag` is returned in the response to `GetBackup`,
         and systems are expected to put that etag in the request to
         `UpdateBackup` or `DeleteBackup` to ensure that their change will be
         applied to the same version of the resource.
         
        string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEtagBytes in interface BackupOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public Backup.Builder setEtag​(String value)
         Output only. `etag` is used for optimistic concurrency control as a way to
         help prevent simultaneous updates of a backup from overwriting each other.
         It is strongly suggested that systems make use of the `etag` in the
         read-modify-write cycle to perform backup updates in order to avoid
         race conditions: An `etag` is returned in the response to `GetBackup`,
         and systems are expected to put that etag in the request to
         `UpdateBackup` or `DeleteBackup` to ensure that their change will be
         applied to the same version of the resource.
         
        string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public Backup.Builder clearEtag()
         Output only. `etag` is used for optimistic concurrency control as a way to
         help prevent simultaneous updates of a backup from overwriting each other.
         It is strongly suggested that systems make use of the `etag` in the
         read-modify-write cycle to perform backup updates in order to avoid
         race conditions: An `etag` is returned in the response to `GetBackup`,
         and systems are expected to put that etag in the request to
         `UpdateBackup` or `DeleteBackup` to ensure that their change will be
         applied to the same version of the resource.
         
        string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEtagBytes

        public Backup.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Output only. `etag` is used for optimistic concurrency control as a way to
         help prevent simultaneous updates of a backup from overwriting each other.
         It is strongly suggested that systems make use of the `etag` in the
         read-modify-write cycle to perform backup updates in order to avoid
         race conditions: An `etag` is returned in the response to `GetBackup`,
         and systems are expected to put that etag in the request to
         `UpdateBackup` or `DeleteBackup` to ensure that their change will be
         applied to the same version of the resource.
         
        string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         User specified descriptive string for this Backup.
         
        string description = 25;
        Specified by:
        getDescription in interface BackupOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         User specified descriptive string for this Backup.
         
        string description = 25;
        Specified by:
        getDescriptionBytes in interface BackupOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Backup.Builder setDescription​(String value)
         User specified descriptive string for this Backup.
         
        string description = 25;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Backup.Builder clearDescription()
         User specified descriptive string for this Backup.
         
        string description = 25;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Backup.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         User specified descriptive string for this Backup.
         
        string description = 25;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getPodCount

        public int getPodCount()
         Output only. The total number of Kubernetes Pods contained in the Backup.
         
        int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPodCount in interface BackupOrBuilder
        Returns:
        The podCount.
      • setPodCount

        public Backup.Builder setPodCount​(int value)
         Output only. The total number of Kubernetes Pods contained in the Backup.
         
        int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The podCount to set.
        Returns:
        This builder for chaining.
      • clearPodCount

        public Backup.Builder clearPodCount()
         Output only. The total number of Kubernetes Pods contained in the Backup.
         
        int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getConfigBackupSizeBytes

        public long getConfigBackupSizeBytes()
         Output only. The size of the config backup in bytes.
         
        int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConfigBackupSizeBytes in interface BackupOrBuilder
        Returns:
        The configBackupSizeBytes.
      • setConfigBackupSizeBytes

        public Backup.Builder setConfigBackupSizeBytes​(long value)
         Output only. The size of the config backup in bytes.
         
        int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The configBackupSizeBytes to set.
        Returns:
        This builder for chaining.
      • clearConfigBackupSizeBytes

        public Backup.Builder clearConfigBackupSizeBytes()
         Output only. The size of the config backup in bytes.
         
        int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
        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>