public final class ProductReview extends GeneratedMessageV3 implements ProductReviewOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRODUCT_REVIEW_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRODUCT_REVIEW_STATUS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ProductReview getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ProductReview.Builder newBuilder()
public static ProductReview.Builder newBuilder(ProductReview prototype)
public static ProductReview parseDelimitedFrom(InputStream input)
public static ProductReview parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductReview parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ProductReview parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductReview parseFrom(ByteString data)
public static ProductReview parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductReview parseFrom(CodedInputStream input)
public static ProductReview parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductReview parseFrom(InputStream input)
public static ProductReview parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductReview parseFrom(ByteBuffer data)
public static ProductReview parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ProductReview> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public ProductReviewAttributes getAttributes()
Optional. A list of product review attributes.
.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
public ProductReviewAttributesOrBuilder getAttributesOrBuilder()
Optional. A list of product review attributes.
.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
public CustomAttribute getCustomAttributes(int index)
Optional. A list of custom (merchant-provided) attributes.
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 |
|
public int getCustomAttributesCount()
Optional. A list of custom (merchant-provided) attributes.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
public List<CustomAttribute> getCustomAttributesList()
Optional. A list of custom (merchant-provided) attributes.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<com.google.shopping.type.CustomAttribute> |
|
public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)
Optional. A list of custom (merchant-provided) attributes.
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 |
|
public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()
Optional. A list of custom (merchant-provided) attributes.
repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> |
|
public String getDataSource()
Output only. The primary data source of the product review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The dataSource.
|
public ByteString getDataSourceBytes()
Output only. The primary data source of the product review.
string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
ByteString |
The bytes for dataSource.
|
public ProductReview getDefaultInstanceForType()
Identifier. The name of the product review.
Format:
"{productreview.name=accounts/{account}/productReviews/{productReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Identifier. The name of the product review.
Format:
"{productreview.name=accounts/{account}/productReviews/{productReview}}"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Parser<ProductReview> getParserForType()
Overrides
public String getProductReviewId()
Required. The permanent, unique identifier for the product review in the
publisher’s system.
string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The productReviewId.
|
public ByteString getProductReviewIdBytes()
Required. The permanent, unique identifier for the product review in the
publisher’s system.
string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for productReviewId.
|
public ProductReviewStatus getProductReviewStatus()
Output only. The status of a product review, data validation issues, that
is, information about a product review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ProductReviewStatusOrBuilder getProductReviewStatusOrBuilder()
Output only. The status of a product review, data validation issues, that
is, information about a product review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasAttributes()
Optional. A list of product review attributes.
.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the attributes field is set.
|
public boolean hasProductReviewStatus()
Output only. The status of a product review, data validation issues, that
is, information about a product review computed asynchronously.
.google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the productReviewStatus field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ProductReview.Builder newBuilderForType()
protected ProductReview.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ProductReview.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides