Class ConnectedSiteTag.Builder (0.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectedSiteTag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides

build()

public ConnectedSiteTag build()
Returns
TypeDescription
ConnectedSiteTag

buildPartial()

public ConnectedSiteTag buildPartial()
Returns
TypeDescription
ConnectedSiteTag

clear()

public ConnectedSiteTag.Builder clear()
Returns
TypeDescription
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
TypeDescription
ConnectedSiteTag.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConnectedSiteTag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectedSiteTag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ConnectedSiteTag.Builder

This builder for chaining.

clone()

public ConnectedSiteTag.Builder clone()
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides

getDefaultInstanceForType()

public ConnectedSiteTag getDefaultInstanceForType()
Returns
TypeDescription
ConnectedSiteTag

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for tagId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectedSiteTag other)

public ConnectedSiteTag.Builder mergeFrom(ConnectedSiteTag other)
Parameter
NameDescription
otherConnectedSiteTag
Returns
TypeDescription
ConnectedSiteTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectedSiteTag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConnectedSiteTag.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectedSiteTag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ConnectedSiteTag.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectedSiteTag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides

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

public ConnectedSiteTag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tagId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tagId to set.

Returns
TypeDescription
ConnectedSiteTag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectedSiteTag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectedSiteTag.Builder
Overrides