Class ListTimeSeriesResponse.Builder (3.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.v3.TimeSeries>
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTimeSeriesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimeSeries
Returns
TypeDescription
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
NameDescription
builderForValueTimeSeries.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTimeSeries
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimeSeries.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TimeSeries.Builder

build()

public ListTimeSeriesResponse build()
Returns
TypeDescription
ListTimeSeriesResponse

buildPartial()

public ListTimeSeriesResponse buildPartial()
Returns
TypeDescription
ListTimeSeriesResponse

clear()

public ListTimeSeriesResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListTimeSeriesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTimeSeriesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListTimeSeriesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTimeSeriesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTimeSeriesResponse

getDescriptorForType()

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

The bytes for unit.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListTimeSeriesResponse other)

public ListTimeSeriesResponse.Builder mergeFrom(ListTimeSeriesResponse other)
Parameter
NameDescription
otherListTimeSeriesResponse
Returns
TypeDescription
ListTimeSeriesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTimeSeriesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ListTimeSeriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTimeSeriesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTimeSeries
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimeSeries.Builder
Returns
TypeDescription
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
NameDescription
valueString

The unit to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for unit to set.

Returns
TypeDescription
ListTimeSeriesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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