public static final class MerchantReview.Builder extends GeneratedMessage.Builder<MerchantReview.Builder> implements MerchantReviewOrBuilderA review for a merchant. For more information, see Introduction to Merchant Review Feeds
Protobuf type google.shopping.merchant.reviews.v1beta.MerchantReview
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.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) Optional. 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) = OPTIONAL];
| 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) Optional. 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) = OPTIONAL];
| 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) Optional. 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) = OPTIONAL];
| 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) Optional. 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) = OPTIONAL];
| 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) Optional. 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) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
com.google.shopping.type.CustomAttribute.Builder |
| Returns | |
|---|---|
| Type | Description |
MerchantReview.Builder |
|
addCustomAttributesBuilder()
public CustomAttribute.Builder addCustomAttributesBuilder() Optional. 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) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttribute.Builder |
|
addCustomAttributesBuilder(int index)
public CustomAttribute.Builder addCustomAttributesBuilder(int index) Optional. 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) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttribute.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 |
|
clearCustomAttributes()
public MerchantReview.Builder clearCustomAttributes() Optional. 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) = OPTIONAL];
| 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. |
clearMerchantReviewAttributes()
public MerchantReview.Builder clearMerchantReviewAttributes()Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| 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. |
getCustomAttributes(int index)
public CustomAttribute getCustomAttributes(int index) Optional. 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) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttribute |
|
getCustomAttributesBuilder(int index)
public CustomAttribute.Builder getCustomAttributesBuilder(int index) Optional. 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) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttribute.Builder |
|
getCustomAttributesBuilderList()
public List<CustomAttribute.Builder> getCustomAttributesBuilderList() Optional. 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) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<com.google.shopping.type.CustomAttribute.Builder> |
|
getCustomAttributesCount()
public int getCustomAttributesCount() Optional. 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) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getCustomAttributesList()
public List<CustomAttribute> getCustomAttributesList() Optional. 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) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<com.google.shopping.type.CustomAttribute> |
|
getCustomAttributesOrBuilder(int index)
public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index) Optional. 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) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttributeOrBuilder |
|
getCustomAttributesOrBuilderList()
public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList() Optional. 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) = OPTIONAL];
| 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 |
|
getMerchantReviewAttributes()
public MerchantReviewAttributes getMerchantReviewAttributes()Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MerchantReviewAttributes |
The merchantReviewAttributes. |
getMerchantReviewAttributesBuilder()
public MerchantReviewAttributes.Builder getMerchantReviewAttributesBuilder()Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MerchantReviewAttributes.Builder |
|
getMerchantReviewAttributesOrBuilder()
public MerchantReviewAttributesOrBuilder getMerchantReviewAttributesOrBuilder()Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MerchantReviewAttributesOrBuilder |
|
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. |
hasMerchantReviewAttributes()
public boolean hasMerchantReviewAttributes()Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the merchantReviewAttributes 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
mergeMerchantReviewAttributes(MerchantReviewAttributes value)
public MerchantReview.Builder mergeMerchantReviewAttributes(MerchantReviewAttributes value)Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MerchantReviewAttributes |
| 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 |
|
removeCustomAttributes(int index)
public MerchantReview.Builder removeCustomAttributes(int index) Optional. 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) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MerchantReview.Builder |
|
setCustomAttributes(int index, CustomAttribute value)
public MerchantReview.Builder setCustomAttributes(int index, CustomAttribute value) Optional. 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) = OPTIONAL];
| 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) Optional. 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) = OPTIONAL];
| 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 |
StringThe 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 |
ByteStringThe bytes for dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
MerchantReview.Builder |
This builder for chaining. |
setMerchantReviewAttributes(MerchantReviewAttributes value)
public MerchantReview.Builder setMerchantReviewAttributes(MerchantReviewAttributes value)Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MerchantReviewAttributes |
| Returns | |
|---|---|
| Type | Description |
MerchantReview.Builder |
|
setMerchantReviewAttributes(MerchantReviewAttributes.Builder builderForValue)
public MerchantReview.Builder setMerchantReviewAttributes(MerchantReviewAttributes.Builder builderForValue)Optional. A list of merchant review attributes.
.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes merchant_review_attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MerchantReviewAttributes.Builder |
| 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
MerchantReview.Builder |
This builder for chaining. |