Class AccountLabel (0.4.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
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_ID_FIELD_NUMBER

public static final int LABEL_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_TYPE_FIELD_NUMBER

public static final int LABEL_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AccountLabel getDefaultInstance()
Returns
TypeDescription
AccountLabel

getDescriptor()

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

newBuilder()

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

newBuilder(AccountLabel prototype)

public static AccountLabel.Builder newBuilder(AccountLabel prototype)
Parameter
NameDescription
prototypeAccountLabel
Returns
TypeDescription
AccountLabel.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
long

The accountId.

getDefaultInstanceForType()

public AccountLabel getDefaultInstanceForType()
Returns
TypeDescription
AccountLabel

getDescription()

public String getDescription()

The description of this label.

optional string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of this label.

optional string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of this label.

optional string display_name = 4;

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

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDescription()

public boolean hasDescription()

The description of this label.

optional string description = 5;

Returns
TypeDescription
boolean

Whether the description field is set.

hasDisplayName()

public boolean hasDisplayName()

The display name of this label.

optional string display_name = 4;

Returns
TypeDescription
boolean

Whether the displayName 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 AccountLabel.Builder newBuilderForType()
Returns
TypeDescription
AccountLabel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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