Class NumericValue.Builder (0.52.0)

public static final class NumericValue.Builder extends GeneratedMessageV3.Builder<NumericValue.Builder> implements NumericValueOrBuilder

To represent a number.

Protobuf type google.analytics.data.v1alpha.NumericValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NumericValue build()
Returns
TypeDescription
NumericValue

buildPartial()

public NumericValue buildPartial()
Returns
TypeDescription
NumericValue

clear()

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

clearDoubleValue()

public NumericValue.Builder clearDoubleValue()

Double value

double double_value = 2;

Returns
TypeDescription
NumericValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInt64Value()

public NumericValue.Builder clearInt64Value()

Integer value

int64 int64_value = 1;

Returns
TypeDescription
NumericValue.Builder

This builder for chaining.

clearOneValue()

public NumericValue.Builder clearOneValue()
Returns
TypeDescription
NumericValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NumericValue getDefaultInstanceForType()
Returns
TypeDescription
NumericValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoubleValue()

public double getDoubleValue()

Double value

double double_value = 2;

Returns
TypeDescription
double

The doubleValue.

getInt64Value()

public long getInt64Value()

Integer value

int64 int64_value = 1;

Returns
TypeDescription
long

The int64Value.

getOneValueCase()

public NumericValue.OneValueCase getOneValueCase()
Returns
TypeDescription
NumericValue.OneValueCase

hasDoubleValue()

public boolean hasDoubleValue()

Double value

double double_value = 2;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasInt64Value()

public boolean hasInt64Value()

Integer value

int64 int64_value = 1;

Returns
TypeDescription
boolean

Whether the int64Value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NumericValue other)

public NumericValue.Builder mergeFrom(NumericValue other)
Parameter
NameDescription
otherNumericValue
Returns
TypeDescription
NumericValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDoubleValue(double value)

public NumericValue.Builder setDoubleValue(double value)

Double value

double double_value = 2;

Parameter
NameDescription
valuedouble

The doubleValue to set.

Returns
TypeDescription
NumericValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInt64Value(long value)

public NumericValue.Builder setInt64Value(long value)

Integer value

int64 int64_value = 1;

Parameter
NameDescription
valuelong

The int64Value to set.

Returns
TypeDescription
NumericValue.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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