- 3.49.0 (latest)
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
public static final class TimeSeries.Builder extends GeneratedMessageV3.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilder
A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.
Protobuf type google.monitoring.v3.TimeSeries
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TimeSeries.BuilderImplements
TimeSeriesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllPoints(Iterable<? extends Point> values)
public TimeSeries.Builder addAllPoints(Iterable<? extends Point> values)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
values | Iterable<? extends com.google.monitoring.v3.Point> |
Type | Description |
TimeSeries.Builder |
addPoints(Point value)
public TimeSeries.Builder addPoints(Point value)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
value | Point |
Type | Description |
TimeSeries.Builder |
addPoints(Point.Builder builderForValue)
public TimeSeries.Builder addPoints(Point.Builder builderForValue)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
builderForValue | Point.Builder |
Type | Description |
TimeSeries.Builder |
addPoints(int index, Point value)
public TimeSeries.Builder addPoints(int index, Point value)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
value | Point |
Type | Description |
TimeSeries.Builder |
addPoints(int index, Point.Builder builderForValue)
public TimeSeries.Builder addPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
builderForValue | Point.Builder |
Type | Description |
TimeSeries.Builder |
addPointsBuilder()
public Point.Builder addPointsBuilder()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
Point.Builder |
addPointsBuilder(int index)
public Point.Builder addPointsBuilder(int index)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
Type | Description |
Point.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TimeSeries.Builder |
build()
public TimeSeries build()
Type | Description |
TimeSeries |
buildPartial()
public TimeSeries buildPartial()
Type | Description |
TimeSeries |
clear()
public TimeSeries.Builder clear()
Type | Description |
TimeSeries.Builder |
clearField(Descriptors.FieldDescriptor field)
public TimeSeries.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TimeSeries.Builder |
clearMetadata()
public TimeSeries.Builder clearMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Type | Description |
TimeSeries.Builder |
clearMetric()
public TimeSeries.Builder clearMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Type | Description |
TimeSeries.Builder |
clearMetricKind()
public TimeSeries.Builder clearMetricKind()
The metric kind of the time series. When listing time series, this metric
kind might be different from the metric kind of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the metric kind of the associated metric. If the associated
metric's descriptor must be auto-created, then this field specifies the
metric kind of the new descriptor and must be either GAUGE
(the default)
or CUMULATIVE
.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
Type | Description |
TimeSeries.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeSeries.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TimeSeries.Builder |
clearPoints()
public TimeSeries.Builder clearPoints()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
TimeSeries.Builder |
clearResource()
public TimeSeries.Builder clearResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Type | Description |
TimeSeries.Builder |
clearUnit()
public TimeSeries.Builder clearUnit()
The units in which the metric value is reported. It is only applicable
if the value_type
is INT64
, DOUBLE
, or DISTRIBUTION
. The unit
defines the representation of the stored metric values.
string unit = 8;
Type | Description |
TimeSeries.Builder | This builder for chaining. |
clearValueType()
public TimeSeries.Builder clearValueType()
The value type of the time series. When listing time series, this value
type might be different from the value type of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the type of the data in the points
field.
.google.api.MetricDescriptor.ValueType value_type = 4;
Type | Description |
TimeSeries.Builder | This builder for chaining. |
clone()
public TimeSeries.Builder clone()
Type | Description |
TimeSeries.Builder |
getDefaultInstanceForType()
public TimeSeries getDefaultInstanceForType()
Type | Description |
TimeSeries |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMetadata()
public MonitoredResourceMetadata getMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Type | Description |
com.google.api.MonitoredResourceMetadata | The metadata. |
getMetadataBuilder()
public MonitoredResourceMetadata.Builder getMetadataBuilder()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Type | Description |
com.google.api.MonitoredResourceMetadata.Builder |
getMetadataOrBuilder()
public MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Type | Description |
com.google.api.MonitoredResourceMetadataOrBuilder |
getMetric()
public Metric getMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Type | Description |
com.google.api.Metric | The metric. |
getMetricBuilder()
public Metric.Builder getMetricBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Type | Description |
com.google.api.Metric.Builder |
getMetricKind()
public MetricDescriptor.MetricKind getMetricKind()
The metric kind of the time series. When listing time series, this metric
kind might be different from the metric kind of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the metric kind of the associated metric. If the associated
metric's descriptor must be auto-created, then this field specifies the
metric kind of the new descriptor and must be either GAUGE
(the default)
or CUMULATIVE
.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
Type | Description |
com.google.api.MetricDescriptor.MetricKind | The metricKind. |
getMetricKindValue()
public int getMetricKindValue()
The metric kind of the time series. When listing time series, this metric
kind might be different from the metric kind of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the metric kind of the associated metric. If the associated
metric's descriptor must be auto-created, then this field specifies the
metric kind of the new descriptor and must be either GAUGE
(the default)
or CUMULATIVE
.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
Type | Description |
int | The enum numeric value on the wire for metricKind. |
getMetricOrBuilder()
public MetricOrBuilder getMetricOrBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Type | Description |
com.google.api.MetricOrBuilder |
getPoints(int index)
public Point getPoints(int index)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
Type | Description |
Point |
getPointsBuilder(int index)
public Point.Builder getPointsBuilder(int index)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
Type | Description |
Point.Builder |
getPointsBuilderList()
public List<Point.Builder> getPointsBuilderList()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
List<Builder> |
getPointsCount()
public int getPointsCount()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
int |
getPointsList()
public List<Point> getPointsList()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
List<Point> |
getPointsOrBuilder(int index)
public PointOrBuilder getPointsOrBuilder(int index)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
Type | Description |
PointOrBuilder |
getPointsOrBuilderList()
public List<? extends PointOrBuilder> getPointsOrBuilderList()
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Type | Description |
List<? extends com.google.monitoring.v3.PointOrBuilder> |
getResource()
public MonitoredResource getResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Type | Description |
com.google.api.MonitoredResource | The resource. |
getResourceBuilder()
public MonitoredResource.Builder getResourceBuilder()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Type | Description |
com.google.api.MonitoredResource.Builder |
getResourceOrBuilder()
public MonitoredResourceOrBuilder getResourceOrBuilder()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Type | Description |
com.google.api.MonitoredResourceOrBuilder |
getUnit()
public String getUnit()
The units in which the metric value is reported. It is only applicable
if the value_type
is INT64
, DOUBLE
, or DISTRIBUTION
. The unit
defines the representation of the stored metric values.
string unit = 8;
Type | Description |
String | The unit. |
getUnitBytes()
public ByteString getUnitBytes()
The units in which the metric value is reported. It is only applicable
if the value_type
is INT64
, DOUBLE
, or DISTRIBUTION
. The unit
defines the representation of the stored metric values.
string unit = 8;
Type | Description |
ByteString | The bytes for unit. |
getValueType()
public MetricDescriptor.ValueType getValueType()
The value type of the time series. When listing time series, this value
type might be different from the value type of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the type of the data in the points
field.
.google.api.MetricDescriptor.ValueType value_type = 4;
Type | Description |
com.google.api.MetricDescriptor.ValueType | The valueType. |
getValueTypeValue()
public int getValueTypeValue()
The value type of the time series. When listing time series, this value
type might be different from the value type of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the type of the data in the points
field.
.google.api.MetricDescriptor.ValueType value_type = 4;
Type | Description |
int | The enum numeric value on the wire for valueType. |
hasMetadata()
public boolean hasMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Type | Description |
boolean | Whether the metadata field is set. |
hasMetric()
public boolean hasMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Type | Description |
boolean | Whether the metric field is set. |
hasResource()
public boolean hasResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Type | Description |
boolean | Whether the resource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TimeSeries other)
public TimeSeries.Builder mergeFrom(TimeSeries other)
Name | Description |
other | TimeSeries |
Type | Description |
TimeSeries.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeSeries.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeSeries.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TimeSeries.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TimeSeries.Builder |
mergeMetadata(MonitoredResourceMetadata value)
public TimeSeries.Builder mergeMetadata(MonitoredResourceMetadata value)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Name | Description |
value | com.google.api.MonitoredResourceMetadata |
Type | Description |
TimeSeries.Builder |
mergeMetric(Metric value)
public TimeSeries.Builder mergeMetric(Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Name | Description |
value | com.google.api.Metric |
Type | Description |
TimeSeries.Builder |
mergeResource(MonitoredResource value)
public TimeSeries.Builder mergeResource(MonitoredResource value)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Name | Description |
value | com.google.api.MonitoredResource |
Type | Description |
TimeSeries.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TimeSeries.Builder |
removePoints(int index)
public TimeSeries.Builder removePoints(int index)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
Type | Description |
TimeSeries.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TimeSeries.Builder |
setMetadata(MonitoredResourceMetadata value)
public TimeSeries.Builder setMetadata(MonitoredResourceMetadata value)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Name | Description |
value | com.google.api.MonitoredResourceMetadata |
Type | Description |
TimeSeries.Builder |
setMetadata(MonitoredResourceMetadata.Builder builderForValue)
public TimeSeries.Builder setMetadata(MonitoredResourceMetadata.Builder builderForValue)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
Name | Description |
builderForValue | com.google.api.MonitoredResourceMetadata.Builder |
Type | Description |
TimeSeries.Builder |
setMetric(Metric value)
public TimeSeries.Builder setMetric(Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Name | Description |
value | com.google.api.Metric |
Type | Description |
TimeSeries.Builder |
setMetric(Metric.Builder builderForValue)
public TimeSeries.Builder setMetric(Metric.Builder builderForValue)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
Name | Description |
builderForValue | com.google.api.Metric.Builder |
Type | Description |
TimeSeries.Builder |
setMetricKind(MetricDescriptor.MetricKind value)
public TimeSeries.Builder setMetricKind(MetricDescriptor.MetricKind value)
The metric kind of the time series. When listing time series, this metric
kind might be different from the metric kind of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the metric kind of the associated metric. If the associated
metric's descriptor must be auto-created, then this field specifies the
metric kind of the new descriptor and must be either GAUGE
(the default)
or CUMULATIVE
.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
Name | Description |
value | com.google.api.MetricDescriptor.MetricKind The metricKind to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setMetricKindValue(int value)
public TimeSeries.Builder setMetricKindValue(int value)
The metric kind of the time series. When listing time series, this metric
kind might be different from the metric kind of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the metric kind of the associated metric. If the associated
metric's descriptor must be auto-created, then this field specifies the
metric kind of the new descriptor and must be either GAUGE
(the default)
or CUMULATIVE
.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;
Name | Description |
value | int The enum numeric value on the wire for metricKind to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setPoints(int index, Point value)
public TimeSeries.Builder setPoints(int index, Point value)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
value | Point |
Type | Description |
TimeSeries.Builder |
setPoints(int index, Point.Builder builderForValue)
public TimeSeries.Builder setPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, then
the value type of the descriptor is determined by the point's type, which
must be BOOL
, INT64
, DOUBLE
, or DISTRIBUTION
.
repeated .google.monitoring.v3.Point points = 5;
Name | Description |
index | int |
builderForValue | Point.Builder |
Type | Description |
TimeSeries.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TimeSeries.Builder |
setResource(MonitoredResource value)
public TimeSeries.Builder setResource(MonitoredResource value)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Name | Description |
value | com.google.api.MonitoredResource |
Type | Description |
TimeSeries.Builder |
setResource(MonitoredResource.Builder builderForValue)
public TimeSeries.Builder setResource(MonitoredResource.Builder builderForValue)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics.
.google.api.MonitoredResource resource = 2;
Name | Description |
builderForValue | com.google.api.MonitoredResource.Builder |
Type | Description |
TimeSeries.Builder |
setUnit(String value)
public TimeSeries.Builder setUnit(String value)
The units in which the metric value is reported. It is only applicable
if the value_type
is INT64
, DOUBLE
, or DISTRIBUTION
. The unit
defines the representation of the stored metric values.
string unit = 8;
Name | Description |
value | String The unit to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setUnitBytes(ByteString value)
public TimeSeries.Builder setUnitBytes(ByteString value)
The units in which the metric value is reported. It is only applicable
if the value_type
is INT64
, DOUBLE
, or DISTRIBUTION
. The unit
defines the representation of the stored metric values.
string unit = 8;
Name | Description |
value | ByteString The bytes for unit to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TimeSeries.Builder |
setValueType(MetricDescriptor.ValueType value)
public TimeSeries.Builder setValueType(MetricDescriptor.ValueType value)
The value type of the time series. When listing time series, this value
type might be different from the value type of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the type of the data in the points
field.
.google.api.MetricDescriptor.ValueType value_type = 4;
Name | Description |
value | com.google.api.MetricDescriptor.ValueType The valueType to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setValueTypeValue(int value)
public TimeSeries.Builder setValueTypeValue(int value)
The value type of the time series. When listing time series, this value
type might be different from the value type of the associated metric if
this time series is an alignment or reduction of other time series.
When creating a time series, this field is optional. If present, it must be
the same as the type of the data in the points
field.
.google.api.MetricDescriptor.ValueType value_type = 4;
Name | Description |
value | int The enum numeric value on the wire for valueType to set. |
Type | Description |
TimeSeries.Builder | This builder for chaining. |