Class InsertProductReviewRequest.Builder (0.31.0)

public static final class InsertProductReviewRequest.Builder extends GeneratedMessage.Builder<InsertProductReviewRequest.Builder> implements InsertProductReviewRequestOrBuilder

Request message for the InsertProductReview method.

Protobuf type google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public InsertProductReviewRequest build()
Returns
Type Description
InsertProductReviewRequest

buildPartial()

public InsertProductReviewRequest buildPartial()
Returns
Type Description
InsertProductReviewRequest

clear()

public InsertProductReviewRequest.Builder clear()
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

clearDataSource()

public InsertProductReviewRequest.Builder clearDataSource()

Required. Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

clearParent()

public InsertProductReviewRequest.Builder clearParent()

Required. The account where the product review will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

clearProductReview()

public InsertProductReviewRequest.Builder clearProductReview()

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsertProductReviewRequest.Builder

getDataSource()

public String getDataSource()

Required. Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

Required. Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

public InsertProductReviewRequest getDefaultInstanceForType()
Returns
Type Description
InsertProductReviewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The account where the product review will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account where the product review will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getProductReview()

public ProductReview getProductReview()

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductReview

The productReview.

getProductReviewBuilder()

public ProductReview.Builder getProductReviewBuilder()

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductReview.Builder

getProductReviewOrBuilder()

public ProductReviewOrBuilder getProductReviewOrBuilder()

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductReviewOrBuilder

hasProductReview()

public boolean hasProductReview()

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the productReview field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InsertProductReviewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InsertProductReviewRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

mergeFrom(InsertProductReviewRequest other)

public InsertProductReviewRequest.Builder mergeFrom(InsertProductReviewRequest other)
Parameter
Name Description
other InsertProductReviewRequest
Returns
Type Description
InsertProductReviewRequest.Builder

mergeProductReview(ProductReview value)

public InsertProductReviewRequest.Builder mergeProductReview(ProductReview value)

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProductReview
Returns
Type Description
InsertProductReviewRequest.Builder

setDataSource(String value)

public InsertProductReviewRequest.Builder setDataSource(String value)

Required. Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataSource to set.

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

setDataSourceBytes(ByteString value)

public InsertProductReviewRequest.Builder setDataSourceBytes(ByteString value)

Required. Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataSource to set.

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

setParent(String value)

public InsertProductReviewRequest.Builder setParent(String value)

Required. The account where the product review will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public InsertProductReviewRequest.Builder setParentBytes(ByteString value)

Required. The account where the product review will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
InsertProductReviewRequest.Builder

This builder for chaining.

setProductReview(ProductReview value)

public InsertProductReviewRequest.Builder setProductReview(ProductReview value)

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProductReview
Returns
Type Description
InsertProductReviewRequest.Builder

setProductReview(ProductReview.Builder builderForValue)

public InsertProductReviewRequest.Builder setProductReview(ProductReview.Builder builderForValue)

Required. The product review to insert.

.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ProductReview.Builder
Returns
Type Description
InsertProductReviewRequest.Builder