Class Backup.GCPBackupPlanInfo.Builder (0.29.0)

publicstaticfinalclass Backup.GCPBackupPlanInfo.BuilderextendsGeneratedMessageV3.Builder<Backup.GCPBackupPlanInfo.Builder>implementsBackup.GCPBackupPlanInfoOrBuilder

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

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicBackup.GCPBackupPlanInfo.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

build()

publicBackup.GCPBackupPlanInfobuild()
Returns
Type Description
Backup.GCPBackupPlanInfo

buildPartial()

publicBackup.GCPBackupPlanInfobuildPartial()
Returns
Type Description
Backup.GCPBackupPlanInfo

clear()

publicBackup.GCPBackupPlanInfo.Builderclear()
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

clearBackupPlan()

publicBackup.GCPBackupPlanInfo.BuilderclearBackupPlan()

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()

publicBackup.GCPBackupPlanInfo.BuilderclearBackupPlanRevisionId()

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()

publicBackup.GCPBackupPlanInfo.BuilderclearBackupPlanRevisionName()

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()

publicBackup.GCPBackupPlanInfo.BuilderclearBackupPlanRuleId()

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)

publicBackup.GCPBackupPlanInfo.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicBackup.GCPBackupPlanInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

clone()

publicBackup.GCPBackupPlanInfo.Builderclone()
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

getBackupPlan()

publicStringgetBackupPlan()

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()

publicByteStringgetBackupPlanBytes()

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()

publicStringgetBackupPlanRevisionId()

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()

publicByteStringgetBackupPlanRevisionIdBytes()

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()

publicStringgetBackupPlanRevisionName()

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()

publicByteStringgetBackupPlanRevisionNameBytes()

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()

publicStringgetBackupPlanRuleId()

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()

publicByteStringgetBackupPlanRuleIdBytes()

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()

publicBackup.GCPBackupPlanInfogetDefaultInstanceForType()
Returns
Type Description
Backup.GCPBackupPlanInfo

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Backup.GCPBackupPlanInfo other)

publicBackup.GCPBackupPlanInfo.BuildermergeFrom(Backup.GCPBackupPlanInfoother)
Parameter
Name Description
other Backup.GCPBackupPlanInfo
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicBackup.GCPBackupPlanInfo.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicBackup.GCPBackupPlanInfo.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBackup.GCPBackupPlanInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

setBackupPlan(String value)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlan(Stringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanBytes(ByteStringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRevisionId(Stringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRevisionIdBytes(ByteStringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRevisionName(Stringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRevisionNameBytes(ByteStringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRuleId(Stringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetBackupPlanRuleIdBytes(ByteStringvalue)

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)

publicBackup.GCPBackupPlanInfo.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

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

publicBackup.GCPBackupPlanInfo.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalBackup.GCPBackupPlanInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.GCPBackupPlanInfo.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.