Class WorkerSlotsInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkerSlotsInfo.Builder>
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,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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Number of slots available for the worker to specific tasks.Number of slots used by the worker for specific tasks.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Number of failed tasks processed since the last heartbeat from the worker.Number of tasks processed in since the last heartbeat from the worker.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Kind of the slot supplier, which is used to determine how the slots are allocated.Total number of failed tasks processed by the worker so far.Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started.clone()intNumber of slots available for the worker to specific tasks.intNumber of slots used by the worker for specific tasks.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintNumber of failed tasks processed since the last heartbeat from the worker.intNumber of tasks processed in since the last heartbeat from the worker.Kind of the slot supplier, which is used to determine how the slots are allocated.com.google.protobuf.ByteStringKind of the slot supplier, which is used to determine how the slots are allocated.intTotal number of failed tasks processed by the worker so far.intTotal 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(WorkerSlotsInfo other) final WorkerSlotsInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCurrentAvailableSlots(int value) Number of slots available for the worker to specific tasks.setCurrentUsedSlots(int value) Number of slots used by the worker for specific tasks.setLastIntervalFailureTasks(int value) Number of failed tasks processed since the last heartbeat from the worker.setLastIntervalProcessedTasks(int value) Number of tasks processed in since the last heartbeat from the worker.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSlotSupplierKind(String value) Kind of the slot supplier, which is used to determine how the slots are allocated.setSlotSupplierKindBytes(com.google.protobuf.ByteString value) Kind of the slot supplier, which is used to determine how the slots are allocated.setTotalFailedTasks(int value) Total number of failed tasks processed by the worker so far.setTotalProcessedTasks(int value) Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started.final 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSlotsInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerSlotsInfo.Builder>
-
mergeFrom
-
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 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:
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
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
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
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
Number of slots used by the worker for specific tasks.
int32 current_used_slots = 2;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
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
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
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
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>
-