Class GlobalSiteTag (0.40.0)

public final class GlobalSiteTag extends GeneratedMessageV3 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 Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SNIPPET_FIELD_NUMBER

public static final int SNIPPET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GlobalSiteTag getDefaultInstance()
Returns
TypeDescription
GlobalSiteTag

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GlobalSiteTag.Builder newBuilder()
Returns
TypeDescription
GlobalSiteTag.Builder

newBuilder(GlobalSiteTag prototype)

public static GlobalSiteTag.Builder newBuilder(GlobalSiteTag prototype)
Parameter
NameDescription
prototypeGlobalSiteTag
Returns
TypeDescription
GlobalSiteTag.Builder

parseDelimitedFrom(InputStream input)

public static GlobalSiteTag parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GlobalSiteTag parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GlobalSiteTag parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GlobalSiteTag parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GlobalSiteTag parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GlobalSiteTag parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GlobalSiteTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GlobalSiteTag
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GlobalSiteTag> parser()
Returns
TypeDescription
Parser<GlobalSiteTag>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GlobalSiteTag getDefaultInstanceForType()
Returns
TypeDescription
GlobalSiteTag

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.

getParserForType()

public Parser<GlobalSiteTag> getParserForType()
Returns
TypeDescription
Parser<GlobalSiteTag>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GlobalSiteTag.Builder newBuilderForType()
Returns
TypeDescription
GlobalSiteTag.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GlobalSiteTag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GlobalSiteTag.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GlobalSiteTag.Builder toBuilder()
Returns
TypeDescription
GlobalSiteTag.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException