public static final class InsertProductInputRequest.Builder extends GeneratedMessageV3.Builder<InsertProductInputRequest.Builder> implements InsertProductInputRequestOrBuilder
Request message for the InsertProductInput method.
Protobuf type google.shopping.merchant.products.v1beta.InsertProductInputRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InsertProductInputRequest.BuilderImplements
InsertProductInputRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InsertProductInputRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
build()
public InsertProductInputRequest build()
Returns | |
---|---|
Type | Description |
InsertProductInputRequest |
buildPartial()
public InsertProductInputRequest buildPartial()
Returns | |
---|---|
Type | Description |
InsertProductInputRequest |
clear()
public InsertProductInputRequest.Builder clear()
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
clearDataSource()
public InsertProductInputRequest.Builder clearDataSource()
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InsertProductInputRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public InsertProductInputRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
clearParent()
public InsertProductInputRequest.Builder clearParent()
Required. The account where this product will be inserted. Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
This builder for chaining. |
clearProductInput()
public InsertProductInputRequest.Builder clearProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
clone()
public InsertProductInputRequest.Builder clone()
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
getDataSource()
public String getDataSource()
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source.
Only API data sources are supported.
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. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dataSource. |
getDefaultInstanceForType()
public InsertProductInputRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InsertProductInputRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The account where this product will be inserted. Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The account where this product will be inserted. Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getProductInput()
public ProductInput getProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ProductInput |
The productInput. |
getProductInputBuilder()
public ProductInput.Builder getProductInputBuilder()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ProductInput.Builder |
getProductInputOrBuilder()
public ProductInputOrBuilder getProductInputOrBuilder()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ProductInputOrBuilder |
hasProductInput()
public boolean hasProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the productInput field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InsertProductInputRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InsertProductInputRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
mergeFrom(InsertProductInputRequest other)
public InsertProductInputRequest.Builder mergeFrom(InsertProductInputRequest other)
Parameter | |
---|---|
Name | Description |
other |
InsertProductInputRequest |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
mergeProductInput(ProductInput value)
public InsertProductInputRequest.Builder mergeProductInput(ProductInput value)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ProductInput |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InsertProductInputRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
setDataSource(String value)
public InsertProductInputRequest.Builder setDataSource(String value)
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source.
Only API data sources are supported.
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 |
InsertProductInputRequest.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public InsertProductInputRequest.Builder setDataSourceBytes(ByteString value)
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source.
Only API data sources are supported.
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 |
InsertProductInputRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InsertProductInputRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
setParent(String value)
public InsertProductInputRequest.Builder setParent(String value)
Required. The account where this product will be inserted. Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public InsertProductInputRequest.Builder setParentBytes(ByteString value)
Required. The account where this product will be inserted. Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
This builder for chaining. |
setProductInput(ProductInput value)
public InsertProductInputRequest.Builder setProductInput(ProductInput value)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ProductInput |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
setProductInput(ProductInput.Builder builderForValue)
public InsertProductInputRequest.Builder setProductInput(ProductInput.Builder builderForValue)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
ProductInput.Builder |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InsertProductInputRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final InsertProductInputRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InsertProductInputRequest.Builder |