Class ListTimeSeriesResponse.Builder (3.45.0)

public static final class ListTimeSeriesResponse.Builder extends GeneratedMessageV3.Builder<ListTimeSeriesResponse.Builder> implements ListTimeSeriesResponseOrBuilder

The ListTimeSeries response.

Protobuf type google.monitoring.v3.ListTimeSeriesResponse

Static Methods

getDescriptor()

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

Methods

addAllExecutionErrors(Iterable<? extends Status> values)

public ListTimeSeriesResponse.Builder addAllExecutionErrors(Iterable<? extends Status> values)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
ListTimeSeriesResponse.Builder

addAllTimeSeries(Iterable<? extends TimeSeries> values)

public ListTimeSeriesResponse.Builder addAllTimeSeries(Iterable<? extends TimeSeries> values)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

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

addExecutionErrors(Status value)

public ListTimeSeriesResponse.Builder addExecutionErrors(Status value)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ListTimeSeriesResponse.Builder

addExecutionErrors(Status.Builder builderForValue)

public ListTimeSeriesResponse.Builder addExecutionErrors(Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

addExecutionErrors(int index, Status value)

public ListTimeSeriesResponse.Builder addExecutionErrors(int index, Status value)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
ListTimeSeriesResponse.Builder

addExecutionErrors(int index, Status.Builder builderForValue)

public ListTimeSeriesResponse.Builder addExecutionErrors(int index, Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

addExecutionErrorsBuilder()

public Status.Builder addExecutionErrorsBuilder()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
com.google.rpc.Status.Builder

addExecutionErrorsBuilder(int index)

public Status.Builder addExecutionErrorsBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTimeSeries(TimeSeries value)

public ListTimeSeriesResponse.Builder addTimeSeries(TimeSeries value)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
value TimeSeries
Returns
Type Description
ListTimeSeriesResponse.Builder

addTimeSeries(TimeSeries.Builder builderForValue)

public ListTimeSeriesResponse.Builder addTimeSeries(TimeSeries.Builder builderForValue)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
builderForValue TimeSeries.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

addTimeSeries(int index, TimeSeries value)

public ListTimeSeriesResponse.Builder addTimeSeries(int index, TimeSeries value)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameters
Name Description
index int
value TimeSeries
Returns
Type Description
ListTimeSeriesResponse.Builder

addTimeSeries(int index, TimeSeries.Builder builderForValue)

public ListTimeSeriesResponse.Builder addTimeSeries(int index, TimeSeries.Builder builderForValue)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameters
Name Description
index int
builderForValue TimeSeries.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

addTimeSeriesBuilder()

public TimeSeries.Builder addTimeSeriesBuilder()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Returns
Type Description
TimeSeries.Builder

addTimeSeriesBuilder(int index)

public TimeSeries.Builder addTimeSeriesBuilder(int index)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

build()

public ListTimeSeriesResponse build()
Returns
Type Description
ListTimeSeriesResponse

buildPartial()

public ListTimeSeriesResponse buildPartial()
Returns
Type Description
ListTimeSeriesResponse

clear()

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

clearExecutionErrors()

public ListTimeSeriesResponse.Builder clearExecutionErrors()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
ListTimeSeriesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListTimeSeriesResponse.Builder clearNextPageToken()

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

string next_page_token = 2;

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeSeries()

public ListTimeSeriesResponse.Builder clearTimeSeries()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Returns
Type Description
ListTimeSeriesResponse.Builder

clearUnit()

public ListTimeSeriesResponse.Builder clearUnit()

The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".

string unit = 5;

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTimeSeriesResponse getDefaultInstanceForType()
Returns
Type Description
ListTimeSeriesResponse

getDescriptorForType()

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

getExecutionErrors(int index)

public Status getExecutionErrors(int index)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getExecutionErrorsBuilder(int index)

public Status.Builder getExecutionErrorsBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

getExecutionErrorsBuilderList()

public List<Status.Builder> getExecutionErrorsBuilderList()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
List<com.google.rpc.Status.Builder>

getExecutionErrorsCount()

public int getExecutionErrorsCount()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
int

getExecutionErrorsList()

public List<Status> getExecutionErrorsList()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
List<com.google.rpc.Status>

getExecutionErrorsOrBuilder(int index)

public StatusOrBuilder getExecutionErrorsOrBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getExecutionErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getExecutionErrorsOrBuilderList()

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

getNextPageToken()

public String getNextPageToken()

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTimeSeries(int index)

public TimeSeries getTimeSeries(int index)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
index int
Returns
Type Description
TimeSeries

getTimeSeriesBuilder(int index)

public TimeSeries.Builder getTimeSeriesBuilder(int index)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
index int
Returns
Type Description
TimeSeries.Builder

getTimeSeriesBuilderList()

public List<TimeSeries.Builder> getTimeSeriesBuilderList()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Returns
Type Description
List<Builder>

getTimeSeriesCount()

public int getTimeSeriesCount()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Returns
Type Description
int

getTimeSeriesList()

public List<TimeSeries> getTimeSeriesList()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Returns
Type Description
List<TimeSeries>

getTimeSeriesOrBuilder(int index)

public TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesOrBuilder

getTimeSeriesOrBuilderList()

public List<? extends TimeSeriesOrBuilder> getTimeSeriesOrBuilderList()

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

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

getUnit()

public String getUnit()

The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".

string unit = 5;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".

string unit = 5;

Returns
Type Description
ByteString

The bytes for unit.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTimeSeriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExecutionErrors(int index)

public ListTimeSeriesResponse.Builder removeExecutionErrors(int index)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameter
Name Description
index int
Returns
Type Description
ListTimeSeriesResponse.Builder

removeTimeSeries(int index)

public ListTimeSeriesResponse.Builder removeTimeSeries(int index)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTimeSeriesResponse.Builder

setExecutionErrors(int index, Status value)

public ListTimeSeriesResponse.Builder setExecutionErrors(int index, Status value)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
ListTimeSeriesResponse.Builder

setExecutionErrors(int index, Status.Builder builderForValue)

public ListTimeSeriesResponse.Builder setExecutionErrors(int index, Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete.

repeated .google.rpc.Status execution_errors = 3;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListTimeSeriesResponse.Builder setNextPageToken(String value)

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTimeSeriesResponse.Builder setNextPageTokenBytes(ByteString value)

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

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

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

setTimeSeries(int index, TimeSeries value)

public ListTimeSeriesResponse.Builder setTimeSeries(int index, TimeSeries value)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameters
Name Description
index int
value TimeSeries
Returns
Type Description
ListTimeSeriesResponse.Builder

setTimeSeries(int index, TimeSeries.Builder builderForValue)

public ListTimeSeriesResponse.Builder setTimeSeries(int index, TimeSeries.Builder builderForValue)

One or more time series that match the filter included in the request.

repeated .google.monitoring.v3.TimeSeries time_series = 1;

Parameters
Name Description
index int
builderForValue TimeSeries.Builder
Returns
Type Description
ListTimeSeriesResponse.Builder

setUnit(String value)

public ListTimeSeriesResponse.Builder setUnit(String value)

The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".

string unit = 5;

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public ListTimeSeriesResponse.Builder setUnitBytes(ByteString value)

The unit in which all time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. If different time_series have different units (for example, because they come from different metric types, or a unit is absent), then unit will be "{not_a_unit}".

string unit = 5;

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
ListTimeSeriesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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