# Interface AccountRelationshipOrBuilder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.26.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AccountRelationshipOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAccountIdAlias()

    public abstract String getAccountIdAlias()

Optional. An optional alias you can assign to this account relationship.
This alias acts as a convenient identifier for your own reference and
management. It must be unique among all your account relationships with the
same provider.

For example, you might use `account_id_alias` to assign a friendly name
to this relationship for easier identification in your systems.

`string account_id_alias = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAccountIdAliasBytes()

    public abstract ByteString getAccountIdAliasBytes()

Optional. An optional alias you can assign to this account relationship.
This alias acts as a convenient identifier for your own reference and
management. It must be unique among all your account relationships with the
same provider.

For example, you might use `account_id_alias` to assign a friendly name
to this relationship for easier identification in your systems.

`string account_id_alias = 4 [(.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 accountIdAlias. |

### getName()

    public abstract String getName()

Identifier. The resource name of the account relationship.
Format: `accounts/{account}/relationships/{relationship}`. For example,
`accounts/123456/relationships/567890`.

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. The resource name of the account relationship.
Format: `accounts/{account}/relationships/{relationship}`. For example,
`accounts/123456/relationships/567890`.

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

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

### getProvider()

    public abstract String getProvider()

Immutable. The provider of the service. Either the reference to an account
such as `providers/123` or a well-known service provider (one of
`providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).

`optional string provider = 2 [(.google.api.field_behavior) = IMMUTABLE];`

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

### getProviderBytes()

    public abstract ByteString getProviderBytes()

Immutable. The provider of the service. Either the reference to an account
such as `providers/123` or a well-known service provider (one of
`providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).

`optional string provider = 2 [(.google.api.field_behavior) = IMMUTABLE];`

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

### getProviderDisplayName()

    public abstract String getProviderDisplayName()

Output only. The human-readable display name of the provider account.

`string provider_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getProviderDisplayNameBytes()

    public abstract ByteString getProviderDisplayNameBytes()

Output only. The human-readable display name of the provider account.

`string provider_display_name = 3 [(.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 providerDisplayName. |

### hasProvider()

    public abstract boolean hasProvider()

Immutable. The provider of the service. Either the reference to an account
such as `providers/123` or a well-known service provider (one of
`providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).

`optional string provider = 2 [(.google.api.field_behavior) = IMMUTABLE];`

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