Class EventDimensions.Builder (0.14.1)

public static final class EventDimensions.Builder extends GeneratedMessageV3.Builder<EventDimensions.Builder> implements EventDimensionsOrBuilder

Message containing information pertaining to the event.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventDimensions build()
Returns
TypeDescription
EventDimensions

buildPartial()

public EventDimensions buildPartial()
Returns
TypeDescription
EventDimensions

clear()

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

clearDate()

public EventDimensions.Builder clearDate()

The date on which this event was logged. (YYYYMMDD format in the registered timezone of your app.)

string date = 6;

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public EventDimensions.Builder clearName()

The name of this event.

string name = 1;

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParams()

public EventDimensions.Builder clearParams()
Returns
TypeDescription
EventDimensions.Builder

clearPreviousTimestampMicros()

public EventDimensions.Builder clearPreviousTimestampMicros()

UTC client time when the previous event happened.

int64 previous_timestamp_micros = 5;

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

clearTimestampMicros()

public EventDimensions.Builder clearTimestampMicros()

UTC client time when the event happened.

int64 timestamp_micros = 4;

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

clearValueInUsd()

public EventDimensions.Builder clearValueInUsd()

Value param in USD.

double value_in_usd = 7;

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

clone()

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

containsParams(String key)

public boolean containsParams(String key)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDate()

public String getDate()

The date on which this event was logged. (YYYYMMDD format in the registered timezone of your app.)

string date = 6;

Returns
TypeDescription
String

The date.

getDateBytes()

public ByteString getDateBytes()

The date on which this event was logged. (YYYYMMDD format in the registered timezone of your app.)

string date = 6;

Returns
TypeDescription
ByteString

The bytes for date.

getDefaultInstanceForType()

public EventDimensions getDefaultInstanceForType()
Returns
TypeDescription
EventDimensions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableParams()

public Map<String,AnalyticsValue> getMutableParams()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,AnalyticsValue>

getName()

public String getName()

The name of this event.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this event.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParams()

public Map<String,AnalyticsValue> getParams()

Use #getParamsMap() instead.

Returns
TypeDescription
Map<String,AnalyticsValue>

getParamsCount()

public int getParamsCount()

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Returns
TypeDescription
int

getParamsMap()

public Map<String,AnalyticsValue> getParamsMap()

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Returns
TypeDescription
Map<String,AnalyticsValue>

getParamsOrDefault(String key, AnalyticsValue defaultValue)

public AnalyticsValue getParamsOrDefault(String key, AnalyticsValue defaultValue)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameters
NameDescription
keyString
defaultValueAnalyticsValue
Returns
TypeDescription
AnalyticsValue

getParamsOrThrow(String key)

public AnalyticsValue getParamsOrThrow(String key)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
AnalyticsValue

getPreviousTimestampMicros()

public long getPreviousTimestampMicros()

UTC client time when the previous event happened.

int64 previous_timestamp_micros = 5;

Returns
TypeDescription
long

The previousTimestampMicros.

getTimestampMicros()

public long getTimestampMicros()

UTC client time when the event happened.

int64 timestamp_micros = 4;

Returns
TypeDescription
long

The timestampMicros.

getValueInUsd()

public double getValueInUsd()

Value param in USD.

double value_in_usd = 7;

Returns
TypeDescription
double

The valueInUsd.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EventDimensions other)

public EventDimensions.Builder mergeFrom(EventDimensions other)
Parameter
NameDescription
otherEventDimensions
Returns
TypeDescription
EventDimensions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllParams(Map<String,AnalyticsValue> values)

public EventDimensions.Builder putAllParams(Map<String,AnalyticsValue> values)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameter
NameDescription
valuesMap<String,AnalyticsValue>
Returns
TypeDescription
EventDimensions.Builder

putParams(String key, AnalyticsValue value)

public EventDimensions.Builder putParams(String key, AnalyticsValue value)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameters
NameDescription
keyString
valueAnalyticsValue
Returns
TypeDescription
EventDimensions.Builder

removeParams(String key)

public EventDimensions.Builder removeParams(String key)

A repeated record of the parameters associated with this event.

map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
EventDimensions.Builder

setDate(String value)

public EventDimensions.Builder setDate(String value)

The date on which this event was logged. (YYYYMMDD format in the registered timezone of your app.)

string date = 6;

Parameter
NameDescription
valueString

The date to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

setDateBytes(ByteString value)

public EventDimensions.Builder setDateBytes(ByteString value)

The date on which this event was logged. (YYYYMMDD format in the registered timezone of your app.)

string date = 6;

Parameter
NameDescription
valueByteString

The bytes for date to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EventDimensions.Builder setName(String value)

The name of this event.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EventDimensions.Builder setNameBytes(ByteString value)

The name of this event.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

setPreviousTimestampMicros(long value)

public EventDimensions.Builder setPreviousTimestampMicros(long value)

UTC client time when the previous event happened.

int64 previous_timestamp_micros = 5;

Parameter
NameDescription
valuelong

The previousTimestampMicros to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

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

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

setTimestampMicros(long value)

public EventDimensions.Builder setTimestampMicros(long value)

UTC client time when the event happened.

int64 timestamp_micros = 4;

Parameter
NameDescription
valuelong

The timestampMicros to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValueInUsd(double value)

public EventDimensions.Builder setValueInUsd(double value)

Value param in USD.

double value_in_usd = 7;

Parameter
NameDescription
valuedouble

The valueInUsd to set.

Returns
TypeDescription
EventDimensions.Builder

This builder for chaining.