# Class Product.Builder (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.26.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static final class Product.Builder extends GeneratedMessage.Builder<Product.Builder> implements ProductOrBuilder

The processed product, built from multiple product inputs
after applying rules and supplemental data sources. This processed product
matches what is shown in your Merchant Center account. Each product is built
from exactly one primary data source product input, and multiple supplemental
data source inputs. After inserting, updating, or deleting a product input,
it may take several minutes before the updated processed product can be
retrieved.

All fields in the processed product and its sub-messages match the name of
their corresponding attribute in the [Product data
specification](https://support.google.com/merchants/answer/7052112) with some
exceptions.

Protobuf type `google.shopping.merchant.products.v1.Product`

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite.Builder\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html) \> [AbstractMessage.Builder\<BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html) \> [GeneratedMessage.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html) \> Product.Builder

## Implements

[ProductOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductOrBuilder)

## Inherited Members

[AbstractMessage.Builder.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_findInitializationErrors__) [AbstractMessage.Builder.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_getInitializationErrorString__) [AbstractMessage.Builder.internalMergeFrom(AbstractMessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_internalMergeFrom_com_google_protobuf_AbstractMessageLite_) [AbstractMessage.Builder.mergeFrom(byte\[\])](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___) [AbstractMessage.Builder.mergeFrom(byte\[\],ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_) [AbstractMessage.Builder.mergeFrom(ByteString,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_) [AbstractMessage.Builder.mergeFrom(CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_) [AbstractMessage.Builder.mergeFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_) [AbstractMessage.Builder.mergeFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.newUninitializedMessageException(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_newUninitializedMessageException_com_google_protobuf_Message_) [AbstractMessage.Builder.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_toString__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,Collection\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_Collection___super_T__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.Builder.internalMergeFrom(MessageType)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_internalMergeFrom_MessageType_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessageLite.Builder.mergeFrom(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeFrom_com_google_protobuf_MessageLite_) [AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_newUninitializedMessageException_com_google_protobuf_MessageLite_) [GeneratedMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__) [GeneratedMessage.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clone__) [GeneratedMessage.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getAllFields__) [GeneratedMessage.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__) [GeneratedMessage.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getParentForChildren__) [GeneratedMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder() [GeneratedMessage.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getUnknownFields__) [GeneratedMessage.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__) [GeneratedMessage.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int) [GeneratedMessage.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessage.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isClean__) [GeneratedMessage.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__) [GeneratedMessage.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_markClean__) [GeneratedMessage.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int) [GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onBuilt__) [GeneratedMessage.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onChanged__) com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessage.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessage.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

## Methods

### addAllCustomAttributes(Iterable\<? extends CustomAttribute\> values)

    public Product.Builder addAllCustomAttributes(Iterable<? extends CustomAttribute> values)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<? extends com.google.shopping.type.CustomAttribute>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### addCustomAttributes(CustomAttribute value)

    public Product.Builder addCustomAttributes(CustomAttribute value)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.shopping.type.CustomAttribute` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### addCustomAttributes(CustomAttribute.Builder builderForValue)

    public Product.Builder addCustomAttributes(CustomAttribute.Builder builderForValue)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `com.google.shopping.type.CustomAttribute.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### addCustomAttributes(int index, CustomAttribute value)

    public Product.Builder addCustomAttributes(int index, CustomAttribute value)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `com.google.shopping.type.CustomAttribute` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

    public Product.Builder addCustomAttributes(int index, CustomAttribute.Builder builderForValue)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `com.google.shopping.type.CustomAttribute.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### addCustomAttributesBuilder()

    public CustomAttribute.Builder addCustomAttributesBuilder()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttribute.Builder` |   |

### addCustomAttributesBuilder(int index)

    public CustomAttribute.Builder addCustomAttributesBuilder(int index)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttribute.Builder` |   |

### build()

    public Product build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product` |   |

### buildPartial()

    public Product buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product` |   |

### clear()

    public Product.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__)

### clearAutomatedDiscounts()

    public Product.Builder clearAutomatedDiscounts()

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### clearBase64EncodedName()

    public Product.Builder clearBase64EncodedName()

Output only. The **unpadded base64url encoded name** of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` is the unpadded base64url encoding of the
`content_language~feed_label~offer_id` name.
Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
name `accounts/123/products/en~US~sku/123`. This field can be used directly
as input to the API methods that require the product name to be encoded if
it contains special characters, for example
[`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).

`string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearContentLanguage()

    public Product.Builder clearContentLanguage()

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

`string content_language = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearCustomAttributes()

    public Product.Builder clearCustomAttributes()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### clearDataSource()

    public Product.Builder clearDataSource()

Output only. The primary data source of the product.

`string data_source = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearFeedLabel()

    public Product.Builder clearFeedLabel()

Output only. The feed label lets you categorize and identify your products.
The maximum allowed characters is 20 and the supported characters are`A-Z`,
`0-9`, hyphen and underscore. The feed label must not include any spaces.
For more information, see [Using feed
labels](https://support.google.com/merchants/answer/14994087)

`string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearLegacyLocal()

    public Product.Builder clearLegacyLocal()

Output only. Determines whether the product is **only** targeting
local destinations and whether the product name should be distinguished
with a `local~` prefix. For example,
`accounts/123/products/local~en~US~sku123`.

`bool legacy_local = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearName()

    public Product.Builder clearName()

The name of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` consists of:
`content_language~feed_label~offer_id`
example for product name is `accounts/123/products/en~US~sku123`. A legacy
local product name would be `accounts/123/products/local~en~US~sku123`.
Note: For calls to the v1beta version, the `product` section consists
of: `channel~content_language~feed_label~offer_id`, for example:
`accounts/123/products/online~en~US~sku123`.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearOfferId()

    public Product.Builder clearOfferId()

Output only. Your unique identifier for the product. This is the same for
the product input and processed product. Leading and trailing whitespaces
are stripped and multiple whitespaces are replaced by a single whitespace
upon submission. See the [product data
specification](https://support.google.com/merchants/answer/188494#id) for
details.

`string offer_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### clearProductAttributes()

    public Product.Builder clearProductAttributes()

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### clearProductStatus()

    public Product.Builder clearProductStatus()

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### clearVersionNumber()

    public Product.Builder clearVersionNumber()

Output only. Represents the existing version (freshness) of the product,
which can be used to preserve the right order when multiple updates are
done at the same time.

If set, the insertion is prevented when version number is lower than
the current version number of the existing product. Re-insertion (for
example, product refresh after 30 days) can be performed with the current
`version_number`.

Only supported for insertions into primary data sources.

If the operation is prevented, the aborted exception will be
thrown.

`optional int64 version_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### getAutomatedDiscounts()

    public AutomatedDiscounts getAutomatedDiscounts()

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscounts` | The automatedDiscounts. |

### getAutomatedDiscountsBuilder()

    public AutomatedDiscounts.Builder getAutomatedDiscountsBuilder()

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscounts.Builder` |   |

### getAutomatedDiscountsOrBuilder()

    public AutomatedDiscountsOrBuilder getAutomatedDiscountsOrBuilder()

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscountsOrBuilder` |   |

### getBase64EncodedName()

    public String getBase64EncodedName()

Output only. The **unpadded base64url encoded name** of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` is the unpadded base64url encoding of the
`content_language~feed_label~offer_id` name.
Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
name `accounts/123/products/en~US~sku/123`. This field can be used directly
as input to the API methods that require the product name to be encoded if
it contains special characters, for example
[`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).

`string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The base64EncodedName. |

### getBase64EncodedNameBytes()

    public ByteString getBase64EncodedNameBytes()

Output only. The **unpadded base64url encoded name** of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` is the unpadded base64url encoding of the
`content_language~feed_label~offer_id` name.
Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
name `accounts/123/products/en~US~sku/123`. This field can be used directly
as input to the API methods that require the product name to be encoded if
it contains special characters, for example
[`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).

`string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for base64EncodedName. |

### getContentLanguage()

    public String getContentLanguage()

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

`string content_language = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The contentLanguage. |

### getContentLanguageBytes()

    public ByteString getContentLanguageBytes()

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

`string content_language = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for contentLanguage. |

### getCustomAttributes(int index)

    public CustomAttribute getCustomAttributes(int index)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttribute` |   |

### getCustomAttributesBuilder(int index)

    public CustomAttribute.Builder getCustomAttributesBuilder(int index)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttribute.Builder` |   |

### getCustomAttributesBuilderList()

    public List<CustomAttribute.Builder> getCustomAttributesBuilderList()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<com.google.shopping.type.CustomAttribute.Builder>` |   |

### getCustomAttributesCount()

    public int getCustomAttributesCount()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCustomAttributesList()

    public List<CustomAttribute> getCustomAttributesList()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<com.google.shopping.type.CustomAttribute>` |   |

### getCustomAttributesOrBuilder(int index)

    public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.shopping.type.CustomAttributeOrBuilder` |   |

### getCustomAttributesOrBuilderList()

    public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.shopping.type.CustomAttributeOrBuilder>` |   |

### getDataSource()

    public String getDataSource()

Output only. The primary data source of the product.

`string data_source = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataSource. |

### getDataSourceBytes()

    public ByteString getDataSourceBytes()

Output only. The primary data source of the product.

`string data_source = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dataSource. |

### getDefaultInstanceForType()

    public Product getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product` |   |

### getDescriptorForType()

    public Descriptors.Descriptor getDescriptorForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__)

### getFeedLabel()

    public String getFeedLabel()

Output only. The feed label lets you categorize and identify your products.
The maximum allowed characters is 20 and the supported characters are`A-Z`,
`0-9`, hyphen and underscore. The feed label must not include any spaces.
For more information, see [Using feed
labels](https://support.google.com/merchants/answer/14994087)

`string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The feedLabel. |

### getFeedLabelBytes()

    public ByteString getFeedLabelBytes()

Output only. The feed label lets you categorize and identify your products.
The maximum allowed characters is 20 and the supported characters are`A-Z`,
`0-9`, hyphen and underscore. The feed label must not include any spaces.
For more information, see [Using feed
labels](https://support.google.com/merchants/answer/14994087)

`string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for feedLabel. |

### getLegacyLocal()

    public boolean getLegacyLocal()

Output only. Determines whether the product is **only** targeting
local destinations and whether the product name should be distinguished
with a `local~` prefix. For example,
`accounts/123/products/local~en~US~sku123`.

`bool legacy_local = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The legacyLocal. |

### getName()

    public String getName()

The name of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` consists of:
`content_language~feed_label~offer_id`
example for product name is `accounts/123/products/en~US~sku123`. A legacy
local product name would be `accounts/123/products/local~en~US~sku123`.
Note: For calls to the v1beta version, the `product` section consists
of: `channel~content_language~feed_label~offer_id`, for example:
`accounts/123/products/online~en~US~sku123`.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public ByteString getNameBytes()

The name of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` consists of:
`content_language~feed_label~offer_id`
example for product name is `accounts/123/products/en~US~sku123`. A legacy
local product name would be `accounts/123/products/local~en~US~sku123`.
Note: For calls to the v1beta version, the `product` section consists
of: `channel~content_language~feed_label~offer_id`, for example:
`accounts/123/products/online~en~US~sku123`.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getOfferId()

    public String getOfferId()

Output only. Your unique identifier for the product. This is the same for
the product input and processed product. Leading and trailing whitespaces
are stripped and multiple whitespaces are replaced by a single whitespace
upon submission. See the [product data
specification](https://support.google.com/merchants/answer/188494#id) for
details.

`string offer_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The offerId. |

### getOfferIdBytes()

    public ByteString getOfferIdBytes()

Output only. Your unique identifier for the product. This is the same for
the product input and processed product. Leading and trailing whitespaces
are stripped and multiple whitespaces are replaced by a single whitespace
upon submission. See the [product data
specification](https://support.google.com/merchants/answer/188494#id) for
details.

`string offer_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for offerId. |

### getProductAttributes()

    public ProductAttributes getProductAttributes()

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributes` | The productAttributes. |

### getProductAttributesBuilder()

    public ProductAttributes.Builder getProductAttributesBuilder()

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributes.Builder` |   |

### getProductAttributesOrBuilder()

    public ProductAttributesOrBuilder getProductAttributesOrBuilder()

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributesOrBuilder` |   |

### getProductStatus()

    public ProductStatus getProductStatus()

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatus` | The productStatus. |

### getProductStatusBuilder()

    public ProductStatus.Builder getProductStatusBuilder()

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatus.Builder` |   |

### getProductStatusOrBuilder()

    public ProductStatusOrBuilder getProductStatusOrBuilder()

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatusOrBuilder` |   |

### getVersionNumber()

    public long getVersionNumber()

Output only. Represents the existing version (freshness) of the product,
which can be used to preserve the right order when multiple updates are
done at the same time.

If set, the insertion is prevented when version number is lower than
the current version number of the existing product. Re-insertion (for
example, product refresh after 30 days) can be performed with the current
`version_number`.

Only supported for insertions into primary data sources.

If the operation is prevented, the aborted exception will be
thrown.

`optional int64 version_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The versionNumber. |

### hasAutomatedDiscounts()

    public boolean hasAutomatedDiscounts()

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the automatedDiscounts field is set. |

### hasProductAttributes()

    public boolean hasProductAttributes()

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the productAttributes field is set. |

### hasProductStatus()

    public boolean hasProductStatus()

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the productStatus field is set. |

### hasVersionNumber()

    public boolean hasVersionNumber()

Output only. Represents the existing version (freshness) of the product,
which can be used to preserve the right order when multiple updates are
done at the same time.

If set, the insertion is prevented when version number is lower than
the current version number of the existing product. Re-insertion (for
example, product refresh after 30 days) can be performed with the current
`version_number`.

Only supported for insertions into primary data sources.

If the operation is prevented, the aborted exception will be
thrown.

`optional int64 version_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the versionNumber field is set. |

### internalGetFieldAccessorTable()

    protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__)

### isInitialized()

    public final boolean isInitialized()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__)

### mergeAutomatedDiscounts(AutomatedDiscounts value)

    public Product.Builder mergeAutomatedDiscounts(AutomatedDiscounts value)

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscounts` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public Product.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### mergeFrom(Message other)

    public Product.Builder mergeFrom(Message other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(Message other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_)

### mergeFrom(Product other)

    public Product.Builder mergeFrom(Product other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### mergeProductAttributes(ProductAttributes value)

    public Product.Builder mergeProductAttributes(ProductAttributes value)

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributes` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### mergeProductStatus(ProductStatus value)

    public Product.Builder mergeProductStatus(ProductStatus value)

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### removeCustomAttributes(int index)

    public Product.Builder removeCustomAttributes(int index)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setAutomatedDiscounts(AutomatedDiscounts value)

    public Product.Builder setAutomatedDiscounts(AutomatedDiscounts value)

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscounts` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setAutomatedDiscounts(AutomatedDiscounts.Builder builderForValue)

    public Product.Builder setAutomatedDiscounts(AutomatedDiscounts.Builder builderForValue)

Output only. The automated discounts information for the product.

`
.google.shopping.merchant.products.v1.AutomatedDiscounts automated_discounts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.AutomatedDiscounts.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setBase64EncodedName(String value)

    public Product.Builder setBase64EncodedName(String value)

Output only. The **unpadded base64url encoded name** of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` is the unpadded base64url encoding of the
`content_language~feed_label~offer_id` name.
Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
name `accounts/123/products/en~US~sku/123`. This field can be used directly
as input to the API methods that require the product name to be encoded if
it contains special characters, for example
[`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).

`string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The base64EncodedName to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setBase64EncodedNameBytes(ByteString value)

    public Product.Builder setBase64EncodedNameBytes(ByteString value)

Output only. The **unpadded base64url encoded name** of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` is the unpadded base64url encoding of the
`content_language~feed_label~offer_id` name.
Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product
name `accounts/123/products/en~US~sku/123`. This field can be used directly
as input to the API methods that require the product name to be encoded if
it contains special characters, for example
[`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).

`string base64_encoded_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for base64EncodedName to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setContentLanguage(String value)

    public Product.Builder setContentLanguage(String value)

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

`string content_language = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The contentLanguage to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setContentLanguageBytes(ByteString value)

    public Product.Builder setContentLanguageBytes(ByteString value)

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

`string content_language = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for contentLanguage to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setCustomAttributes(int index, CustomAttribute value)

    public Product.Builder setCustomAttributes(int index, CustomAttribute value)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `com.google.shopping.type.CustomAttribute` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

    public Product.Builder setCustomAttributes(int index, CustomAttribute.Builder builderForValue)

Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
`{ "name": "size type", "value": "regular" }`).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.

`
repeated .google.shopping.type.CustomAttribute custom_attributes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `com.google.shopping.type.CustomAttribute.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setDataSource(String value)

    public Product.Builder setDataSource(String value)

Output only. The primary data source of the product.

`string data_source = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The dataSource to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setDataSourceBytes(ByteString value)

    public Product.Builder setDataSourceBytes(ByteString value)

Output only. The primary data source of the product.

`string data_source = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for dataSource to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setFeedLabel(String value)

    public Product.Builder setFeedLabel(String value)

Output only. The feed label lets you categorize and identify your products.
The maximum allowed characters is 20 and the supported characters are`A-Z`,
`0-9`, hyphen and underscore. The feed label must not include any spaces.
For more information, see [Using feed
labels](https://support.google.com/merchants/answer/14994087)

`string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The feedLabel to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setFeedLabelBytes(ByteString value)

    public Product.Builder setFeedLabelBytes(ByteString value)

Output only. The feed label lets you categorize and identify your products.
The maximum allowed characters is 20 and the supported characters are`A-Z`,
`0-9`, hyphen and underscore. The feed label must not include any spaces.
For more information, see [Using feed
labels](https://support.google.com/merchants/answer/14994087)

`string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for feedLabel to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setLegacyLocal(boolean value)

    public Product.Builder setLegacyLocal(boolean value)

Output only. Determines whether the product is **only** targeting
local destinations and whether the product name should be distinguished
with a `local~` prefix. For example,
`accounts/123/products/local~en~US~sku123`.

`bool legacy_local = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The legacyLocal to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setName(String value)

    public Product.Builder setName(String value)

The name of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` consists of:
`content_language~feed_label~offer_id`
example for product name is `accounts/123/products/en~US~sku123`. A legacy
local product name would be `accounts/123/products/local~en~US~sku123`.
Note: For calls to the v1beta version, the `product` section consists
of: `channel~content_language~feed_label~offer_id`, for example:
`accounts/123/products/online~en~US~sku123`.

`string name = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setNameBytes(ByteString value)

    public Product.Builder setNameBytes(ByteString value)

The name of the product.
Format:
`accounts/{account}/products/{product}` where the last
section `product` consists of:
`content_language~feed_label~offer_id`
example for product name is `accounts/123/products/en~US~sku123`. A legacy
local product name would be `accounts/123/products/local~en~US~sku123`.
Note: For calls to the v1beta version, the `product` section consists
of: `channel~content_language~feed_label~offer_id`, for example:
`accounts/123/products/online~en~US~sku123`.

`string name = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setOfferId(String value)

    public Product.Builder setOfferId(String value)

Output only. Your unique identifier for the product. This is the same for
the product input and processed product. Leading and trailing whitespaces
are stripped and multiple whitespaces are replaced by a single whitespace
upon submission. See the [product data
specification](https://support.google.com/merchants/answer/188494#id) for
details.

`string offer_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The offerId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setOfferIdBytes(ByteString value)

    public Product.Builder setOfferIdBytes(ByteString value)

Output only. Your unique identifier for the product. This is the same for
the product input and processed product. Leading and trailing whitespaces
are stripped and multiple whitespaces are replaced by a single whitespace
upon submission. See the [product data
specification](https://support.google.com/merchants/answer/188494#id) for
details.

`string offer_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for offerId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |

### setProductAttributes(ProductAttributes value)

    public Product.Builder setProductAttributes(ProductAttributes value)

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributes` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setProductAttributes(ProductAttributes.Builder builderForValue)

    public Product.Builder setProductAttributes(ProductAttributes.Builder builderForValue)

Output only. A list of strongly-typed product attributes.

`
.google.shopping.merchant.products.v1.ProductAttributes product_attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductAttributes.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setProductStatus(ProductStatus value)

    public Product.Builder setProductStatus(ProductStatus value)

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setProductStatus(ProductStatus.Builder builderForValue)

    public Product.Builder setProductStatus(ProductStatus.Builder builderForValue)

Output only. The status of a product, data validation issues, that is,
information about a product computed asynchronously.

`
.google.shopping.merchant.products.v1.ProductStatus product_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.ProductStatus.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` |   |

### setVersionNumber(long value)

    public Product.Builder setVersionNumber(long value)

Output only. Represents the existing version (freshness) of the product,
which can be used to preserve the right order when multiple updates are
done at the same time.

If set, the insertion is prevented when version number is lower than
the current version number of the existing product. Re-insertion (for
example, product refresh after 30 days) can be performed with the current
`version_number`.

Only supported for insertions into primary data sources.

If the operation is prevented, the aborted exception will be
thrown.

`optional int64 version_number = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The versionNumber to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/com.google.shopping.merchant.products.v1.Product.Builder` | This builder for chaining. |