# Interface BackupPlanAssociationOrBuilder (0.50.0)

0.50.0 (latest) 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface BackupPlanAssociationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAlloydbClusterBackupPlanAssociationProperties()

    public abstract AlloyDBClusterBackupPlanAssociationProperties getAlloydbClusterBackupPlanAssociationProperties()

Output only. AlloyDB cluster's backup plan association properties.

`
.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties` | The alloydbClusterBackupPlanAssociationProperties. |

### getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder()

    public abstract AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder()

Output only. AlloyDB cluster's backup plan association properties.

`
.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder` |   |

### getBackupPlan()

    public abstract String getBackupPlan()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupPlan. |

### getBackupPlanBytes()

    public abstract ByteString getBackupPlanBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupPlan. |

### getBackupPlanRevisionId()

    public abstract String getBackupPlanRevisionId()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupPlanRevisionId. |

### getBackupPlanRevisionIdBytes()

    public abstract ByteString getBackupPlanRevisionIdBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupPlanRevisionId. |

### getBackupPlanRevisionName()

    public abstract String getBackupPlanRevisionName()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupPlanRevisionName. |

### getBackupPlanRevisionNameBytes()

    public abstract ByteString getBackupPlanRevisionNameBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupPlanRevisionName. |

### getCloudSqlInstanceBackupPlanAssociationProperties()

    public abstract CloudSqlInstanceBackupPlanAssociationProperties getCloudSqlInstanceBackupPlanAssociationProperties()

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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationProperties` | The cloudSqlInstanceBackupPlanAssociationProperties. |

### getCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder()

    public abstract CloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder getCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder()

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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time when the instance was created.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the instance was created.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDataSource()

    public abstract String getDataSource()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataSource. |

### getDataSourceBytes()

    public abstract ByteString getDataSourceBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dataSource. |

### getName()

    public abstract String getName()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getResource()

    public abstract String getResource()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The resource. |

### getResourceBytes()

    public abstract ByteString getResourceBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for resource. |

### getResourcePropertiesCase()

    public abstract BackupPlanAssociation.ResourcePropertiesCase getResourcePropertiesCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupPlanAssociation.ResourcePropertiesCase` |   |

### getResourceType()

    public abstract String getResourceType()

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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The resourceType. |

### getResourceTypeBytes()

    public abstract ByteString getResourceTypeBytes()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for resourceType. |

### getRulesConfigInfo(int index)

    public abstract RuleConfigInfo getRulesConfigInfo(int index)

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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.RuleConfigInfo` |   |

### getRulesConfigInfoCount()

    public abstract int getRulesConfigInfoCount()

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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getRulesConfigInfoList()

    public abstract List<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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.RuleConfigInfo>` |   |

### getRulesConfigInfoOrBuilder(int index)

    public abstract RuleConfigInfoOrBuilder getRulesConfigInfoOrBuilder(int index)

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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.RuleConfigInfoOrBuilder` |   |

### getRulesConfigInfoOrBuilderList()

    public abstract List<? extends RuleConfigInfoOrBuilder> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.backupdr.v1.RuleConfigInfoOrBuilder>` |   |

### getState()

    public abstract BackupPlanAssociation.State getState()

Output only. The BackupPlanAssociation resource state.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.BackupPlanAssociation.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The BackupPlanAssociation resource state.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The time when the instance was updated.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the instance was updated.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasAlloydbClusterBackupPlanAssociationProperties()

    public abstract boolean hasAlloydbClusterBackupPlanAssociationProperties()

Output only. AlloyDB cluster's backup plan association properties.

`
.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the alloydbClusterBackupPlanAssociationProperties field is set. |

### hasCloudSqlInstanceBackupPlanAssociationProperties()

    public abstract boolean hasCloudSqlInstanceBackupPlanAssociationProperties()

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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the cloudSqlInstanceBackupPlanAssociationProperties field is set. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The time when the instance was created.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The time when the instance was updated.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateTime field is set. |