Class AnalyticsValue (0.15.0)

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
Type Description
int

FLOAT_VALUE_FIELD_NUMBER

public static final int FLOAT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

INT_VALUE_FIELD_NUMBER

public static final int INT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

STRING_VALUE_FIELD_NUMBER

public static final int STRING_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnalyticsValue getDefaultInstance()
Returns
Type Description
AnalyticsValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AnalyticsValue.Builder newBuilder()
Returns
Type Description
AnalyticsValue.Builder

newBuilder(AnalyticsValue prototype)

public static AnalyticsValue.Builder newBuilder(AnalyticsValue prototype)
Parameter
Name Description
prototype AnalyticsValue
Returns
Type Description
AnalyticsValue.Builder

parseDelimitedFrom(InputStream input)

public static AnalyticsValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnalyticsValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyticsValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyticsValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnalyticsValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnalyticsValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyticsValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyticsValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnalyticsValue> parser()
Returns
Type Description
Parser<AnalyticsValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AnalyticsValue getDefaultInstanceForType()
Returns
Type Description
AnalyticsValue

getDoubleValue()

public double getDoubleValue()

double double_value = 4;

Returns
Type Description
double

The doubleValue.

getFloatValue()

public float getFloatValue()

float float_value = 3;

Returns
Type Description
float

The floatValue.

getIntValue()

public long getIntValue()

int64 int_value = 2;

Returns
Type Description
long

The intValue.

getParamValueCase()

public AnalyticsValue.ParamValueCase getParamValueCase()
Returns
Type Description
AnalyticsValue.ParamValueCase

getParserForType()

public Parser<AnalyticsValue> getParserForType()
Returns
Type Description
Parser<AnalyticsValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStringValue()

public String getStringValue()

string string_value = 1;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

string string_value = 1;

Returns
Type Description
ByteString

The bytes for stringValue.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasDoubleValue()

public boolean hasDoubleValue()

double double_value = 4;

Returns
Type Description
boolean

Whether the doubleValue field is set.

hasFloatValue()

public boolean hasFloatValue()

float float_value = 3;

Returns
Type Description
boolean

Whether the floatValue field is set.

hasIntValue()

public boolean hasIntValue()

int64 int_value = 2;

Returns
Type Description
boolean

Whether the intValue field is set.

hasStringValue()

public boolean hasStringValue()

string string_value = 1;

Returns
Type Description
boolean

Whether the stringValue field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnalyticsValue.Builder newBuilderForType()
Returns
Type Description
AnalyticsValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyticsValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyticsValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnalyticsValue.Builder toBuilder()
Returns
Type Description
AnalyticsValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException