Class DimensionValue (0.34.0)

public final class DimensionValue extends GeneratedMessageV3 implements DimensionValueOrBuilder

The value of a dimension.

Protobuf type google.analytics.data.v1beta.DimensionValue

Static Fields

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DimensionValue getDefaultInstance()
Returns
TypeDescription
DimensionValue

getDescriptor()

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

newBuilder()

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

newBuilder(DimensionValue prototype)

public static DimensionValue.Builder newBuilder(DimensionValue prototype)
Parameter
NameDescription
prototypeDimensionValue
Returns
TypeDescription
DimensionValue.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DimensionValue getDefaultInstanceForType()
Returns
TypeDescription
DimensionValue

getOneValueCase()

public DimensionValue.OneValueCase getOneValueCase()
Returns
TypeDescription
DimensionValue.OneValueCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

public String getValue()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

hasValue()

public boolean hasValue()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

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 DimensionValue.Builder newBuilderForType()
Returns
TypeDescription
DimensionValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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