Class GcpBackupConfig.Builder (0.42.0)

public static final class GcpBackupConfig.Builder extends GeneratedMessage.Builder<GcpBackupConfig.Builder> implements GcpBackupConfigOrBuilder

GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations.

Protobuf type google.cloud.backupdr.v1.GcpBackupConfig

Static Methods

getDescriptor()

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

Methods

addAllBackupPlanRules(Iterable<String> values)

public GcpBackupConfig.Builder addAllBackupPlanRules(Iterable<String> values)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameter
Name Description
values Iterable<String>

The backupPlanRules to add.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

addBackupPlanRules(String value)

public GcpBackupConfig.Builder addBackupPlanRules(String value)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameter
Name Description
value String

The backupPlanRules to add.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

addBackupPlanRulesBytes(ByteString value)

public GcpBackupConfig.Builder addBackupPlanRulesBytes(ByteString value)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameter
Name Description
value ByteString

The bytes of the backupPlanRules to add.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

build()

public GcpBackupConfig build()
Returns
Type Description
GcpBackupConfig

buildPartial()

public GcpBackupConfig buildPartial()
Returns
Type Description
GcpBackupConfig

clear()

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

clearBackupPlan()

public GcpBackupConfig.Builder clearBackupPlan()

The name of the backup plan.

string backup_plan = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

clearBackupPlanAssociation()

public GcpBackupConfig.Builder clearBackupPlanAssociation()

The name of the backup plan association.

string backup_plan_association = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

clearBackupPlanDescription()

public GcpBackupConfig.Builder clearBackupPlanDescription()

The description of the backup plan.

string backup_plan_description = 2;

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

clearBackupPlanRevisionId()

public GcpBackupConfig.Builder clearBackupPlanRevisionId()

The user friendly id of the backup plan revision. E.g. v0, v1 etc.

string backup_plan_revision_id = 6;

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

clearBackupPlanRevisionName()

public GcpBackupConfig.Builder clearBackupPlanRevisionName()

The name of the backup plan revision.

string backup_plan_revision_name = 5;

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

clearBackupPlanRules()

public GcpBackupConfig.Builder clearBackupPlanRules()

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

getBackupPlan()

public String getBackupPlan()

The name of the backup plan.

string backup_plan = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlan.

getBackupPlanAssociation()

public String getBackupPlanAssociation()

The name of the backup plan association.

string backup_plan_association = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlanAssociation.

getBackupPlanAssociationBytes()

public ByteString getBackupPlanAssociationBytes()

The name of the backup plan association.

string backup_plan_association = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlanAssociation.

getBackupPlanBytes()

public ByteString getBackupPlanBytes()

The name of the backup plan.

string backup_plan = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlan.

getBackupPlanDescription()

public String getBackupPlanDescription()

The description of the backup plan.

string backup_plan_description = 2;

Returns
Type Description
String

The backupPlanDescription.

getBackupPlanDescriptionBytes()

public ByteString getBackupPlanDescriptionBytes()

The description of the backup plan.

string backup_plan_description = 2;

Returns
Type Description
ByteString

The bytes for backupPlanDescription.

getBackupPlanRevisionId()

public String getBackupPlanRevisionId()

The user friendly id of the backup plan revision. E.g. v0, v1 etc.

string backup_plan_revision_id = 6;

Returns
Type Description
String

The backupPlanRevisionId.

getBackupPlanRevisionIdBytes()

public ByteString getBackupPlanRevisionIdBytes()

The user friendly id of the backup plan revision. E.g. v0, v1 etc.

string backup_plan_revision_id = 6;

Returns
Type Description
ByteString

The bytes for backupPlanRevisionId.

getBackupPlanRevisionName()

public String getBackupPlanRevisionName()

The name of the backup plan revision.

string backup_plan_revision_name = 5;

Returns
Type Description
String

The backupPlanRevisionName.

getBackupPlanRevisionNameBytes()

public ByteString getBackupPlanRevisionNameBytes()

The name of the backup plan revision.

string backup_plan_revision_name = 5;

Returns
Type Description
ByteString

The bytes for backupPlanRevisionName.

getBackupPlanRules(int index)

public String getBackupPlanRules(int index)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The backupPlanRules at the given index.

getBackupPlanRulesBytes(int index)

public ByteString getBackupPlanRulesBytes(int index)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the backupPlanRules at the given index.

getBackupPlanRulesCount()

public int getBackupPlanRulesCount()

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Returns
Type Description
int

The count of backupPlanRules.

getBackupPlanRulesList()

public ProtocolStringList getBackupPlanRulesList()

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Returns
Type Description
ProtocolStringList

A list containing the backupPlanRules.

getDefaultInstanceForType()

public GcpBackupConfig getDefaultInstanceForType()
Returns
Type Description
GcpBackupConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpBackupConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackupPlan(String value)

public GcpBackupConfig.Builder setBackupPlan(String value)

The name of the backup plan.

string backup_plan = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupPlan to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanAssociation(String value)

public GcpBackupConfig.Builder setBackupPlanAssociation(String value)

The name of the backup plan association.

string backup_plan_association = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupPlanAssociation to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanAssociationBytes(ByteString value)

public GcpBackupConfig.Builder setBackupPlanAssociationBytes(ByteString value)

The name of the backup plan association.

string backup_plan_association = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupPlanAssociation to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanBytes(ByteString value)

public GcpBackupConfig.Builder setBackupPlanBytes(ByteString value)

The name of the backup plan.

string backup_plan = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupPlan to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanDescription(String value)

public GcpBackupConfig.Builder setBackupPlanDescription(String value)

The description of the backup plan.

string backup_plan_description = 2;

Parameter
Name Description
value String

The backupPlanDescription to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanDescriptionBytes(ByteString value)

public GcpBackupConfig.Builder setBackupPlanDescriptionBytes(ByteString value)

The description of the backup plan.

string backup_plan_description = 2;

Parameter
Name Description
value ByteString

The bytes for backupPlanDescription to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanRevisionId(String value)

public GcpBackupConfig.Builder setBackupPlanRevisionId(String value)

The user friendly id of the backup plan revision. E.g. v0, v1 etc.

string backup_plan_revision_id = 6;

Parameter
Name Description
value String

The backupPlanRevisionId to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanRevisionIdBytes(ByteString value)

public GcpBackupConfig.Builder setBackupPlanRevisionIdBytes(ByteString value)

The user friendly id of the backup plan revision. E.g. v0, v1 etc.

string backup_plan_revision_id = 6;

Parameter
Name Description
value ByteString

The bytes for backupPlanRevisionId to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanRevisionName(String value)

public GcpBackupConfig.Builder setBackupPlanRevisionName(String value)

The name of the backup plan revision.

string backup_plan_revision_name = 5;

Parameter
Name Description
value String

The backupPlanRevisionName to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanRevisionNameBytes(ByteString value)

public GcpBackupConfig.Builder setBackupPlanRevisionNameBytes(ByteString value)

The name of the backup plan revision.

string backup_plan_revision_name = 5;

Parameter
Name Description
value ByteString

The bytes for backupPlanRevisionName to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.

setBackupPlanRules(int index, String value)

public GcpBackupConfig.Builder setBackupPlanRules(int index, String value)

The names of the backup plan rules which point to this backupvault

repeated string backup_plan_rules = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The backupPlanRules to set.

Returns
Type Description
GcpBackupConfig.Builder

This builder for chaining.