Send feedback
Class ConnectedSiteTag.Builder (0.67.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.67.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConnectedSiteTag . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ConnectedSiteTag build ()
buildPartial()
public ConnectedSiteTag buildPartial ()
clear()
public ConnectedSiteTag . Builder clear ()
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];
clearField(Descriptors.FieldDescriptor field)
public ConnectedSiteTag . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConnectedSiteTag . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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];
clone()
public ConnectedSiteTag . Builder clone ()
Overrides
getDefaultInstanceForType()
public ConnectedSiteTag getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ConnectedSiteTag other)
public ConnectedSiteTag . Builder mergeFrom ( ConnectedSiteTag other )
public ConnectedSiteTag . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ConnectedSiteTag . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConnectedSiteTag . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public ConnectedSiteTag . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConnectedSiteTag . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final ConnectedSiteTag . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This webpage provides documentation for the `ConnectedSiteTag.Builder` class within the `google.analytics.admin.v1alpha` package, specifically for the Java programming language."],["The `ConnectedSiteTag.Builder` class is a part of the Google Analytics Admin API and is used to configure a specific Connected Site Tag, which is a type of Protobuf message."],["This documentation shows that it lists multiple versions of the documentation with 0.70.0 being the latest, and includes versions as far back as 0.14.0, with each version having its own distinct documentation page."],["The `ConnectedSiteTag.Builder` class extends `GeneratedMessageV3.Builder`, implements `ConnectedSiteTagOrBuilder`, and inherits numerous methods from various parent classes to manage the creation and manipulation of `ConnectedSiteTag` instances."],["The documentation details the methods available within `ConnectedSiteTag.Builder` for setting properties such as `displayName` and `tagId`, which are both required fields for this specific Connected Site Tag configuration."]]],[]]