Class AnalyticsValue.Builder (0.14.1)

public static final class AnalyticsValue.Builder extends GeneratedMessageV3.Builder<AnalyticsValue.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyticsValue build()
Returns
TypeDescription
AnalyticsValue

buildPartial()

public AnalyticsValue buildPartial()
Returns
TypeDescription
AnalyticsValue

clear()

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

clearDoubleValue()

public AnalyticsValue.Builder clearDoubleValue()

double double_value = 4;

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalyticsValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyticsValue.Builder
Overrides

clearFloatValue()

public AnalyticsValue.Builder clearFloatValue()

float float_value = 3;

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

clearIntValue()

public AnalyticsValue.Builder clearIntValue()

int64 int_value = 2;

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyticsValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyticsValue.Builder
Overrides

clearParamValue()

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

clearStringValue()

public AnalyticsValue.Builder clearStringValue()

string string_value = 1;

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AnalyticsValue getDefaultInstanceForType()
Returns
TypeDescription
AnalyticsValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyticsValue other)

public AnalyticsValue.Builder mergeFrom(AnalyticsValue other)
Parameter
NameDescription
otherAnalyticsValue
Returns
TypeDescription
AnalyticsValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDoubleValue(double value)

public AnalyticsValue.Builder setDoubleValue(double value)

double double_value = 4;

Parameter
NameDescription
valuedouble

The doubleValue to set.

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFloatValue(float value)

public AnalyticsValue.Builder setFloatValue(float value)

float float_value = 3;

Parameter
NameDescription
valuefloat

The floatValue to set.

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

setIntValue(long value)

public AnalyticsValue.Builder setIntValue(long value)

int64 int_value = 2;

Parameter
NameDescription
valuelong

The intValue to set.

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyticsValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyticsValue.Builder
Overrides

setStringValue(String value)

public AnalyticsValue.Builder setStringValue(String value)

string string_value = 1;

Parameter
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public AnalyticsValue.Builder setStringValueBytes(ByteString value)

string string_value = 1;

Parameter
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
AnalyticsValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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