Class DataSource (0.8.0)

public final class DataSource extends GeneratedMessageV3 implements DataSourceOrBuilder

The data source for the Merchant Center account.

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

Implements

DataSourceOrBuilder

Static Fields

DATA_SOURCE_ID_FIELD_NUMBER

public static final int DATA_SOURCE_ID_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

FILE_INPUT_FIELD_NUMBER

public static final int FILE_INPUT_FIELD_NUMBER
Field Value
Type Description
int

INPUT_FIELD_NUMBER

public static final int INPUT_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER

public static final int LOCAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRIMARY_PRODUCT_DATA_SOURCE_FIELD_NUMBER

public static final int PRIMARY_PRODUCT_DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

PROMOTION_DATA_SOURCE_FIELD_NUMBER

public static final int PROMOTION_DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

REGIONAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER

public static final int REGIONAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

SUPPLEMENTAL_PRODUCT_DATA_SOURCE_FIELD_NUMBER

public static final int SUPPLEMENTAL_PRODUCT_DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSource getDefaultInstance()
Returns
Type Description
DataSource

getDescriptor()

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

newBuilder()

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

newBuilder(DataSource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

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.

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.

getParserForType()

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

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.

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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