- 3.55.0 (latest)
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 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()
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.monitoring.v3.Point> |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | Point |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue | Point.Builder |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | Point |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Point.Builder |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Point.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
build()
public TimeSeries build()
Returns | |
---|---|
Type | Description |
TimeSeries |
buildPartial()
public TimeSeries buildPartial()
Returns | |
---|---|
Type | Description |
TimeSeries |
clear()
public TimeSeries.Builder clear()
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
clearField(Descriptors.FieldDescriptor field)
public TimeSeries.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
TimeSeries.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeSeries.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
TimeSeries.Builder | This builder for chaining. |
clone()
public TimeSeries.Builder clone()
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
getDefaultInstanceForType()
public TimeSeries getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TimeSeries |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the resource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TimeSeries other)
public TimeSeries.Builder mergeFrom(TimeSeries other)
Parameter | |
---|---|
Name | Description |
other | TimeSeries |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeSeries.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TimeSeries.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MonitoredResourceMetadata |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.Metric |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MonitoredResource |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MonitoredResourceMetadata |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue | com.google.api.MonitoredResourceMetadata.Builder |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.Metric |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue | com.google.api.Metric.Builder |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MetricDescriptor.MetricKind The metricKind to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for metricKind to set. |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | Point |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Point.Builder |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MonitoredResource |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue | com.google.api.MonitoredResource.Builder |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The unit to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for unit to set. |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | com.google.api.MetricDescriptor.ValueType The valueType to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for valueType to set. |
Returns | |
---|---|
Type | Description |
TimeSeries.Builder | This builder for chaining. |