Class WorkerListInfo

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkerListInfoOrBuilder, java.io.Serializable

    @Generated(value="protoc",
               comments="annotations:WorkerListInfo.java.pb.meta")
    public final class WorkerListInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements WorkerListInfoOrBuilder
     Limited worker information returned in the list response.
     When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
     
    Protobuf type temporal.api.worker.v1.WorkerListInfo
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getWorkerInstanceKey

        public java.lang.String getWorkerInstanceKey()
         Worker identifier, should be unique for the namespace.
         It is distinct from worker identity, which is not necessarily namespace-unique.
         
        string worker_instance_key = 1;
        Specified by:
        getWorkerInstanceKey in interface WorkerListInfoOrBuilder
        Returns:
        The workerInstanceKey.
      • getWorkerInstanceKeyBytes

        public com.google.protobuf.ByteString getWorkerInstanceKeyBytes()
         Worker identifier, should be unique for the namespace.
         It is distinct from worker identity, which is not necessarily namespace-unique.
         
        string worker_instance_key = 1;
        Specified by:
        getWorkerInstanceKeyBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for workerInstanceKey.
      • getWorkerIdentity

        public java.lang.String getWorkerIdentity()
         Worker identity, set by the client, may not be unique.
         Usually host_name+(user group name)+process_id, but can be overwritten by the user.
         
        string worker_identity = 2;
        Specified by:
        getWorkerIdentity in interface WorkerListInfoOrBuilder
        Returns:
        The workerIdentity.
      • getWorkerIdentityBytes

        public com.google.protobuf.ByteString getWorkerIdentityBytes()
         Worker identity, set by the client, may not be unique.
         Usually host_name+(user group name)+process_id, but can be overwritten by the user.
         
        string worker_identity = 2;
        Specified by:
        getWorkerIdentityBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for workerIdentity.
      • getTaskQueue

        public java.lang.String getTaskQueue()
         Task queue this worker is polling for tasks.
         
        string task_queue = 3;
        Specified by:
        getTaskQueue in interface WorkerListInfoOrBuilder
        Returns:
        The taskQueue.
      • getTaskQueueBytes

        public com.google.protobuf.ByteString getTaskQueueBytes()
         Task queue this worker is polling for tasks.
         
        string task_queue = 3;
        Specified by:
        getTaskQueueBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for taskQueue.
      • hasDeploymentVersion

        public boolean hasDeploymentVersion()
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 4;
        Specified by:
        hasDeploymentVersion in interface WorkerListInfoOrBuilder
        Returns:
        Whether the deploymentVersion field is set.
      • getSdkNameBytes

        public com.google.protobuf.ByteString getSdkNameBytes()
        string sdk_name = 5;
        Specified by:
        getSdkNameBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for sdkName.
      • getSdkVersionBytes

        public com.google.protobuf.ByteString getSdkVersionBytes()
        string sdk_version = 6;
        Specified by:
        getSdkVersionBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for sdkVersion.
      • getStatusValue

        public int getStatusValue()
         Worker status. Defined by SDK.
         
        .temporal.api.enums.v1.WorkerStatus status = 7;
        Specified by:
        getStatusValue in interface WorkerListInfoOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • hasStartTime

        public boolean hasStartTime()
         Worker start time.
         It can be used to determine worker uptime. (current time - start time)
         
        .google.protobuf.Timestamp start_time = 8;
        Specified by:
        hasStartTime in interface WorkerListInfoOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Worker start time.
         It can be used to determine worker uptime. (current time - start time)
         
        .google.protobuf.Timestamp start_time = 8;
        Specified by:
        getStartTime in interface WorkerListInfoOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Worker start time.
         It can be used to determine worker uptime. (current time - start time)
         
        .google.protobuf.Timestamp start_time = 8;
        Specified by:
        getStartTimeOrBuilder in interface WorkerListInfoOrBuilder
      • getHostName

        public java.lang.String getHostName()
         Worker host identifier.
         
        string host_name = 9;
        Specified by:
        getHostName in interface WorkerListInfoOrBuilder
        Returns:
        The hostName.
      • getHostNameBytes

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

        public java.lang.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 = 10;
        Specified by:
        getWorkerGroupingKey in interface WorkerListInfoOrBuilder
        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 = 10;
        Specified by:
        getWorkerGroupingKeyBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for workerGroupingKey.
      • getProcessId

        public java.lang.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 = 11;
        Specified by:
        getProcessId in interface WorkerListInfoOrBuilder
        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 = 11;
        Specified by:
        getProcessIdBytes in interface WorkerListInfoOrBuilder
        Returns:
        The bytes for processId.
      • getPluginsCount

        public int getPluginsCount()
         Plugins currently in use by this SDK.
         
        repeated .temporal.api.worker.v1.PluginInfo plugins = 12;
        Specified by:
        getPluginsCount in interface WorkerListInfoOrBuilder
      • getPlugins

        public PluginInfo getPlugins​(int index)
         Plugins currently in use by this SDK.
         
        repeated .temporal.api.worker.v1.PluginInfo plugins = 12;
        Specified by:
        getPlugins in interface WorkerListInfoOrBuilder
      • getDriversCount

        public int getDriversCount()
         Storage drivers in use by this SDK.
         
        repeated .temporal.api.worker.v1.StorageDriverInfo drivers = 13;
        Specified by:
        getDriversCount in interface WorkerListInfoOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static WorkerListInfo parseFrom​(java.nio.ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(java.nio.ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkerListInfo parseFrom​(java.io.InputStream input)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WorkerListInfo parseFrom​(java.io.InputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static WorkerListInfo parseDelimitedFrom​(java.io.InputStream input)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static WorkerListInfo parseDelimitedFrom​(java.io.InputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WorkerListInfo parseFrom​(com.google.protobuf.CodedInputStream input)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WorkerListInfo parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public WorkerListInfo.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public WorkerListInfo.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected WorkerListInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static WorkerListInfo getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<WorkerListInfo> parser()
      • getParserForType

        public com.google.protobuf.Parser<WorkerListInfo> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WorkerListInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder