public static final class TypedValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder> implements TypedValueOrBuilder
A single strongly-typed value.Protobuf type
google.monitoring.v3.TypedValue| Modifier and Type | Method and Description |
|---|---|
TypedValue |
build() |
TypedValue |
buildPartial() |
TypedValue.Builder |
clear() |
TypedValue.Builder |
clearBoolValue()
A Boolean value: `true` or `false`.
|
TypedValue.Builder |
clearDistributionValue()
A distribution value.
|
TypedValue.Builder |
clearDoubleValue()
A 64-bit double-precision floating-point number.
|
TypedValue.Builder |
clearInt64Value()
A 64-bit integer.
|
TypedValue.Builder |
clearStringValue()
A variable-length string value.
|
TypedValue.Builder |
clearValue() |
boolean |
getBoolValue()
A Boolean value: `true` or `false`.
|
TypedValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.api.Distribution |
getDistributionValue()
A distribution value.
|
com.google.api.Distribution.Builder |
getDistributionValueBuilder()
A distribution value.
|
com.google.api.DistributionOrBuilder |
getDistributionValueOrBuilder()
A distribution value.
|
double |
getDoubleValue()
A 64-bit double-precision floating-point number.
|
long |
getInt64Value()
A 64-bit integer.
|
String |
getStringValue()
A variable-length string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A variable-length string value.
|
TypedValue.ValueCase |
getValueCase() |
boolean |
hasBoolValue()
A Boolean value: `true` or `false`.
|
boolean |
hasDistributionValue()
A distribution value.
|
boolean |
hasDoubleValue()
A 64-bit double-precision floating-point number.
|
boolean |
hasInt64Value()
A 64-bit integer.
|
boolean |
hasStringValue()
A variable-length string value.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TypedValue.Builder |
mergeDistributionValue(com.google.api.Distribution value)
A distribution value.
|
TypedValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TypedValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
TypedValue.Builder |
mergeFrom(TypedValue other) |
TypedValue.Builder |
setBoolValue(boolean value)
A Boolean value: `true` or `false`.
|
TypedValue.Builder |
setDistributionValue(com.google.api.Distribution.Builder builderForValue)
A distribution value.
|
TypedValue.Builder |
setDistributionValue(com.google.api.Distribution value)
A distribution value.
|
TypedValue.Builder |
setDoubleValue(double value)
A 64-bit double-precision floating-point number.
|
TypedValue.Builder |
setInt64Value(long value)
A 64-bit integer.
|
TypedValue.Builder |
setStringValue(String value)
A variable-length string value.
|
TypedValue.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
A variable-length string value.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder>public TypedValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder>public TypedValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TypedValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TypedValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TypedValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TypedValue.Builder>public TypedValue.Builder mergeFrom(TypedValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder>public TypedValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TypedValue.Builder>IOExceptionpublic TypedValue.ValueCase getValueCase()
getValueCase in interface TypedValueOrBuilderpublic TypedValue.Builder clearValue()
public boolean hasBoolValue()
A Boolean value: `true` or `false`.
bool bool_value = 1;hasBoolValue in interface TypedValueOrBuilderpublic boolean getBoolValue()
A Boolean value: `true` or `false`.
bool bool_value = 1;getBoolValue in interface TypedValueOrBuilderpublic TypedValue.Builder setBoolValue(boolean value)
A Boolean value: `true` or `false`.
bool bool_value = 1;value - The boolValue to set.public TypedValue.Builder clearBoolValue()
A Boolean value: `true` or `false`.
bool bool_value = 1;public boolean hasInt64Value()
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
int64 int64_value = 2;hasInt64Value in interface TypedValueOrBuilderpublic long getInt64Value()
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
int64 int64_value = 2;getInt64Value in interface TypedValueOrBuilderpublic TypedValue.Builder setInt64Value(long value)
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
int64 int64_value = 2;value - The int64Value to set.public TypedValue.Builder clearInt64Value()
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
int64 int64_value = 2;public boolean hasDoubleValue()
A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.
double double_value = 3;hasDoubleValue in interface TypedValueOrBuilderpublic double getDoubleValue()
A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.
double double_value = 3;getDoubleValue in interface TypedValueOrBuilderpublic TypedValue.Builder setDoubleValue(double value)
A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.
double double_value = 3;value - The doubleValue to set.public TypedValue.Builder clearDoubleValue()
A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.
double double_value = 3;public boolean hasStringValue()
A variable-length string value.
string string_value = 4;hasStringValue in interface TypedValueOrBuilderpublic String getStringValue()
A variable-length string value.
string string_value = 4;getStringValue in interface TypedValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
A variable-length string value.
string string_value = 4;getStringValueBytes in interface TypedValueOrBuilderpublic TypedValue.Builder setStringValue(String value)
A variable-length string value.
string string_value = 4;value - The stringValue to set.public TypedValue.Builder clearStringValue()
A variable-length string value.
string string_value = 4;public TypedValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
A variable-length string value.
string string_value = 4;value - The bytes for stringValue to set.public boolean hasDistributionValue()
A distribution value.
.google.api.Distribution distribution_value = 5;hasDistributionValue in interface TypedValueOrBuilderpublic com.google.api.Distribution getDistributionValue()
A distribution value.
.google.api.Distribution distribution_value = 5;getDistributionValue in interface TypedValueOrBuilderpublic TypedValue.Builder setDistributionValue(com.google.api.Distribution value)
A distribution value.
.google.api.Distribution distribution_value = 5;public TypedValue.Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue)
A distribution value.
.google.api.Distribution distribution_value = 5;public TypedValue.Builder mergeDistributionValue(com.google.api.Distribution value)
A distribution value.
.google.api.Distribution distribution_value = 5;public TypedValue.Builder clearDistributionValue()
A distribution value.
.google.api.Distribution distribution_value = 5;public com.google.api.Distribution.Builder getDistributionValueBuilder()
A distribution value.
.google.api.Distribution distribution_value = 5;public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.Distribution distribution_value = 5;getDistributionValueOrBuilder in interface TypedValueOrBuilderCopyright © 2026 Google LLC. All rights reserved.