Class TimeSeriesData.Builder (3.43.0)

public static final class TimeSeriesData.Builder extends GeneratedMessageV3.Builder<TimeSeriesData.Builder> implements TimeSeriesDataOrBuilder

Represents the values of a time series associated with a TimeSeriesDescriptor.

Protobuf type google.monitoring.v3.TimeSeriesData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLabelValues(Iterable<? extends LabelValue> values)

public TimeSeriesData.Builder addAllLabelValues(Iterable<? extends LabelValue> values)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
values Iterable<? extends com.google.monitoring.v3.LabelValue>
Returns
Type Description
TimeSeriesData.Builder

addAllPointData(Iterable<? extends TimeSeriesData.PointData> values)

public TimeSeriesData.Builder addAllPointData(Iterable<? extends TimeSeriesData.PointData> values)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
values Iterable<? extends com.google.monitoring.v3.TimeSeriesData.PointData>
Returns
Type Description
TimeSeriesData.Builder

addLabelValues(LabelValue value)

public TimeSeriesData.Builder addLabelValues(LabelValue value)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
value LabelValue
Returns
Type Description
TimeSeriesData.Builder

addLabelValues(LabelValue.Builder builderForValue)

public TimeSeriesData.Builder addLabelValues(LabelValue.Builder builderForValue)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
builderForValue LabelValue.Builder
Returns
Type Description
TimeSeriesData.Builder

addLabelValues(int index, LabelValue value)

public TimeSeriesData.Builder addLabelValues(int index, LabelValue value)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameters
Name Description
index int
value LabelValue
Returns
Type Description
TimeSeriesData.Builder

addLabelValues(int index, LabelValue.Builder builderForValue)

public TimeSeriesData.Builder addLabelValues(int index, LabelValue.Builder builderForValue)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameters
Name Description
index int
builderForValue LabelValue.Builder
Returns
Type Description
TimeSeriesData.Builder

addLabelValuesBuilder()

public LabelValue.Builder addLabelValuesBuilder()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
LabelValue.Builder

addLabelValuesBuilder(int index)

public LabelValue.Builder addLabelValuesBuilder(int index)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
index int
Returns
Type Description
LabelValue.Builder

addPointData(TimeSeriesData.PointData value)

public TimeSeriesData.Builder addPointData(TimeSeriesData.PointData value)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
value TimeSeriesData.PointData
Returns
Type Description
TimeSeriesData.Builder

addPointData(TimeSeriesData.PointData.Builder builderForValue)

public TimeSeriesData.Builder addPointData(TimeSeriesData.PointData.Builder builderForValue)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
builderForValue TimeSeriesData.PointData.Builder
Returns
Type Description
TimeSeriesData.Builder

addPointData(int index, TimeSeriesData.PointData value)

public TimeSeriesData.Builder addPointData(int index, TimeSeriesData.PointData value)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameters
Name Description
index int
value TimeSeriesData.PointData
Returns
Type Description
TimeSeriesData.Builder

addPointData(int index, TimeSeriesData.PointData.Builder builderForValue)

public TimeSeriesData.Builder addPointData(int index, TimeSeriesData.PointData.Builder builderForValue)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameters
Name Description
index int
builderForValue TimeSeriesData.PointData.Builder
Returns
Type Description
TimeSeriesData.Builder

addPointDataBuilder()

public TimeSeriesData.PointData.Builder addPointDataBuilder()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
TimeSeriesData.PointData.Builder

addPointDataBuilder(int index)

public TimeSeriesData.PointData.Builder addPointDataBuilder(int index)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.PointData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimeSeriesData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeSeriesData.Builder
Overrides

build()

public TimeSeriesData build()
Returns
Type Description
TimeSeriesData

buildPartial()

public TimeSeriesData buildPartial()
Returns
Type Description
TimeSeriesData

clear()

public TimeSeriesData.Builder clear()
Returns
Type Description
TimeSeriesData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TimeSeriesData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TimeSeriesData.Builder
Overrides

clearLabelValues()

public TimeSeriesData.Builder clearLabelValues()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
TimeSeriesData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeSeriesData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TimeSeriesData.Builder
Overrides

clearPointData()

public TimeSeriesData.Builder clearPointData()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
TimeSeriesData.Builder

clone()

public TimeSeriesData.Builder clone()
Returns
Type Description
TimeSeriesData.Builder
Overrides

getDefaultInstanceForType()

public TimeSeriesData getDefaultInstanceForType()
Returns
Type Description
TimeSeriesData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabelValues(int index)

public LabelValue getLabelValues(int index)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
index int
Returns
Type Description
LabelValue

getLabelValuesBuilder(int index)

public LabelValue.Builder getLabelValuesBuilder(int index)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
index int
Returns
Type Description
LabelValue.Builder

getLabelValuesBuilderList()

public List<LabelValue.Builder> getLabelValuesBuilderList()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
List<Builder>

getLabelValuesCount()

public int getLabelValuesCount()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
int

getLabelValuesList()

public List<LabelValue> getLabelValuesList()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
List<LabelValue>

getLabelValuesOrBuilder(int index)

public LabelValueOrBuilder getLabelValuesOrBuilder(int index)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
index int
Returns
Type Description
LabelValueOrBuilder

getLabelValuesOrBuilderList()

public List<? extends LabelValueOrBuilder> getLabelValuesOrBuilderList()

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Returns
Type Description
List<? extends com.google.monitoring.v3.LabelValueOrBuilder>

getPointData(int index)

public TimeSeriesData.PointData getPointData(int index)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.PointData

getPointDataBuilder(int index)

public TimeSeriesData.PointData.Builder getPointDataBuilder(int index)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.PointData.Builder

getPointDataBuilderList()

public List<TimeSeriesData.PointData.Builder> getPointDataBuilderList()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
List<Builder>

getPointDataCount()

public int getPointDataCount()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
int

getPointDataList()

public List<TimeSeriesData.PointData> getPointDataList()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
List<PointData>

getPointDataOrBuilder(int index)

public TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(int index)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.PointDataOrBuilder

getPointDataOrBuilderList()

public List<? extends TimeSeriesData.PointDataOrBuilder> getPointDataOrBuilderList()

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Returns
Type Description
List<? extends com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimeSeriesData other)

public TimeSeriesData.Builder mergeFrom(TimeSeriesData other)
Parameter
Name Description
other TimeSeriesData
Returns
Type Description
TimeSeriesData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeSeriesData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeriesData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TimeSeriesData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TimeSeriesData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeSeriesData.Builder
Overrides

removeLabelValues(int index)

public TimeSeriesData.Builder removeLabelValues(int index)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.Builder

removePointData(int index)

public TimeSeriesData.Builder removePointData(int index)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TimeSeriesData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeSeriesData.Builder
Overrides

setLabelValues(int index, LabelValue value)

public TimeSeriesData.Builder setLabelValues(int index, LabelValue value)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameters
Name Description
index int
value LabelValue
Returns
Type Description
TimeSeriesData.Builder

setLabelValues(int index, LabelValue.Builder builderForValue)

public TimeSeriesData.Builder setLabelValues(int index, LabelValue.Builder builderForValue)

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors.

repeated .google.monitoring.v3.LabelValue label_values = 1;

Parameters
Name Description
index int
builderForValue LabelValue.Builder
Returns
Type Description
TimeSeriesData.Builder

setPointData(int index, TimeSeriesData.PointData value)

public TimeSeriesData.Builder setPointData(int index, TimeSeriesData.PointData value)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameters
Name Description
index int
value TimeSeriesData.PointData
Returns
Type Description
TimeSeriesData.Builder

setPointData(int index, TimeSeriesData.PointData.Builder builderForValue)

public TimeSeriesData.Builder setPointData(int index, TimeSeriesData.PointData.Builder builderForValue)

The points in the time series.

repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;

Parameters
Name Description
index int
builderForValue TimeSeriesData.PointData.Builder
Returns
Type Description
TimeSeriesData.Builder

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

public TimeSeriesData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TimeSeriesData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeSeriesData.Builder
Overrides