# Interface AccountOrBuilder (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 AccountOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAccountId()

    public abstract long getAccountId()

Output only. The ID of the account.

`int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getAccountName()

    public abstract String getAccountName()

Required. A human-readable name of the account. See
[store name](https://support.google.com/merchants/answer/160556) and
[business name](https://support.google.com/merchants/answer/12159159) for
more information.

`string account_name = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getAccountNameBytes()

    public abstract ByteString getAccountNameBytes()

Required. A human-readable name of the account. See
[store name](https://support.google.com/merchants/answer/160556) and
[business name](https://support.google.com/merchants/answer/12159159) for
more information.

`string account_name = 3 [(.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 accountName. |

### getAdultContent()

    public abstract boolean getAdultContent()

Whether this account contains adult content.

`bool adult_content = 4;`

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

### getLanguageCode()

    public abstract String getLanguageCode()

Required. The account's [BCP-47 language
code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.

`string language_code = 7 [(.google.api.field_behavior) = REQUIRED];`

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

### getLanguageCodeBytes()

    public abstract ByteString getLanguageCodeBytes()

Required. The account's [BCP-47 language
code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.

`string language_code = 7 [(.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 languageCode. |

### getName()

    public abstract String getName()

Identifier. The resource name of the account.
Format: `accounts/{account}`

`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.
Format: `accounts/{account}`

`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. |

### getTestAccount()

    public abstract boolean getTestAccount()

Output only. Whether this is a test account.

`bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getTimeZone()

    public abstract TimeZone getTimeZone()

Required. The time zone of the account.

On writes, `time_zone` sets both the `reporting_time_zone` and the
`display_time_zone`.

For reads, `time_zone` always returns the `display_time_zone`. If
`display_time_zone` doesn't exist for your account, `time_zone` is empty.

`.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeZone` | The timeZone. |

### getTimeZoneOrBuilder()

    public abstract TimeZoneOrBuilder getTimeZoneOrBuilder()

Required. The time zone of the account.

On writes, `time_zone` sets both the `reporting_time_zone` and the
`display_time_zone`.

For reads, `time_zone` always returns the `display_time_zone`. If
`display_time_zone` doesn't exist for your account, `time_zone` is empty.

`.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeZoneOrBuilder` |   |

### hasTimeZone()

    public abstract boolean hasTimeZone()

Required. The time zone of the account.

On writes, `time_zone` sets both the `reporting_time_zone` and the
`display_time_zone`.

For reads, `time_zone` always returns the `display_time_zone`. If
`display_time_zone` doesn't exist for your account, `time_zone` is empty.

`.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];`

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