public static final class MerchantReview.Builder extends GeneratedMessageV3.Builder<MerchantReview.Builder> implements MerchantReviewOrBuilder
A review for a merchant. For more information, see Introduction to Merchant Review Feeds
Protobuf type google.shopping.merchant.reviews.v1beta.MerchantReview
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MerchantReview.BuilderImplements
MerchantReviewOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCustomAttributes(Iterable<? extends CustomAttribute> values)
public MerchantReview.Builder addAllCustomAttributes(Iterable<? extends CustomAttribute> values)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.shopping.type.CustomAttribute> |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
addCustomAttributes(CustomAttribute value)
public MerchantReview.Builder addCustomAttributes(CustomAttribute value)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
com.google.shopping.type.CustomAttribute |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
addCustomAttributes(CustomAttribute.Builder builderForValue)
public MerchantReview.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.shopping.type.CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
addCustomAttributes(int index, CustomAttribute value)
public MerchantReview.Builder addCustomAttributes(int index, CustomAttribute value)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
com.google.shopping.type.CustomAttribute |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
addCustomAttributes(int index, CustomAttribute.Builder builderForValue)
public MerchantReview.Builder addCustomAttributes(int index, CustomAttribute.Builder builderForValue)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
com.google.shopping.type.CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
addCustomAttributesBuilder()
public CustomAttribute.Builder addCustomAttributesBuilder()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
com.google.shopping.type.CustomAttribute.Builder |
addCustomAttributesBuilder(int index)
public CustomAttribute.Builder addCustomAttributesBuilder(int index)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
com.google.shopping.type.CustomAttribute.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MerchantReview.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
build()
public MerchantReview build()
Returns | |
---|---|
Type | Description |
MerchantReview |
buildPartial()
public MerchantReview buildPartial()
Returns | |
---|---|
Type | Description |
MerchantReview |
clear()
public MerchantReview.Builder clear()
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clearAttributes()
public MerchantReview.Builder clearAttributes()
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clearCustomAttributes()
public MerchantReview.Builder clearCustomAttributes()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clearDataSource()
public MerchantReview.Builder clearDataSource()
Output only. The primary data source of the merchant review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MerchantReview.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clearMerchantReviewId()
public MerchantReview.Builder clearMerchantReviewId()
Required. The user provided merchant review ID to uniquely identify the merchant review.
string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
clearMerchantReviewStatus()
public MerchantReview.Builder clearMerchantReviewStatus()
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clearName()
public MerchantReview.Builder clearName()
Identifier. The name of the merchant review.
Format:
"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MerchantReview.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
clone()
public MerchantReview.Builder clone()
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
getAttributes()
public MerchantReviewAttributes getAttributes()
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
The attributes. |
getAttributesBuilder()
public MerchantReviewAttributes.Builder getAttributesBuilder()
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
getAttributesOrBuilder()
public MerchantReviewAttributesOrBuilder getAttributesOrBuilder()
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributesOrBuilder |
getCustomAttributes(int index)
public CustomAttribute getCustomAttributes(int index)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
com.google.shopping.type.CustomAttribute |
getCustomAttributesBuilder(int index)
public CustomAttribute.Builder getCustomAttributesBuilder(int index)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
com.google.shopping.type.CustomAttribute.Builder |
getCustomAttributesBuilderList()
public List<CustomAttribute.Builder> getCustomAttributesBuilderList()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<com.google.shopping.type.CustomAttribute.Builder> |
getCustomAttributesCount()
public int getCustomAttributesCount()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
getCustomAttributesList()
public List<CustomAttribute> getCustomAttributesList()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<com.google.shopping.type.CustomAttribute> |
getCustomAttributesOrBuilder(int index)
public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
com.google.shopping.type.CustomAttributeOrBuilder |
getCustomAttributesOrBuilderList()
public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> |
getDataSource()
public String getDataSource()
Output only. The primary data source of the merchant review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The dataSource. |
getDataSourceBytes()
public ByteString getDataSourceBytes()
Output only. The primary data source of the merchant review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dataSource. |
getDefaultInstanceForType()
public MerchantReview getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MerchantReview |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMerchantReviewId()
public String getMerchantReviewId()
Required. The user provided merchant review ID to uniquely identify the merchant review.
string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The merchantReviewId. |
getMerchantReviewIdBytes()
public ByteString getMerchantReviewIdBytes()
Required. The user provided merchant review ID to uniquely identify the merchant review.
string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for merchantReviewId. |
getMerchantReviewStatus()
public MerchantReviewStatus getMerchantReviewStatus()
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MerchantReviewStatus |
The merchantReviewStatus. |
getMerchantReviewStatusBuilder()
public MerchantReviewStatus.Builder getMerchantReviewStatusBuilder()
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MerchantReviewStatus.Builder |
getMerchantReviewStatusOrBuilder()
public MerchantReviewStatusOrBuilder getMerchantReviewStatusOrBuilder()
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
MerchantReviewStatusOrBuilder |
getName()
public String getName()
Identifier. The name of the merchant review.
Format:
"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. The name of the merchant review.
Format:
"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
hasAttributes()
public boolean hasAttributes()
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the attributes field is set. |
hasMerchantReviewStatus()
public boolean hasMerchantReviewStatus()
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the merchantReviewStatus field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAttributes(MerchantReviewAttributes value)
public MerchantReview.Builder mergeAttributes(MerchantReviewAttributes value)
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
MerchantReviewAttributes |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MerchantReview.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MerchantReview.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
mergeFrom(MerchantReview other)
public MerchantReview.Builder mergeFrom(MerchantReview other)
Parameter | |
---|---|
Name | Description |
other |
MerchantReview |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
mergeMerchantReviewStatus(MerchantReviewStatus value)
public MerchantReview.Builder mergeMerchantReviewStatus(MerchantReviewStatus value)
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
MerchantReviewStatus |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MerchantReview.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
removeCustomAttributes(int index)
public MerchantReview.Builder removeCustomAttributes(int index)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setAttributes(MerchantReviewAttributes value)
public MerchantReview.Builder setAttributes(MerchantReviewAttributes value)
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
MerchantReviewAttributes |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setAttributes(MerchantReviewAttributes.Builder builderForValue)
public MerchantReview.Builder setAttributes(MerchantReviewAttributes.Builder builderForValue)
Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
MerchantReviewAttributes.Builder |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setCustomAttributes(int index, CustomAttribute value)
public MerchantReview.Builder setCustomAttributes(int index, CustomAttribute value)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
com.google.shopping.type.CustomAttribute |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setCustomAttributes(int index, CustomAttribute.Builder builderForValue)
public MerchantReview.Builder setCustomAttributes(int index, CustomAttribute.Builder builderForValue)
Required. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data 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 experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
com.google.shopping.type.CustomAttribute.Builder |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setDataSource(String value)
public MerchantReview.Builder setDataSource(String value)
Output only. The primary data source of the merchant review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The dataSource to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public MerchantReview.Builder setDataSourceBytes(ByteString value)
Output only. The primary data source of the merchant review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dataSource to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MerchantReview.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setMerchantReviewId(String value)
public MerchantReview.Builder setMerchantReviewId(String value)
Required. The user provided merchant review ID to uniquely identify the merchant review.
string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The merchantReviewId to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setMerchantReviewIdBytes(ByteString value)
public MerchantReview.Builder setMerchantReviewIdBytes(ByteString value)
Required. The user provided merchant review ID to uniquely identify the merchant review.
string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for merchantReviewId to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setMerchantReviewStatus(MerchantReviewStatus value)
public MerchantReview.Builder setMerchantReviewStatus(MerchantReviewStatus value)
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
MerchantReviewStatus |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setMerchantReviewStatus(MerchantReviewStatus.Builder builderForValue)
public MerchantReview.Builder setMerchantReviewStatus(MerchantReviewStatus.Builder builderForValue)
Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
MerchantReviewStatus.Builder |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setName(String value)
public MerchantReview.Builder setName(String value)
Identifier. The name of the merchant review.
Format:
"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public MerchantReview.Builder setNameBytes(ByteString value)
Identifier. The name of the merchant review.
Format:
"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MerchantReview.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MerchantReview.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MerchantReview.Builder |