Class CssProductInput (0.8.0)

public final class CssProductInput extends GeneratedMessageV3 implements CssProductInputOrBuilder

This resource represents input data you submit for a CSS Product, not the processed CSS Product that you see in CSS Center, in Shopping Ads, or across Google surfaces.

Protobuf type google.shopping.css.v1.CssProductInput

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

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

FINAL_NAME_FIELD_NUMBER

public static final int FINAL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

FRESHNESS_TIME_FIELD_NUMBER

public static final int FRESHNESS_TIME_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 CssProductInput getDefaultInstance()
Returns
TypeDescription
CssProductInput

getDescriptor()

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

newBuilder()

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

newBuilder(CssProductInput prototype)

public static CssProductInput.Builder newBuilder(CssProductInput prototype)
Parameter
NameDescription
prototypeCssProductInput
Returns
TypeDescription
CssProductInput.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttributes()

public Attributes getAttributes()

A list of CSS Product attributes.

.google.shopping.css.v1.Attributes attributes = 7;

Returns
TypeDescription
Attributes

The attributes.

getAttributesOrBuilder()

public AttributesOrBuilder getAttributesOrBuilder()

A list of CSS Product attributes.

.google.shopping.css.v1.Attributes attributes = 7;

Returns
TypeDescription
AttributesOrBuilder

getContentLanguage()

public String getContentLanguage()

Required. The two-letter ISO 639-1 language code for the CSS Product.

string content_language = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Required. The two-letter ISO 639-1 language code for the CSS Product.

string content_language = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for contentLanguage.

getCustomAttributes(int index)

public CustomAttribute getCustomAttributes(int index)

A list of custom (CSS-provided) attributes. It can also be used for submitting 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 = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.shopping.type.CustomAttribute

getCustomAttributesCount()

public int getCustomAttributesCount()

A list of custom (CSS-provided) attributes. It can also be used for submitting 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 = 8;

Returns
TypeDescription
int

getCustomAttributesList()

public List<CustomAttribute> getCustomAttributesList()

A list of custom (CSS-provided) attributes. It can also be used for submitting 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 = 8;

Returns
TypeDescription
List<com.google.shopping.type.CustomAttribute>

getCustomAttributesOrBuilder(int index)

public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

A list of custom (CSS-provided) attributes. It can also be used for submitting 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 = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.shopping.type.CustomAttributeOrBuilder

getCustomAttributesOrBuilderList()

public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

A list of custom (CSS-provided) attributes. It can also be used for submitting 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 = 8;

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

getDefaultInstanceForType()

public CssProductInput getDefaultInstanceForType()
Returns
TypeDescription
CssProductInput

getFeedLabel()

public String getFeedLabel()

Required. The feed label for the CSS Product. Feed Label is synonymous to "target country" and hence should always be a valid region code. For example: 'DE' for Germany, 'FR' for France.

string feed_label = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Required. The feed label for the CSS Product. Feed Label is synonymous to "target country" and hence should always be a valid region code. For example: 'DE' for Germany, 'FR' for France.

string feed_label = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for feedLabel.

getFinalName()

public String getFinalName()

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

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

Returns
TypeDescription
String

The finalName.

getFinalNameBytes()

public ByteString getFinalNameBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for finalName.

getFreshnessTime()

public Timestamp getFreshnessTime()

Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time.

This field must not be set to the future time.

If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time.

If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API.

If the operation is prevented, the aborted exception will be thrown.

.google.protobuf.Timestamp freshness_time = 6;

Returns
TypeDescription
Timestamp

The freshnessTime.

getFreshnessTimeOrBuilder()

public TimestampOrBuilder getFreshnessTimeOrBuilder()

Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time.

This field must not be set to the future time.

If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time.

If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API.

If the operation is prevented, the aborted exception will be thrown.

.google.protobuf.Timestamp freshness_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

The name of the CSS Product input. Format: accounts/{account}/cssProductInputs/{css_product_input}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the CSS Product input. Format: accounts/{account}/cssProductInputs/{css_product_input}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getRawProvidedId()

public String getRawProvidedId()

Required. Your unique identifier for the CSS Product. This is the same for the CSS Product input and processed CSS Product. We only allow ids with alphanumerics, underscores and dashes. See the products feed specification for details.

string raw_provided_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The rawProvidedId.

getRawProvidedIdBytes()

public ByteString getRawProvidedIdBytes()

Required. Your unique identifier for the CSS Product. This is the same for the CSS Product input and processed CSS Product. We only allow ids with alphanumerics, underscores and dashes. See the products feed specification for details.

string raw_provided_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for rawProvidedId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAttributes()

public boolean hasAttributes()

A list of CSS Product attributes.

.google.shopping.css.v1.Attributes attributes = 7;

Returns
TypeDescription
boolean

Whether the attributes field is set.

hasFreshnessTime()

public boolean hasFreshnessTime()

Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time.

This field must not be set to the future time.

If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time.

If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API.

If the operation is prevented, the aborted exception will be thrown.

.google.protobuf.Timestamp freshness_time = 6;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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