Class WorkerHostInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkerHostInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkerHostInfo.Builder>
io.temporal.api.worker.v1.WorkerHostInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkerHostInfoOrBuilder, Cloneable
Enclosing class:
WorkerHostInfo

public static final class WorkerHostInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkerHostInfo.Builder> implements WorkerHostInfoOrBuilder
 Holds everything needed to identify the worker host/process context
 
Protobuf type temporal.api.worker.v1.WorkerHostInfo
  • Method Details

    • 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<WorkerHostInfo.Builder>
    • clear

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

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

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

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

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

      public WorkerHostInfo.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<WorkerHostInfo.Builder>
    • clearField

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

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

      public WorkerHostInfo.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<WorkerHostInfo.Builder>
    • addRepeatedField

      public WorkerHostInfo.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<WorkerHostInfo.Builder>
    • mergeFrom

      public WorkerHostInfo.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<WorkerHostInfo.Builder>
    • mergeFrom

      public WorkerHostInfo.Builder mergeFrom(WorkerHostInfo other)
    • isInitialized

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

      public WorkerHostInfo.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<WorkerHostInfo.Builder>
      Throws:
      IOException
    • getHostName

      public String getHostName()
       Worker host identifier.
       
      string host_name = 1;
      Specified by:
      getHostName in interface WorkerHostInfoOrBuilder
      Returns:
      The hostName.
    • getHostNameBytes

      public com.google.protobuf.ByteString getHostNameBytes()
       Worker host identifier.
       
      string host_name = 1;
      Specified by:
      getHostNameBytes in interface WorkerHostInfoOrBuilder
      Returns:
      The bytes for hostName.
    • setHostName

      public WorkerHostInfo.Builder setHostName(String value)
       Worker host identifier.
       
      string host_name = 1;
      Parameters:
      value - The hostName to set.
      Returns:
      This builder for chaining.
    • clearHostName

      public WorkerHostInfo.Builder clearHostName()
       Worker host identifier.
       
      string host_name = 1;
      Returns:
      This builder for chaining.
    • setHostNameBytes

      public WorkerHostInfo.Builder setHostNameBytes(com.google.protobuf.ByteString value)
       Worker host identifier.
       
      string host_name = 1;
      Parameters:
      value - The bytes for hostName to set.
      Returns:
      This builder for chaining.
    • getWorkerGroupingKey

      public String getWorkerGroupingKey()
       Worker grouping identifier. A key to group workers that share the same client+namespace+process.
       This will be used to build the worker command nexus task queue name:
       "temporal-sys/worker-commands/{worker_grouping_key}"
       
      string worker_grouping_key = 5;
      Specified by:
      getWorkerGroupingKey in interface WorkerHostInfoOrBuilder
      Returns:
      The workerGroupingKey.
    • getWorkerGroupingKeyBytes

      public com.google.protobuf.ByteString getWorkerGroupingKeyBytes()
       Worker grouping identifier. A key to group workers that share the same client+namespace+process.
       This will be used to build the worker command nexus task queue name:
       "temporal-sys/worker-commands/{worker_grouping_key}"
       
      string worker_grouping_key = 5;
      Specified by:
      getWorkerGroupingKeyBytes in interface WorkerHostInfoOrBuilder
      Returns:
      The bytes for workerGroupingKey.
    • setWorkerGroupingKey

      public WorkerHostInfo.Builder setWorkerGroupingKey(String value)
       Worker grouping identifier. A key to group workers that share the same client+namespace+process.
       This will be used to build the worker command nexus task queue name:
       "temporal-sys/worker-commands/{worker_grouping_key}"
       
      string worker_grouping_key = 5;
      Parameters:
      value - The workerGroupingKey to set.
      Returns:
      This builder for chaining.
    • clearWorkerGroupingKey

      public WorkerHostInfo.Builder clearWorkerGroupingKey()
       Worker grouping identifier. A key to group workers that share the same client+namespace+process.
       This will be used to build the worker command nexus task queue name:
       "temporal-sys/worker-commands/{worker_grouping_key}"
       
      string worker_grouping_key = 5;
      Returns:
      This builder for chaining.
    • setWorkerGroupingKeyBytes

      public WorkerHostInfo.Builder setWorkerGroupingKeyBytes(com.google.protobuf.ByteString value)
       Worker grouping identifier. A key to group workers that share the same client+namespace+process.
       This will be used to build the worker command nexus task queue name:
       "temporal-sys/worker-commands/{worker_grouping_key}"
       
      string worker_grouping_key = 5;
      Parameters:
      value - The bytes for workerGroupingKey to set.
      Returns:
      This builder for chaining.
    • getProcessId

      public String getProcessId()
       Worker process identifier. This id only needs to be unique
       within one host (so using e.g. a unix pid would be appropriate).
       
      string process_id = 2;
      Specified by:
      getProcessId in interface WorkerHostInfoOrBuilder
      Returns:
      The processId.
    • getProcessIdBytes

      public com.google.protobuf.ByteString getProcessIdBytes()
       Worker process identifier. This id only needs to be unique
       within one host (so using e.g. a unix pid would be appropriate).
       
      string process_id = 2;
      Specified by:
      getProcessIdBytes in interface WorkerHostInfoOrBuilder
      Returns:
      The bytes for processId.
    • setProcessId

      public WorkerHostInfo.Builder setProcessId(String value)
       Worker process identifier. This id only needs to be unique
       within one host (so using e.g. a unix pid would be appropriate).
       
      string process_id = 2;
      Parameters:
      value - The processId to set.
      Returns:
      This builder for chaining.
    • clearProcessId

      public WorkerHostInfo.Builder clearProcessId()
       Worker process identifier. This id only needs to be unique
       within one host (so using e.g. a unix pid would be appropriate).
       
      string process_id = 2;
      Returns:
      This builder for chaining.
    • setProcessIdBytes

      public WorkerHostInfo.Builder setProcessIdBytes(com.google.protobuf.ByteString value)
       Worker process identifier. This id only needs to be unique
       within one host (so using e.g. a unix pid would be appropriate).
       
      string process_id = 2;
      Parameters:
      value - The bytes for processId to set.
      Returns:
      This builder for chaining.
    • getCurrentHostCpuUsage

      public float getCurrentHostCpuUsage()
       System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
       cores on the host pegged.
       
      float current_host_cpu_usage = 3;
      Specified by:
      getCurrentHostCpuUsage in interface WorkerHostInfoOrBuilder
      Returns:
      The currentHostCpuUsage.
    • setCurrentHostCpuUsage

      public WorkerHostInfo.Builder setCurrentHostCpuUsage(float value)
       System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
       cores on the host pegged.
       
      float current_host_cpu_usage = 3;
      Parameters:
      value - The currentHostCpuUsage to set.
      Returns:
      This builder for chaining.
    • clearCurrentHostCpuUsage

      public WorkerHostInfo.Builder clearCurrentHostCpuUsage()
       System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
       cores on the host pegged.
       
      float current_host_cpu_usage = 3;
      Returns:
      This builder for chaining.
    • getCurrentHostMemUsage

      public float getCurrentHostMemUsage()
       System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
       all available memory on the host is used.
       
      float current_host_mem_usage = 4;
      Specified by:
      getCurrentHostMemUsage in interface WorkerHostInfoOrBuilder
      Returns:
      The currentHostMemUsage.
    • setCurrentHostMemUsage

      public WorkerHostInfo.Builder setCurrentHostMemUsage(float value)
       System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
       all available memory on the host is used.
       
      float current_host_mem_usage = 4;
      Parameters:
      value - The currentHostMemUsage to set.
      Returns:
      This builder for chaining.
    • clearCurrentHostMemUsage

      public WorkerHostInfo.Builder clearCurrentHostMemUsage()
       System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
       all available memory on the host is used.
       
      float current_host_mem_usage = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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