Class AnalyticsValue (0.14.1)

public final class AnalyticsValue extends GeneratedMessageV3 implements AnalyticsValueOrBuilder

Value for Event Params and UserProperty can be of type string or int or float or double.

Protobuf type google.events.firebase.analytics.v1.AnalyticsValue

Static Fields

DOUBLE_VALUE_FIELD_NUMBER

public static final int DOUBLE_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

FLOAT_VALUE_FIELD_NUMBER

public static final int FLOAT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

INT_VALUE_FIELD_NUMBER

public static final int INT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_VALUE_FIELD_NUMBER

public static final int STRING_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyticsValue getDefaultInstance()
Returns
TypeDescription
AnalyticsValue

getDescriptor()

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

newBuilder()

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

newBuilder(AnalyticsValue prototype)

public static AnalyticsValue.Builder newBuilder(AnalyticsValue prototype)
Parameter
NameDescription
prototypeAnalyticsValue
Returns
TypeDescription
AnalyticsValue.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AnalyticsValue getDefaultInstanceForType()
Returns
TypeDescription
AnalyticsValue

getDoubleValue()

public double getDoubleValue()

double double_value = 4;

Returns
TypeDescription
double

The doubleValue.

getFloatValue()

public float getFloatValue()

float float_value = 3;

Returns
TypeDescription
float

The floatValue.

getIntValue()

public long getIntValue()

int64 int_value = 2;

Returns
TypeDescription
long

The intValue.

getParamValueCase()

public AnalyticsValue.ParamValueCase getParamValueCase()
Returns
TypeDescription
AnalyticsValue.ParamValueCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStringValue()

public String getStringValue()

string string_value = 1;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

string string_value = 1;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDoubleValue()

public boolean hasDoubleValue()

double double_value = 4;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasFloatValue()

public boolean hasFloatValue()

float float_value = 3;

Returns
TypeDescription
boolean

Whether the floatValue field is set.

hasIntValue()

public boolean hasIntValue()

int64 int_value = 2;

Returns
TypeDescription
boolean

Whether the intValue field is set.

hasStringValue()

public boolean hasStringValue()

string string_value = 1;

Returns
TypeDescription
boolean

Whether the stringValue 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 AnalyticsValue.Builder newBuilderForType()
Returns
TypeDescription
AnalyticsValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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