Class Backup.GCPBackupPlanInfo.Builder (0.42.0)

public static final class Backup.GCPBackupPlanInfo.Builder extends GeneratedMessage.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

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.

clearBackupPlanRevisionId()

public Backup.GCPBackupPlanInfo.Builder clearBackupPlanRevisionId()

The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.

string backup_plan_revision_id = 4;

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

clearBackupPlanRevisionName()

public Backup.GCPBackupPlanInfo.Builder clearBackupPlanRevisionName()

Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}

string backup_plan_revision_name = 3;

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.

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.

getBackupPlanRevisionId()

public String getBackupPlanRevisionId()

The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.

string backup_plan_revision_id = 4;

Returns
Type Description
String

The backupPlanRevisionId.

getBackupPlanRevisionIdBytes()

public ByteString getBackupPlanRevisionIdBytes()

The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.

string backup_plan_revision_id = 4;

Returns
Type Description
ByteString

The bytes for backupPlanRevisionId.

getBackupPlanRevisionName()

public String getBackupPlanRevisionName()

Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}

string backup_plan_revision_name = 3;

Returns
Type Description
String

The backupPlanRevisionName.

getBackupPlanRevisionNameBytes()

public ByteString getBackupPlanRevisionNameBytes()

Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}

string backup_plan_revision_name = 3;

Returns
Type Description
ByteString

The bytes for backupPlanRevisionName.

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

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.

setBackupPlanRevisionId(String value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRevisionId(String value)

The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.

string backup_plan_revision_id = 4;

Parameter
Name Description
value String

The backupPlanRevisionId to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanRevisionIdBytes(ByteString value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRevisionIdBytes(ByteString value)

The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.

string backup_plan_revision_id = 4;

Parameter
Name Description
value ByteString

The bytes for backupPlanRevisionId to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanRevisionName(String value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRevisionName(String value)

Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}

string backup_plan_revision_name = 3;

Parameter
Name Description
value String

The backupPlanRevisionName to set.

Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

This builder for chaining.

setBackupPlanRevisionNameBytes(ByteString value)

public Backup.GCPBackupPlanInfo.Builder setBackupPlanRevisionNameBytes(ByteString value)

Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}

string backup_plan_revision_name = 3;

Parameter
Name Description
value ByteString

The bytes for backupPlanRevisionName 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.