# Interface AffiliationOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AffiliationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getFullResourceName()

    public abstract String getFullResourceName()

Optional. Full resource name

`string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fullResourceName. |

### getFullResourceNameBytes()

    public abstract ByteString getFullResourceNameBytes()

Optional. Full resource name

`string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for fullResourceName. |

### getLineages(int index)

    public abstract Affiliation.Lineage getLineages(int index)

Optional. Multiple lineages can be created from a resource.
For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

`
repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-databasecenter/latest/com.google.cloud.databasecenter.v1beta.Affiliation.Lineage` |   |

### getLineagesCount()

    public abstract int getLineagesCount()

Optional. Multiple lineages can be created from a resource.
For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

`
repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLineagesList()

    public abstract List<Affiliation.Lineage> getLineagesList()

Optional. Multiple lineages can be created from a resource.
For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

`
repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-databasecenter/latest/com.google.cloud.databasecenter.v1beta.Affiliation.Lineage>` |   |

### getLineagesOrBuilder(int index)

    public abstract Affiliation.LineageOrBuilder getLineagesOrBuilder(int index)

Optional. Multiple lineages can be created from a resource.
For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

`
repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-databasecenter/latest/com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder` |   |

### getLineagesOrBuilderList()

    public abstract List<? extends Affiliation.LineageOrBuilder> getLineagesOrBuilderList()

Optional. Multiple lineages can be created from a resource.
For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

`
repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.databasecenter.v1beta.Affiliation.LineageOrBuilder>` |   |

### getResourceId()

    public abstract String getResourceId()

Optional. resource id of affiliated resource

`string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The resourceId. |

### getResourceIdBytes()

    public abstract ByteString getResourceIdBytes()

Optional. resource id of affiliated resource

`string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for resourceId. |