public final class DataSource extends GeneratedMessageV3 implements DataSourceOrBuilder
The data source for
the Merchant Center account.
Protobuf type google.shopping.merchant.datasources.v1beta.DataSource
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DATA_SOURCE_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FILE_INPUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int INPUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOCAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRIMARY_PRODUCT_DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PROMOTION_DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REGIONAL_INVENTORY_DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SUPPLEMENTAL_PRODUCT_DATA_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static DataSource getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static DataSource.Builder newBuilder()
public static DataSource.Builder newBuilder(DataSource prototype)
public static DataSource parseDelimitedFrom(InputStream input)
public static DataSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataSource parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static DataSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataSource parseFrom(ByteString data)
public static DataSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataSource parseFrom(CodedInputStream input)
public static DataSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataSource parseFrom(InputStream input)
public static DataSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataSource parseFrom(ByteBuffer data)
public static DataSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<DataSource> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
public DataSource getDefaultInstanceForType()
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.
|
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.
|
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.
|
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];
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];
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.
|
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];
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];
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.
|
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.
|
public Parser<DataSource> getParserForType()
Overrides
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];
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];
public PromotionDataSource getPromotionDataSource()
Required. The
promotion data
source.
.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];
public PromotionDataSourceOrBuilder getPromotionDataSourceOrBuilder()
Required. The
promotion data
source.
.google.shopping.merchant.datasources.v1beta.PromotionDataSource promotion_data_source = 8 [(.google.api.field_behavior) = REQUIRED];
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];
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];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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];
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];
public DataSource.TypeCase getTypeCase()
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public DataSource.Builder newBuilderForType()
protected DataSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public DataSource.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides