Class QueueStats.Builder (2.52.0)

public static final class QueueStats.Builder extends GeneratedMessageV3.Builder<QueueStats.Builder> implements QueueStatsOrBuilder

Statistics for a queue.

Protobuf type google.cloud.tasks.v2beta3.QueueStats

Implements

QueueStatsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueueStats build()
Returns
Type Description
QueueStats

buildPartial()

public QueueStats buildPartial()
Returns
Type Description
QueueStats

clear()

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

clearConcurrentDispatchesCount()

public QueueStats.Builder clearConcurrentDispatchesCount()

Output only. The number of requests that the queue has dispatched but has not received a reply for yet.

int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueueStats.Builder

This builder for chaining.

clearEffectiveExecutionRate()

public QueueStats.Builder clearEffectiveExecutionRate()

Output only. The current maximum number of tasks per second executed by the queue. The maximum value of this variable is controlled by the RateLimits of the Queue. However, this value could be less to avoid overloading the endpoints tasks in the queue are targeting.

double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueueStats.Builder

This builder for chaining.

clearExecutedLastMinuteCount()

public QueueStats.Builder clearExecutedLastMinuteCount()

Output only. The number of tasks that the queue has dispatched and received a reply for during the last minute. This variable counts both successful and non-successful executions.

int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueueStats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOldestEstimatedArrivalTime()

public QueueStats.Builder clearOldestEstimatedArrivalTime()

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueueStats.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTasksCount()

public QueueStats.Builder clearTasksCount()

Output only. An estimation of the number of tasks in the queue, that is, the tasks in the queue that haven't been executed, the tasks in the queue which the queue has dispatched but has not yet received a reply for, and the failed tasks that the queue is retrying.

int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueueStats.Builder

This builder for chaining.

clone()

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

getConcurrentDispatchesCount()

public long getConcurrentDispatchesCount()

Output only. The number of requests that the queue has dispatched but has not received a reply for yet.

int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The concurrentDispatchesCount.

getDefaultInstanceForType()

public QueueStats getDefaultInstanceForType()
Returns
Type Description
QueueStats

getDescriptorForType()

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

getEffectiveExecutionRate()

public double getEffectiveExecutionRate()

Output only. The current maximum number of tasks per second executed by the queue. The maximum value of this variable is controlled by the RateLimits of the Queue. However, this value could be less to avoid overloading the endpoints tasks in the queue are targeting.

double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The effectiveExecutionRate.

getExecutedLastMinuteCount()

public long getExecutedLastMinuteCount()

Output only. The number of tasks that the queue has dispatched and received a reply for during the last minute. This variable counts both successful and non-successful executions.

int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The executedLastMinuteCount.

getOldestEstimatedArrivalTime()

public Timestamp getOldestEstimatedArrivalTime()

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The oldestEstimatedArrivalTime.

getOldestEstimatedArrivalTimeBuilder()

public Timestamp.Builder getOldestEstimatedArrivalTimeBuilder()

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getOldestEstimatedArrivalTimeOrBuilder()

public TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder()

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getTasksCount()

public long getTasksCount()

Output only. An estimation of the number of tasks in the queue, that is, the tasks in the queue that haven't been executed, the tasks in the queue which the queue has dispatched but has not yet received a reply for, and the failed tasks that the queue is retrying.

int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The tasksCount.

hasOldestEstimatedArrivalTime()

public boolean hasOldestEstimatedArrivalTime()

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the oldestEstimatedArrivalTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueueStats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOldestEstimatedArrivalTime(Timestamp value)

public QueueStats.Builder mergeOldestEstimatedArrivalTime(Timestamp value)

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QueueStats.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConcurrentDispatchesCount(long value)

public QueueStats.Builder setConcurrentDispatchesCount(long value)

Output only. The number of requests that the queue has dispatched but has not received a reply for yet.

int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The concurrentDispatchesCount to set.

Returns
Type Description
QueueStats.Builder

This builder for chaining.

setEffectiveExecutionRate(double value)

public QueueStats.Builder setEffectiveExecutionRate(double value)

Output only. The current maximum number of tasks per second executed by the queue. The maximum value of this variable is controlled by the RateLimits of the Queue. However, this value could be less to avoid overloading the endpoints tasks in the queue are targeting.

double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value double

The effectiveExecutionRate to set.

Returns
Type Description
QueueStats.Builder

This builder for chaining.

setExecutedLastMinuteCount(long value)

public QueueStats.Builder setExecutedLastMinuteCount(long value)

Output only. The number of tasks that the queue has dispatched and received a reply for during the last minute. This variable counts both successful and non-successful executions.

int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The executedLastMinuteCount to set.

Returns
Type Description
QueueStats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOldestEstimatedArrivalTime(Timestamp value)

public QueueStats.Builder setOldestEstimatedArrivalTime(Timestamp value)

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QueueStats.Builder

setOldestEstimatedArrivalTime(Timestamp.Builder builderForValue)

public QueueStats.Builder setOldestEstimatedArrivalTime(Timestamp.Builder builderForValue)

Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.

.google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
QueueStats.Builder

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

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

setTasksCount(long value)

public QueueStats.Builder setTasksCount(long value)

Output only. An estimation of the number of tasks in the queue, that is, the tasks in the queue that haven't been executed, the tasks in the queue which the queue has dispatched but has not yet received a reply for, and the failed tasks that the queue is retrying.

int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The tasksCount to set.

Returns
Type Description
QueueStats.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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