public final class UpdateProductInputRequest extends GeneratedMessageV3 implements UpdateProductInputRequestOrBuilder
Request 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRODUCT_INPUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static UpdateProductInputRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static UpdateProductInputRequest.Builder newBuilder()
public static UpdateProductInputRequest.Builder newBuilder(UpdateProductInputRequest prototype)
public static UpdateProductInputRequest parseDelimitedFrom(InputStream input)
public static UpdateProductInputRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateProductInputRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static UpdateProductInputRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateProductInputRequest parseFrom(ByteString data)
public static UpdateProductInputRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateProductInputRequest parseFrom(CodedInputStream input)
public static UpdateProductInputRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateProductInputRequest parseFrom(InputStream input)
public static UpdateProductInputRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateProductInputRequest parseFrom(ByteBuffer data)
public static UpdateProductInputRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<UpdateProductInputRequest> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The dataSource.
|
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}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for dataSource.
|
public UpdateProductInputRequest getDefaultInstanceForType()
public Parser<UpdateProductInputRequest> getParserForType()
Overrides
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];
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];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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];
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UpdateProductInputRequest.Builder newBuilderForType()
protected UpdateProductInputRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public UpdateProductInputRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides