Class UserPropertyValue.Builder (0.16.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserPropertyValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserPropertyValue.Builder
Overrides

build()

public UserPropertyValue build()
Returns
Type Description
UserPropertyValue

buildPartial()

public UserPropertyValue buildPartial()
Returns
Type Description
UserPropertyValue

clear()

public UserPropertyValue.Builder clear()
Returns
Type Description
UserPropertyValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UserPropertyValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserPropertyValue.Builder
Overrides

clearIndex()

public UserPropertyValue.Builder clearIndex()

Index for user property (one-based).

int32 index = 3;

Returns
Type Description
UserPropertyValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UserPropertyValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserPropertyValue.Builder
Overrides

clearSetTimestampUsec()

public UserPropertyValue.Builder clearSetTimestampUsec()

UTC client time when user property was last set.

int64 set_timestamp_usec = 2;

Returns
Type Description
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
Type Description
UserPropertyValue.Builder

clone()

public UserPropertyValue.Builder clone()
Returns
Type Description
UserPropertyValue.Builder
Overrides

getDefaultInstanceForType()

public UserPropertyValue getDefaultInstanceForType()
Returns
Type Description
UserPropertyValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIndex()

public int getIndex()

Index for user property (one-based).

int32 index = 3;

Returns
Type Description
int

The index.

getSetTimestampUsec()

public long getSetTimestampUsec()

UTC client time when user property was last set.

int64 set_timestamp_usec = 2;

Returns
Type Description
long

The setTimestampUsec.

getValue()

public AnalyticsValue getValue()

Last set value of user property.

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

Returns
Type Description
AnalyticsValue

The value.

getValueBuilder()

public AnalyticsValue.Builder getValueBuilder()

Last set value of user property.

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

Returns
Type Description
AnalyticsValue.Builder

getValueOrBuilder()

public AnalyticsValueOrBuilder getValueOrBuilder()

Last set value of user property.

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

Returns
Type Description
AnalyticsValueOrBuilder

hasValue()

public boolean hasValue()

Last set value of user property.

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

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserPropertyValue other)

public UserPropertyValue.Builder mergeFrom(UserPropertyValue other)
Parameter
Name Description
other UserPropertyValue
Returns
Type Description
UserPropertyValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserPropertyValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserPropertyValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserPropertyValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserPropertyValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserPropertyValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value AnalyticsValue
Returns
Type Description
UserPropertyValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserPropertyValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserPropertyValue.Builder
Overrides

setIndex(int value)

public UserPropertyValue.Builder setIndex(int value)

Index for user property (one-based).

int32 index = 3;

Parameter
Name Description
value int

The index to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value long

The setTimestampUsec to set.

Returns
Type Description
UserPropertyValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UserPropertyValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value AnalyticsValue
Returns
Type Description
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
Name Description
builderForValue AnalyticsValue.Builder
Returns
Type Description
UserPropertyValue.Builder