Class Account (0.8.0)

public final class Account extends GeneratedMessageV3 implements AccountOrBuilder

Information about CSS/MC account.

Protobuf type google.shopping.css.v1.Account

Implements

AccountOrBuilder

Static Fields

ACCOUNT_TYPE_FIELD_NUMBER

public static final int ACCOUNT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

AUTOMATIC_LABEL_IDS_FIELD_NUMBER

public static final int AUTOMATIC_LABEL_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

FULL_NAME_FIELD_NUMBER

public static final int FULL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

HOMEPAGE_URI_FIELD_NUMBER

public static final int HOMEPAGE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_IDS_FIELD_NUMBER

public static final int LABEL_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Account getDefaultInstance()
Returns
TypeDescription
Account

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Account.Builder newBuilder()
Returns
TypeDescription
Account.Builder

newBuilder(Account prototype)

public static Account.Builder newBuilder(Account prototype)
Parameter
NameDescription
prototypeAccount
Returns
TypeDescription
Account.Builder

parseDelimitedFrom(InputStream input)

public static Account parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Account parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Account parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Account parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Account parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Account parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Account parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Account parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Account parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Account parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Account parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Account parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Account
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Account> parser()
Returns
TypeDescription
Parser<Account>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAccountType()

public 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
TypeDescription
Account.AccountType

The accountType.

getAccountTypeValue()

public 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
TypeDescription
int

The enum numeric value on the wire for accountType.

getAutomaticLabelIds(int index)

public long getAutomaticLabelIds(int index)

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

repeated int64 automatic_label_ids = 7;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The automaticLabelIds at the given index.

getAutomaticLabelIdsCount()

public int getAutomaticLabelIdsCount()

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

repeated int64 automatic_label_ids = 7;

Returns
TypeDescription
int

The count of automaticLabelIds.

getAutomaticLabelIdsList()

public List<Long> getAutomaticLabelIdsList()

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

repeated int64 automatic_label_ids = 7;

Returns
TypeDescription
List<Long>

A list containing the automaticLabelIds.

getDefaultInstanceForType()

public Account getDefaultInstanceForType()
Returns
TypeDescription
Account

getDisplayName()

public String getDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getFullName()

public 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
TypeDescription
String

The fullName.

getFullNameBytes()

public 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
TypeDescription
ByteString

The bytes for fullName.

getHomepageUri()

public 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
TypeDescription
String

The homepageUri.

getHomepageUriBytes()

public 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
TypeDescription
ByteString

The bytes for homepageUri.

getLabelIds(int index)

public 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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The labelIds at the given index.

getLabelIdsCount()

public int getLabelIdsCount()

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

repeated int64 label_ids = 6;

Returns
TypeDescription
int

The count of labelIds.

getLabelIdsList()

public List<Long> getLabelIdsList()

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

repeated int64 label_ids = 6;

Returns
TypeDescription
List<Long>

A list containing the labelIds.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParent()

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

optional string parent = 5;

Returns
TypeDescription
String

The parent.

getParentBytes()

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

optional string parent = 5;

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<Account> getParserForType()
Returns
TypeDescription
Parser<Account>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDisplayName()

public boolean hasDisplayName()

The CSS/MC account's short display name.

optional string display_name = 3;

Returns
TypeDescription
boolean

Whether the displayName field is set.

hasHomepageUri()

public 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
TypeDescription
boolean

Whether the homepageUri field is set.

hasParent()

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

optional string parent = 5;

Returns
TypeDescription
boolean

Whether the parent field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Account.Builder newBuilderForType()
Returns
TypeDescription
Account.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Account.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Account.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Account.Builder toBuilder()
Returns
TypeDescription
Account.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException