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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<QueueStats.Builder> implements QueueStatsOrBuilder
Statistics for a queue.
Protobuf typegoogle.cloud.tasks.v2beta2.QueueStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueStats.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueueStatsbuild()QueueStatsbuildPartial()QueueStats.Builderclear()QueueStats.BuilderclearConcurrentDispatchesCount()Output only.QueueStats.BuilderclearEffectiveExecutionRate()Output only.QueueStats.BuilderclearExecutedLastMinuteCount()Output only.QueueStats.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QueueStats.BuilderclearOldestEstimatedArrivalTime()Output only.QueueStats.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QueueStats.BuilderclearTasksCount()Output only.QueueStats.Builderclone()longgetConcurrentDispatchesCount()Output only.QueueStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetEffectiveExecutionRate()Output only.longgetExecutedLastMinuteCount()Output only.com.google.protobuf.TimestampgetOldestEstimatedArrivalTime()Output only.com.google.protobuf.Timestamp.BuildergetOldestEstimatedArrivalTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetOldestEstimatedArrivalTimeOrBuilder()Output only.longgetTasksCount()Output only.booleanhasOldestEstimatedArrivalTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()QueueStats.BuildermergeFrom(QueueStats other)QueueStats.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QueueStats.BuildermergeFrom(com.google.protobuf.Message other)QueueStats.BuildermergeOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value)Output only.QueueStats.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueueStats.BuildersetConcurrentDispatchesCount(long value)Output only.QueueStats.BuildersetEffectiveExecutionRate(double value)Output only.QueueStats.BuildersetExecutedLastMinuteCount(long value)Output only.QueueStats.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueueStats.BuildersetOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value)Output only.QueueStats.BuildersetOldestEstimatedArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.QueueStats.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QueueStats.BuildersetTasksCount(long value)Output only.QueueStats.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clear
public QueueStats.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<QueueStats.Builder>
-
getDefaultInstanceForType
public QueueStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueueStats build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueueStats buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueueStats.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
setField
public QueueStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clearField
public QueueStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clearOneof
public QueueStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
setRepeatedField
public QueueStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
addRepeatedField
public QueueStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
mergeFrom
public QueueStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueueStats.Builder>
-
mergeFrom
public QueueStats.Builder mergeFrom(QueueStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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];- Parameters:
value- The tasksCount to set.- Returns:
- This builder for chaining.
-
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:
- 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
public QueueStats.Builder setOldestEstimatedArrivalTime(com.google.protobuf.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];
-
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
public QueueStats.Builder mergeOldestEstimatedArrivalTime(com.google.protobuf.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];
-
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];
-
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
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];- Parameters:
value- The executedLastMinuteCount to set.- Returns:
- 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:
- 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
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];- Parameters:
value- The concurrentDispatchesCount to set.- Returns:
- This builder for chaining.
-
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:
- 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
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];- Parameters:
value- The effectiveExecutionRate to set.- Returns:
- 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:
- This builder for chaining.
-
setUnknownFields
public final QueueStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
mergeUnknownFields
public final QueueStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
-