public final class MerchantReviewAttributes extends GeneratedMessageV3 implements MerchantReviewAttributesOrBuilder
Attributes.
Protobuf type google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MerchantReviewAttributesImplements
MerchantReviewAttributesOrBuilderStatic Fields
COLLECTION_METHOD_FIELD_NUMBER
public static final int COLLECTION_METHOD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
IS_ANONYMOUS_FIELD_NUMBER
public static final int IS_ANONYMOUS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MAX_RATING_FIELD_NUMBER
public static final int MAX_RATING_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MERCHANT_DISPLAY_NAME_FIELD_NUMBER
public static final int MERCHANT_DISPLAY_NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MERCHANT_ID_FIELD_NUMBER
public static final int MERCHANT_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MERCHANT_LINK_FIELD_NUMBER
public static final int MERCHANT_LINK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MERCHANT_RATING_LINK_FIELD_NUMBER
public static final int MERCHANT_RATING_LINK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MIN_RATING_FIELD_NUMBER
public static final int MIN_RATING_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RATING_FIELD_NUMBER
public static final int RATING_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REVIEWER_ID_FIELD_NUMBER
public static final int REVIEWER_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REVIEWER_USERNAME_FIELD_NUMBER
public static final int REVIEWER_USERNAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REVIEW_COUNTRY_FIELD_NUMBER
public static final int REVIEW_COUNTRY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REVIEW_LANGUAGE_FIELD_NUMBER
public static final int REVIEW_LANGUAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REVIEW_TIME_FIELD_NUMBER
public static final int REVIEW_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MerchantReviewAttributes getDefaultInstance()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static MerchantReviewAttributes.Builder newBuilder()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
newBuilder(MerchantReviewAttributes prototype)
public static MerchantReviewAttributes.Builder newBuilder(MerchantReviewAttributes prototype)
Parameter | |
---|---|
Name | Description |
prototype |
MerchantReviewAttributes |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
parseDelimitedFrom(InputStream input)
public static MerchantReviewAttributes parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static MerchantReviewAttributes parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MerchantReviewAttributes parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MerchantReviewAttributes parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static MerchantReviewAttributes parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MerchantReviewAttributes parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MerchantReviewAttributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MerchantReviewAttributes> parser()
Returns | |
---|---|
Type | Description |
Parser<MerchantReviewAttributes> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
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 |
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. |
getParserForType()
public Parser<MerchantReviewAttributes> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<MerchantReviewAttributes> |
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. |
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. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public MerchantReviewAttributes.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MerchantReviewAttributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public MerchantReviewAttributes.Builder toBuilder()
Returns | |
---|---|
Type | Description |
MerchantReviewAttributes.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |