Class QueryTimeSeriesResponse.Builder (3.56.0)

public static final class QueryTimeSeriesResponse.Builder extends GeneratedMessageV3.Builder<QueryTimeSeriesResponse.Builder> implements QueryTimeSeriesResponseOrBuilder

The QueryTimeSeries response.

Protobuf type google.monitoring.v3.QueryTimeSeriesResponse

Static Methods

getDescriptor()

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

Methods

addAllPartialErrors(Iterable<? extends Status> values)

public QueryTimeSeriesResponse.Builder addAllPartialErrors(Iterable<? extends Status> values)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addAllTimeSeriesData(Iterable<? extends TimeSeriesData> values)

public QueryTimeSeriesResponse.Builder addAllTimeSeriesData(Iterable<? extends TimeSeriesData> values)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

addPartialErrors(Status value)

public QueryTimeSeriesResponse.Builder addPartialErrors(Status value)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addPartialErrors(Status.Builder builderForValue)

public QueryTimeSeriesResponse.Builder addPartialErrors(Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addPartialErrors(int index, Status value)

public QueryTimeSeriesResponse.Builder addPartialErrors(int index, Status value)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addPartialErrors(int index, Status.Builder builderForValue)

public QueryTimeSeriesResponse.Builder addPartialErrors(int index, Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addPartialErrorsBuilder()

public Status.Builder addPartialErrorsBuilder()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addPartialErrorsBuilder(int index)

public Status.Builder addPartialErrorsBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTimeSeriesData(TimeSeriesData value)

public QueryTimeSeriesResponse.Builder addTimeSeriesData(TimeSeriesData value)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
value TimeSeriesData
Returns
Type Description
QueryTimeSeriesResponse.Builder

addTimeSeriesData(TimeSeriesData.Builder builderForValue)

public QueryTimeSeriesResponse.Builder addTimeSeriesData(TimeSeriesData.Builder builderForValue)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

addTimeSeriesData(int index, TimeSeriesData value)

public QueryTimeSeriesResponse.Builder addTimeSeriesData(int index, TimeSeriesData value)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

addTimeSeriesData(int index, TimeSeriesData.Builder builderForValue)

public QueryTimeSeriesResponse.Builder addTimeSeriesData(int index, TimeSeriesData.Builder builderForValue)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

addTimeSeriesDataBuilder()

public TimeSeriesData.Builder addTimeSeriesDataBuilder()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Returns
Type Description
TimeSeriesData.Builder

addTimeSeriesDataBuilder(int index)

public TimeSeriesData.Builder addTimeSeriesDataBuilder(int index)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.Builder

build()

public QueryTimeSeriesResponse build()
Returns
Type Description
QueryTimeSeriesResponse

buildPartial()

public QueryTimeSeriesResponse buildPartial()
Returns
Type Description
QueryTimeSeriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public QueryTimeSeriesResponse.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 = 10;

Returns
Type Description
QueryTimeSeriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartialErrors()

public QueryTimeSeriesResponse.Builder clearPartialErrors()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

Returns
Type Description
QueryTimeSeriesResponse.Builder

clearTimeSeriesData()

public QueryTimeSeriesResponse.Builder clearTimeSeriesData()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Returns
Type Description
QueryTimeSeriesResponse.Builder

clearTimeSeriesDescriptor()

public QueryTimeSeriesResponse.Builder clearTimeSeriesDescriptor()

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Returns
Type Description
QueryTimeSeriesResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryTimeSeriesResponse getDefaultInstanceForType()
Returns
Type Description
QueryTimeSeriesResponse

getDescriptorForType()

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

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 = 10;

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 = 10;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPartialErrors(int index)

public Status getPartialErrors(int index)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getPartialErrorsBuilder(int index)

public Status.Builder getPartialErrorsBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getPartialErrorsBuilderList()

public List<Status.Builder> getPartialErrorsBuilderList()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getPartialErrorsCount()

public int getPartialErrorsCount()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

Returns
Type Description
int

getPartialErrorsList()

public List<Status> getPartialErrorsList()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getPartialErrorsOrBuilder(int index)

public StatusOrBuilder getPartialErrorsOrBuilder(int index)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getPartialErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getPartialErrorsOrBuilderList()

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

getTimeSeriesData(int index)

public TimeSeriesData getTimeSeriesData(int index)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData

getTimeSeriesDataBuilder(int index)

public TimeSeriesData.Builder getTimeSeriesDataBuilder(int index)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesData.Builder

getTimeSeriesDataBuilderList()

public List<TimeSeriesData.Builder> getTimeSeriesDataBuilderList()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Returns
Type Description
List<Builder>

getTimeSeriesDataCount()

public int getTimeSeriesDataCount()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Returns
Type Description
int

getTimeSeriesDataList()

public List<TimeSeriesData> getTimeSeriesDataList()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Returns
Type Description
List<TimeSeriesData>

getTimeSeriesDataOrBuilder(int index)

public TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
index int
Returns
Type Description
TimeSeriesDataOrBuilder

getTimeSeriesDataOrBuilderList()

public List<? extends TimeSeriesDataOrBuilder> getTimeSeriesDataOrBuilderList()

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

getTimeSeriesDescriptor()

public TimeSeriesDescriptor getTimeSeriesDescriptor()

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Returns
Type Description
TimeSeriesDescriptor

The timeSeriesDescriptor.

getTimeSeriesDescriptorBuilder()

public TimeSeriesDescriptor.Builder getTimeSeriesDescriptorBuilder()

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Returns
Type Description
TimeSeriesDescriptor.Builder

getTimeSeriesDescriptorOrBuilder()

public TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder()

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Returns
Type Description
TimeSeriesDescriptorOrBuilder

hasTimeSeriesDescriptor()

public boolean hasTimeSeriesDescriptor()

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Returns
Type Description
boolean

Whether the timeSeriesDescriptor field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryTimeSeriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeSeriesDescriptor(TimeSeriesDescriptor value)

public QueryTimeSeriesResponse.Builder mergeTimeSeriesDescriptor(TimeSeriesDescriptor value)

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Parameter
Name Description
value TimeSeriesDescriptor
Returns
Type Description
QueryTimeSeriesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePartialErrors(int index)

public QueryTimeSeriesResponse.Builder removePartialErrors(int index)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

Parameter
Name Description
index int
Returns
Type Description
QueryTimeSeriesResponse.Builder

removeTimeSeriesData(int index)

public QueryTimeSeriesResponse.Builder removeTimeSeriesData(int index)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

Parameter
Name Description
index int
Returns
Type Description
QueryTimeSeriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public QueryTimeSeriesResponse.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 = 10;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
QueryTimeSeriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public QueryTimeSeriesResponse.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 = 10;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
QueryTimeSeriesResponse.Builder

This builder for chaining.

setPartialErrors(int index, Status value)

public QueryTimeSeriesResponse.Builder setPartialErrors(int index, Status value)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

setPartialErrors(int index, Status.Builder builderForValue)

public QueryTimeSeriesResponse.Builder setPartialErrors(int index, Status.Builder builderForValue)

Query execution errors that may have caused the time series data returned to be incomplete. The available data will be available in the response.

repeated .google.rpc.Status partial_errors = 11;

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

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

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

setTimeSeriesData(int index, TimeSeriesData value)

public QueryTimeSeriesResponse.Builder setTimeSeriesData(int index, TimeSeriesData value)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

setTimeSeriesData(int index, TimeSeriesData.Builder builderForValue)

public QueryTimeSeriesResponse.Builder setTimeSeriesData(int index, TimeSeriesData.Builder builderForValue)

The time series data.

repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9;

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

setTimeSeriesDescriptor(TimeSeriesDescriptor value)

public QueryTimeSeriesResponse.Builder setTimeSeriesDescriptor(TimeSeriesDescriptor value)

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Parameter
Name Description
value TimeSeriesDescriptor
Returns
Type Description
QueryTimeSeriesResponse.Builder

setTimeSeriesDescriptor(TimeSeriesDescriptor.Builder builderForValue)

public QueryTimeSeriesResponse.Builder setTimeSeriesDescriptor(TimeSeriesDescriptor.Builder builderForValue)

The descriptor for the time series data.

.google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8;

Parameter
Name Description
builderForValue TimeSeriesDescriptor.Builder
Returns
Type Description
QueryTimeSeriesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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