Class LabelValue (3.13.0)

public final class LabelValue extends GeneratedMessageV3 implements LabelValueOrBuilder

A label value.

Protobuf type google.monitoring.v3.LabelValue

Implements

LabelValueOrBuilder

Static Fields

BOOL_VALUE_FIELD_NUMBER

public static final int BOOL_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

Static Methods

getDefaultInstance()

public static LabelValue getDefaultInstance()
Returns
TypeDescription
LabelValue

getDescriptor()

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

newBuilder()

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

newBuilder(LabelValue prototype)

public static LabelValue.Builder newBuilder(LabelValue prototype)
Parameter
NameDescription
prototypeLabelValue
Returns
TypeDescription
LabelValue.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBoolValue()

public boolean getBoolValue()

A bool label value.

bool bool_value = 1;

Returns
TypeDescription
boolean

The boolValue.

getDefaultInstanceForType()

public LabelValue getDefaultInstanceForType()
Returns
TypeDescription
LabelValue

getInt64Value()

public long getInt64Value()

An int64 label value.

int64 int64_value = 2;

Returns
TypeDescription
long

The int64Value.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStringValue()

public String getStringValue()

A string label value.

string string_value = 3;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

A string label value.

string string_value = 3;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValueCase()

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

hasBoolValue()

public boolean hasBoolValue()

A bool label value.

bool bool_value = 1;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasInt64Value()

public boolean hasInt64Value()

An int64 label value.

int64 int64_value = 2;

Returns
TypeDescription
boolean

Whether the int64Value field is set.

hasStringValue()

public boolean hasStringValue()

A string label value.

string string_value = 3;

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

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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