public static final class TypedValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder> implements TypedValueOrBuilder
A single strongly-typed value.Protobuf type
google.monitoring.v3.TypedValue| Modifier and Type | Method and Description |
|---|---|
TypedValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TypedValue.Builder |
clearInt64Value()
A 64-bit integer.
|
TypedValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TypedValue.Builder |
clearStringValue()
A variable-length string value.
|
TypedValue.Builder |
clearValue() |
TypedValue.Builder |
clone() |
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.
|
java.lang.String |
getStringValue()
A variable-length string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A variable-length string value.
|
TypedValue.ValueCase |
getValueCase() |
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TypedValue.Builder |
setInt64Value(long value)
A 64-bit integer.
|
TypedValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TypedValue.Builder |
setStringValue(java.lang.String value)
A variable-length string value.
|
TypedValue.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
A variable-length string value.
|
TypedValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public 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.GeneratedMessageV3.Builder<TypedValue.Builder>public TypedValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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>java.io.IOExceptionpublic TypedValue.ValueCase getValueCase()
getValueCase in interface TypedValueOrBuilderpublic TypedValue.Builder clearValue()
public boolean getBoolValue()
A Boolean value: `true` or `false`.
optional bool bool_value = 1;getBoolValue in interface TypedValueOrBuilderpublic TypedValue.Builder setBoolValue(boolean value)
A Boolean value: `true` or `false`.
optional bool bool_value = 1;public TypedValue.Builder clearBoolValue()
A Boolean value: `true` or `false`.
optional bool bool_value = 1;public long getInt64Value()
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
optional 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>.
optional int64 int64_value = 2;public TypedValue.Builder clearInt64Value()
A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
optional int64 int64_value = 2;public 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.
optional 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.
optional double double_value = 3;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.
optional double double_value = 3;public java.lang.String getStringValue()
A variable-length string value.
optional string string_value = 4;getStringValue in interface TypedValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
A variable-length string value.
optional string string_value = 4;getStringValueBytes in interface TypedValueOrBuilderpublic TypedValue.Builder setStringValue(java.lang.String value)
A variable-length string value.
optional string string_value = 4;public TypedValue.Builder clearStringValue()
A variable-length string value.
optional string string_value = 4;public TypedValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
A variable-length string value.
optional string string_value = 4;public com.google.api.Distribution getDistributionValue()
A distribution value.
optional .google.api.Distribution distribution_value = 5;getDistributionValue in interface TypedValueOrBuilderpublic TypedValue.Builder setDistributionValue(com.google.api.Distribution value)
A distribution value.
optional .google.api.Distribution distribution_value = 5;public TypedValue.Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue)
A distribution value.
optional .google.api.Distribution distribution_value = 5;public TypedValue.Builder mergeDistributionValue(com.google.api.Distribution value)
A distribution value.
optional .google.api.Distribution distribution_value = 5;public TypedValue.Builder clearDistributionValue()
A distribution value.
optional .google.api.Distribution distribution_value = 5;public com.google.api.Distribution.Builder getDistributionValueBuilder()
A distribution value.
optional .google.api.Distribution distribution_value = 5;public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
optional .google.api.Distribution distribution_value = 5;getDistributionValueOrBuilder in interface TypedValueOrBuilderpublic final TypedValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>public final TypedValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TypedValue.Builder>