Class UpdateProductInputRequest (0.18.0)

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

Static Fields

DATA_SOURCE_FIELD_NUMBER

public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_INPUT_FIELD_NUMBER

public static final int PRODUCT_INPUT_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UpdateProductInputRequest getDefaultInstance()
Returns
Type Description
UpdateProductInputRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static UpdateProductInputRequest.Builder newBuilder()
Returns
Type Description
UpdateProductInputRequest.Builder

newBuilder(UpdateProductInputRequest prototype)

public static UpdateProductInputRequest.Builder newBuilder(UpdateProductInputRequest prototype)
Parameter
Name Description
prototype UpdateProductInputRequest
Returns
Type Description
UpdateProductInputRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateProductInputRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UpdateProductInputRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateProductInputRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateProductInputRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UpdateProductInputRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UpdateProductInputRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateProductInputRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateProductInputRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UpdateProductInputRequest> parser()
Returns
Type Description
Parser<UpdateProductInputRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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

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

getParserForType()

public Parser<UpdateProductInputRequest> getParserForType()
Returns
Type Description
Parser<UpdateProductInputRequest>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UpdateProductInputRequest.Builder newBuilderForType()
Returns
Type Description
UpdateProductInputRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateProductInputRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpdateProductInputRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public UpdateProductInputRequest.Builder toBuilder()
Returns
Type Description
UpdateProductInputRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException