public static final class UpdateProductInputRequest.Builder extends GeneratedMessage.Builder<UpdateProductInputRequest.Builder> implements UpdateProductInputRequestOrBuilderRequest message for the UpdateProductInput method. The product (primary input) must exist for the update to succeed. If the update is for a primary product input, the existing primary product input must be from the same data source.
Protobuf type google.shopping.merchant.products.v1beta.UpdateProductInputRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UpdateProductInputRequest.BuilderImplements
UpdateProductInputRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UpdateProductInputRequest build()| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest |
|
buildPartial()
public UpdateProductInputRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest |
|
clear()
public UpdateProductInputRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
clearDataSource()
public UpdateProductInputRequest.Builder clearDataSource() Required. The primary or supplemental product data source where
data_source name identifies the product input to be updated.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
This builder for chaining. |
clearProductInput()
public UpdateProductInputRequest.Builder clearProductInput()Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
clearUpdateMask()
public UpdateProductInputRequest.Builder clearUpdateMask()Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
getDataSource()
public String getDataSource() Required. The primary or supplemental product data source where
data_source name identifies the product input to be updated.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
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 where
data_source name identifies the product input to be updated.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dataSource. |
getDefaultInstanceForType()
public UpdateProductInputRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getProductInput()
public ProductInput getProductInput()Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProductInput |
The productInput. |
getProductInputBuilder()
public ProductInput.Builder getProductInputBuilder()Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProductInput.Builder |
|
getProductInputOrBuilder()
public ProductInputOrBuilder getProductInputOrBuilder()Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProductInputOrBuilder |
|
getUpdateMask()
public FieldMask getUpdateMask()Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FieldMaskOrBuilder |
|
hasProductInput()
public boolean hasProductInput()Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the productInput field is set. |
hasUpdateMask()
public boolean hasUpdateMask()Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateProductInputRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UpdateProductInputRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
mergeFrom(UpdateProductInputRequest other)
public UpdateProductInputRequest.Builder mergeFrom(UpdateProductInputRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
UpdateProductInputRequest |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
mergeProductInput(ProductInput value)
public UpdateProductInputRequest.Builder mergeProductInput(ProductInput value)Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ProductInput |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
mergeUpdateMask(FieldMask value)
public UpdateProductInputRequest.Builder mergeUpdateMask(FieldMask value)Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
setDataSource(String value)
public UpdateProductInputRequest.Builder setDataSource(String value) Required. The primary or supplemental product data source where
data_source name identifies the product input to be updated.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public UpdateProductInputRequest.Builder setDataSourceBytes(ByteString value) Required. The primary or supplemental product data source where
data_source name identifies the product input to be updated.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
This builder for chaining. |
setProductInput(ProductInput value)
public UpdateProductInputRequest.Builder setProductInput(ProductInput value)Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ProductInput |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
setProductInput(ProductInput.Builder builderForValue)
public UpdateProductInputRequest.Builder setProductInput(ProductInput.Builder builderForValue)Required. The product input resource to update. Information you submit will be applied to the processed product as well.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProductInput.Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
setUpdateMask(FieldMask value)
public UpdateProductInputRequest.Builder setUpdateMask(FieldMask value)Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateProductInputRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)Optional. The list of product attributes to be updated.
If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).
Attributes specified in the update mask without a value specified in the body will be deleted from the product.
Update mask can only be specified for top level fields in attributes and custom attributes.
To specify the update mask for custom attributes you need to add the
custom_attribute. prefix.
Providing special "*" value for full product replacement is not supported.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateProductInputRequest.Builder |
|