Class GlobalSiteTag.Builder (0.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GlobalSiteTag build()
Returns
TypeDescription
GlobalSiteTag

buildPartial()

public GlobalSiteTag buildPartial()
Returns
TypeDescription
GlobalSiteTag

clear()

public GlobalSiteTag.Builder clear()
Returns
TypeDescription
GlobalSiteTag.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GlobalSiteTag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GlobalSiteTag.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GlobalSiteTag getDefaultInstanceForType()
Returns
TypeDescription
GlobalSiteTag

getDescriptorForType()

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

The bytes for snippet.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GlobalSiteTag other)

public GlobalSiteTag.Builder mergeFrom(GlobalSiteTag other)
Parameter
NameDescription
otherGlobalSiteTag
Returns
TypeDescription
GlobalSiteTag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GlobalSiteTag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GlobalSiteTag.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GlobalSiteTag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The snippet to set.

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

The bytes for snippet to set.

Returns
TypeDescription
GlobalSiteTag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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