Class MerchantCenterDestination.Builder (0.4.0)

public static final class MerchantCenterDestination.Builder extends GeneratedMessageV3.Builder<MerchantCenterDestination.Builder> implements MerchantCenterDestinationOrBuilder

"Merchant Center Destination" sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created.

Protobuf type google.shopping.merchant.conversions.v1beta.MerchantCenterDestination

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

build()

public MerchantCenterDestination build()
Returns
Type Description
MerchantCenterDestination

buildPartial()

public MerchantCenterDestination buildPartial()
Returns
Type Description
MerchantCenterDestination

clear()

public MerchantCenterDestination.Builder clear()
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

clearAttributionSettings()

public MerchantCenterDestination.Builder clearAttributionSettings()

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterDestination.Builder

clearCurrencyCode()

public MerchantCenterDestination.Builder clearCurrencyCode()

Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.

string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

clearDestination()

public MerchantCenterDestination.Builder clearDestination()

Output only. Merchant Center Destination ID.

string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

clearDisplayName()

public MerchantCenterDestination.Builder clearDisplayName()

Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MerchantCenterDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MerchantCenterDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

clone()

public MerchantCenterDestination.Builder clone()
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

getAttributionSettings()

public AttributionSettings getAttributionSettings()

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings

The attributionSettings.

getAttributionSettingsBuilder()

public AttributionSettings.Builder getAttributionSettingsBuilder()

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

getAttributionSettingsOrBuilder()

public AttributionSettingsOrBuilder getAttributionSettingsOrBuilder()

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettingsOrBuilder

getCurrencyCode()

public String getCurrencyCode()

Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.

string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.

string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public MerchantCenterDestination getDefaultInstanceForType()
Returns
Type Description
MerchantCenterDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestination()

public String getDestination()

Output only. Merchant Center Destination ID.

string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

Output only. Merchant Center Destination ID.

string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for destination.

getDisplayName()

public String getDisplayName()

Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

hasAttributionSettings()

public boolean hasAttributionSettings()

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the attributionSettings field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttributionSettings(AttributionSettings value)

public MerchantCenterDestination.Builder mergeAttributionSettings(AttributionSettings value)

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings
Returns
Type Description
MerchantCenterDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MerchantCenterDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterDestination.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MerchantCenterDestination.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

mergeFrom(MerchantCenterDestination other)

public MerchantCenterDestination.Builder mergeFrom(MerchantCenterDestination other)
Parameter
Name Description
other MerchantCenterDestination
Returns
Type Description
MerchantCenterDestination.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MerchantCenterDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

setAttributionSettings(AttributionSettings value)

public MerchantCenterDestination.Builder setAttributionSettings(AttributionSettings value)

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings
Returns
Type Description
MerchantCenterDestination.Builder

setAttributionSettings(AttributionSettings.Builder builderForValue)

public MerchantCenterDestination.Builder setAttributionSettings(AttributionSettings.Builder builderForValue)

Required. Attribution settings being used for the Merchant Center Destination.

.google.shopping.merchant.conversions.v1beta.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AttributionSettings.Builder
Returns
Type Description
MerchantCenterDestination.Builder

setCurrencyCode(String value)

public MerchantCenterDestination.Builder setCurrencyCode(String value)

Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.

string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public MerchantCenterDestination.Builder setCurrencyCodeBytes(ByteString value)

Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.

string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setDestination(String value)

public MerchantCenterDestination.Builder setDestination(String value)

Output only. Merchant Center Destination ID.

string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The destination to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setDestinationBytes(ByteString value)

public MerchantCenterDestination.Builder setDestinationBytes(ByteString value)

Output only. Merchant Center Destination ID.

string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for destination to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setDisplayName(String value)

public MerchantCenterDestination.Builder setDisplayName(String value)

Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public MerchantCenterDestination.Builder setDisplayNameBytes(ByteString value)

Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
MerchantCenterDestination.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MerchantCenterDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MerchantCenterDestination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MerchantCenterDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MerchantCenterDestination.Builder
Overrides