public static final class CssProductInput.Builder extends GeneratedMessageV3.Builder<CssProductInput.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CssProductInput.BuilderImplements
CssProductInputOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCustomAttributes(Iterable<? extends CustomAttribute> values)
public CssProductInput.Builder addAllCustomAttributes(Iterable<? extends CustomAttribute> values)
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 |
values | Iterable<? extends com.google.shopping.type.CustomAttribute> |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
addCustomAttributes(CustomAttribute value)
public CssProductInput.Builder addCustomAttributes(CustomAttribute value)
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 |
value | CustomAttribute |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
addCustomAttributes(CustomAttribute.Builder builderForValue)
public CssProductInput.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)
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 |
builderForValue | CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
addCustomAttributes(int index, CustomAttribute value)
public CssProductInput.Builder addCustomAttributes(int index, CustomAttribute value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | CustomAttribute |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
addCustomAttributes(int index, CustomAttribute.Builder builderForValue)
public CssProductInput.Builder addCustomAttributes(int index, CustomAttribute.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
addCustomAttributesBuilder()
public CustomAttribute.Builder addCustomAttributesBuilder()
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 |
CustomAttribute.Builder |
addCustomAttributesBuilder(int index)
public CustomAttribute.Builder addCustomAttributesBuilder(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 |
CustomAttribute.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CssProductInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
build()
public CssProductInput build()
Returns | |
---|---|
Type | Description |
CssProductInput |
buildPartial()
public CssProductInput buildPartial()
Returns | |
---|---|
Type | Description |
CssProductInput |
clear()
public CssProductInput.Builder clear()
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
clearAttributes()
public CssProductInput.Builder clearAttributes()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
clearContentLanguage()
public CssProductInput.Builder clearContentLanguage()
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 |
CssProductInput.Builder | This builder for chaining. |
clearCustomAttributes()
public CssProductInput.Builder clearCustomAttributes()
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 |
CssProductInput.Builder |
clearFeedLabel()
public CssProductInput.Builder clearFeedLabel()
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 |
CssProductInput.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CssProductInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
clearFinalName()
public CssProductInput.Builder clearFinalName()
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 |
CssProductInput.Builder | This builder for chaining. |
clearFreshnessTime()
public CssProductInput.Builder clearFreshnessTime()
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 |
CssProductInput.Builder |
clearName()
public CssProductInput.Builder clearName()
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CssProductInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
clearRawProvidedId()
public CssProductInput.Builder clearRawProvidedId()
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 |
CssProductInput.Builder | This builder for chaining. |
clone()
public CssProductInput.Builder clone()
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
getAttributes()
public Attributes getAttributes()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Returns | |
---|---|
Type | Description |
Attributes | The attributes. |
getAttributesBuilder()
public Attributes.Builder getAttributesBuilder()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Returns | |
---|---|
Type | Description |
Attributes.Builder |
getAttributesOrBuilder()
public AttributesOrBuilder getAttributesOrBuilder()
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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. |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
CustomAttribute |
getCustomAttributesBuilder(int index)
public CustomAttribute.Builder getCustomAttributesBuilder(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 |
CustomAttribute.Builder |
getCustomAttributesBuilderList()
public List<CustomAttribute.Builder> getCustomAttributesBuilderList()
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<Builder> |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> |
getDefaultInstanceForType()
public CssProductInput getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CssProductInput |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Timestamp | The freshnessTime. |
getFreshnessTimeBuilder()
public Timestamp.Builder getFreshnessTimeBuilder()
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 |
Builder |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getName()
public String getName()
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for rawProvidedId. |
hasAttributes()
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. |
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 | |
---|---|
Type | Description |
boolean | Whether the freshnessTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAttributes(Attributes value)
public CssProductInput.Builder mergeAttributes(Attributes value)
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Parameter | |
---|---|
Name | Description |
value | Attributes |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
mergeFreshnessTime(Timestamp value)
public CssProductInput.Builder mergeFreshnessTime(Timestamp value)
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;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CssProductInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CssProductInput.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
mergeFrom(CssProductInput other)
public CssProductInput.Builder mergeFrom(CssProductInput other)
Parameter | |
---|---|
Name | Description |
other | CssProductInput |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CssProductInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
removeCustomAttributes(int index)
public CssProductInput.Builder removeCustomAttributes(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 |
CssProductInput.Builder |
setAttributes(Attributes value)
public CssProductInput.Builder setAttributes(Attributes value)
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Parameter | |
---|---|
Name | Description |
value | Attributes |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setAttributes(Attributes.Builder builderForValue)
public CssProductInput.Builder setAttributes(Attributes.Builder builderForValue)
A list of CSS Product attributes.
.google.shopping.css.v1.Attributes attributes = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | Attributes.Builder |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setContentLanguage(String value)
public CssProductInput.Builder setContentLanguage(String value)
Required. The two-letter ISO 639-1 language code for the CSS Product.
string content_language = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | String The contentLanguage to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setContentLanguageBytes(ByteString value)
public CssProductInput.Builder setContentLanguageBytes(ByteString value)
Required. The two-letter ISO 639-1 language code for the CSS Product.
string content_language = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for contentLanguage to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setCustomAttributes(int index, CustomAttribute value)
public CssProductInput.Builder setCustomAttributes(int index, CustomAttribute value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | CustomAttribute |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setCustomAttributes(int index, CustomAttribute.Builder builderForValue)
public CssProductInput.Builder setCustomAttributes(int index, CustomAttribute.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setFeedLabel(String value)
public CssProductInput.Builder setFeedLabel(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The feedLabel to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setFeedLabelBytes(ByteString value)
public CssProductInput.Builder setFeedLabelBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for feedLabel to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CssProductInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setFinalName(String value)
public CssProductInput.Builder setFinalName(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The finalName to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setFinalNameBytes(ByteString value)
public CssProductInput.Builder setFinalNameBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for finalName to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setFreshnessTime(Timestamp value)
public CssProductInput.Builder setFreshnessTime(Timestamp value)
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;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setFreshnessTime(Timestamp.Builder builderForValue)
public CssProductInput.Builder setFreshnessTime(Timestamp.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setName(String value)
public CssProductInput.Builder setName(String value)
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public CssProductInput.Builder setNameBytes(ByteString value)
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setRawProvidedId(String value)
public CssProductInput.Builder setRawProvidedId(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The rawProvidedId to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setRawProvidedIdBytes(ByteString value)
public CssProductInput.Builder setRawProvidedIdBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for rawProvidedId to set. |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CssProductInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CssProductInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CssProductInput.Builder |