Class TypedValue.Builder (3.2.9)

public static final class TypedValue.Builder extends GeneratedMessageV3.Builder<TypedValue.Builder> implements TypedValueOrBuilder

A single strongly-typed value.

Protobuf type google.monitoring.v3.TypedValue

Implements

TypedValueOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TypedValue build()
Returns
TypeDescription
TypedValue

buildPartial()

public TypedValue buildPartial()
Returns
TypeDescription
TypedValue

clear()

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

clearBoolValue()

public TypedValue.Builder clearBoolValue()

A Boolean value: true or false.

bool bool_value = 1;

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

clearDistributionValue()

public TypedValue.Builder clearDistributionValue()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
TypedValue.Builder

clearDoubleValue()

public TypedValue.Builder clearDoubleValue()

A 64-bit double-precision floating-point number. Its magnitude is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant digits of precision.

double double_value = 3;

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInt64Value()

public TypedValue.Builder clearInt64Value()

A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.

int64 int64_value = 2;

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public TypedValue.Builder clearStringValue()

A variable-length string value.

string string_value = 4;

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

clearValue()

public TypedValue.Builder clearValue()
Returns
TypeDescription
TypedValue.Builder

clone()

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

getBoolValue()

public boolean getBoolValue()

A Boolean value: true or false.

bool bool_value = 1;

Returns
TypeDescription
boolean

The boolValue.

getDefaultInstanceForType()

public TypedValue getDefaultInstanceForType()
Returns
TypeDescription
TypedValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistributionValue()

public Distribution getDistributionValue()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
com.google.api.Distribution

The distributionValue.

getDistributionValueBuilder()

public Distribution.Builder getDistributionValueBuilder()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
com.google.api.Distribution.Builder

getDistributionValueOrBuilder()

public DistributionOrBuilder getDistributionValueOrBuilder()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
com.google.api.DistributionOrBuilder

getDoubleValue()

public double getDoubleValue()

A 64-bit double-precision floating-point number. Its magnitude is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant digits of precision.

double double_value = 3;

Returns
TypeDescription
double

The doubleValue.

getInt64Value()

public long getInt64Value()

A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.

int64 int64_value = 2;

Returns
TypeDescription
long

The int64Value.

getStringValue()

public String getStringValue()

A variable-length string value.

string string_value = 4;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

A variable-length string value.

string string_value = 4;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getValueCase()

public TypedValue.ValueCase getValueCase()
Returns
TypeDescription
TypedValue.ValueCase

hasBoolValue()

public boolean hasBoolValue()

A Boolean value: true or false.

bool bool_value = 1;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasDistributionValue()

public boolean hasDistributionValue()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
boolean

Whether the distributionValue field is set.

hasDoubleValue()

public boolean hasDoubleValue()

A 64-bit double-precision floating-point number. Its magnitude is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant digits of precision.

double double_value = 3;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasInt64Value()

public boolean hasInt64Value()

A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.

int64 int64_value = 2;

Returns
TypeDescription
boolean

Whether the int64Value field is set.

hasStringValue()

public boolean hasStringValue()

A variable-length string value.

string string_value = 4;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDistributionValue(Distribution value)

public TypedValue.Builder mergeDistributionValue(Distribution value)

A distribution value.

.google.api.Distribution distribution_value = 5;

Parameter
NameDescription
valuecom.google.api.Distribution
Returns
TypeDescription
TypedValue.Builder

mergeFrom(TypedValue other)

public TypedValue.Builder mergeFrom(TypedValue other)
Parameter
NameDescription
otherTypedValue
Returns
TypeDescription
TypedValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBoolValue(boolean value)

public TypedValue.Builder setBoolValue(boolean value)

A Boolean value: true or false.

bool bool_value = 1;

Parameter
NameDescription
valueboolean

The boolValue to set.

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

setDistributionValue(Distribution value)

public TypedValue.Builder setDistributionValue(Distribution value)

A distribution value.

.google.api.Distribution distribution_value = 5;

Parameter
NameDescription
valuecom.google.api.Distribution
Returns
TypeDescription
TypedValue.Builder

setDistributionValue(Distribution.Builder builderForValue)

public TypedValue.Builder setDistributionValue(Distribution.Builder builderForValue)

A distribution value.

.google.api.Distribution distribution_value = 5;

Parameter
NameDescription
builderForValuecom.google.api.Distribution.Builder
Returns
TypeDescription
TypedValue.Builder

setDoubleValue(double value)

public TypedValue.Builder setDoubleValue(double value)

A 64-bit double-precision floating-point number. Its magnitude is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant digits of precision.

double double_value = 3;

Parameter
NameDescription
valuedouble

The doubleValue to set.

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInt64Value(long value)

public TypedValue.Builder setInt64Value(long value)

A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.

int64 int64_value = 2;

Parameter
NameDescription
valuelong

The int64Value to set.

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

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

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

setStringValue(String value)

public TypedValue.Builder setStringValue(String value)

A variable-length string value.

string string_value = 4;

Parameter
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public TypedValue.Builder setStringValueBytes(ByteString value)

A variable-length string value.

string string_value = 4;

Parameter
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
TypedValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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