public static final class TimeSeries.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilder
The metrics object for a SubTask.Protobuf type
google.cloud.bigquery.migration.v2.TimeSeries| Modifier and Type | Method and Description |
|---|---|
TimeSeries.Builder |
addAllPoints(Iterable<? extends Point> values)
Required.
|
TimeSeries.Builder |
addPoints(int index,
Point.Builder builderForValue)
Required.
|
TimeSeries.Builder |
addPoints(int index,
Point value)
Required.
|
TimeSeries.Builder |
addPoints(Point.Builder builderForValue)
Required.
|
TimeSeries.Builder |
addPoints(Point value)
Required.
|
Point.Builder |
addPointsBuilder()
Required.
|
Point.Builder |
addPointsBuilder(int index)
Required.
|
TimeSeries.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TimeSeries |
build() |
TimeSeries |
buildPartial() |
TimeSeries.Builder |
clear() |
TimeSeries.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TimeSeries.Builder |
clearMetric()
Required.
|
TimeSeries.Builder |
clearMetricKind()
Optional.
|
TimeSeries.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TimeSeries.Builder |
clearPoints()
Required.
|
TimeSeries.Builder |
clearValueType()
Required.
|
TimeSeries.Builder |
clone() |
TimeSeries |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMetric()
Required.
|
com.google.protobuf.ByteString |
getMetricBytes()
Required.
|
com.google.api.MetricDescriptor.MetricKind |
getMetricKind()
Optional.
|
int |
getMetricKindValue()
Optional.
|
Point |
getPoints(int index)
Required.
|
Point.Builder |
getPointsBuilder(int index)
Required.
|
List<Point.Builder> |
getPointsBuilderList()
Required.
|
int |
getPointsCount()
Required.
|
List<Point> |
getPointsList()
Required.
|
PointOrBuilder |
getPointsOrBuilder(int index)
Required.
|
List<? extends PointOrBuilder> |
getPointsOrBuilderList()
Required.
|
com.google.api.MetricDescriptor.ValueType |
getValueType()
Required.
|
int |
getValueTypeValue()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TimeSeries.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TimeSeries.Builder |
mergeFrom(com.google.protobuf.Message other) |
TimeSeries.Builder |
mergeFrom(TimeSeries other) |
TimeSeries.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TimeSeries.Builder |
removePoints(int index)
Required.
|
TimeSeries.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TimeSeries.Builder |
setMetric(String value)
Required.
|
TimeSeries.Builder |
setMetricBytes(com.google.protobuf.ByteString value)
Required.
|
TimeSeries.Builder |
setMetricKind(com.google.api.MetricDescriptor.MetricKind value)
Optional.
|
TimeSeries.Builder |
setMetricKindValue(int value)
Optional.
|
TimeSeries.Builder |
setPoints(int index,
Point.Builder builderForValue)
Required.
|
TimeSeries.Builder |
setPoints(int index,
Point value)
Required.
|
TimeSeries.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TimeSeries.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TimeSeries.Builder |
setValueType(com.google.api.MetricDescriptor.ValueType value)
Required.
|
TimeSeries.Builder |
setValueTypeValue(int value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TimeSeries build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TimeSeries buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TimeSeries.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(TimeSeries other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>IOExceptionpublic 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];getMetric in interface TimeSeriesOrBuilderpublic com.google.protobuf.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];getMetricBytes in interface TimeSeriesOrBuilderpublic 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];value - The metric to set.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];public TimeSeries.Builder setMetricBytes(com.google.protobuf.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];value - The bytes for metric to set.public int getValueTypeValue()
Required. The value type of the time series.
.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
getValueTypeValue in interface TimeSeriesOrBuilderpublic 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];
value - The enum numeric value on the wire for valueType to set.public com.google.api.MetricDescriptor.ValueType getValueType()
Required. The value type of the time series.
.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
getValueType in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setValueType(com.google.api.MetricDescriptor.ValueType value)
Required. The value type of the time series.
.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
value - The valueType to set.public TimeSeries.Builder clearValueType()
Required. The value type of the time series.
.google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
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];
getMetricKindValue in interface TimeSeriesOrBuilderpublic 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];
value - The enum numeric value on the wire for metricKind to set.public com.google.api.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];
getMetricKind in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setMetricKind(com.google.api.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];
value - The metricKind to set.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];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
getPointsList in interface TimeSeriesOrBuilderpublic 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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
getPointsCount in interface TimeSeriesOrBuilderpublic 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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
getPoints in interface TimeSeriesOrBuilderpublic 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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
getPointsOrBuilder in interface TimeSeriesOrBuilderpublic 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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
getPointsOrBuilderList in interface TimeSeriesOrBuilderpublic 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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
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.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED];
public final TimeSeries.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>public final TimeSeries.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>Copyright © 2024 Google LLC. All rights reserved.