public static final class TimeSeriesDescriptor.ValueDescriptor.Builder extends GeneratedMessage.Builder<TimeSeriesDescriptor.ValueDescriptor.Builder> implements TimeSeriesDescriptor.ValueDescriptorOrBuilderA descriptor for the value columns in a data point.
Protobuf type google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TimeSeriesDescriptor.ValueDescriptor.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TimeSeriesDescriptor.ValueDescriptor build()| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor |
|
buildPartial()
public TimeSeriesDescriptor.ValueDescriptor buildPartial()| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor |
|
clear()
public TimeSeriesDescriptor.ValueDescriptor.Builder clear()| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
|
clearKey()
public TimeSeriesDescriptor.ValueDescriptor.Builder clearKey()The value key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
clearValueType()
public TimeSeriesDescriptor.ValueDescriptor.Builder clearValueType()The value type.
.google.api.MetricDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
public String getKey()The value key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()The value key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getMetricKind()
public MetricDescriptor.MetricKind getMetricKind()The value stream kind.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.api.MetricDescriptor.MetricKind |
The metricKind. |
getMetricKindValue()
public int getMetricKindValue()The value stream kind.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for unit. |
getValueType()
public MetricDescriptor.ValueType getValueType()The value type.
.google.api.MetricDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.api.MetricDescriptor.ValueType |
The valueType. |
getValueTypeValue()
public int getValueTypeValue()The value type.
.google.api.MetricDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for valueType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TimeSeriesDescriptor.ValueDescriptor other)
public TimeSeriesDescriptor.ValueDescriptor.Builder mergeFrom(TimeSeriesDescriptor.ValueDescriptor other)| Parameter | |
|---|---|
| Name | Description |
other |
TimeSeriesDescriptor.ValueDescriptor |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeSeriesDescriptor.ValueDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TimeSeriesDescriptor.ValueDescriptor.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
|
setKey(String value)
public TimeSeriesDescriptor.ValueDescriptor.Builder setKey(String value)The value key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe key to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
setKeyBytes(ByteString value)
public TimeSeriesDescriptor.ValueDescriptor.Builder setKeyBytes(ByteString value)The value key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
com.google.api.MetricDescriptor.MetricKindThe metricKind to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for metricKind to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |
setValueType(MetricDescriptor.ValueType value)
public TimeSeriesDescriptor.ValueDescriptor.Builder setValueType(MetricDescriptor.ValueType value)The value type.
.google.api.MetricDescriptor.ValueType value_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.api.MetricDescriptor.ValueTypeThe valueType to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for valueType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesDescriptor.ValueDescriptor.Builder |
This builder for chaining. |