Class GcpBackupConfig.Builder (0.10.0)

public static final class GcpBackupConfig.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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.

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GcpBackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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