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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTimeSeriesDataBuilder()

public TimeSeriesData.Builder addTimeSeriesDataBuilder()

The time series data.

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

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

build()

public QueryTimeSeriesResponse build()
Returns
TypeDescription
QueryTimeSeriesResponse

buildPartial()

public QueryTimeSeriesResponse buildPartial()
Returns
TypeDescription
QueryTimeSeriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeSeriesData()

public QueryTimeSeriesResponse.Builder clearTimeSeriesData()

The time series data.

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

Returns
TypeDescription
QueryTimeSeriesResponse.Builder

clearTimeSeriesDescriptor()

public QueryTimeSeriesResponse.Builder clearTimeSeriesDescriptor()

The descriptor for the time series data.

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

Returns
TypeDescription
QueryTimeSeriesResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryTimeSeriesResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryTimeSeriesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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 = 10;

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

getTimeSeriesDataBuilder(int index)

public TimeSeriesData.Builder getTimeSeriesDataBuilder(int index)

The time series data.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeriesData.Builder

getTimeSeriesDataBuilderList()

public List<TimeSeriesData.Builder> getTimeSeriesDataBuilderList()

The time series data.

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

Returns
TypeDescription
List<Builder>

getTimeSeriesDataCount()

public int getTimeSeriesDataCount()

The time series data.

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

Returns
TypeDescription
int

getTimeSeriesDataList()

public List<TimeSeriesData> getTimeSeriesDataList()

The time series data.

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

Returns
TypeDescription
List<TimeSeriesData>

getTimeSeriesDataOrBuilder(int index)

public TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index)

The time series data.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeriesDataOrBuilder

getTimeSeriesDataOrBuilderList()

public List<? extends TimeSeriesDataOrBuilder> getTimeSeriesDataOrBuilderList()

The time series data.

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

Returns
TypeDescription
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
TypeDescription
TimeSeriesDescriptor

The timeSeriesDescriptor.

getTimeSeriesDescriptorBuilder()

public TimeSeriesDescriptor.Builder getTimeSeriesDescriptorBuilder()

The descriptor for the time series data.

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

Returns
TypeDescription
TimeSeriesDescriptor.Builder

getTimeSeriesDescriptorOrBuilder()

public TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder()

The descriptor for the time series data.

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

Returns
TypeDescription
TimeSeriesDescriptorOrBuilder

hasTimeSeriesDescriptor()

public boolean hasTimeSeriesDescriptor()

The descriptor for the time series data.

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

Returns
TypeDescription
boolean

Whether the timeSeriesDescriptor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryTimeSeriesResponse other)

public QueryTimeSeriesResponse.Builder mergeFrom(QueryTimeSeriesResponse other)
Parameter
NameDescription
otherQueryTimeSeriesResponse
Returns
TypeDescription
QueryTimeSeriesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QueryTimeSeriesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimeSeriesDescriptor
Returns
TypeDescription
QueryTimeSeriesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
QueryTimeSeriesResponse.Builder

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

public QueryTimeSeriesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTimeSeriesData
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimeSeriesData.Builder
Returns
TypeDescription
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
NameDescription
valueTimeSeriesDescriptor
Returns
TypeDescription
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
NameDescription
builderForValueTimeSeriesDescriptor.Builder
Returns
TypeDescription
QueryTimeSeriesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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