Class TimeSeriesDescriptor.ValueDescriptor.Builder (3.37.0)

public static final class TimeSeriesDescriptor.ValueDescriptor.Builder extends GeneratedMessageV3.Builder<TimeSeriesDescriptor.ValueDescriptor.Builder> implements TimeSeriesDescriptor.ValueDescriptorOrBuilder

A descriptor for the value columns in a data point.

Protobuf type google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeriesDescriptor.ValueDescriptor build()
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor

buildPartial()

public TimeSeriesDescriptor.ValueDescriptor buildPartial()
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor

clear()

public TimeSeriesDescriptor.ValueDescriptor.Builder clear()
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public TimeSeriesDescriptor.ValueDescriptor.Builder clearKey()

The value key.

string key = 1;

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

clearMetricKind()

public TimeSeriesDescriptor.ValueDescriptor.Builder clearMetricKind()

The value stream kind.

.google.api.MetricDescriptor.MetricKind metric_kind = 3;

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnit()

public TimeSeriesDescriptor.ValueDescriptor.Builder clearUnit()

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

string unit = 4;

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

clearValueType()

public TimeSeriesDescriptor.ValueDescriptor.Builder clearValueType()

The value type.

.google.api.MetricDescriptor.ValueType value_type = 2;

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

clone()

public TimeSeriesDescriptor.ValueDescriptor.Builder clone()
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder
Overrides

getDefaultInstanceForType()

public TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType()
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

The value key.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The value key.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getMetricKind()

public MetricDescriptor.MetricKind getMetricKind()

The value stream kind.

.google.api.MetricDescriptor.MetricKind metric_kind = 3;

Returns
TypeDescription
com.google.api.MetricDescriptor.MetricKind

The metricKind.

getMetricKindValue()

public int getMetricKindValue()

The value stream kind.

.google.api.MetricDescriptor.MetricKind metric_kind = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for metricKind.

getUnit()

public String getUnit()

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

string unit = 4;

Returns
TypeDescription
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

string unit = 4;

Returns
TypeDescription
ByteString

The bytes for unit.

getValueType()

public MetricDescriptor.ValueType getValueType()

The value type.

.google.api.MetricDescriptor.ValueType value_type = 2;

Returns
TypeDescription
com.google.api.MetricDescriptor.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

The value type.

.google.api.MetricDescriptor.ValueType value_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for valueType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimeSeriesDescriptor.ValueDescriptor other)

public TimeSeriesDescriptor.ValueDescriptor.Builder mergeFrom(TimeSeriesDescriptor.ValueDescriptor other)
Parameter
NameDescription
otherTimeSeriesDescriptor.ValueDescriptor
Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setKey(String value)

The value key.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setKeyBytes(ByteString value)

The value key.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setMetricKind(MetricDescriptor.MetricKind value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setMetricKind(MetricDescriptor.MetricKind value)

The value stream kind.

.google.api.MetricDescriptor.MetricKind metric_kind = 3;

Parameter
NameDescription
valuecom.google.api.MetricDescriptor.MetricKind

The metricKind to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setMetricKindValue(int value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setMetricKindValue(int value)

The value stream kind.

.google.api.MetricDescriptor.MetricKind metric_kind = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for metricKind to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

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

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

setUnit(String value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setUnit(String value)

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

string unit = 4;

Parameter
NameDescription
valueString

The unit to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setUnitBytes(ByteString value)

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

string unit = 4;

Parameter
NameDescription
valueByteString

The bytes for unit to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValueType(MetricDescriptor.ValueType value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setValueType(MetricDescriptor.ValueType value)

The value type.

.google.api.MetricDescriptor.ValueType value_type = 2;

Parameter
NameDescription
valuecom.google.api.MetricDescriptor.ValueType

The valueType to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.

setValueTypeValue(int value)

public TimeSeriesDescriptor.ValueDescriptor.Builder setValueTypeValue(int value)

The value type.

.google.api.MetricDescriptor.ValueType value_type = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for valueType to set.

Returns
TypeDescription
TimeSeriesDescriptor.ValueDescriptor.Builder

This builder for chaining.