Class GoogleAnalyticsLink.Builder (0.13.0)

public static final class GoogleAnalyticsLink.Builder extends GeneratedMessageV3.Builder<GoogleAnalyticsLink.Builder> implements GoogleAnalyticsLinkOrBuilder

"Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.

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

Static Methods

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

Methods

public GoogleAnalyticsLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink build()
Returns
Type Description
GoogleAnalyticsLink
public GoogleAnalyticsLink buildPartial()
Returns
Type Description
GoogleAnalyticsLink
public GoogleAnalyticsLink.Builder clear()
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder clearAttributionSettings()

Output only. Attribution settings for the linked Google Analytics property.

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

Returns
Type Description
GoogleAnalyticsLink.Builder
public GoogleAnalyticsLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder clearProperty()

Output only. Name of the Google Analytics property the merchant is linked to.

string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleAnalyticsLink.Builder

This builder for chaining.

public GoogleAnalyticsLink.Builder clearPropertyId()

Required. Immutable. ID of the Google Analytics property the merchant is linked to.

int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GoogleAnalyticsLink.Builder

This builder for chaining.

public GoogleAnalyticsLink.Builder clone()
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public AttributionSettings getAttributionSettings()

Output only. Attribution settings for the linked Google Analytics property.

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

Returns
Type Description
AttributionSettings

The attributionSettings.

public AttributionSettings.Builder getAttributionSettingsBuilder()

Output only. Attribution settings for the linked Google Analytics property.

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

Returns
Type Description
AttributionSettings.Builder
public AttributionSettingsOrBuilder getAttributionSettingsOrBuilder()

Output only. Attribution settings for the linked Google Analytics property.

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

Returns
Type Description
AttributionSettingsOrBuilder
public GoogleAnalyticsLink getDefaultInstanceForType()
Returns
Type Description
GoogleAnalyticsLink
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getProperty()

Output only. Name of the Google Analytics property the merchant is linked to.

string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The property.

public ByteString getPropertyBytes()

Output only. Name of the Google Analytics property the merchant is linked to.

string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for property.

public long getPropertyId()

Required. Immutable. ID of the Google Analytics property the merchant is linked to.

int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
long

The propertyId.

public boolean hasAttributionSettings()

Output only. Attribution settings for the linked Google Analytics property.

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

Returns
Type Description
boolean

Whether the attributionSettings field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public GoogleAnalyticsLink.Builder mergeAttributionSettings(AttributionSettings value)

Output only. Attribution settings for the linked Google Analytics property.

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

Parameter
Name Description
value AttributionSettings
Returns
Type Description
GoogleAnalyticsLink.Builder
public GoogleAnalyticsLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
Exceptions
Type Description
IOException
public GoogleAnalyticsLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder mergeFrom(GoogleAnalyticsLink other)
Parameter
Name Description
other GoogleAnalyticsLink
Returns
Type Description
GoogleAnalyticsLink.Builder
public final GoogleAnalyticsLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder setAttributionSettings(AttributionSettings value)

Output only. Attribution settings for the linked Google Analytics property.

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

Parameter
Name Description
value AttributionSettings
Returns
Type Description
GoogleAnalyticsLink.Builder
public GoogleAnalyticsLink.Builder setAttributionSettings(AttributionSettings.Builder builderForValue)

Output only. Attribution settings for the linked Google Analytics property.

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

Parameter
Name Description
builderForValue AttributionSettings.Builder
Returns
Type Description
GoogleAnalyticsLink.Builder
public GoogleAnalyticsLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public GoogleAnalyticsLink.Builder setProperty(String value)

Output only. Name of the Google Analytics property the merchant is linked to.

string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The property to set.

Returns
Type Description
GoogleAnalyticsLink.Builder

This builder for chaining.

public GoogleAnalyticsLink.Builder setPropertyBytes(ByteString value)

Output only. Name of the Google Analytics property the merchant is linked to.

string property = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for property to set.

Returns
Type Description
GoogleAnalyticsLink.Builder

This builder for chaining.

public GoogleAnalyticsLink.Builder setPropertyId(long value)

Required. Immutable. ID of the Google Analytics property the merchant is linked to.

int64 property_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value long

The propertyId to set.

Returns
Type Description
GoogleAnalyticsLink.Builder

This builder for chaining.

public GoogleAnalyticsLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
public final GoogleAnalyticsLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides