public static final class MerchantReviewAttributes.Builder extends GeneratedMessageV3.Builder<MerchantReviewAttributes.Builder> implements MerchantReviewAttributesOrBuilder
Attributes.
Protobuf type google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MerchantReviewAttributes.BuilderImplements
MerchantReviewAttributesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MerchantReviewAttributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
build()
public MerchantReviewAttributes build()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
buildPartial()
public MerchantReviewAttributes buildPartial()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
clear()
public MerchantReviewAttributes.Builder clear()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
clearCollectionMethod()
public MerchantReviewAttributes.Builder clearCollectionMethod()
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearContent()
public MerchantReviewAttributes.Builder clearContent()
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MerchantReviewAttributes.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
clearIsAnonymous()
public MerchantReviewAttributes.Builder clearIsAnonymous()
Optional. Set to true if the reviewer should remain anonymous.
optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMaxRating()
public MerchantReviewAttributes.Builder clearMaxRating()
Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating.
optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMerchantDisplayName()
public MerchantReviewAttributes.Builder clearMerchantDisplayName()
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMerchantId()
public MerchantReviewAttributes.Builder clearMerchantId()
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMerchantLink()
public MerchantReviewAttributes.Builder clearMerchantLink()
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMerchantRatingLink()
public MerchantReviewAttributes.Builder clearMerchantRatingLink()
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearMinRating()
public MerchantReviewAttributes.Builder clearMinRating()
Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.
optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MerchantReviewAttributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
clearRating()
public MerchantReviewAttributes.Builder clearRating()
Optional. The reviewer's overall rating of the merchant.
optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearReviewCountry()
public MerchantReviewAttributes.Builder clearReviewCountry()
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearReviewLanguage()
public MerchantReviewAttributes.Builder clearReviewLanguage()
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearReviewTime()
public MerchantReviewAttributes.Builder clearReviewTime()
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
clearReviewerId()
public MerchantReviewAttributes.Builder clearReviewerId()
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearReviewerUsername()
public MerchantReviewAttributes.Builder clearReviewerUsername()
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clearTitle()
public MerchantReviewAttributes.Builder clearTitle()
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
clone()
public MerchantReviewAttributes.Builder clone()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
getCollectionMethod()
public MerchantReviewAttributes.CollectionMethod getCollectionMethod()
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.CollectionMethod |
The collectionMethod. |
getCollectionMethodValue()
public int getCollectionMethodValue()
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for collectionMethod. |
getContent()
public String getContent()
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The content. |
getContentBytes()
public ByteString getContentBytes()
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for content. |
getDefaultInstanceForType()
public MerchantReviewAttributes getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getIsAnonymous()
public boolean getIsAnonymous()
Optional. Set to true if the reviewer should remain anonymous.
optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The isAnonymous. |
getMaxRating()
public long getMaxRating()
Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating.
optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
long |
The maxRating. |
getMerchantDisplayName()
public String getMerchantDisplayName()
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The merchantDisplayName. |
getMerchantDisplayNameBytes()
public ByteString getMerchantDisplayNameBytes()
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for merchantDisplayName. |
getMerchantId()
public String getMerchantId()
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The merchantId. |
getMerchantIdBytes()
public ByteString getMerchantIdBytes()
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for merchantId. |
getMerchantLink()
public String getMerchantLink()
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The merchantLink. |
getMerchantLinkBytes()
public ByteString getMerchantLinkBytes()
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for merchantLink. |
getMerchantRatingLink()
public String getMerchantRatingLink()
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The merchantRatingLink. |
getMerchantRatingLinkBytes()
public ByteString getMerchantRatingLinkBytes()
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for merchantRatingLink. |
getMinRating()
public long getMinRating()
Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.
optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
long |
The minRating. |
getRating()
public double getRating()
Optional. The reviewer's overall rating of the merchant.
optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
double |
The rating. |
getReviewCountry()
public String getReviewCountry()
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The reviewCountry. |
getReviewCountryBytes()
public ByteString getReviewCountryBytes()
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reviewCountry. |
getReviewLanguage()
public String getReviewLanguage()
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The reviewLanguage. |
getReviewLanguageBytes()
public ByteString getReviewLanguageBytes()
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reviewLanguage. |
getReviewTime()
public Timestamp getReviewTime()
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Timestamp |
The reviewTime. |
getReviewTimeBuilder()
public Timestamp.Builder getReviewTimeBuilder()
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Builder |
getReviewTimeOrBuilder()
public TimestampOrBuilder getReviewTimeOrBuilder()
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getReviewerId()
public String getReviewerId()
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The reviewerId. |
getReviewerIdBytes()
public ByteString getReviewerIdBytes()
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reviewerId. |
getReviewerUsername()
public String getReviewerUsername()
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The reviewerUsername. |
getReviewerUsernameBytes()
public ByteString getReviewerUsernameBytes()
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reviewerUsername. |
getTitle()
public String getTitle()
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for title. |
hasCollectionMethod()
public boolean hasCollectionMethod()
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the collectionMethod field is set. |
hasContent()
public boolean hasContent()
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the content field is set. |
hasIsAnonymous()
public boolean hasIsAnonymous()
Optional. Set to true if the reviewer should remain anonymous.
optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the isAnonymous field is set. |
hasMaxRating()
public boolean hasMaxRating()
Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating.
optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the maxRating field is set. |
hasMerchantDisplayName()
public boolean hasMerchantDisplayName()
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the merchantDisplayName field is set. |
hasMerchantId()
public boolean hasMerchantId()
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the merchantId field is set. |
hasMerchantLink()
public boolean hasMerchantLink()
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the merchantLink field is set. |
hasMerchantRatingLink()
public boolean hasMerchantRatingLink()
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the merchantRatingLink field is set. |
hasMinRating()
public boolean hasMinRating()
Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.
optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the minRating field is set. |
hasRating()
public boolean hasRating()
Optional. The reviewer's overall rating of the merchant.
optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the rating field is set. |
hasReviewCountry()
public boolean hasReviewCountry()
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the reviewCountry field is set. |
hasReviewLanguage()
public boolean hasReviewLanguage()
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the reviewLanguage field is set. |
hasReviewTime()
public boolean hasReviewTime()
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the reviewTime field is set. |
hasReviewerId()
public boolean hasReviewerId()
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the reviewerId field is set. |
hasReviewerUsername()
public boolean hasReviewerUsername()
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the reviewerUsername field is set. |
hasTitle()
public boolean hasTitle()
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the title field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MerchantReviewAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MerchantReviewAttributes.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
mergeFrom(MerchantReviewAttributes other)
public MerchantReviewAttributes.Builder mergeFrom(MerchantReviewAttributes other)
Parameter | |
---|---|
Name | Description |
other |
MerchantReviewAttributes |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
mergeReviewTime(Timestamp value)
public MerchantReviewAttributes.Builder mergeReviewTime(Timestamp value)
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MerchantReviewAttributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
setCollectionMethod(MerchantReviewAttributes.CollectionMethod value)
public MerchantReviewAttributes.Builder setCollectionMethod(MerchantReviewAttributes.CollectionMethod value)
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
MerchantReviewAttributes.CollectionMethod The collectionMethod to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setCollectionMethodValue(int value)
public MerchantReviewAttributes.Builder setCollectionMethodValue(int value)
Optional. The method used to collect the review.
optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for collectionMethod to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setContent(String value)
public MerchantReviewAttributes.Builder setContent(String value)
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The content to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setContentBytes(ByteString value)
public MerchantReviewAttributes.Builder setContentBytes(ByteString value)
Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered.
optional string content = 9 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for content to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MerchantReviewAttributes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
setIsAnonymous(boolean value)
public MerchantReviewAttributes.Builder setIsAnonymous(boolean value)
Optional. Set to true if the reviewer should remain anonymous.
optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The isAnonymous to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMaxRating(long value)
public MerchantReviewAttributes.Builder setMaxRating(long value)
Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating.
optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
long The maxRating to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantDisplayName(String value)
public MerchantReviewAttributes.Builder setMerchantDisplayName(String value)
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The merchantDisplayName to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantDisplayNameBytes(ByteString value)
public MerchantReviewAttributes.Builder setMerchantDisplayNameBytes(ByteString value)
Optional. Human-readable display name for the merchant.
optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for merchantDisplayName to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantId(String value)
public MerchantReviewAttributes.Builder setMerchantId(String value)
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The merchantId to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantIdBytes(ByteString value)
public MerchantReviewAttributes.Builder setMerchantIdBytes(ByteString value)
Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id.
optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for merchantId to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantLink(String value)
public MerchantReviewAttributes.Builder setMerchantLink(String value)
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The merchantLink to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantLinkBytes(ByteString value)
public MerchantReviewAttributes.Builder setMerchantLinkBytes(ByteString value)
Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site.
optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for merchantLink to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantRatingLink(String value)
public MerchantReviewAttributes.Builder setMerchantRatingLink(String value)
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The merchantRatingLink to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMerchantRatingLinkBytes(ByteString value)
public MerchantReviewAttributes.Builder setMerchantRatingLinkBytes(ByteString value)
Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL.
optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for merchantRatingLink to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setMinRating(long value)
public MerchantReviewAttributes.Builder setMinRating(long value)
Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating.
optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
long The minRating to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setRating(double value)
public MerchantReviewAttributes.Builder setRating(double value)
Optional. The reviewer's overall rating of the merchant.
optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
double The rating to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MerchantReviewAttributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
setReviewCountry(String value)
public MerchantReviewAttributes.Builder setReviewCountry(String value)
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The reviewCountry to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewCountryBytes(ByteString value)
public MerchantReviewAttributes.Builder setReviewCountryBytes(ByteString value)
Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code.
optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for reviewCountry to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewLanguage(String value)
public MerchantReviewAttributes.Builder setReviewLanguage(String value)
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The reviewLanguage to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewLanguageBytes(ByteString value)
public MerchantReviewAttributes.Builder setReviewLanguageBytes(ByteString value)
Required. The language of the review defined by BCP-47 language code.
optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for reviewLanguage to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewTime(Timestamp value)
public MerchantReviewAttributes.Builder setReviewTime(Timestamp value)
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
setReviewTime(Timestamp.Builder builderForValue)
public MerchantReviewAttributes.Builder setReviewTime(Timestamp.Builder builderForValue)
Required. The timestamp indicating when the review was written.
optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
setReviewerId(String value)
public MerchantReviewAttributes.Builder setReviewerId(String value)
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The reviewerId to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewerIdBytes(ByteString value)
public MerchantReviewAttributes.Builder setReviewerIdBytes(ByteString value)
Optional. A permanent, unique identifier for the author of the review in the publisher's system.
optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for reviewerId to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewerUsername(String value)
public MerchantReviewAttributes.Builder setReviewerUsername(String value)
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The reviewerUsername to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setReviewerUsernameBytes(ByteString value)
public MerchantReviewAttributes.Builder setReviewerUsernameBytes(ByteString value)
Optional. Display name of the review author.
optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for reviewerUsername to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setTitle(String value)
public MerchantReviewAttributes.Builder setTitle(String value)
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The title to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public MerchantReviewAttributes.Builder setTitleBytes(ByteString value)
Optional. The title of the review.
optional string title = 8 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for title to set. |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MerchantReviewAttributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |