Class AccountLabel (0.17.0)

public final class AccountLabel extends GeneratedMessageV3 implements AccountLabelOrBuilder

Label assigned by CSS domain or CSS group to one of its sub-accounts.

Protobuf type google.shopping.css.v1.AccountLabel

Static Fields

ACCOUNT_ID_FIELD_NUMBER

public static final int ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

LABEL_ID_FIELD_NUMBER

public static final int LABEL_ID_FIELD_NUMBER
Field Value
Type Description
int

LABEL_TYPE_FIELD_NUMBER

public static final int LABEL_TYPE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AccountLabel getDefaultInstance()
Returns
Type Description
AccountLabel

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AccountLabel.Builder newBuilder()
Returns
Type Description
AccountLabel.Builder

newBuilder(AccountLabel prototype)

public static AccountLabel.Builder newBuilder(AccountLabel prototype)
Parameter
Name Description
prototype AccountLabel
Returns
Type Description
AccountLabel.Builder

parseDelimitedFrom(InputStream input)

public static AccountLabel parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AccountLabel parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccountLabel parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccountLabel parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AccountLabel parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AccountLabel parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccountLabel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountLabel
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AccountLabel> parser()
Returns
Type Description
Parser<AccountLabel>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccountId()

public long getAccountId()

Output only. The ID of account this label belongs to.

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

Returns
Type Description
long

The accountId.

getDefaultInstanceForType()

public AccountLabel getDefaultInstanceForType()
Returns
Type Description
AccountLabel

getDescription()

public String getDescription()

The description of this label.

optional string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of this label.

optional string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of this label.

optional string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getLabelId()

public long getLabelId()

Output only. The ID of the label.

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

Returns
Type Description
long

The labelId.

getLabelType()

public AccountLabel.LabelType getLabelType()

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountLabel.LabelType

The labelType.

getLabelTypeValue()

public int getLabelTypeValue()

Output only. The type of this label.

.google.shopping.css.v1.AccountLabel.LabelType label_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for labelType.

getName()

public String getName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<AccountLabel> getParserForType()
Returns
Type Description
Parser<AccountLabel>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDescription()

public boolean hasDescription()

The description of this label.

optional string description = 5;

Returns
Type Description
boolean

Whether the description field is set.

hasDisplayName()

public boolean hasDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
Type Description
boolean

Whether the displayName field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AccountLabel.Builder newBuilderForType()
Returns
Type Description
AccountLabel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccountLabel.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccountLabel.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AccountLabel.Builder toBuilder()
Returns
Type Description
AccountLabel.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException