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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONTENT_LANGUAGE_FIELD_NUMBER
public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FEED_LABEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FINAL_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FRESHNESS_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RAW_PROVIDED_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static CssProductInput getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static CssProductInput.Builder newBuilder()
public static CssProductInput.Builder newBuilder(CssProductInput prototype)
public static CssProductInput parseDelimitedFrom(InputStream input)
public static CssProductInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CssProductInput parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static CssProductInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CssProductInput parseFrom(ByteString data)
public static CssProductInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CssProductInput parseFrom(CodedInputStream input)
public static CssProductInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CssProductInput parseFrom(InputStream input)
public static CssProductInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CssProductInput parseFrom(ByteBuffer data)
public static CssProductInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<CssProductInput> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Attributes getAttributes()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
public AttributesOrBuilder getAttributesOrBuilder()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for contentLanguage.
|
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 |
---|
Name | Description |
index | int
|
Returns |
---|
Type | Description |
com.google.shopping.type.CustomAttribute | |
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 |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
List<com.google.shopping.type.CustomAttribute> | |
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 |
---|
Name | Description |
index | int
|
Returns |
---|
Type | Description |
com.google.shopping.type.CustomAttributeOrBuilder | |
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 |
---|
Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> | |
public CssProductInput getDefaultInstanceForType()
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 |
---|
Type | Description |
String | The feedLabel.
|
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 |
---|
Type | Description |
ByteString | The bytes for feedLabel.
|
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 |
---|
Type | Description |
String | The finalName.
|
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 |
---|
Type | Description |
ByteString | The bytes for finalName.
|
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 |
---|
Type | Description |
Timestamp | The freshnessTime.
|
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;
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<CssProductInput> getParserForType()
Overrides
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 |
---|
Type | Description |
String | The rawProvidedId.
|
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 |
---|
Type | Description |
ByteString | The bytes for rawProvidedId.
|
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public boolean hasAttributes()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Returns |
---|
Type | Description |
boolean | Whether the attributes field is set.
|
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 |
---|
Type | Description |
boolean | Whether the freshnessTime field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CssProductInput.Builder newBuilderForType()
protected CssProductInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public CssProductInput.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides