Class Backup.GCPBackupPlanInfo.Builder (0.10.0)

public static final class Backup.GCPBackupPlanInfo.Builder extends GeneratedMessageV3.Builder<Backup.GCPBackupPlanInfo.Builder> implements Backup.GCPBackupPlanInfoOrBuilder

GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup.

Protobuf type google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Backup.GCPBackupPlanInfo build()
Returns
Type Description
Backup.GCPBackupPlanInfo

buildPartial()

public Backup.GCPBackupPlanInfo buildPartial()
Returns
Type Description
Backup.GCPBackupPlanInfo

clear()

public Backup.GCPBackupPlanInfo.Builder clear()
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

clearBackupPlan()

public Backup.GCPBackupPlanInfo.Builder clearBackupPlan()

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

clearBackupPlanRuleId()

public Backup.GCPBackupPlanInfo.Builder clearBackupPlanRuleId()

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

string backup_plan_rule_id = 2;

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Backup.GCPBackupPlanInfo.Builder clone()
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

getBackupPlan()

public String getBackupPlan()

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

Returns
Type Description
String

The backupPlan.

getBackupPlanBytes()

public ByteString getBackupPlanBytes()

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

Returns
Type Description
ByteString

The bytes for backupPlan.

getBackupPlanRuleId()

public String getBackupPlanRuleId()

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

string backup_plan_rule_id = 2;

Returns
Type Description
String

The backupPlanRuleId.

getBackupPlanRuleIdBytes()

public ByteString getBackupPlanRuleIdBytes()

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

string backup_plan_rule_id = 2;

Returns
Type Description
ByteString

The bytes for backupPlanRuleId.

getDefaultInstanceForType()

public Backup.GCPBackupPlanInfo getDefaultInstanceForType()
Returns
Type Description
Backup.GCPBackupPlanInfo

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(Backup.GCPBackupPlanInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupPlan(String value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlan(String value)

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

Parameter
Name Description
value String

The backupPlan to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanBytes(ByteString value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanBytes(ByteString value)

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

Parameter
Name Description
value ByteString

The bytes for backupPlan to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanRuleId(String value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRuleId(String value)

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

string backup_plan_rule_id = 2;

Parameter
Name Description
value String

The backupPlanRuleId to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanRuleIdBytes(ByteString value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRuleIdBytes(ByteString value)

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

string backup_plan_rule_id = 2;

Parameter
Name Description
value ByteString

The bytes for backupPlanRuleId to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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