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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public InsertProductReviewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InsertProductReviewRequest build()
public InsertProductReviewRequest buildPartial()
public InsertProductReviewRequest.Builder clear()
Overrides
public InsertProductReviewRequest.Builder clearDataSource()
Required. Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
public InsertProductReviewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public InsertProductReviewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public InsertProductReviewRequest.Builder clearProductReview()
Required. The product review to insert.
.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertProductReviewRequest.Builder clone()
Overrides
public String getDataSource()
Required. Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The dataSource.
|
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.
|
public InsertProductReviewRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
public ProductReview getProductReview()
Required. The product review to insert.
.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];
public ProductReview.Builder getProductReviewBuilder()
Required. The product review to insert.
.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];
public ProductReviewOrBuilder getProductReviewOrBuilder()
Required. The product review to insert.
.google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED];
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InsertProductReviewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public InsertProductReviewRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public InsertProductReviewRequest.Builder mergeFrom(InsertProductReviewRequest other)
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];
public final InsertProductReviewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|
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.
|
public InsertProductReviewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
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];
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];
public InsertProductReviewRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final InsertProductReviewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides