Class UserPropertyValue.Builder (0.14.1)

public static final class UserPropertyValue.Builder extends GeneratedMessageV3.Builder<UserPropertyValue.Builder> implements UserPropertyValueOrBuilder

Predefined (eg: LTV) or custom properties (eg: birthday) stored on client side and associated with subsequent HitBundles.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserPropertyValue build()
Returns
TypeDescription
UserPropertyValue

buildPartial()

public UserPropertyValue buildPartial()
Returns
TypeDescription
UserPropertyValue

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIndex()

public UserPropertyValue.Builder clearIndex()

Index for user property (one-based).

int32 index = 3;

Returns
TypeDescription
UserPropertyValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSetTimestampUsec()

public UserPropertyValue.Builder clearSetTimestampUsec()

UTC client time when user property was last set.

int64 set_timestamp_usec = 2;

Returns
TypeDescription
UserPropertyValue.Builder

This builder for chaining.

clearValue()

public UserPropertyValue.Builder clearValue()

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Returns
TypeDescription
UserPropertyValue.Builder

clone()

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

getDefaultInstanceForType()

public UserPropertyValue getDefaultInstanceForType()
Returns
TypeDescription
UserPropertyValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public int getIndex()

Index for user property (one-based).

int32 index = 3;

Returns
TypeDescription
int

The index.

getSetTimestampUsec()

public long getSetTimestampUsec()

UTC client time when user property was last set.

int64 set_timestamp_usec = 2;

Returns
TypeDescription
long

The setTimestampUsec.

getValue()

public AnalyticsValue getValue()

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Returns
TypeDescription
AnalyticsValue

The value.

getValueBuilder()

public AnalyticsValue.Builder getValueBuilder()

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Returns
TypeDescription
AnalyticsValue.Builder

getValueOrBuilder()

public AnalyticsValueOrBuilder getValueOrBuilder()

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Returns
TypeDescription
AnalyticsValueOrBuilder

hasValue()

public boolean hasValue()

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserPropertyValue other)

public UserPropertyValue.Builder mergeFrom(UserPropertyValue other)
Parameter
NameDescription
otherUserPropertyValue
Returns
TypeDescription
UserPropertyValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValue(AnalyticsValue value)

public UserPropertyValue.Builder mergeValue(AnalyticsValue value)

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Parameter
NameDescription
valueAnalyticsValue
Returns
TypeDescription
UserPropertyValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndex(int value)

public UserPropertyValue.Builder setIndex(int value)

Index for user property (one-based).

int32 index = 3;

Parameter
NameDescription
valueint

The index to set.

Returns
TypeDescription
UserPropertyValue.Builder

This builder for chaining.

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

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

setSetTimestampUsec(long value)

public UserPropertyValue.Builder setSetTimestampUsec(long value)

UTC client time when user property was last set.

int64 set_timestamp_usec = 2;

Parameter
NameDescription
valuelong

The setTimestampUsec to set.

Returns
TypeDescription
UserPropertyValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(AnalyticsValue value)

public UserPropertyValue.Builder setValue(AnalyticsValue value)

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Parameter
NameDescription
valueAnalyticsValue
Returns
TypeDescription
UserPropertyValue.Builder

setValue(AnalyticsValue.Builder builderForValue)

public UserPropertyValue.Builder setValue(AnalyticsValue.Builder builderForValue)

Last set value of user property.

.google.events.firebase.analytics.v1.AnalyticsValue value = 1;

Parameter
NameDescription
builderForValueAnalyticsValue.Builder
Returns
TypeDescription
UserPropertyValue.Builder