Class MerchantCenterDestination (0.13.0)

public final class MerchantCenterDestination extends GeneratedMessageV3 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 Fields

ATTRIBUTION_SETTINGS_FIELD_NUMBER

public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

CURRENCY_CODE_FIELD_NUMBER

public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_FIELD_NUMBER

public static final int DESTINATION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MerchantCenterDestination getDefaultInstance()
Returns
Type Description
MerchantCenterDestination

getDescriptor()

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

newBuilder()

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

newBuilder(MerchantCenterDestination prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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