Class ConversionSource.Builder (0.2.0)

public static final class ConversionSource.Builder extends GeneratedMessageV3.Builder<ConversionSource.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversionSource build()
Returns
Type Description
ConversionSource

buildPartial()

public ConversionSource buildPartial()
Returns
Type Description
ConversionSource

clear()

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

clearController()

public ConversionSource.Builder clearController()

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.Builder

This builder for chaining.

clearExpireTime()

public ConversionSource.Builder clearExpireTime()

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
ConversionSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

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
ConversionSource.Builder

clearMerchantCenterDestination()

public ConversionSource.Builder clearMerchantCenterDestination()

Conversion Source of type "Merchant Center Tag Destination".

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

Returns
Type Description
ConversionSource.Builder

clearName()

public ConversionSource.Builder clearName()

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
ConversionSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceData()

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

clearState()

public ConversionSource.Builder clearState()

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.Builder

This builder for chaining.

clone()

public ConversionSource.Builder clone()
Returns
Type Description
ConversionSource.Builder
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

getDescriptorForType()

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

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.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

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
Builder

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.

getGoogleAnalyticsLinkBuilder()

public GoogleAnalyticsLink.Builder getGoogleAnalyticsLinkBuilder()

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.Builder

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.

getMerchantCenterDestinationBuilder()

public MerchantCenterDestination.Builder getMerchantCenterDestinationBuilder()

Conversion Source of type "Merchant Center Tag Destination".

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

Returns
Type Description
MerchantCenterDestination.Builder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public ConversionSource.Builder mergeExpireTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversionSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ConversionSource other)

public ConversionSource.Builder mergeFrom(ConversionSource other)
Parameter
Name Description
other ConversionSource
Returns
Type Description
ConversionSource.Builder
public ConversionSource.Builder mergeGoogleAnalyticsLink(GoogleAnalyticsLink value)

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];

Parameter
Name Description
value GoogleAnalyticsLink
Returns
Type Description
ConversionSource.Builder

mergeMerchantCenterDestination(MerchantCenterDestination value)

public ConversionSource.Builder mergeMerchantCenterDestination(MerchantCenterDestination value)

Conversion Source of type "Merchant Center Tag Destination".

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

Parameter
Name Description
value MerchantCenterDestination
Returns
Type Description
ConversionSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setController(ConversionSource.Controller value)

public ConversionSource.Builder setController(ConversionSource.Controller value)

Output only. Controller of the conversion source.

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

Parameter
Name Description
value ConversionSource.Controller

The controller to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

setControllerValue(int value)

public ConversionSource.Builder setControllerValue(int value)

Output only. Controller of the conversion source.

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

Parameter
Name Description
value int

The enum numeric value on the wire for controller to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public ConversionSource.Builder setExpireTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversionSource.Builder

setExpireTime(Timestamp.Builder builderForValue)

public ConversionSource.Builder setExpireTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConversionSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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];

Parameter
Name Description
value GoogleAnalyticsLink
Returns
Type Description
ConversionSource.Builder
public ConversionSource.Builder setGoogleAnalyticsLink(GoogleAnalyticsLink.Builder builderForValue)

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];

Parameter
Name Description
builderForValue GoogleAnalyticsLink.Builder
Returns
Type Description
ConversionSource.Builder

setMerchantCenterDestination(MerchantCenterDestination value)

public ConversionSource.Builder setMerchantCenterDestination(MerchantCenterDestination value)

Conversion Source of type "Merchant Center Tag Destination".

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

Parameter
Name Description
value MerchantCenterDestination
Returns
Type Description
ConversionSource.Builder

setMerchantCenterDestination(MerchantCenterDestination.Builder builderForValue)

public ConversionSource.Builder setMerchantCenterDestination(MerchantCenterDestination.Builder builderForValue)

Conversion Source of type "Merchant Center Tag Destination".

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

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

setName(String value)

public ConversionSource.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConversionSource.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

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

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

setState(ConversionSource.State value)

public ConversionSource.Builder setState(ConversionSource.State value)

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];

Parameter
Name Description
value ConversionSource.State

The state to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

setStateValue(int value)

public ConversionSource.Builder setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
ConversionSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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