Class TypedValue

public final class TypedValue extends GeneratedMessageV3 implements TypedValueOrBuilder

A single strongly-typed value.

Protobuf type google.monitoring.v3.TypedValue

Implements

TypedValueOrBuilder

Fields

BOOL_VALUE_FIELD_NUMBER

public static final int BOOL_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

DISTRIBUTION_VALUE_FIELD_NUMBER

public static final int DISTRIBUTION_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

DOUBLE_VALUE_FIELD_NUMBER

public static final int DOUBLE_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

INT64_VALUE_FIELD_NUMBER

public static final int INT64_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_VALUE_FIELD_NUMBER

public static final int STRING_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBoolValue()

public boolean getBoolValue()

A Boolean value: true or false.

bool bool_value = 1;

Returns
TypeDescription
boolean

The boolValue.

getDefaultInstance()

public static TypedValue getDefaultInstance()
Returns
TypeDescription
TypedValue

getDefaultInstanceForType()

public TypedValue getDefaultInstanceForType()
Returns
TypeDescription
TypedValue

getDescriptor()

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

getDistributionValue()

public Distribution getDistributionValue()

A distribution value.

.google.api.Distribution distribution_value = 5;

Returns
TypeDescription
com.google.api.Distribution

The distributionValue.

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.

getParserForType()

public Parser<TypedValue> getParserForType()
Returns
TypeDescription
Parser<TypedValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static TypedValue.Builder newBuilder()
Returns
TypeDescription
TypedValue.Builder

newBuilder(TypedValue prototype)

public static TypedValue.Builder newBuilder(TypedValue prototype)
Parameter
NameDescription
prototypeTypedValue
Returns
TypeDescription
TypedValue.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TypedValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TypedValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static TypedValue parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TypedValue parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TypedValue parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TypedValue parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TypedValue parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TypedValue parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TypedValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TypedValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TypedValue> parser()
Returns
TypeDescription
Parser<TypedValue>

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException