Class PromotionDataSource (0.8.0)

public final class PromotionDataSource extends GeneratedMessageV3 implements PromotionDataSourceOrBuilder

The promotion data source.

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

Static Fields

CONTENT_LANGUAGE_FIELD_NUMBER

public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_COUNTRY_FIELD_NUMBER

public static final int TARGET_COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PromotionDataSource getDefaultInstance()
Returns
Type Description
PromotionDataSource

getDescriptor()

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

newBuilder()

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

newBuilder(PromotionDataSource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContentLanguage()

public String getContentLanguage()

Required. Immutable. The two-letter ISO 639-1 language of the items in the data source.

string content_language = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Required. Immutable. The two-letter ISO 639-1 language of the items in the data source.

string content_language = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public PromotionDataSource getDefaultInstanceForType()
Returns
Type Description
PromotionDataSource

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetCountry()

public String getTargetCountry()

Required. Immutable. The target country used as part of the unique identifier. Represented as a CLDR territory code.

Promotions are only available in selected countries.

string target_country = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The targetCountry.

getTargetCountryBytes()

public ByteString getTargetCountryBytes()

Required. Immutable. The target country used as part of the unique identifier. Represented as a CLDR territory code.

Promotions are only available in selected countries.

string target_country = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for targetCountry.

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 PromotionDataSource.Builder newBuilderForType()
Returns
Type Description
PromotionDataSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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