public static final class PromotionDataSource.Builder extends GeneratedMessage.Builder<PromotionDataSource.Builder> implements PromotionDataSourceOrBuilderThe promotion data source.
Protobuf type google.shopping.merchant.datasources.v1.PromotionDataSource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PromotionDataSource.BuilderImplements
PromotionDataSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PromotionDataSource build()| Returns | |
|---|---|
| Type | Description |
PromotionDataSource |
|
buildPartial()
public PromotionDataSource buildPartial()| Returns | |
|---|---|
| Type | Description |
PromotionDataSource |
|
clear()
public PromotionDataSource.Builder clear()| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
|
clearContentLanguage()
public PromotionDataSource.Builder clearContentLanguage()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 |
PromotionDataSource.Builder |
This builder for chaining. |
clearTargetCountry()
public PromotionDataSource.Builder clearTargetCountry()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 |
PromotionDataSource.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PromotionDataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PromotionDataSource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
|
mergeFrom(PromotionDataSource other)
public PromotionDataSource.Builder mergeFrom(PromotionDataSource other)| Parameter | |
|---|---|
| Name | Description |
other |
PromotionDataSource |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
|
setContentLanguage(String value)
public PromotionDataSource.Builder setContentLanguage(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contentLanguage to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
This builder for chaining. |
setContentLanguageBytes(ByteString value)
public PromotionDataSource.Builder setContentLanguageBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contentLanguage to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
This builder for chaining. |
setTargetCountry(String value)
public PromotionDataSource.Builder setTargetCountry(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetCountry to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
This builder for chaining. |
setTargetCountryBytes(ByteString value)
public PromotionDataSource.Builder setTargetCountryBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetCountry to set. |
| Returns | |
|---|---|
| Type | Description |
PromotionDataSource.Builder |
This builder for chaining. |