public final class SupplementalProductDataSource extends GeneratedMessageV3 implements SupplementalProductDataSourceOrBuilder
The supplemental data source for local and online products.
Protobuf type google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource
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
CONTENT_LANGUAGE_FIELD_NUMBER
public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FEED_LABEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REFERENCING_PRIMARY_DATA_SOURCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static SupplementalProductDataSource getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SupplementalProductDataSource.Builder newBuilder()
public static SupplementalProductDataSource.Builder newBuilder(SupplementalProductDataSource prototype)
public static SupplementalProductDataSource parseDelimitedFrom(InputStream input)
public static SupplementalProductDataSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SupplementalProductDataSource parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static SupplementalProductDataSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SupplementalProductDataSource parseFrom(ByteString data)
public static SupplementalProductDataSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SupplementalProductDataSource parseFrom(CodedInputStream input)
public static SupplementalProductDataSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SupplementalProductDataSource parseFrom(InputStream input)
public static SupplementalProductDataSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SupplementalProductDataSource parseFrom(ByteBuffer data)
public static SupplementalProductDataSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SupplementalProductDataSource> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getContentLanguage()
public String getContentLanguage()
Optional. Immutable. The two-letter ISO 639-1 language of the items in the
data source.
feedLabel
and contentLanguage
must be either both set or unset.
The fields can only be unset for data sources without file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
String |
The contentLanguage.
|
getContentLanguageBytes()
public ByteString getContentLanguageBytes()
Optional. Immutable. The two-letter ISO 639-1 language of the items in the
data source.
feedLabel
and contentLanguage
must be either both set or unset.
The fields can only be unset for data sources without file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
ByteString |
The bytes for contentLanguage.
|
public SupplementalProductDataSource getDefaultInstanceForType()
public String getFeedLabel()
Optional. Immutable. The feed label that is specified on the data source
level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
and dashes (-).
See also migration to feed
labels.
feedLabel
and contentLanguage
must be either both set or unset for data
sources with product content type.
They must be set for data sources with a file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
String |
The feedLabel.
|
public ByteString getFeedLabelBytes()
Optional. Immutable. The feed label that is specified on the data source
level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
and dashes (-).
See also migration to feed
labels.
feedLabel
and contentLanguage
must be either both set or unset for data
sources with product content type.
They must be set for data sources with a file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
ByteString |
The bytes for feedLabel.
|
public Parser<SupplementalProductDataSource> getParserForType()
Overrides
public DataSourceReference getReferencingPrimaryDataSources(int index)
Output only. The (unordered and deduplicated) list of all primary data
sources linked to this data source in either default or custom rules.
Supplemental data source cannot be deleted before all links are removed.
repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
index |
int
|
public int getReferencingPrimaryDataSourcesCount()
Output only. The (unordered and deduplicated) list of all primary data
sources linked to this data source in either default or custom rules.
Supplemental data source cannot be deleted before all links are removed.
repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
|
public List<DataSourceReference> getReferencingPrimaryDataSourcesList()
Output only. The (unordered and deduplicated) list of all primary data
sources linked to this data source in either default or custom rules.
Supplemental data source cannot be deleted before all links are removed.
repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public DataSourceReferenceOrBuilder getReferencingPrimaryDataSourcesOrBuilder(int index)
Output only. The (unordered and deduplicated) list of all primary data
sources linked to this data source in either default or custom rules.
Supplemental data source cannot be deleted before all links are removed.
repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
index |
int
|
public List<? extends DataSourceReferenceOrBuilder> getReferencingPrimaryDataSourcesOrBuilderList()
Output only. The (unordered and deduplicated) list of all primary data
sources linked to this data source in either default or custom rules.
Supplemental data source cannot be deleted before all links are removed.
repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
List<? extends com.google.shopping.merchant.datasources.v1beta.DataSourceReferenceOrBuilder> |
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasContentLanguage()
public boolean hasContentLanguage()
Optional. Immutable. The two-letter ISO 639-1 language of the items in the
data source.
feedLabel
and contentLanguage
must be either both set or unset.
The fields can only be unset for data sources without file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
boolean |
Whether the contentLanguage field is set.
|
public boolean hasFeedLabel()
Optional. Immutable. The feed label that is specified on the data source
level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
and dashes (-).
See also migration to feed
labels.
feedLabel
and contentLanguage
must be either both set or unset for data
sources with product content type.
They must be set for data sources with a file input.
If set, the data source will only accept products matching this
combination. If unset, the data source will accept produts without that
restriction.
optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
boolean |
Whether the feedLabel field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SupplementalProductDataSource.Builder newBuilderForType()
protected SupplementalProductDataSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public SupplementalProductDataSource.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides