Send feedback
Class ConversionSource (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CONTROLLER_FIELD_NUMBER
Field Value
Type
Description
int
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
public static final int MERCHANT_CENTER_DESTINATION_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int STATE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static ConversionSource getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static ConversionSource . Builder newBuilder ()
public static ConversionSource . Builder newBuilder ( ConversionSource prototype )
public static ConversionSource parseDelimitedFrom ( InputStream input )
public static ConversionSource parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ConversionSource parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static ConversionSource parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static ConversionSource parseFrom ( ByteString data )
public static ConversionSource parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ConversionSource parseFrom ( CodedInputStream input )
public static ConversionSource parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ConversionSource parseFrom ( InputStream input )
public static ConversionSource parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ConversionSource parseFrom ( ByteBuffer data )
public static ConversionSource parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<ConversionSource> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
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];
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.
public ConversionSource getDefaultInstanceForType ()
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.
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];
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];
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];
public MerchantCenterDestination getMerchantCenterDestination ()
Conversion Source of type "Merchant Center Tag Destination".
.google.shopping.merchant.conversions.v1beta.MerchantCenterDestination merchant_center_destination = 4;
public MerchantCenterDestinationOrBuilder getMerchantCenterDestinationOrBuilder ()
Conversion Source of type "Merchant Center Tag Destination".
.google.shopping.merchant.conversions.v1beta.MerchantCenterDestination merchant_center_destination = 4;
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.
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.
public Parser<ConversionSource> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public ConversionSource . SourceDataCase getSourceDataCase ()
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];
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.
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.
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public ConversionSource . Builder newBuilderForType ()
protected ConversionSource . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public ConversionSource . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]