Class ConnectedSiteTag.Builder (0.64.0)

public static final class ConnectedSiteTag.Builder extends GeneratedMessageV3.Builder<ConnectedSiteTag.Builder> implements ConnectedSiteTagOrBuilder

Configuration for a specific Connected Site Tag.

Protobuf type google.analytics.admin.v1alpha.ConnectedSiteTag

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectedSiteTag build()
Returns
Type Description
ConnectedSiteTag

buildPartial()

public ConnectedSiteTag buildPartial()
Returns
Type Description
ConnectedSiteTag

clear()

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

clearDisplayName()

public ConnectedSiteTag.Builder clearDisplayName()

Required. User-provided display name for the connected site tag. Must be less than 256 characters.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTagId()

public ConnectedSiteTag.Builder clearTagId()

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345).

string tag_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

clone()

public ConnectedSiteTag.Builder clone()
Returns
Type Description
ConnectedSiteTag.Builder
Overrides

getDefaultInstanceForType()

public ConnectedSiteTag getDefaultInstanceForType()
Returns
Type Description
ConnectedSiteTag

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. User-provided display name for the connected site tag. Must be less than 256 characters.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. User-provided display name for the connected site tag. Must be less than 256 characters.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getTagId()

public String getTagId()

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345).

string tag_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tagId.

getTagIdBytes()

public ByteString getTagIdBytes()

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345).

string tag_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tagId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectedSiteTag other)

public ConnectedSiteTag.Builder mergeFrom(ConnectedSiteTag other)
Parameter
Name Description
other ConnectedSiteTag
Returns
Type Description
ConnectedSiteTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public ConnectedSiteTag.Builder setDisplayName(String value)

Required. User-provided display name for the connected site tag. Must be less than 256 characters.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ConnectedSiteTag.Builder setDisplayNameBytes(ByteString value)

Required. User-provided display name for the connected site tag. Must be less than 256 characters.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTagId(String value)

public ConnectedSiteTag.Builder setTagId(String value)

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345).

string tag_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The tagId to set.

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

setTagIdBytes(ByteString value)

public ConnectedSiteTag.Builder setTagIdBytes(ByteString value)

Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345).

string tag_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for tagId to set.

Returns
Type Description
ConnectedSiteTag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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