Class ConversionSource (0.7.0)

public final class ConversionSource extends GeneratedMessageV3 implements ConversionSourceOrBuilder

Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.

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

Static Fields

CONTROLLER_FIELD_NUMBER

public static final int CONTROLLER_FIELD_NUMBER
Field Value
Type Description
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
Type Description
int
public static final int GOOGLE_ANALYTICS_LINK_FIELD_NUMBER
Field Value
Type Description
int

MERCHANT_CENTER_DESTINATION_FIELD_NUMBER

public static final int MERCHANT_CENTER_DESTINATION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConversionSource getDefaultInstance()
Returns
Type Description
ConversionSource

getDescriptor()

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

newBuilder()

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

newBuilder(ConversionSource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getController()

public ConversionSource.Controller getController()

Output only. Controller of the conversion source.

.google.shopping.merchant.conversions.v1beta.ConversionSource.Controller controller = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversionSource.Controller

The controller.

getControllerValue()

public int getControllerValue()

Output only. Controller of the conversion source.

.google.shopping.merchant.conversions.v1beta.ConversionSource.Controller controller = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for controller.

getDefaultInstanceForType()

public ConversionSource getDefaultInstanceForType()
Returns
Type Description
ConversionSource

getExpireTime()

public Timestamp getExpireTime()

Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public GoogleAnalyticsLink getGoogleAnalyticsLink()

Immutable. Conversion Source of type "Link to Google Analytics Property".

.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink google_analytics_link = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GoogleAnalyticsLink

The googleAnalyticsLink.

getGoogleAnalyticsLinkOrBuilder()

public GoogleAnalyticsLinkOrBuilder getGoogleAnalyticsLinkOrBuilder()

Immutable. Conversion Source of type "Link to Google Analytics Property".

.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink google_analytics_link = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GoogleAnalyticsLinkOrBuilder

getMerchantCenterDestination()

public MerchantCenterDestination getMerchantCenterDestination()

Conversion Source of type "Merchant Center Tag Destination".

.google.shopping.merchant.conversions.v1beta.MerchantCenterDestination merchant_center_destination = 4;

Returns
Type Description
MerchantCenterDestination

The merchantCenterDestination.

getMerchantCenterDestinationOrBuilder()

public MerchantCenterDestinationOrBuilder getMerchantCenterDestinationOrBuilder()

Conversion Source of type "Merchant Center Tag Destination".

.google.shopping.merchant.conversions.v1beta.MerchantCenterDestination merchant_center_destination = 4;

Returns
Type Description
MerchantCenterDestinationOrBuilder

getName()

public String getName()

Output only. Identifier. Generated by the Content API upon creation of a new ConversionSource. Format: [a-z]{4}:.+ The four characters before the colon represent the type of conversio source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported:

  • galk: For GoogleAnalyticsLink sources.
  • mcdn: For MerchantCenterDestination sources.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. Generated by the Content API upon creation of a new ConversionSource. Format: [a-z]{4}:.+ The four characters before the colon represent the type of conversio source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported:

  • galk: For GoogleAnalyticsLink sources.
  • mcdn: For MerchantCenterDestination sources.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceDataCase()

public ConversionSource.SourceDataCase getSourceDataCase()
Returns
Type Description
ConversionSource.SourceDataCase

getState()

public ConversionSource.State getState()

Output only. Current state of this conversion source. Can't be edited through the API.

.google.shopping.merchant.conversions.v1beta.ConversionSource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversionSource.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of this conversion source. Can't be edited through the API.

.google.shopping.merchant.conversions.v1beta.ConversionSource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasExpireTime()

public boolean hasExpireTime()

Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

public boolean hasGoogleAnalyticsLink()

Immutable. Conversion Source of type "Link to Google Analytics Property".

.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink google_analytics_link = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the googleAnalyticsLink field is set.

hasMerchantCenterDestination()

public boolean hasMerchantCenterDestination()

Conversion Source of type "Merchant Center Tag Destination".

.google.shopping.merchant.conversions.v1beta.MerchantCenterDestination merchant_center_destination = 4;

Returns
Type Description
boolean

Whether the merchantCenterDestination 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 ConversionSource.Builder newBuilderForType()
Returns
Type Description
ConversionSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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