Class DataSource.Builder (0.3.0)

public static final class DataSource.Builder extends GeneratedMessageV3.Builder<DataSource.Builder> implements DataSourceOrBuilder

The data source for the Merchant Center account.

Protobuf type google.shopping.merchant.datasources.v1beta.DataSource

Implements

DataSourceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSource.Builder
Overrides

build()

public DataSource build()
Returns
Type Description
DataSource

buildPartial()

public DataSource buildPartial()
Returns
Type Description
DataSource

clear()

public DataSource.Builder clear()
Returns
Type Description
DataSource.Builder
Overrides

clearDataSourceId()

public DataSource.Builder clearDataSourceId()

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearDisplayName()

public DataSource.Builder clearDisplayName()

Required. The displayed data source name in the Merchant Center UI.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSource.Builder
Overrides

clearFileInput()

public DataSource.Builder clearFileInput()

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSource.Builder

clearInput()

public DataSource.Builder clearInput()

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

.google.shopping.merchant.datasources.v1beta.DataSource.Input input = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearLocalInventoryDataSource()

public DataSource.Builder clearLocalInventoryDataSource()

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

clearName()

public DataSource.Builder clearName()

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSource.Builder
Overrides

clearPrimaryProductDataSource()

public DataSource.Builder clearPrimaryProductDataSource()

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

clearPromotionDataSource()

public DataSource.Builder clearPromotionDataSource()

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

clearRegionalInventoryDataSource()

public DataSource.Builder clearRegionalInventoryDataSource()

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

clearSupplementalProductDataSource()

public DataSource.Builder clearSupplementalProductDataSource()

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSource.Builder

clearType()

public DataSource.Builder clearType()
Returns
Type Description
DataSource.Builder

clone()

public DataSource.Builder clone()
Returns
Type Description
DataSource.Builder
Overrides

getDataSourceId()

public long getDataSourceId()

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The dataSourceId.

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
Type Description
DataSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The displayed data source name in the Merchant Center UI.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The displayed data source name in the Merchant Center UI.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getFileInput()

public FileInput getFileInput()

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput

The fileInput.

getFileInputBuilder()

public FileInput.Builder getFileInputBuilder()

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInput.Builder

getFileInputOrBuilder()

public FileInputOrBuilder getFileInputOrBuilder()

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileInputOrBuilder

getInput()

public DataSource.Input getInput()

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

.google.shopping.merchant.datasources.v1beta.DataSource.Input input = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSource.Input

The input.

getInputValue()

public int getInputValue()

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

.google.shopping.merchant.datasources.v1beta.DataSource.Input input = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for input.

getLocalInventoryDataSource()

public LocalInventoryDataSource getLocalInventoryDataSource()

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LocalInventoryDataSource

The localInventoryDataSource.

getLocalInventoryDataSourceBuilder()

public LocalInventoryDataSource.Builder getLocalInventoryDataSourceBuilder()

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LocalInventoryDataSource.Builder

getLocalInventoryDataSourceOrBuilder()

public LocalInventoryDataSourceOrBuilder getLocalInventoryDataSourceOrBuilder()

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LocalInventoryDataSourceOrBuilder

getName()

public String getName()

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPrimaryProductDataSource()

public PrimaryProductDataSource getPrimaryProductDataSource()

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrimaryProductDataSource

The primaryProductDataSource.

getPrimaryProductDataSourceBuilder()

public PrimaryProductDataSource.Builder getPrimaryProductDataSourceBuilder()

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrimaryProductDataSource.Builder

getPrimaryProductDataSourceOrBuilder()

public PrimaryProductDataSourceOrBuilder getPrimaryProductDataSourceOrBuilder()

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrimaryProductDataSourceOrBuilder

getPromotionDataSource()

public PromotionDataSource getPromotionDataSource()

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PromotionDataSource

The promotionDataSource.

getPromotionDataSourceBuilder()

public PromotionDataSource.Builder getPromotionDataSourceBuilder()

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PromotionDataSource.Builder

getPromotionDataSourceOrBuilder()

public PromotionDataSourceOrBuilder getPromotionDataSourceOrBuilder()

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PromotionDataSourceOrBuilder

getRegionalInventoryDataSource()

public RegionalInventoryDataSource getRegionalInventoryDataSource()

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegionalInventoryDataSource

The regionalInventoryDataSource.

getRegionalInventoryDataSourceBuilder()

public RegionalInventoryDataSource.Builder getRegionalInventoryDataSourceBuilder()

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegionalInventoryDataSource.Builder

getRegionalInventoryDataSourceOrBuilder()

public RegionalInventoryDataSourceOrBuilder getRegionalInventoryDataSourceOrBuilder()

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegionalInventoryDataSourceOrBuilder

getSupplementalProductDataSource()

public SupplementalProductDataSource getSupplementalProductDataSource()

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SupplementalProductDataSource

The supplementalProductDataSource.

getSupplementalProductDataSourceBuilder()

public SupplementalProductDataSource.Builder getSupplementalProductDataSourceBuilder()

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SupplementalProductDataSource.Builder

getSupplementalProductDataSourceOrBuilder()

public SupplementalProductDataSourceOrBuilder getSupplementalProductDataSourceOrBuilder()

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SupplementalProductDataSourceOrBuilder

getTypeCase()

public DataSource.TypeCase getTypeCase()
Returns
Type Description
DataSource.TypeCase

hasFileInput()

public boolean hasFileInput()

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the fileInput field is set.

hasLocalInventoryDataSource()

public boolean hasLocalInventoryDataSource()

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the localInventoryDataSource field is set.

hasPrimaryProductDataSource()

public boolean hasPrimaryProductDataSource()

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the primaryProductDataSource field is set.

hasPromotionDataSource()

public boolean hasPromotionDataSource()

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the promotionDataSource field is set.

hasRegionalInventoryDataSource()

public boolean hasRegionalInventoryDataSource()

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the regionalInventoryDataSource field is set.

hasSupplementalProductDataSource()

public boolean hasSupplementalProductDataSource()

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the supplementalProductDataSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFileInput(FileInput value)

public DataSource.Builder mergeFileInput(FileInput value)

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FileInput
Returns
Type Description
DataSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSource.Builder
Overrides

mergeFrom(DataSource other)

public DataSource.Builder mergeFrom(DataSource other)
Parameter
Name Description
other DataSource
Returns
Type Description
DataSource.Builder

mergeLocalInventoryDataSource(LocalInventoryDataSource value)

public DataSource.Builder mergeLocalInventoryDataSource(LocalInventoryDataSource value)

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LocalInventoryDataSource
Returns
Type Description
DataSource.Builder

mergePrimaryProductDataSource(PrimaryProductDataSource value)

public DataSource.Builder mergePrimaryProductDataSource(PrimaryProductDataSource value)

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PrimaryProductDataSource
Returns
Type Description
DataSource.Builder

mergePromotionDataSource(PromotionDataSource value)

public DataSource.Builder mergePromotionDataSource(PromotionDataSource value)

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PromotionDataSource
Returns
Type Description
DataSource.Builder

mergeRegionalInventoryDataSource(RegionalInventoryDataSource value)

public DataSource.Builder mergeRegionalInventoryDataSource(RegionalInventoryDataSource value)

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RegionalInventoryDataSource
Returns
Type Description
DataSource.Builder

mergeSupplementalProductDataSource(SupplementalProductDataSource value)

public DataSource.Builder mergeSupplementalProductDataSource(SupplementalProductDataSource value)

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SupplementalProductDataSource
Returns
Type Description
DataSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSource.Builder
Overrides

setDataSourceId(long value)

public DataSource.Builder setDataSourceId(long value)

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The dataSourceId to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setDisplayName(String value)

public DataSource.Builder setDisplayName(String value)

Required. The displayed data source name in the Merchant Center UI.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DataSource.Builder setDisplayNameBytes(ByteString value)

Required. The displayed data source name in the Merchant Center UI.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSource.Builder
Overrides

setFileInput(FileInput value)

public DataSource.Builder setFileInput(FileInput value)

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FileInput
Returns
Type Description
DataSource.Builder

setFileInput(FileInput.Builder builderForValue)

public DataSource.Builder setFileInput(FileInput.Builder builderForValue)

Optional. The field is used only when data is managed through a file.

.google.shopping.merchant.datasources.v1beta.FileInput file_input = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FileInput.Builder
Returns
Type Description
DataSource.Builder

setInput(DataSource.Input value)

public DataSource.Builder setInput(DataSource.Input value)

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

.google.shopping.merchant.datasources.v1beta.DataSource.Input input = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DataSource.Input

The input to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setInputValue(int value)

public DataSource.Builder setInputValue(int value)

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

.google.shopping.merchant.datasources.v1beta.DataSource.Input input = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for input to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setLocalInventoryDataSource(LocalInventoryDataSource value)

public DataSource.Builder setLocalInventoryDataSource(LocalInventoryDataSource value)

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LocalInventoryDataSource
Returns
Type Description
DataSource.Builder

setLocalInventoryDataSource(LocalInventoryDataSource.Builder builderForValue)

public DataSource.Builder setLocalInventoryDataSource(LocalInventoryDataSource.Builder builderForValue)

Required. The local inventory data source.

.google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource local_inventory_data_source = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue LocalInventoryDataSource.Builder
Returns
Type Description
DataSource.Builder

setName(String value)

public DataSource.Builder setName(String value)

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataSource.Builder setNameBytes(ByteString value)

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setPrimaryProductDataSource(PrimaryProductDataSource value)

public DataSource.Builder setPrimaryProductDataSource(PrimaryProductDataSource value)

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PrimaryProductDataSource
Returns
Type Description
DataSource.Builder

setPrimaryProductDataSource(PrimaryProductDataSource.Builder builderForValue)

public DataSource.Builder setPrimaryProductDataSource(PrimaryProductDataSource.Builder builderForValue)

Required. The primary data source for local and online products.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource primary_product_data_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PrimaryProductDataSource.Builder
Returns
Type Description
DataSource.Builder

setPromotionDataSource(PromotionDataSource value)

public DataSource.Builder setPromotionDataSource(PromotionDataSource value)

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PromotionDataSource
Returns
Type Description
DataSource.Builder

setPromotionDataSource(PromotionDataSource.Builder builderForValue)

public DataSource.Builder setPromotionDataSource(PromotionDataSource.Builder builderForValue)

Required. The promotion data source.

.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PromotionDataSource.Builder
Returns
Type Description
DataSource.Builder

setRegionalInventoryDataSource(RegionalInventoryDataSource value)

public DataSource.Builder setRegionalInventoryDataSource(RegionalInventoryDataSource value)

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RegionalInventoryDataSource
Returns
Type Description
DataSource.Builder

setRegionalInventoryDataSource(RegionalInventoryDataSource.Builder builderForValue)

public DataSource.Builder setRegionalInventoryDataSource(RegionalInventoryDataSource.Builder builderForValue)

Required. The regional inventory data source.

.google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource regional_inventory_data_source = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RegionalInventoryDataSource.Builder
Returns
Type Description
DataSource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSource.Builder
Overrides

setSupplementalProductDataSource(SupplementalProductDataSource value)

public DataSource.Builder setSupplementalProductDataSource(SupplementalProductDataSource value)

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SupplementalProductDataSource
Returns
Type Description
DataSource.Builder

setSupplementalProductDataSource(SupplementalProductDataSource.Builder builderForValue)

public DataSource.Builder setSupplementalProductDataSource(SupplementalProductDataSource.Builder builderForValue)

Required. The supplemental data source for local and online products.

.google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource supplemental_product_data_source = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SupplementalProductDataSource.Builder
Returns
Type Description
DataSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSource.Builder
Overrides