Send feedback
Class ConnectedSiteTag.Builder (0.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.38.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.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-03-21 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-03-21 UTC."],[[["This webpage provides documentation for the `ConnectedSiteTag.Builder` class within the Google Analytics Admin API, specifically for Java, with the latest version being 0.70.0."],["The `ConnectedSiteTag.Builder` class is used to configure a connected site tag, extending `GeneratedMessageV3.Builder`, implementing `ConnectedSiteTagOrBuilder`, and allowing the configuration of the display name and tag ID."],["The documentation offers details on various methods for building, clearing, and setting fields for `ConnectedSiteTag`, such as `addRepeatedField`, `build`, `clear`, `setTagId` and `setDisplayName`."],["A complete list of versions is provided on this webpage, starting from version 0.70.0 down to 0.14.0, with links to the documentation for each, allowing the user to navigate to the documentation for that version."]]],[]]