Class LtvInfo.Builder (0.16.0)

public static final class LtvInfo.Builder extends GeneratedMessageV3.Builder<LtvInfo.Builder> implements LtvInfoOrBuilder

Lifetime Value information about this user.

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

Implements

LtvInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LtvInfo build()
Returns
Type Description
LtvInfo

buildPartial()

public LtvInfo buildPartial()
Returns
Type Description
LtvInfo

clear()

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

clearCurrency()

public LtvInfo.Builder clearCurrency()

The currency corresponding to the revenue.

string currency = 2;

Returns
Type Description
LtvInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevenue()

public LtvInfo.Builder clearRevenue()

The Lifetime Value revenue of this user.

double revenue = 1;

Returns
Type Description
LtvInfo.Builder

This builder for chaining.

clone()

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

getCurrency()

public String getCurrency()

The currency corresponding to the revenue.

string currency = 2;

Returns
Type Description
String

The currency.

getCurrencyBytes()

public ByteString getCurrencyBytes()

The currency corresponding to the revenue.

string currency = 2;

Returns
Type Description
ByteString

The bytes for currency.

getDefaultInstanceForType()

public LtvInfo getDefaultInstanceForType()
Returns
Type Description
LtvInfo

getDescriptorForType()

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

getRevenue()

public double getRevenue()

The Lifetime Value revenue of this user.

double revenue = 1;

Returns
Type Description
double

The revenue.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LtvInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LtvInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LtvInfo.Builder
Overrides

setCurrency(String value)

public LtvInfo.Builder setCurrency(String value)

The currency corresponding to the revenue.

string currency = 2;

Parameter
Name Description
value String

The currency to set.

Returns
Type Description
LtvInfo.Builder

This builder for chaining.

setCurrencyBytes(ByteString value)

public LtvInfo.Builder setCurrencyBytes(ByteString value)

The currency corresponding to the revenue.

string currency = 2;

Parameter
Name Description
value ByteString

The bytes for currency to set.

Returns
Type Description
LtvInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public LtvInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LtvInfo.Builder
Overrides

setRevenue(double value)

public LtvInfo.Builder setRevenue(double value)

The Lifetime Value revenue of this user.

double revenue = 1;

Parameter
Name Description
value double

The revenue to set.

Returns
Type Description
LtvInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LtvInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LtvInfo.Builder
Overrides