Class WorkerSlotsInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkerSlotsInfoOrBuilder, java.lang.Cloneable
    Enclosing class:
    WorkerSlotsInfo

    public static final class WorkerSlotsInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
    implements WorkerSlotsInfoOrBuilder
    Protobuf type temporal.api.worker.v1.WorkerSlotsInfo
    • 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<WorkerSlotsInfo.Builder>
      • clear

        public WorkerSlotsInfo.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<WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • setField

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

        public WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • clearOneof

        public WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • setRepeatedField

        public WorkerSlotsInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
      • addRepeatedField

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

        public WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
      • mergeFrom

        public WorkerSlotsInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.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<WorkerSlotsInfo.Builder>
        Throws:
        java.io.IOException
      • getCurrentAvailableSlots

        public int getCurrentAvailableSlots()
         Number of slots available for the worker to specific tasks.
         May be -1 if the upper bound is not known.
         
        int32 current_available_slots = 1;
        Specified by:
        getCurrentAvailableSlots in interface WorkerSlotsInfoOrBuilder
        Returns:
        The currentAvailableSlots.
      • setCurrentAvailableSlots

        public WorkerSlotsInfo.Builder setCurrentAvailableSlots​(int value)
         Number of slots available for the worker to specific tasks.
         May be -1 if the upper bound is not known.
         
        int32 current_available_slots = 1;
        Parameters:
        value - The currentAvailableSlots to set.
        Returns:
        This builder for chaining.
      • clearCurrentAvailableSlots

        public WorkerSlotsInfo.Builder clearCurrentAvailableSlots()
         Number of slots available for the worker to specific tasks.
         May be -1 if the upper bound is not known.
         
        int32 current_available_slots = 1;
        Returns:
        This builder for chaining.
      • getCurrentUsedSlots

        public int getCurrentUsedSlots()
         Number of slots used by the worker for specific tasks.
         
        int32 current_used_slots = 2;
        Specified by:
        getCurrentUsedSlots in interface WorkerSlotsInfoOrBuilder
        Returns:
        The currentUsedSlots.
      • setCurrentUsedSlots

        public WorkerSlotsInfo.Builder setCurrentUsedSlots​(int value)
         Number of slots used by the worker for specific tasks.
         
        int32 current_used_slots = 2;
        Parameters:
        value - The currentUsedSlots to set.
        Returns:
        This builder for chaining.
      • clearCurrentUsedSlots

        public WorkerSlotsInfo.Builder clearCurrentUsedSlots()
         Number of slots used by the worker for specific tasks.
         
        int32 current_used_slots = 2;
        Returns:
        This builder for chaining.
      • getSlotSupplierKind

        public java.lang.String getSlotSupplierKind()
         Kind of the slot supplier, which is used to determine how the slots are allocated.
         Possible values: "Fixed | ResourceBased | Custom String"
         
        string slot_supplier_kind = 3;
        Specified by:
        getSlotSupplierKind in interface WorkerSlotsInfoOrBuilder
        Returns:
        The slotSupplierKind.
      • getSlotSupplierKindBytes

        public com.google.protobuf.ByteString getSlotSupplierKindBytes()
         Kind of the slot supplier, which is used to determine how the slots are allocated.
         Possible values: "Fixed | ResourceBased | Custom String"
         
        string slot_supplier_kind = 3;
        Specified by:
        getSlotSupplierKindBytes in interface WorkerSlotsInfoOrBuilder
        Returns:
        The bytes for slotSupplierKind.
      • setSlotSupplierKind

        public WorkerSlotsInfo.Builder setSlotSupplierKind​(java.lang.String value)
         Kind of the slot supplier, which is used to determine how the slots are allocated.
         Possible values: "Fixed | ResourceBased | Custom String"
         
        string slot_supplier_kind = 3;
        Parameters:
        value - The slotSupplierKind to set.
        Returns:
        This builder for chaining.
      • clearSlotSupplierKind

        public WorkerSlotsInfo.Builder clearSlotSupplierKind()
         Kind of the slot supplier, which is used to determine how the slots are allocated.
         Possible values: "Fixed | ResourceBased | Custom String"
         
        string slot_supplier_kind = 3;
        Returns:
        This builder for chaining.
      • setSlotSupplierKindBytes

        public WorkerSlotsInfo.Builder setSlotSupplierKindBytes​(com.google.protobuf.ByteString value)
         Kind of the slot supplier, which is used to determine how the slots are allocated.
         Possible values: "Fixed | ResourceBased | Custom String"
         
        string slot_supplier_kind = 3;
        Parameters:
        value - The bytes for slotSupplierKind to set.
        Returns:
        This builder for chaining.
      • getTotalProcessedTasks

        public int getTotalProcessedTasks()
         Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
         by the worker since the worker started. This is a cumulative counter.
         
        int32 total_processed_tasks = 4;
        Specified by:
        getTotalProcessedTasks in interface WorkerSlotsInfoOrBuilder
        Returns:
        The totalProcessedTasks.
      • setTotalProcessedTasks

        public WorkerSlotsInfo.Builder setTotalProcessedTasks​(int value)
         Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
         by the worker since the worker started. This is a cumulative counter.
         
        int32 total_processed_tasks = 4;
        Parameters:
        value - The totalProcessedTasks to set.
        Returns:
        This builder for chaining.
      • clearTotalProcessedTasks

        public WorkerSlotsInfo.Builder clearTotalProcessedTasks()
         Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
         by the worker since the worker started. This is a cumulative counter.
         
        int32 total_processed_tasks = 4;
        Returns:
        This builder for chaining.
      • getTotalFailedTasks

        public int getTotalFailedTasks()
         Total number of failed tasks processed by the worker so far.
         
        int32 total_failed_tasks = 5;
        Specified by:
        getTotalFailedTasks in interface WorkerSlotsInfoOrBuilder
        Returns:
        The totalFailedTasks.
      • setTotalFailedTasks

        public WorkerSlotsInfo.Builder setTotalFailedTasks​(int value)
         Total number of failed tasks processed by the worker so far.
         
        int32 total_failed_tasks = 5;
        Parameters:
        value - The totalFailedTasks to set.
        Returns:
        This builder for chaining.
      • clearTotalFailedTasks

        public WorkerSlotsInfo.Builder clearTotalFailedTasks()
         Total number of failed tasks processed by the worker so far.
         
        int32 total_failed_tasks = 5;
        Returns:
        This builder for chaining.
      • getLastIntervalProcessedTasks

        public int getLastIntervalProcessedTasks()
         Number of tasks processed in since the last heartbeat from the worker.
         This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
         Contains both successful and failed tasks.
         
        int32 last_interval_processed_tasks = 6;
        Specified by:
        getLastIntervalProcessedTasks in interface WorkerSlotsInfoOrBuilder
        Returns:
        The lastIntervalProcessedTasks.
      • setLastIntervalProcessedTasks

        public WorkerSlotsInfo.Builder setLastIntervalProcessedTasks​(int value)
         Number of tasks processed in since the last heartbeat from the worker.
         This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
         Contains both successful and failed tasks.
         
        int32 last_interval_processed_tasks = 6;
        Parameters:
        value - The lastIntervalProcessedTasks to set.
        Returns:
        This builder for chaining.
      • clearLastIntervalProcessedTasks

        public WorkerSlotsInfo.Builder clearLastIntervalProcessedTasks()
         Number of tasks processed in since the last heartbeat from the worker.
         This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
         Contains both successful and failed tasks.
         
        int32 last_interval_processed_tasks = 6;
        Returns:
        This builder for chaining.
      • getLastIntervalFailureTasks

        public int getLastIntervalFailureTasks()
         Number of failed tasks processed since the last heartbeat from the worker.
         
        int32 last_interval_failure_tasks = 7;
        Specified by:
        getLastIntervalFailureTasks in interface WorkerSlotsInfoOrBuilder
        Returns:
        The lastIntervalFailureTasks.
      • setLastIntervalFailureTasks

        public WorkerSlotsInfo.Builder setLastIntervalFailureTasks​(int value)
         Number of failed tasks processed since the last heartbeat from the worker.
         
        int32 last_interval_failure_tasks = 7;
        Parameters:
        value - The lastIntervalFailureTasks to set.
        Returns:
        This builder for chaining.
      • clearLastIntervalFailureTasks

        public WorkerSlotsInfo.Builder clearLastIntervalFailureTasks()
         Number of failed tasks processed since the last heartbeat from the worker.
         
        int32 last_interval_failure_tasks = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
      • mergeUnknownFields

        public final WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>