Class QueryTimeRange.Builder (0.204.0-beta)

public static final class QueryTimeRange.Builder extends GeneratedMessage.Builder<QueryTimeRange.Builder> implements QueryTimeRangeOrBuilder

A time range for which error group data shall be displayed. Query time ranges end at 'now'. When longer time ranges are selected, the resolution of the data decreases. The description of each time range below indicates the suggested minimum timed count duration for that range.

Requests might be rejected or the resulting timed count durations might be adjusted for lower durations.

Protobuf type google.devtools.clouderrorreporting.v1beta1.QueryTimeRange

Static Methods

getDescriptor()

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

Methods

build()

public QueryTimeRange build()
Returns
Type Description
QueryTimeRange

buildPartial()

public QueryTimeRange buildPartial()
Returns
Type Description
QueryTimeRange

clear()

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

clearPeriod()

public QueryTimeRange.Builder clearPeriod()

Restricts the query to the specified time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;

Returns
Type Description
QueryTimeRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public QueryTimeRange getDefaultInstanceForType()
Returns
Type Description
QueryTimeRange

getDescriptorForType()

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

getPeriod()

public QueryTimeRange.Period getPeriod()

Restricts the query to the specified time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;

Returns
Type Description
QueryTimeRange.Period

The period.

getPeriodValue()

public int getPeriodValue()

Restricts the query to the specified time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;

Returns
Type Description
int

The enum numeric value on the wire for period.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryTimeRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPeriod(QueryTimeRange.Period value)

public QueryTimeRange.Builder setPeriod(QueryTimeRange.Period value)

Restricts the query to the specified time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;

Parameter
Name Description
value QueryTimeRange.Period

The period to set.

Returns
Type Description
QueryTimeRange.Builder

This builder for chaining.

setPeriodValue(int value)

public QueryTimeRange.Builder setPeriodValue(int value)

Restricts the query to the specified time range.

.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for period to set.

Returns
Type Description
QueryTimeRange.Builder

This builder for chaining.