Package com.google.cloud.tasks.v2beta2
Class QueueStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
com.google.cloud.tasks.v2beta2.QueueStats.Builder
- All Implemented Interfaces:
QueueStatsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueueStats
public static final class QueueStats.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
implements QueueStatsOrBuilder
Statistics for a queue.Protobuf type
google.cloud.tasks.v2beta2.QueueStats-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.longOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleOutput only.longOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.longOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QueueStats other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) Output only.setConcurrentDispatchesCount(long value) Output only.setEffectiveExecutionRate(double value) Output only.setExecutedLastMinuteCount(long value) Output only.setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) Output only.setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setTasksCount(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueueStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueueStats.Builder>
-
mergeFrom
public QueueStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueueStats.Builder>- Throws:
IOException
-
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];- Specified by:
getTasksCountin interfaceQueueStatsOrBuilder- Returns:
- The tasksCount.
-
setTasksCount
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];- Parameters:
value- The tasksCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasOldestEstimatedArrivalTimein interfaceQueueStatsOrBuilder- Returns:
- Whether the oldestEstimatedArrivalTime field is set.
-
getOldestEstimatedArrivalTime
public com.google.protobuf.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];- Specified by:
getOldestEstimatedArrivalTimein interfaceQueueStatsOrBuilder- Returns:
- The oldestEstimatedArrivalTime.
-
setOldestEstimatedArrivalTime
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]; -
setOldestEstimatedArrivalTime
public QueueStats.Builder setOldestEstimatedArrivalTime(com.google.protobuf.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]; -
mergeOldestEstimatedArrivalTime
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]; -
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]; -
getOldestEstimatedArrivalTimeBuilder
public com.google.protobuf.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]; -
getOldestEstimatedArrivalTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getOldestEstimatedArrivalTimeOrBuilderin interfaceQueueStatsOrBuilder
-
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];- Specified by:
getExecutedLastMinuteCountin interfaceQueueStatsOrBuilder- Returns:
- The executedLastMinuteCount.
-
setExecutedLastMinuteCount
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];- Parameters:
value- The executedLastMinuteCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getConcurrentDispatchesCountin interfaceQueueStatsOrBuilder- Returns:
- The concurrentDispatchesCount.
-
setConcurrentDispatchesCount
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];- Parameters:
value- The concurrentDispatchesCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getEffectiveExecutionRatein interfaceQueueStatsOrBuilder- Returns:
- The effectiveExecutionRate.
-
setEffectiveExecutionRate
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];- Parameters:
value- The effectiveExecutionRate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-