Class TimeSeries.Builder (0.18.0)

public static final class TimeSeries.Builder extends GeneratedMessageV3.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilder

The metrics object for a SubTask.

Protobuf type google.cloud.bigquery.migration.v2alpha.TimeSeries

Implements

TimeSeriesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPoints(Iterable<? extends Point> values)

public TimeSeries.Builder addAllPoints(Iterable<? extends Point> values)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.migration.v2alpha.Point>
Returns
TypeDescription
TimeSeries.Builder

addPoints(Point value)

public TimeSeries.Builder addPoints(Point value)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePoint
Returns
TypeDescription
TimeSeries.Builder

addPoints(Point.Builder builderForValue)

public TimeSeries.Builder addPoints(Point.Builder builderForValue)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePoint.Builder
Returns
TypeDescription
TimeSeries.Builder

addPoints(int index, Point value)

public TimeSeries.Builder addPoints(int index, Point value)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valuePoint
Returns
TypeDescription
TimeSeries.Builder

addPoints(int index, Point.Builder builderForValue)

public TimeSeries.Builder addPoints(int index, Point.Builder builderForValue)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValuePoint.Builder
Returns
TypeDescription
TimeSeries.Builder

addPointsBuilder()

public Point.Builder addPointsBuilder()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Point.Builder

addPointsBuilder(int index)

public Point.Builder addPointsBuilder(int index)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Point.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeries build()
Returns
TypeDescription
TimeSeries

buildPartial()

public TimeSeries buildPartial()
Returns
TypeDescription
TimeSeries

clear()

public TimeSeries.Builder clear()
Returns
TypeDescription
TimeSeries.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMetric()

public TimeSeries.Builder clearMetric()

Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created.

string metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

clearMetricKind()

public TimeSeries.Builder clearMetricKind()

Optional. The metric kind of the time series. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPoints()

public TimeSeries.Builder clearPoints()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeSeries.Builder

clearValueType()

public TimeSeries.Builder clearValueType()

Required. The value type of the time series.

.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

clone()

public TimeSeries.Builder clone()
Returns
TypeDescription
TimeSeries.Builder
Overrides

getDefaultInstanceForType()

public TimeSeries getDefaultInstanceForType()
Returns
TypeDescription
TimeSeries

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetric()

public String getMetric()

Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created.

string metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The metric.

getMetricBytes()

public ByteString getMetricBytes()

Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created.

string metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for metric.

getMetricKind()

public MetricDescriptor.MetricKind getMetricKind()

Optional. The metric kind of the time series. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.api.MetricDescriptor.MetricKind

The metricKind.

getMetricKindValue()

public int getMetricKindValue()

Optional. The metric kind of the time series. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for metricKind.

getPoints(int index)

public Point getPoints(int index)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Point

getPointsBuilder(int index)

public Point.Builder getPointsBuilder(int index)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Point.Builder

getPointsBuilderList()

public List<Point.Builder> getPointsBuilderList()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getPointsCount()

public int getPointsCount()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getPointsList()

public List<Point> getPointsList()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Point>

getPointsOrBuilder(int index)

public PointOrBuilder getPointsOrBuilder(int index)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PointOrBuilder

getPointsOrBuilderList()

public List<? extends PointOrBuilder> getPointsOrBuilderList()

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder>

getValueType()

public MetricDescriptor.ValueType getValueType()

Required. The value type of the time series.

.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.api.MetricDescriptor.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

Required. The value type of the time series.

.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];

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(TimeSeries other)

public TimeSeries.Builder mergeFrom(TimeSeries other)
Parameter
NameDescription
otherTimeSeries
Returns
TypeDescription
TimeSeries.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePoints(int index)

public TimeSeries.Builder removePoints(int index)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeries.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetric(String value)

public TimeSeries.Builder setMetric(String value)

Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created.

string metric = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The metric to set.

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

setMetricBytes(ByteString value)

public TimeSeries.Builder setMetricBytes(ByteString value)

Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created.

string metric = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for metric to set.

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

setMetricKind(MetricDescriptor.MetricKind value)

public TimeSeries.Builder setMetricKind(MetricDescriptor.MetricKind value)

Optional. The metric kind of the time series. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.api.MetricDescriptor.MetricKind

The metricKind to set.

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

setMetricKindValue(int value)

public TimeSeries.Builder setMetricKindValue(int value)

Optional. The metric kind of the time series. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

setPoints(int index, Point value)

public TimeSeries.Builder setPoints(int index, Point value)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valuePoint
Returns
TypeDescription
TimeSeries.Builder

setPoints(int index, Point.Builder builderForValue)

public TimeSeries.Builder setPoints(int index, Point.Builder builderForValue)

Required. 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.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValuePoint.Builder
Returns
TypeDescription
TimeSeries.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValueType(MetricDescriptor.ValueType value)

public TimeSeries.Builder setValueType(MetricDescriptor.ValueType value)

Required. The value type of the time series.

.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuecom.google.api.MetricDescriptor.ValueType

The valueType to set.

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.

setValueTypeValue(int value)

public TimeSeries.Builder setValueTypeValue(int value)

Required. The value type of the time series.

.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TimeSeries.Builder

This builder for chaining.