public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilderMessage describing a Backup object.
Protobuf type google.cloud.backupdr.v1.Backup
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Backup.BuilderImplements
BackupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllBackupApplianceLocks(Iterable<? extends BackupLock> values)
public Backup.Builder addAllBackupApplianceLocks(Iterable<? extends BackupLock> values)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.BackupLock> |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addAllServiceLocks(Iterable<? extends BackupLock> values)
public Backup.Builder addAllServiceLocks(Iterable<? extends BackupLock> values)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.BackupLock> |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupApplianceLocks(BackupLock value)
public Backup.Builder addBackupApplianceLocks(BackupLock value)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupApplianceLocks(BackupLock.Builder builderForValue)
public Backup.Builder addBackupApplianceLocks(BackupLock.Builder builderForValue)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupApplianceLocks(int index, BackupLock value)
public Backup.Builder addBackupApplianceLocks(int index, BackupLock value)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupApplianceLocks(int index, BackupLock.Builder builderForValue)
public Backup.Builder addBackupApplianceLocks(int index, BackupLock.Builder builderForValue)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupApplianceLocksBuilder()
public BackupLock.Builder addBackupApplianceLocksBuilder()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
addBackupApplianceLocksBuilder(int index)
public BackupLock.Builder addBackupApplianceLocksBuilder(int index)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addServiceLocks(BackupLock value)
public Backup.Builder addServiceLocks(BackupLock value)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addServiceLocks(BackupLock.Builder builderForValue)
public Backup.Builder addServiceLocks(BackupLock.Builder builderForValue)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addServiceLocks(int index, BackupLock value)
public Backup.Builder addServiceLocks(int index, BackupLock value)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addServiceLocks(int index, BackupLock.Builder builderForValue)
public Backup.Builder addServiceLocks(int index, BackupLock.Builder builderForValue)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addServiceLocksBuilder()
public BackupLock.Builder addServiceLocksBuilder()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
addServiceLocksBuilder(int index)
public BackupLock.Builder addServiceLocksBuilder(int index)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
build()
public Backup build()| Returns | |
|---|---|
| Type | Description |
Backup |
|
buildPartial()
public Backup buildPartial()| Returns | |
|---|---|
| Type | Description |
Backup |
|
clear()
public Backup.Builder clear()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupApplianceBackupProperties()
public Backup.Builder clearBackupApplianceBackupProperties()Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupApplianceLocks()
public Backup.Builder clearBackupApplianceLocks()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupProperties()
public Backup.Builder clearBackupProperties()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupType()
public Backup.Builder clearBackupType()Output only. Type of the backup, unspecified, scheduled or ondemand.
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearComputeInstanceBackupProperties()
public Backup.Builder clearComputeInstanceBackupProperties()Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearConsistencyTime()
public Backup.Builder clearConsistencyTime()Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearCreateTime()
public Backup.Builder clearCreateTime()Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearDescription()
public Backup.Builder clearDescription()Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearEnforcedRetentionEndTime()
public Backup.Builder clearEnforcedRetentionEndTime()Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearEtag()
public Backup.Builder clearEtag()Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearExpireTime()
public Backup.Builder clearExpireTime()Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Backup.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearGcpBackupPlanInfo()
public Backup.Builder clearGcpBackupPlanInfo()Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearLabels()
public Backup.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearName()
public Backup.Builder clearName() Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearPlanInfo()
public Backup.Builder clearPlanInfo()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearResourceSizeBytes()
public Backup.Builder clearResourceSizeBytes()Output only. source resource size in bytes at the time of the backup.
int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearServiceLocks()
public Backup.Builder clearServiceLocks()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearState()
public Backup.Builder clearState()Output only. The Backup resource instance state.
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearUpdateTime()
public Backup.Builder clearUpdateTime()Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clone()
public Backup.Builder clone()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getBackupApplianceBackupProperties()
public BackupApplianceBackupProperties getBackupApplianceBackupProperties()Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupApplianceBackupProperties |
The backupApplianceBackupProperties. |
getBackupApplianceBackupPropertiesBuilder()
public BackupApplianceBackupProperties.Builder getBackupApplianceBackupPropertiesBuilder()Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupApplianceBackupProperties.Builder |
|
getBackupApplianceBackupPropertiesOrBuilder()
public BackupApplianceBackupPropertiesOrBuilder getBackupApplianceBackupPropertiesOrBuilder()Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupApplianceBackupPropertiesOrBuilder |
|
getBackupApplianceLocks(int index)
public BackupLock getBackupApplianceLocks(int index)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock |
|
getBackupApplianceLocksBuilder(int index)
public BackupLock.Builder getBackupApplianceLocksBuilder(int index)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
getBackupApplianceLocksBuilderList()
public List<BackupLock.Builder> getBackupApplianceLocksBuilderList()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getBackupApplianceLocksCount()
public int getBackupApplianceLocksCount()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getBackupApplianceLocksList()
public List<BackupLock> getBackupApplianceLocksList()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<BackupLock> |
|
getBackupApplianceLocksOrBuilder(int index)
public BackupLockOrBuilder getBackupApplianceLocksOrBuilder(int index)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLockOrBuilder |
|
getBackupApplianceLocksOrBuilderList()
public List<? extends BackupLockOrBuilder> getBackupApplianceLocksOrBuilderList()Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.BackupLockOrBuilder> |
|
getBackupPropertiesCase()
public Backup.BackupPropertiesCase getBackupPropertiesCase()| Returns | |
|---|---|
| Type | Description |
Backup.BackupPropertiesCase |
|
getBackupType()
public Backup.BackupType getBackupType()Output only. Type of the backup, unspecified, scheduled or ondemand.
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.BackupType |
The backupType. |
getBackupTypeValue()
public int getBackupTypeValue()Output only. Type of the backup, unspecified, scheduled or ondemand.
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for backupType. |
getComputeInstanceBackupProperties()
public ComputeInstanceBackupProperties getComputeInstanceBackupProperties()Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ComputeInstanceBackupProperties |
The computeInstanceBackupProperties. |
getComputeInstanceBackupPropertiesBuilder()
public ComputeInstanceBackupProperties.Builder getComputeInstanceBackupPropertiesBuilder()Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ComputeInstanceBackupProperties.Builder |
|
getComputeInstanceBackupPropertiesOrBuilder()
public ComputeInstanceBackupPropertiesOrBuilder getComputeInstanceBackupPropertiesOrBuilder()Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ComputeInstanceBackupPropertiesOrBuilder |
|
getConsistencyTime()
public Timestamp getConsistencyTime()Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The consistencyTime. |
getConsistencyTimeBuilder()
public Timestamp.Builder getConsistencyTimeBuilder()Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getConsistencyTimeOrBuilder()
public TimestampOrBuilder getConsistencyTimeOrBuilder()Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Backup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Backup |
|
getDescription()
public String getDescription()Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnforcedRetentionEndTime()
public Timestamp getEnforcedRetentionEndTime()Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The enforcedRetentionEndTime. |
getEnforcedRetentionEndTimeBuilder()
public Timestamp.Builder getEnforcedRetentionEndTimeBuilder()Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEnforcedRetentionEndTimeOrBuilder()
public TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder()Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getEtag()
public String getEtag()Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for etag. |
getExpireTime()
public Timestamp getExpireTime()Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getGcpBackupPlanInfo()
public Backup.GCPBackupPlanInfo getGcpBackupPlanInfo()Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.GCPBackupPlanInfo |
The gcpBackupPlanInfo. |
getGcpBackupPlanInfoBuilder()
public Backup.GCPBackupPlanInfo.Builder getGcpBackupPlanInfoBuilder()Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.GCPBackupPlanInfo.Builder |
|
getGcpBackupPlanInfoOrBuilder()
public Backup.GCPBackupPlanInfoOrBuilder getGcpBackupPlanInfoOrBuilder()Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.GCPBackupPlanInfoOrBuilder |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPlanInfoCase()
public Backup.PlanInfoCase getPlanInfoCase()| Returns | |
|---|---|
| Type | Description |
Backup.PlanInfoCase |
|
getResourceSizeBytes()
public long getResourceSizeBytes()Output only. source resource size in bytes at the time of the backup.
int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The resourceSizeBytes. |
getServiceLocks(int index)
public BackupLock getServiceLocks(int index)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock |
|
getServiceLocksBuilder(int index)
public BackupLock.Builder getServiceLocksBuilder(int index)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLock.Builder |
|
getServiceLocksBuilderList()
public List<BackupLock.Builder> getServiceLocksBuilderList()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getServiceLocksCount()
public int getServiceLocksCount()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getServiceLocksList()
public List<BackupLock> getServiceLocksList()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<BackupLock> |
|
getServiceLocksOrBuilder(int index)
public BackupLockOrBuilder getServiceLocksOrBuilder(int index)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupLockOrBuilder |
|
getServiceLocksOrBuilderList()
public List<? extends BackupLockOrBuilder> getServiceLocksOrBuilderList()Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.BackupLockOrBuilder> |
|
getState()
public Backup.State getState()Output only. The Backup resource instance state.
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.State |
The state. |
getStateValue()
public int getStateValue()Output only. The Backup resource instance state.
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasBackupApplianceBackupProperties()
public boolean hasBackupApplianceBackupProperties()Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupApplianceBackupProperties field is set. |
hasComputeInstanceBackupProperties()
public boolean hasComputeInstanceBackupProperties()Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the computeInstanceBackupProperties field is set. |
hasConsistencyTime()
public boolean hasConsistencyTime()Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the consistencyTime field is set. |
hasCreateTime()
public boolean hasCreateTime()Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasDescription()
public boolean hasDescription()Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasEnforcedRetentionEndTime()
public boolean hasEnforcedRetentionEndTime()Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enforcedRetentionEndTime field is set. |
hasEtag()
public boolean hasEtag()Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the etag field is set. |
hasExpireTime()
public boolean hasExpireTime()Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the expireTime field is set. |
hasGcpBackupPlanInfo()
public boolean hasGcpBackupPlanInfo()Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gcpBackupPlanInfo field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupApplianceBackupProperties(BackupApplianceBackupProperties value)
public Backup.Builder mergeBackupApplianceBackupProperties(BackupApplianceBackupProperties value)Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupApplianceBackupProperties |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeComputeInstanceBackupProperties(ComputeInstanceBackupProperties value)
public Backup.Builder mergeComputeInstanceBackupProperties(ComputeInstanceBackupProperties value)Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ComputeInstanceBackupProperties |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeConsistencyTime(Timestamp value)
public Backup.Builder mergeConsistencyTime(Timestamp value)Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeCreateTime(Timestamp value)
public Backup.Builder mergeCreateTime(Timestamp value)Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeEnforcedRetentionEndTime(Timestamp value)
public Backup.Builder mergeEnforcedRetentionEndTime(Timestamp value)Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeExpireTime(Timestamp value)
public Backup.Builder mergeExpireTime(Timestamp value)Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(Backup other)
public Backup.Builder mergeFrom(Backup other)| Parameter | |
|---|---|
| Name | Description |
other |
Backup |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Backup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeGcpBackupPlanInfo(Backup.GCPBackupPlanInfo value)
public Backup.Builder mergeGcpBackupPlanInfo(Backup.GCPBackupPlanInfo value)Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.GCPBackupPlanInfo |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeUpdateTime(Timestamp value)
public Backup.Builder mergeUpdateTime(Timestamp value)Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
putAllLabels(Map<String,String> values)
public Backup.Builder putAllLabels(Map<String,String> values)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
putLabels(String key, String value)
public Backup.Builder putLabels(String key, String value)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
removeBackupApplianceLocks(int index)
public Backup.Builder removeBackupApplianceLocks(int index)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
removeLabels(String key)
public Backup.Builder removeLabels(String key)Optional. Resource labels to represent user provided metadata. No labels currently defined.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
removeServiceLocks(int index)
public Backup.Builder removeServiceLocks(int index)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupApplianceBackupProperties(BackupApplianceBackupProperties value)
public Backup.Builder setBackupApplianceBackupProperties(BackupApplianceBackupProperties value)Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupApplianceBackupProperties |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupApplianceBackupProperties(BackupApplianceBackupProperties.Builder builderForValue)
public Backup.Builder setBackupApplianceBackupProperties(BackupApplianceBackupProperties.Builder builderForValue)Output only. Backup Appliance specific backup properties.
.google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupApplianceBackupProperties.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupApplianceLocks(int index, BackupLock value)
public Backup.Builder setBackupApplianceLocks(int index, BackupLock value)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupApplianceLocks(int index, BackupLock.Builder builderForValue)
public Backup.Builder setBackupApplianceLocks(int index, BackupLock.Builder builderForValue)Optional. The list of BackupLocks taken by the accessor Backup Appliance.
repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupType(Backup.BackupType value)
public Backup.Builder setBackupType(Backup.BackupType value)Output only. Type of the backup, unspecified, scheduled or ondemand.
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.BackupTypeThe backupType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setBackupTypeValue(int value)
public Backup.Builder setBackupTypeValue(int value)Output only. Type of the backup, unspecified, scheduled or ondemand.
.google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for backupType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setComputeInstanceBackupProperties(ComputeInstanceBackupProperties value)
public Backup.Builder setComputeInstanceBackupProperties(ComputeInstanceBackupProperties value)Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ComputeInstanceBackupProperties |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setComputeInstanceBackupProperties(ComputeInstanceBackupProperties.Builder builderForValue)
public Backup.Builder setComputeInstanceBackupProperties(ComputeInstanceBackupProperties.Builder builderForValue)Output only. Compute Engine specific backup properties.
.google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ComputeInstanceBackupProperties.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setConsistencyTime(Timestamp value)
public Backup.Builder setConsistencyTime(Timestamp value)Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setConsistencyTime(Timestamp.Builder builderForValue)
public Backup.Builder setConsistencyTime(Timestamp.Builder builderForValue)Output only. The point in time when this backup was captured from the source.
optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setCreateTime(Timestamp value)
public Backup.Builder setCreateTime(Timestamp value)Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Backup.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time when the instance was created.
optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setDescription(String value)
public Backup.Builder setDescription(String value)Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Backup.Builder setDescriptionBytes(ByteString value)Output only. The description of the Backup instance (2048 characters or less).
optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setEnforcedRetentionEndTime(Timestamp value)
public Backup.Builder setEnforcedRetentionEndTime(Timestamp value)Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setEnforcedRetentionEndTime(Timestamp.Builder builderForValue)
public Backup.Builder setEnforcedRetentionEndTime(Timestamp.Builder builderForValue)Optional. The backup can not be deleted before this time.
optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setEtag(String value)
public Backup.Builder setEtag(String value)Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe etag to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public Backup.Builder setEtagBytes(ByteString value)Optional. Server specified ETag to prevent updates from overwriting each other.
optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for etag to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setExpireTime(Timestamp value)
public Backup.Builder setExpireTime(Timestamp value)Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setExpireTime(Timestamp.Builder builderForValue)
public Backup.Builder setExpireTime(Timestamp.Builder builderForValue)Optional. When this backup is automatically expired.
optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setGcpBackupPlanInfo(Backup.GCPBackupPlanInfo value)
public Backup.Builder setGcpBackupPlanInfo(Backup.GCPBackupPlanInfo value)Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.GCPBackupPlanInfo |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setGcpBackupPlanInfo(Backup.GCPBackupPlanInfo.Builder builderForValue)
public Backup.Builder setGcpBackupPlanInfo(Backup.GCPBackupPlanInfo.Builder builderForValue)Output only. Configuration for a Google Cloud resource.
.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Backup.GCPBackupPlanInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setName(String value)
public Backup.Builder setName(String value) Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Backup.Builder setNameBytes(ByteString value) Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setResourceSizeBytes(long value)
public Backup.Builder setResourceSizeBytes(long value)Output only. source resource size in bytes at the time of the backup.
int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe resourceSizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setServiceLocks(int index, BackupLock value)
public Backup.Builder setServiceLocks(int index, BackupLock value)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupLock |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setServiceLocks(int index, BackupLock.Builder builderForValue)
public Backup.Builder setServiceLocks(int index, BackupLock.Builder builderForValue)Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupLock.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setState(Backup.State value)
public Backup.Builder setState(Backup.State value)Output only. The Backup resource instance state.
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setStateValue(int value)
public Backup.Builder setStateValue(int value)Output only. The Backup resource instance state.
.google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setUpdateTime(Timestamp value)
public Backup.Builder setUpdateTime(Timestamp value)Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Backup.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The time when the instance was updated.
optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|