Class InsertProductReviewRequest.Builder (0.1.0)

public static final class InsertProductReviewRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InsertProductReviewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public InsertProductReviewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InsertProductReviewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InsertProductReviewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public InsertProductReviewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InsertProductReviewRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InsertProductReviewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InsertProductReviewRequest.Builder
Overrides