# Interface AccountOrBuilder (0.61.0)

0.61.0 (latest) 0.59.0 0.56.0 0.55.0 0.53.0 0.51.0 0.50.0 0.48.0 0.46.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.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.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

### getAccountType()

    public abstract Account.AccountType getAccountType()

Output only. The type of this account.

`
.google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-css/latest/com.google.shopping.css.v1.Account.AccountType` | The accountType. |

### getAccountTypeValue()

    public abstract int getAccountTypeValue()

Output only. The type of this account.

`
.google.shopping.css.v1.Account.AccountType account_type = 8 [(.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 accountType. |

### getAutomaticLabelIds(int index)

    public abstract long getAutomaticLabelIds(int index)

Automatically created label IDs assigned to the MC account by
CSS Center.

`repeated int64 automatic_label_ids = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The automaticLabelIds at the given index. |

### getAutomaticLabelIdsCount()

    public abstract int getAutomaticLabelIdsCount()

Automatically created label IDs assigned to the MC account by
CSS Center.

`repeated int64 automatic_label_ids = 7;`

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

### getAutomaticLabelIdsList()

    public abstract List<Long> getAutomaticLabelIdsList()

Automatically created label IDs assigned to the MC account by
CSS Center.

`repeated int64 automatic_label_ids = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html>` | A list containing the automaticLabelIds. |

### getDisplayName()

    public abstract String getDisplayName()

The CSS/MC account's short display name.

`optional string display_name = 3;`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

The CSS/MC account's short display name.

`optional string display_name = 3;`

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

### getFullName()

    public abstract String getFullName()

Output only. Immutable. The CSS/MC account's full name.

`
string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getFullNameBytes()

    public abstract ByteString getFullNameBytes()

Output only. Immutable. The CSS/MC account's full name.

`
string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 fullName. |

### getHomepageUri()

    public abstract String getHomepageUri()

Output only. Immutable. The CSS/MC account's homepage.

`
optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getHomepageUriBytes()

    public abstract ByteString getHomepageUriBytes()

Output only. Immutable. The CSS/MC account's homepage.

`
optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 homepageUri. |

### getLabelIds(int index)

    public abstract long getLabelIds(int index)

Manually created label IDs assigned to the CSS/MC account by a CSS parent
account.

`repeated int64 label_ids = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The labelIds at the given index. |

### getLabelIdsCount()

    public abstract int getLabelIdsCount()

Manually created label IDs assigned to the CSS/MC account by a CSS parent
account.

`repeated int64 label_ids = 6;`

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

### getLabelIdsList()

    public abstract List<Long> getLabelIdsList()

Manually created label IDs assigned to the CSS/MC account by a CSS parent
account.

`repeated int64 label_ids = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html>` | A list containing the labelIds. |

### getName()

    public abstract String getName()

The label resource name.
Format: accounts/{account}

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

The label resource name.
Format: accounts/{account}

`string name = 1;`

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

### getParent()

    public abstract String getParent()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS
domain for MC accounts. Returned only if the user has access to the
parent account.
Note: For MC sub-accounts, this is also the CSS domain that is the parent
resource of the MCA account, since we are effectively flattening the
hierarchy."

`optional string parent = 5;`

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

### getParentBytes()

    public abstract ByteString getParentBytes()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS
domain for MC accounts. Returned only if the user has access to the
parent account.
Note: For MC sub-accounts, this is also the CSS domain that is the parent
resource of the MCA account, since we are effectively flattening the
hierarchy."

`optional string parent = 5;`

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

### hasDisplayName()

    public abstract boolean hasDisplayName()

The CSS/MC account's short display name.

`optional string display_name = 3;`

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

### hasHomepageUri()

    public abstract boolean hasHomepageUri()

Output only. Immutable. The CSS/MC account's homepage.

`
optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
`

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

### hasParent()

    public abstract boolean hasParent()

The CSS/MC account's parent resource. CSS group for CSS domains; CSS
domain for MC accounts. Returned only if the user has access to the
parent account.
Note: For MC sub-accounts, this is also the CSS domain that is the parent
resource of the MCA account, since we are effectively flattening the
hierarchy."

`optional string parent = 5;`

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