Class TimeSeriesData.Builder (3.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.v3.LabelValue>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.v3.TimeSeriesData.PointData>
Returns
TypeDescription
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
NameDescription
valueLabelValue
Returns
TypeDescription
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
NameDescription
builderForValueLabelValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLabelValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLabelValue.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimeSeriesData.PointData
Returns
TypeDescription
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
NameDescription
builderForValueTimeSeriesData.PointData.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTimeSeriesData.PointData
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimeSeriesData.PointData.Builder
Returns
TypeDescription
TimeSeriesData.Builder

addPointDataBuilder()

public TimeSeriesData.PointData.Builder addPointDataBuilder()

The points in the time series.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TimeSeriesData.PointData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeriesData build()
Returns
TypeDescription
TimeSeriesData

buildPartial()

public TimeSeriesData buildPartial()
Returns
TypeDescription
TimeSeriesData

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TimeSeriesData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TimeSeriesData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPointData()

public TimeSeriesData.Builder clearPointData()

The points in the time series.

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

Returns
TypeDescription
TimeSeriesData.Builder

clone()

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

getDefaultInstanceForType()

public TimeSeriesData getDefaultInstanceForType()
Returns
TypeDescription
TimeSeriesData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getPointDataCount()

public int getPointDataCount()

The points in the time series.

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

Returns
TypeDescription
int

getPointDataList()

public List<TimeSeriesData.PointData> getPointDataList()

The points in the time series.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimeSeriesData other)

public TimeSeriesData.Builder mergeFrom(TimeSeriesData other)
Parameter
NameDescription
otherTimeSeriesData
Returns
TypeDescription
TimeSeriesData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TimeSeriesData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TimeSeriesData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueLabelValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLabelValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTimeSeriesData.PointData
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimeSeriesData.PointData.Builder
Returns
TypeDescription
TimeSeriesData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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