Class GlobalSiteTag.Builder (0.95.0)

public static final class GlobalSiteTag.Builder extends GeneratedMessage.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

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

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.

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.

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 GeneratedMessage.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

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.

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.