Class 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 type google.cloud.tasks.v2beta2.QueueStats
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • clear

        public QueueStats.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • getDefaultInstanceForType

        public QueueStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public QueueStats build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public QueueStats buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public QueueStats.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • setField

        public QueueStats.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • clearField

        public QueueStats.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • clearOneof

        public QueueStats.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • addRepeatedField

        public QueueStats.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • mergeFrom

        public QueueStats.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueueStats.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface QueueStatsOrBuilder
        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 interface QueueStatsOrBuilder
        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 interface QueueStatsOrBuilder
        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 interface QueueStatsOrBuilder
      • 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 interface QueueStatsOrBuilder
        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 interface QueueStatsOrBuilder
        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 interface QueueStatsOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>
      • mergeUnknownFields

        public final QueueStats.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueueStats.Builder>