Class GlobalSiteTag.Builder (0.58.0)

public static final class GlobalSiteTag.Builder extends GeneratedMessageV3.Builder<GlobalSiteTag.Builder> implements GlobalSiteTagOrBuilder

Read-only resource with the tag for sending data from a website to a DataStream. Only present for web DataStream resources.

Protobuf type google.analytics.admin.v1alpha.GlobalSiteTag

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GlobalSiteTag build()
Returns
Type Description
GlobalSiteTag

buildPartial()

public GlobalSiteTag buildPartial()
Returns
Type Description
GlobalSiteTag

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GlobalSiteTag.Builder clearName()

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnippet()

public GlobalSiteTag.Builder clearSnippet()

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GlobalSiteTag getDefaultInstanceForType()
Returns
Type Description
GlobalSiteTag

getDescriptorForType()

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

getName()

public String getName()

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getSnippet()

public String getSnippet()

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The snippet.

getSnippetBytes()

public ByteString getSnippetBytes()

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for snippet.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GlobalSiteTag other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GlobalSiteTag.Builder setName(String value)

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GlobalSiteTag.Builder setNameBytes(ByteString value)

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

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

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

setSnippet(String value)

public GlobalSiteTag.Builder setSnippet(String value)

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The snippet to set.

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

setSnippetBytes(ByteString value)

public GlobalSiteTag.Builder setSnippetBytes(ByteString value)

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for snippet to set.

Returns
Type Description
GlobalSiteTag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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