Class CssProduct (0.1.0)

public final class CssProduct extends GeneratedMessageV3 implements CssProductOrBuilder

The processed CSS Product(a.k.a Aggregate Offer internally).

Protobuf type google.shopping.css.v1.CssProduct

Implements

CssProductOrBuilder

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

CONTENT_LANGUAGE_FIELD_NUMBER

public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

CSS_PRODUCT_STATUS_FIELD_NUMBER

public static final int CSS_PRODUCT_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOM_ATTRIBUTES_FIELD_NUMBER

public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

FEED_LABEL_FIELD_NUMBER

public static final int FEED_LABEL_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RAW_PROVIDED_ID_FIELD_NUMBER

public static final int RAW_PROVIDED_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CssProduct getDefaultInstance()
Returns
TypeDescription
CssProduct

getDescriptor()

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

newBuilder()

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

newBuilder(CssProduct prototype)

public static CssProduct.Builder newBuilder(CssProduct prototype)
Parameter
NameDescription
prototypeCssProduct
Returns
TypeDescription
CssProduct.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttributes()

public Attributes getAttributes()

Output only. A list of product attributes.

.google.shopping.css.v1.Attributes attributes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Attributes

The attributes.

getAttributesOrBuilder()

public AttributesOrBuilder getAttributesOrBuilder()

Output only. A list of product attributes.

.google.shopping.css.v1.Attributes attributes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttributesOrBuilder

getContentLanguage()

public String getContentLanguage()

Output only. The two-letter ISO 639-1 language code for the product.

string content_language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Output only. The two-letter ISO 639-1 language code for the product.

string content_language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for contentLanguage.

getCssProductStatus()

public CssProductStatus getCssProductStatus()

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

.google.shopping.css.v1.CssProductStatus css_product_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CssProductStatus

The cssProductStatus.

getCssProductStatusOrBuilder()

public CssProductStatusOrBuilder getCssProductStatusOrBuilder()

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

.google.shopping.css.v1.CssProductStatus css_product_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CssProductStatusOrBuilder

getCustomAttributes(int index)

public CustomAttribute getCustomAttributes(int index)

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

repeated .google.shopping.type.CustomAttribute custom_attributes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomAttribute

getCustomAttributesCount()

public int getCustomAttributesCount()

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

repeated .google.shopping.type.CustomAttribute custom_attributes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getCustomAttributesList()

public List<CustomAttribute> getCustomAttributesList()

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

repeated .google.shopping.type.CustomAttribute custom_attributes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<CustomAttribute>

getCustomAttributesOrBuilder(int index)

public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

repeated .google.shopping.type.CustomAttribute custom_attributes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomAttributeOrBuilder

getCustomAttributesOrBuilderList()

public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

repeated .google.shopping.type.CustomAttribute custom_attributes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.shopping.type.CustomAttributeOrBuilder>

getDefaultInstanceForType()

public CssProduct getDefaultInstanceForType()
Returns
TypeDescription
CssProduct

getFeedLabel()

public String getFeedLabel()

Output only. The feed label for the product.

string feed_label = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Output only. The feed label for the product.

string feed_label = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for feedLabel.

getName()

public String getName()

The name of the CSS Product. Format: "accounts/{account}/cssProducts/{css_product}"

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the CSS Product. Format: "accounts/{account}/cssProducts/{css_product}"

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getRawProvidedId()

public String getRawProvidedId()

Output only. Your unique raw identifier for the product.

string raw_provided_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The rawProvidedId.

getRawProvidedIdBytes()

public ByteString getRawProvidedIdBytes()

Output only. Your unique raw identifier for the product.

string raw_provided_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for rawProvidedId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAttributes()

public boolean hasAttributes()

Output only. A list of product attributes.

.google.shopping.css.v1.Attributes attributes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the attributes field is set.

hasCssProductStatus()

public boolean hasCssProductStatus()

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

.google.shopping.css.v1.CssProductStatus css_product_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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