Class BackupPlanAssociation (0.39.0)

publicfinalclass BackupPlanAssociationextendsGeneratedMessageV3implementsBackupPlanAssociationOrBuilder

A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc

Protobuf type google.cloud.backupdr.v1.BackupPlanAssociation

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

BACKUP_PLAN_FIELD_NUMBER

publicstaticfinalintBACKUP_PLAN_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_PLAN_REVISION_ID_FIELD_NUMBER

publicstaticfinalintBACKUP_PLAN_REVISION_ID_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_PLAN_REVISION_NAME_FIELD_NUMBER

publicstaticfinalintBACKUP_PLAN_REVISION_NAME_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER

publicstaticfinalintCLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

publicstaticfinalintRESOURCE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

publicstaticfinalintRESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

RULES_CONFIG_INFO_FIELD_NUMBER

publicstaticfinalintRULES_CONFIG_INFO_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticBackupPlanAssociationgetDefaultInstance()
Returns
Type Description
BackupPlanAssociation

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticBackupPlanAssociation.BuildernewBuilder()
Returns
Type Description
BackupPlanAssociation.Builder

newBuilder(BackupPlanAssociation prototype)

publicstaticBackupPlanAssociation.BuildernewBuilder(BackupPlanAssociationprototype)
Parameter
Name Description
prototype BackupPlanAssociation
Returns
Type Description
BackupPlanAssociation.Builder

parseDelimitedFrom(InputStream input)

publicstaticBackupPlanAssociationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticBackupPlanAssociationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticBackupPlanAssociationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticBackupPlanAssociationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticBackupPlanAssociationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticBackupPlanAssociationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupPlanAssociationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupPlanAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<BackupPlanAssociation>parser()
Returns
Type Description
Parser<BackupPlanAssociation>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackupPlan()

publicStringgetBackupPlan()

Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlan.

getBackupPlanBytes()

publicByteStringgetBackupPlanBytes()

Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlan.

getBackupPlanRevisionId()

publicStringgetBackupPlanRevisionId()

Output only. The user friendly revision ID of the BackupPlanRevision.

Example: v0, v1, v2, etc.

string backup_plan_revision_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The backupPlanRevisionId.

getBackupPlanRevisionIdBytes()

publicByteStringgetBackupPlanRevisionIdBytes()

Output only. The user friendly revision ID of the BackupPlanRevision.

Example: v0, v1, v2, etc.

string backup_plan_revision_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for backupPlanRevisionId.

getBackupPlanRevisionName()

publicStringgetBackupPlanRevisionName()

Output only. The resource id of the BackupPlanRevision.

Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}

string backup_plan_revision_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The backupPlanRevisionName.

getBackupPlanRevisionNameBytes()

publicByteStringgetBackupPlanRevisionNameBytes()

Output only. The resource id of the BackupPlanRevision.

Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}

string backup_plan_revision_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for backupPlanRevisionName.

getCloudSqlInstanceBackupPlanAssociationProperties()

publicCloudSqlInstanceBackupPlanAssociationPropertiesgetCloudSqlInstanceBackupPlanAssociationProperties()

Output only. Cloud SQL instance's backup plan association properties.

.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationProperties cloud_sql_instance_backup_plan_association_properties = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceBackupPlanAssociationProperties

The cloudSqlInstanceBackupPlanAssociationProperties.

getCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder()

publicCloudSqlInstanceBackupPlanAssociationPropertiesOrBuildergetCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder()

Output only. Cloud SQL instance's backup plan association properties.

.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationProperties cloud_sql_instance_backup_plan_association_properties = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDataSource()

publicStringgetDataSource()

Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

publicByteStringgetDataSourceBytes()

Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

publicBackupPlanAssociationgetDefaultInstanceForType()
Returns
Type Description
BackupPlanAssociation

getName()

publicStringgetName()

Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<BackupPlanAssociation>getParserForType()
Returns
Type Description
Parser<BackupPlanAssociation>
Overrides

getResource()

publicStringgetResource()

Required. Immutable. Resource name of workload on which the backup plan is applied.

The format can either be the resource name (e.g., "projects/my-project/zones/us-central1-a/instances/my-instance") or the full resource URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance").

string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resource.

getResourceBytes()

publicByteStringgetResourceBytes()

Required. Immutable. Resource name of workload on which the backup plan is applied.

The format can either be the resource name (e.g., "projects/my-project/zones/us-central1-a/instances/my-instance") or the full resource URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance").

string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resource.

getResourcePropertiesCase()

publicBackupPlanAssociation.ResourcePropertiesCasegetResourcePropertiesCase()
Returns
Type Description
BackupPlanAssociation.ResourcePropertiesCase

getResourceType()

publicStringgetResourceType()

Required. Immutable. Resource type of workload on which backupplan is applied

string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

publicByteStringgetResourceTypeBytes()

Required. Immutable. Resource type of workload on which backupplan is applied

string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resourceType.

getRulesConfigInfo(int index)

publicRuleConfigInfogetRulesConfigInfo(intindex)

Output only. The config info related to backup rules.

repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
RuleConfigInfo

getRulesConfigInfoCount()

publicintgetRulesConfigInfoCount()

Output only. The config info related to backup rules.

repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getRulesConfigInfoList()

publicList<RuleConfigInfo>getRulesConfigInfoList()

Output only. The config info related to backup rules.

repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<RuleConfigInfo>

getRulesConfigInfoOrBuilder(int index)

publicRuleConfigInfoOrBuildergetRulesConfigInfoOrBuilder(intindex)

Output only. The config info related to backup rules.

repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
RuleConfigInfoOrBuilder

getRulesConfigInfoOrBuilderList()

publicList<?extendsRuleConfigInfoOrBuilder>getRulesConfigInfoOrBuilderList()

Output only. The config info related to backup rules.

repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.RuleConfigInfoOrBuilder>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getState()

publicBackupPlanAssociation.StategetState()

Output only. The BackupPlanAssociation resource state.

.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupPlanAssociation.State

The state.

getStateValue()

publicintgetStateValue()

Output only. The BackupPlanAssociation resource state.

.google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

publicTimestampgetUpdateTime()

Output only. The time when the instance was updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The time when the instance was updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCloudSqlInstanceBackupPlanAssociationProperties()

publicbooleanhasCloudSqlInstanceBackupPlanAssociationProperties()

Output only. Cloud SQL instance's backup plan association properties.

.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationProperties cloud_sql_instance_backup_plan_association_properties = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the cloudSqlInstanceBackupPlanAssociationProperties field is set.

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

Output only. The time when the instance was updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicBackupPlanAssociation.BuildernewBuilderForType()
Returns
Type Description
BackupPlanAssociation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedBackupPlanAssociation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupPlanAssociation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicBackupPlanAssociation.BuildertoBuilder()
Returns
Type Description
BackupPlanAssociation.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.