Package com.google.cloud.tasks.v2beta3
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.v2beta3.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.v2beta3.QueueStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueStats.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QueueStats
build()
QueueStats
buildPartial()
QueueStats.Builder
clear()
QueueStats.Builder
clearConcurrentDispatchesCount()
Output only.QueueStats.Builder
clearEffectiveExecutionRate()
Output only.QueueStats.Builder
clearExecutedLastMinuteCount()
Output only.QueueStats.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
QueueStats.Builder
clearOldestEstimatedArrivalTime()
Output only.QueueStats.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
QueueStats.Builder
clearTasksCount()
Output only.QueueStats.Builder
clone()
long
getConcurrentDispatchesCount()
Output only.QueueStats
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getEffectiveExecutionRate()
Output only.long
getExecutedLastMinuteCount()
Output only.com.google.protobuf.Timestamp
getOldestEstimatedArrivalTime()
Output only.com.google.protobuf.Timestamp.Builder
getOldestEstimatedArrivalTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getOldestEstimatedArrivalTimeOrBuilder()
Output only.long
getTasksCount()
Output only.boolean
hasOldestEstimatedArrivalTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
QueueStats.Builder
mergeFrom(QueueStats other)
QueueStats.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
QueueStats.Builder
mergeFrom(com.google.protobuf.Message other)
QueueStats.Builder
mergeOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value)
Output only.QueueStats.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
QueueStats.Builder
setConcurrentDispatchesCount(long value)
Output only.QueueStats.Builder
setEffectiveExecutionRate(double value)
Output only.QueueStats.Builder
setExecutedLastMinuteCount(long value)
Output only.QueueStats.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QueueStats.Builder
setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value)
Output only.QueueStats.Builder
setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.QueueStats.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
QueueStats.Builder
setTasksCount(long value)
Output only.QueueStats.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clear
public QueueStats.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
getDefaultInstanceForType
public QueueStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueueStats build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueueStats buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueueStats.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
setField
public QueueStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clearField
public QueueStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
clearOneof
public QueueStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
setRepeatedField
public QueueStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
addRepeatedField
public QueueStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
mergeFrom
public QueueStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QueueStats.Builder>
-
mergeFrom
public QueueStats.Builder mergeFrom(QueueStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getTasksCount
in 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:
hasOldestEstimatedArrivalTime
in 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:
getOldestEstimatedArrivalTime
in 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:
getOldestEstimatedArrivalTimeOrBuilder
in 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:
getExecutedLastMinuteCount
in 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:
getConcurrentDispatchesCount
in 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:
getEffectiveExecutionRate
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
mergeUnknownFields
public final QueueStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
-
-