Class GoogleAnalyticsLink (0.5.0)

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

public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int
public static final int PROPERTY_FIELD_NUMBER
Field Value
Type Description
int
public static final int PROPERTY_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static GoogleAnalyticsLink getDefaultInstance()
Returns
Type Description
GoogleAnalyticsLink
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static GoogleAnalyticsLink.Builder newBuilder()
Returns
Type Description
GoogleAnalyticsLink.Builder
public static GoogleAnalyticsLink.Builder newBuilder(GoogleAnalyticsLink prototype)
Parameter
Name Description
prototype GoogleAnalyticsLink
Returns
Type Description
GoogleAnalyticsLink.Builder
public static GoogleAnalyticsLink parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static GoogleAnalyticsLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static GoogleAnalyticsLink parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static GoogleAnalyticsLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static GoogleAnalyticsLink parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
IOException
public static GoogleAnalyticsLink parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static GoogleAnalyticsLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleAnalyticsLink
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<GoogleAnalyticsLink> parser()
Returns
Type Description
Parser<GoogleAnalyticsLink>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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 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 Parser<GoogleAnalyticsLink> getParserForType()
Returns
Type Description
Parser<GoogleAnalyticsLink>
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 int getSerializedSize()
Returns
Type Description
int
Overrides
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.

public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public GoogleAnalyticsLink.Builder newBuilderForType()
Returns
Type Description
GoogleAnalyticsLink.Builder
protected GoogleAnalyticsLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GoogleAnalyticsLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public GoogleAnalyticsLink.Builder toBuilder()
Returns
Type Description
GoogleAnalyticsLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException