Class ResourceBackupConfig.Builder (0.41.0)

public static final class ResourceBackupConfig.Builder extends GeneratedMessageV3.Builder<ResourceBackupConfig.Builder> implements ResourceBackupConfigOrBuilder

ResourceBackupConfig represents a resource along with its backup configurations.

Protobuf type google.cloud.backupdr.v1.ResourceBackupConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBackupConfigsDetails(Iterable<? extends BackupConfigDetails> values)

public ResourceBackupConfig.Builder addAllBackupConfigsDetails(Iterable<? extends BackupConfigDetails> values)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.BackupConfigDetails>
Returns
Type Description
ResourceBackupConfig.Builder

addBackupConfigsDetails(BackupConfigDetails value)

public ResourceBackupConfig.Builder addBackupConfigsDetails(BackupConfigDetails value)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
value BackupConfigDetails
Returns
Type Description
ResourceBackupConfig.Builder

addBackupConfigsDetails(BackupConfigDetails.Builder builderForValue)

public ResourceBackupConfig.Builder addBackupConfigsDetails(BackupConfigDetails.Builder builderForValue)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
builderForValue BackupConfigDetails.Builder
Returns
Type Description
ResourceBackupConfig.Builder

addBackupConfigsDetails(int index, BackupConfigDetails value)

public ResourceBackupConfig.Builder addBackupConfigsDetails(int index, BackupConfigDetails value)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameters
Name Description
index int
value BackupConfigDetails
Returns
Type Description
ResourceBackupConfig.Builder

addBackupConfigsDetails(int index, BackupConfigDetails.Builder builderForValue)

public ResourceBackupConfig.Builder addBackupConfigsDetails(int index, BackupConfigDetails.Builder builderForValue)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameters
Name Description
index int
builderForValue BackupConfigDetails.Builder
Returns
Type Description
ResourceBackupConfig.Builder

addBackupConfigsDetailsBuilder()

public BackupConfigDetails.Builder addBackupConfigsDetailsBuilder()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
BackupConfigDetails.Builder

addBackupConfigsDetailsBuilder(int index)

public BackupConfigDetails.Builder addBackupConfigsDetailsBuilder(int index)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
index int
Returns
Type Description
BackupConfigDetails.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceBackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

build()

public ResourceBackupConfig build()
Returns
Type Description
ResourceBackupConfig

buildPartial()

public ResourceBackupConfig buildPartial()
Returns
Type Description
ResourceBackupConfig

clear()

public ResourceBackupConfig.Builder clear()
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

clearBackupConfigsDetails()

public ResourceBackupConfig.Builder clearBackupConfigsDetails()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
ResourceBackupConfig.Builder

clearBackupConfigured()

public ResourceBackupConfig.Builder clearBackupConfigured()

Output only. Whether the target resource is configured for backup. This is true if the backup_configs_details is not empty.

bool backup_configured = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceBackupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

clearName()

public ResourceBackupConfig.Builder clearName()

Identifier. The resource name of the ResourceBackupConfig. Format: projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

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

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceBackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

clearTargetResource()

public ResourceBackupConfig.Builder clearTargetResource()

Output only. The full resource name of the cloud resource that this configuration applies to. Supported resource types are ResourceBackupConfig.ResourceType.

string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearTargetResourceDisplayName()

public ResourceBackupConfig.Builder clearTargetResourceDisplayName()

Output only. The human friendly name of the target resource.

string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearTargetResourceLabels()

public ResourceBackupConfig.Builder clearTargetResourceLabels()
Returns
Type Description
ResourceBackupConfig.Builder

clearTargetResourceType()

public ResourceBackupConfig.Builder clearTargetResourceType()

Output only. The type of the target resource.

.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearUid()

public ResourceBackupConfig.Builder clearUid()

Output only. The unique identifier of the resource backup config.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clearVaulted()

public ResourceBackupConfig.Builder clearVaulted()

Output only. Whether the target resource is protected by a backup vault. This is true if the backup_configs_details is not empty and any of the ResourceBackupConfig.backup_configs_details has a backup configuration with BackupConfigDetails.backup_vault set. set.

bool vaulted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

clone()

public ResourceBackupConfig.Builder clone()
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

containsTargetResourceLabels(String key)

public boolean containsTargetResourceLabels(String key)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBackupConfigsDetails(int index)

public BackupConfigDetails getBackupConfigsDetails(int index)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
index int
Returns
Type Description
BackupConfigDetails

getBackupConfigsDetailsBuilder(int index)

public BackupConfigDetails.Builder getBackupConfigsDetailsBuilder(int index)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
index int
Returns
Type Description
BackupConfigDetails.Builder

getBackupConfigsDetailsBuilderList()

public List<BackupConfigDetails.Builder> getBackupConfigsDetailsBuilderList()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
List<Builder>

getBackupConfigsDetailsCount()

public int getBackupConfigsDetailsCount()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
int

getBackupConfigsDetailsList()

public List<BackupConfigDetails> getBackupConfigsDetailsList()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
List<BackupConfigDetails>

getBackupConfigsDetailsOrBuilder(int index)

public BackupConfigDetailsOrBuilder getBackupConfigsDetailsOrBuilder(int index)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
index int
Returns
Type Description
BackupConfigDetailsOrBuilder

getBackupConfigsDetailsOrBuilderList()

public List<? extends BackupConfigDetailsOrBuilder> getBackupConfigsDetailsOrBuilderList()

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.BackupConfigDetailsOrBuilder>

getBackupConfigured()

public boolean getBackupConfigured()

Output only. Whether the target resource is configured for backup. This is true if the backup_configs_details is not empty.

bool backup_configured = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The backupConfigured.

getDefaultInstanceForType()

public ResourceBackupConfig getDefaultInstanceForType()
Returns
Type Description
ResourceBackupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableTargetResourceLabels() (deprecated)

public Map<String,String> getMutableTargetResourceLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The resource name of the ResourceBackupConfig. Format: projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ResourceBackupConfig. Format: projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

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

Returns
Type Description
ByteString

The bytes for name.

getTargetResource()

public String getTargetResource()

Output only. The full resource name of the cloud resource that this configuration applies to. Supported resource types are ResourceBackupConfig.ResourceType.

string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The targetResource.

getTargetResourceBytes()

public ByteString getTargetResourceBytes()

Output only. The full resource name of the cloud resource that this configuration applies to. Supported resource types are ResourceBackupConfig.ResourceType.

string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for targetResource.

getTargetResourceDisplayName()

public String getTargetResourceDisplayName()

Output only. The human friendly name of the target resource.

string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The targetResourceDisplayName.

getTargetResourceDisplayNameBytes()

public ByteString getTargetResourceDisplayNameBytes()

Output only. The human friendly name of the target resource.

string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for targetResourceDisplayName.

getTargetResourceLabels() (deprecated)

public Map<String,String> getTargetResourceLabels()
Returns
Type Description
Map<String,String>

getTargetResourceLabelsCount()

public int getTargetResourceLabelsCount()

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Returns
Type Description
int

getTargetResourceLabelsMap()

public Map<String,String> getTargetResourceLabelsMap()

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Returns
Type Description
Map<String,String>

getTargetResourceLabelsOrDefault(String key, String defaultValue)

public String getTargetResourceLabelsOrDefault(String key, String defaultValue)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getTargetResourceLabelsOrThrow(String key)

public String getTargetResourceLabelsOrThrow(String key)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getTargetResourceType()

public ResourceBackupConfig.ResourceType getTargetResourceType()

Output only. The type of the target resource.

.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceBackupConfig.ResourceType

The targetResourceType.

getTargetResourceTypeValue()

public int getTargetResourceTypeValue()

Output only. The type of the target resource.

.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for targetResourceType.

getUid()

public String getUid()

Output only. The unique identifier of the resource backup config.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. The unique identifier of the resource backup config.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getVaulted()

public boolean getVaulted()

Output only. Whether the target resource is protected by a backup vault. This is true if the backup_configs_details is not empty and any of the ResourceBackupConfig.backup_configs_details has a backup configuration with BackupConfigDetails.backup_vault set. set.

bool vaulted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The vaulted.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceBackupConfig other)

public ResourceBackupConfig.Builder mergeFrom(ResourceBackupConfig other)
Parameter
Name Description
other ResourceBackupConfig
Returns
Type Description
ResourceBackupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceBackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceBackupConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceBackupConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceBackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

putAllTargetResourceLabels(Map<String,String> values)

public ResourceBackupConfig.Builder putAllTargetResourceLabels(Map<String,String> values)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ResourceBackupConfig.Builder

putTargetResourceLabels(String key, String value)

public ResourceBackupConfig.Builder putTargetResourceLabels(String key, String value)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameters
Name Description
key String
value String
Returns
Type Description
ResourceBackupConfig.Builder

removeBackupConfigsDetails(int index)

public ResourceBackupConfig.Builder removeBackupConfigsDetails(int index)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameter
Name Description
index int
Returns
Type Description
ResourceBackupConfig.Builder

removeTargetResourceLabels(String key)

public ResourceBackupConfig.Builder removeTargetResourceLabels(String key)

Labels associated with the target resource.

map<string, string> target_resource_labels = 6;

Parameter
Name Description
key String
Returns
Type Description
ResourceBackupConfig.Builder

setBackupConfigsDetails(int index, BackupConfigDetails value)

public ResourceBackupConfig.Builder setBackupConfigsDetails(int index, BackupConfigDetails value)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameters
Name Description
index int
value BackupConfigDetails
Returns
Type Description
ResourceBackupConfig.Builder

setBackupConfigsDetails(int index, BackupConfigDetails.Builder builderForValue)

public ResourceBackupConfig.Builder setBackupConfigsDetails(int index, BackupConfigDetails.Builder builderForValue)

Backup configurations applying to the target resource, including those targeting its related/child resources. For example, backup configuration applicable to Compute Engine disks will be populated in this field for a Compute Engine VM which has the disk associated.

repeated .google.cloud.backupdr.v1.BackupConfigDetails backup_configs_details = 7;

Parameters
Name Description
index int
builderForValue BackupConfigDetails.Builder
Returns
Type Description
ResourceBackupConfig.Builder

setBackupConfigured(boolean value)

public ResourceBackupConfig.Builder setBackupConfigured(boolean value)

Output only. Whether the target resource is configured for backup. This is true if the backup_configs_details is not empty.

bool backup_configured = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The backupConfigured to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceBackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

setName(String value)

public ResourceBackupConfig.Builder setName(String value)

Identifier. The resource name of the ResourceBackupConfig. Format: projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceBackupConfig.Builder setNameBytes(ByteString value)

Identifier. The resource name of the ResourceBackupConfig. Format: projects/{project}/locations/{location}/resourceBackupConfigs/{uid}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

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

public ResourceBackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

setTargetResource(String value)

public ResourceBackupConfig.Builder setTargetResource(String value)

Output only. The full resource name of the cloud resource that this configuration applies to. Supported resource types are ResourceBackupConfig.ResourceType.

string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The targetResource to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setTargetResourceBytes(ByteString value)

public ResourceBackupConfig.Builder setTargetResourceBytes(ByteString value)

Output only. The full resource name of the cloud resource that this configuration applies to. Supported resource types are ResourceBackupConfig.ResourceType.

string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for targetResource to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setTargetResourceDisplayName(String value)

public ResourceBackupConfig.Builder setTargetResourceDisplayName(String value)

Output only. The human friendly name of the target resource.

string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The targetResourceDisplayName to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setTargetResourceDisplayNameBytes(ByteString value)

public ResourceBackupConfig.Builder setTargetResourceDisplayNameBytes(ByteString value)

Output only. The human friendly name of the target resource.

string target_resource_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for targetResourceDisplayName to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setTargetResourceType(ResourceBackupConfig.ResourceType value)

public ResourceBackupConfig.Builder setTargetResourceType(ResourceBackupConfig.ResourceType value)

Output only. The type of the target resource.

.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceBackupConfig.ResourceType

The targetResourceType to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setTargetResourceTypeValue(int value)

public ResourceBackupConfig.Builder setTargetResourceTypeValue(int value)

Output only. The type of the target resource.

.google.cloud.backupdr.v1.ResourceBackupConfig.ResourceType target_resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setUid(String value)

public ResourceBackupConfig.Builder setUid(String value)

Output only. The unique identifier of the resource backup config.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setUidBytes(ByteString value)

public ResourceBackupConfig.Builder setUidBytes(ByteString value)

Output only. The unique identifier of the resource backup config.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceBackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceBackupConfig.Builder
Overrides

setVaulted(boolean value)

public ResourceBackupConfig.Builder setVaulted(boolean value)

Output only. Whether the target resource is protected by a backup vault. This is true if the backup_configs_details is not empty and any of the ResourceBackupConfig.backup_configs_details has a backup configuration with BackupConfigDetails.backup_vault set. set.

bool vaulted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The vaulted to set.

Returns
Type Description
ResourceBackupConfig.Builder

This builder for chaining.