Class Backup.Builder (0.40.0)

public static final class Backup.Builder extends 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).

Protobuf type google.cloud.gkebackup.v1.Backup

Implements

BackupOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

build()

public Backup build()
Returns
TypeDescription
Backup

buildPartial()

public Backup buildPartial()
Returns
TypeDescription
Backup

clear()

public Backup.Builder clear()
Returns
TypeDescription
Backup.Builder
Overrides

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
TypeDescription
Backup.Builder

This builder for chaining.

clearBackupScope()

public Backup.Builder clearBackupScope()
Returns
TypeDescription
Backup.Builder

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];

Returns
TypeDescription
Backup.Builder

clearCompleteTime()

public Backup.Builder clearCompleteTime()

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

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 value.

bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

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 value.

bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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];

Returns
TypeDescription
Backup.Builder

clearDeleteLockDays()

public Backup.Builder clearDeleteLockDays()

Optional. 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 setting and may only be increased (either at creation time or in a subsequent update).

int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clearDescription()

public Backup.Builder clearDescription()

Optional. User specified descriptive string for this Backup.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Backup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Backup.Builder
Overrides

clearLabels()

public Backup.Builder clearLabels()
Returns
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Backup.Builder
Overrides

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
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

This builder for chaining.

clearRetainDays()

public Backup.Builder clearRetainDays()

Optional. 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 and <= 365.

    Once a Backup is created, this value may only be increased.

    Defaults to the parent BackupPlan's backup_retain_days value.

int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearRetainExpireTime()

public Backup.Builder clearRetainExpireTime()

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

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];

Returns
TypeDescription
Backup.Builder

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];

Returns
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

This builder for chaining.

clearUid()

public Backup.Builder clearUid()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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];

Returns
TypeDescription
Backup.Builder

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
TypeDescription
Backup.Builder

This builder for chaining.

clone()

public Backup.Builder clone()
Returns
TypeDescription
Backup.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

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];

Returns
TypeDescription
boolean

The allNamespaces.

getBackupScopeCase()

public Backup.BackupScopeCase getBackupScopeCase()
Returns
TypeDescription
Backup.BackupScopeCase

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];

Returns
TypeDescription
Backup.ClusterMetadata

The clusterMetadata.

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];

Returns
TypeDescription
Backup.ClusterMetadata.Builder

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];

Returns
TypeDescription
Backup.ClusterMetadataOrBuilder

getCompleteTime()

public Timestamp getCompleteTime()

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The completeTime.

getCompleteTimeBuilder()

public Timestamp.Builder getCompleteTimeBuilder()

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCompleteTimeOrBuilder()

public TimestampOrBuilder getCompleteTimeOrBuilder()

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

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];

Returns
TypeDescription
long

The configBackupSizeBytes.

getContainsSecrets()

public boolean getContainsSecrets()

Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's include_secrets value.

bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The containsSecrets.

getContainsVolumeData()

public boolean getContainsVolumeData()

Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's include_volume_data value.

bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The containsVolumeData.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when this Backup resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when this Backup resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Backup getDefaultInstanceForType()
Returns
TypeDescription
Backup

getDeleteLockDays()

public int getDeleteLockDays()

Optional. 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 setting and may only be increased (either at creation time or in a subsequent update).

int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The deleteLockDays.

getDeleteLockExpireTime()

public 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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteLockExpireTime.

getDeleteLockExpireTimeBuilder()

public 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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteLockExpireTimeOrBuilder()

public 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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescription()

public String getDescription()

Optional. User specified descriptive string for this Backup.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User specified descriptive string for this Backup.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionKey

The encryptionKey.

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionKey.Builder

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionKeyOrBuilder

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];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for etag.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

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];

Returns
TypeDescription
boolean

The manual.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The fully qualified name of the Backup. projects/*/locations/*/backupPlans/*/backups/*

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

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];

Returns
TypeDescription
int

The podCount.

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];

Returns
TypeDescription
int

The resourceCount.

getRetainDays()

public int getRetainDays()

Optional. 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 and <= 365.

    Once a Backup is created, this value may only be increased.

    Defaults to the parent BackupPlan's backup_retain_days value.

int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The retainDays.

getRetainExpireTime()

public Timestamp getRetainExpireTime()

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The retainExpireTime.

getRetainExpireTimeBuilder()

public Timestamp.Builder getRetainExpireTimeBuilder()

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getRetainExpireTimeOrBuilder()

public TimestampOrBuilder getRetainExpireTimeOrBuilder()

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

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];

Returns
TypeDescription
NamespacedNames

The selectedApplications.

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];

Returns
TypeDescription
NamespacedNames.Builder

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];

Returns
TypeDescription
NamespacedNamesOrBuilder

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];

Returns
TypeDescription
Namespaces

The selectedNamespaces.

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];

Returns
TypeDescription
Namespaces.Builder

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];

Returns
TypeDescription
NamespacesOrBuilder

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];

Returns
TypeDescription
long

The sizeBytes.

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];

Returns
TypeDescription
Backup.State

The state.

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];

Returns
TypeDescription
String

The stateReason.

getStateReasonBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for stateReason.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public 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];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public 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];

Returns
TypeDescription
TimestampOrBuilder

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];

Returns
TypeDescription
int

The volumeCount.

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];

Returns
TypeDescription
boolean

Whether the allNamespaces field is set.

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];

Returns
TypeDescription
boolean

Whether the clusterMetadata field is set.

hasCompleteTime()

public boolean hasCompleteTime()

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the completeTime field is set.

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];

Returns
TypeDescription
boolean

Whether the createTime field is set.

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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deleteLockExpireTime field is set.

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the encryptionKey field is set.

hasRetainExpireTime()

public boolean hasRetainExpireTime()

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the retainExpireTime field is set.

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];

Returns
TypeDescription
boolean

Whether the selectedApplications field is set.

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];

Returns
TypeDescription
boolean

Whether the selectedNamespaces field is set.

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];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClusterMetadata(Backup.ClusterMetadata value)

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];

Parameter
NameDescription
valueBackup.ClusterMetadata
Returns
TypeDescription
Backup.Builder

mergeCompleteTime(Timestamp value)

public Backup.Builder mergeCompleteTime(Timestamp value)

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeCreateTime(Timestamp value)

public Backup.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when this Backup resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeDeleteLockExpireTime(Timestamp value)

public Backup.Builder mergeDeleteLockExpireTime(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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeEncryptionKey(EncryptionKey value)

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEncryptionKey
Returns
TypeDescription
Backup.Builder

mergeFrom(Backup other)

public Backup.Builder mergeFrom(Backup other)
Parameter
NameDescription
otherBackup
Returns
TypeDescription
Backup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Backup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Backup.Builder
Overrides

mergeRetainExpireTime(Timestamp value)

public Backup.Builder mergeRetainExpireTime(Timestamp value)

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeSelectedApplications(NamespacedNames value)

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];

Parameter
NameDescription
valueNamespacedNames
Returns
TypeDescription
Backup.Builder

mergeSelectedNamespaces(Namespaces value)

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];

Parameter
NameDescription
valueNamespaces
Returns
TypeDescription
Backup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Backup.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Backup.Builder mergeUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

putAllLabels(Map<String,String> values)

public Backup.Builder putAllLabels(Map<String,String> values)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Backup.Builder

putLabels(String key, String value)

public Backup.Builder putLabels(String key, String value)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Backup.Builder

removeLabels(String key)

public Backup.Builder removeLabels(String key)

Optional. A set of custom labels supplied by user.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Backup.Builder

setAllNamespaces(boolean value)

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];

Parameter
NameDescription
valueboolean

The allNamespaces to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setClusterMetadata(Backup.ClusterMetadata value)

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];

Parameter
NameDescription
valueBackup.ClusterMetadata
Returns
TypeDescription
Backup.Builder

setClusterMetadata(Backup.ClusterMetadata.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBackup.ClusterMetadata.Builder
Returns
TypeDescription
Backup.Builder

setCompleteTime(Timestamp value)

public Backup.Builder setCompleteTime(Timestamp value)

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setCompleteTime(Timestamp.Builder builderForValue)

public Backup.Builder setCompleteTime(Timestamp.Builder builderForValue)

Output only. Completion time of the Backup

.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setConfigBackupSizeBytes(long value)

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];

Parameter
NameDescription
valuelong

The configBackupSizeBytes to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setContainsSecrets(boolean value)

public Backup.Builder setContainsSecrets(boolean value)

Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's include_secrets value.

bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The containsSecrets to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setContainsVolumeData(boolean value)

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 value.

bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The containsVolumeData to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Backup.Builder setCreateTime(Timestamp value)

Output only. The timestamp when this Backup resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Backup.Builder setCreateTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setDeleteLockDays(int value)

public Backup.Builder setDeleteLockDays(int value)

Optional. 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 setting and may only be increased (either at creation time or in a subsequent update).

int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The deleteLockDays to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDeleteLockExpireTime(Timestamp value)

public Backup.Builder setDeleteLockExpireTime(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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setDeleteLockExpireTime(Timestamp.Builder builderForValue)

public Backup.Builder setDeleteLockExpireTime(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.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setDescription(String value)

public Backup.Builder setDescription(String value)

Optional. User specified descriptive string for this Backup.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Backup.Builder setDescriptionBytes(ByteString value)

Optional. User specified descriptive string for this Backup.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setEncryptionKey(EncryptionKey value)

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEncryptionKey
Returns
TypeDescription
Backup.Builder

setEncryptionKey(EncryptionKey.Builder builderForValue)

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 value.

.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueEncryptionKey.Builder
Returns
TypeDescription
Backup.Builder

setEtag(String value)

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];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Backup.Builder setEtagBytes(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];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

setManual(boolean value)

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];

Parameter
NameDescription
valueboolean

The manual to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Backup.Builder setNameBytes(ByteString value)

Output only. The fully qualified name of the Backup. projects/*/locations/*/backupPlans/*/backups/*

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setPodCount(int value)

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];

Parameter
NameDescription
valueint

The podCount to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Backup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

setResourceCount(int value)

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];

Parameter
NameDescription
valueint

The resourceCount to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setRetainDays(int value)

public Backup.Builder setRetainDays(int value)

Optional. 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 and <= 365.

    Once a Backup is created, this value may only be increased.

    Defaults to the parent BackupPlan's backup_retain_days value.

int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The retainDays to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setRetainExpireTime(Timestamp value)

public Backup.Builder setRetainExpireTime(Timestamp value)

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setRetainExpireTime(Timestamp.Builder builderForValue)

public Backup.Builder setRetainExpireTime(Timestamp.Builder builderForValue)

Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).

.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setSelectedApplications(NamespacedNames value)

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];

Parameter
NameDescription
valueNamespacedNames
Returns
TypeDescription
Backup.Builder

setSelectedApplications(NamespacedNames.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueNamespacedNames.Builder
Returns
TypeDescription
Backup.Builder

setSelectedNamespaces(Namespaces value)

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];

Parameter
NameDescription
valueNamespaces
Returns
TypeDescription
Backup.Builder

setSelectedNamespaces(Namespaces.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueNamespaces.Builder
Returns
TypeDescription
Backup.Builder

setSizeBytes(long value)

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];

Parameter
NameDescription
valuelong

The sizeBytes to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setState(Backup.State value)

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];

Parameter
NameDescription
valueBackup.State

The state to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStateReason(String value)

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];

Parameter
NameDescription
valueString

The stateReason to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStateReasonBytes(ByteString value)

public Backup.Builder setStateReasonBytes(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];

Parameter
NameDescription
valueByteString

The bytes for stateReason to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setUid(String value)

public Backup.Builder setUid(String value)

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Backup.Builder setUidBytes(ByteString value)

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Backup.Builder
Overrides

setUpdateTime(Timestamp value)

public Backup.Builder setUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Backup.Builder setUpdateTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setVolumeCount(int value)

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];

Parameter
NameDescription
valueint

The volumeCount to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.