Package io.temporal.api.worker.v1
Class WorkerSlotsInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
- io.temporal.api.worker.v1.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 typetemporal.api.worker.v1.WorkerSlotsInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkerSlotsInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkerSlotsInfobuild()WorkerSlotsInfobuildPartial()WorkerSlotsInfo.Builderclear()WorkerSlotsInfo.BuilderclearCurrentAvailableSlots()Number of slots available for the worker to specific tasks.WorkerSlotsInfo.BuilderclearCurrentUsedSlots()Number of slots used by the worker for specific tasks.WorkerSlotsInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WorkerSlotsInfo.BuilderclearLastIntervalFailureTasks()Number of failed tasks processed since the last heartbeat from the worker.WorkerSlotsInfo.BuilderclearLastIntervalProcessedTasks()Number of tasks processed in since the last heartbeat from the worker.WorkerSlotsInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WorkerSlotsInfo.BuilderclearSlotSupplierKind()Kind of the slot supplier, which is used to determine how the slots are allocated.WorkerSlotsInfo.BuilderclearTotalFailedTasks()Total number of failed tasks processed by the worker so far.WorkerSlotsInfo.BuilderclearTotalProcessedTasks()Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started.WorkerSlotsInfo.Builderclone()intgetCurrentAvailableSlots()Number of slots available for the worker to specific tasks.intgetCurrentUsedSlots()Number of slots used by the worker for specific tasks.WorkerSlotsInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLastIntervalFailureTasks()Number of failed tasks processed since the last heartbeat from the worker.intgetLastIntervalProcessedTasks()Number of tasks processed in since the last heartbeat from the worker.java.lang.StringgetSlotSupplierKind()Kind of the slot supplier, which is used to determine how the slots are allocated.com.google.protobuf.ByteStringgetSlotSupplierKindBytes()Kind of the slot supplier, which is used to determine how the slots are allocated.intgetTotalFailedTasks()Total number of failed tasks processed by the worker so far.intgetTotalProcessedTasks()Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WorkerSlotsInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WorkerSlotsInfo.BuildermergeFrom(com.google.protobuf.Message other)WorkerSlotsInfo.BuildermergeFrom(WorkerSlotsInfo other)WorkerSlotsInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkerSlotsInfo.BuildersetCurrentAvailableSlots(int value)Number of slots available for the worker to specific tasks.WorkerSlotsInfo.BuildersetCurrentUsedSlots(int value)Number of slots used by the worker for specific tasks.WorkerSlotsInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkerSlotsInfo.BuildersetLastIntervalFailureTasks(int value)Number of failed tasks processed since the last heartbeat from the worker.WorkerSlotsInfo.BuildersetLastIntervalProcessedTasks(int value)Number of tasks processed in since the last heartbeat from the worker.WorkerSlotsInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)WorkerSlotsInfo.BuildersetSlotSupplierKind(java.lang.String value)Kind of the slot supplier, which is used to determine how the slots are allocated.WorkerSlotsInfo.BuildersetSlotSupplierKindBytes(com.google.protobuf.ByteString value)Kind of the slot supplier, which is used to determine how the slots are allocated.WorkerSlotsInfo.BuildersetTotalFailedTasks(int value)Total number of failed tasks processed by the worker so far.WorkerSlotsInfo.BuildersetTotalProcessedTasks(int value)Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started.WorkerSlotsInfo.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<WorkerSlotsInfo.Builder>
-
clear
public WorkerSlotsInfo.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<WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
-
getDefaultInstanceForType
public WorkerSlotsInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkerSlotsInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkerSlotsInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkerSlotsInfo.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<WorkerSlotsInfo.Builder>
-
setField
public WorkerSlotsInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
clearField
public WorkerSlotsInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
clearOneof
public WorkerSlotsInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
addRepeatedField
public WorkerSlotsInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
mergeFrom
public WorkerSlotsInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerSlotsInfo.Builder>
-
mergeFrom
public WorkerSlotsInfo.Builder mergeFrom(WorkerSlotsInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getCurrentAvailableSlotsin interfaceWorkerSlotsInfoOrBuilder- 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:
getCurrentUsedSlotsin interfaceWorkerSlotsInfoOrBuilder- 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:
getSlotSupplierKindin interfaceWorkerSlotsInfoOrBuilder- 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:
getSlotSupplierKindBytesin interfaceWorkerSlotsInfoOrBuilder- 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:
getTotalProcessedTasksin interfaceWorkerSlotsInfoOrBuilder- 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:
getTotalFailedTasksin interfaceWorkerSlotsInfoOrBuilder- 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:
getLastIntervalProcessedTasksin interfaceWorkerSlotsInfoOrBuilder- 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:
getLastIntervalFailureTasksin interfaceWorkerSlotsInfoOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
mergeUnknownFields
public final WorkerSlotsInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
-