Class WorkerDeploymentInfo.Builder

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

    public static final class WorkerDeploymentInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WorkerDeploymentInfo.Builder>
    implements WorkerDeploymentInfoOrBuilder
     A Worker Deployment (Deployment, for short) represents all workers serving 
     a shared set of Task Queues. Typically, a Deployment represents one service or 
     application.
     A Deployment contains multiple Deployment Versions, each representing a different 
     version of workers. (see documentation of WorkerDeploymentVersionInfo)
     Deployment records are created in Temporal server automatically when their
     first poller arrives to the server.
     Experimental. Worker Deployments are experimental and might significantly change in the future.
     
    Protobuf type temporal.api.deployment.v1.WorkerDeploymentInfo
    • 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<WorkerDeploymentInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public WorkerDeploymentInfo.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<WorkerDeploymentInfo.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         Identifies a Worker Deployment. Must be unique within the namespace.
         
        string name = 1;
        Specified by:
        getName in interface WorkerDeploymentInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Identifies a Worker Deployment. Must be unique within the namespace.
         
        string name = 1;
        Specified by:
        getNameBytes in interface WorkerDeploymentInfoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public WorkerDeploymentInfo.Builder setName​(java.lang.String value)
         Identifies a Worker Deployment. Must be unique within the namespace.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public WorkerDeploymentInfo.Builder clearName()
         Identifies a Worker Deployment. Must be unique within the namespace.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public WorkerDeploymentInfo.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Identifies a Worker Deployment. Must be unique within the namespace.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getVersionSummariesList

        public java.util.List<WorkerDeploymentInfo.WorkerDeploymentVersionSummary> getVersionSummariesList()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
        Specified by:
        getVersionSummariesList in interface WorkerDeploymentInfoOrBuilder
      • getVersionSummariesCount

        public int getVersionSummariesCount()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
        Specified by:
        getVersionSummariesCount in interface WorkerDeploymentInfoOrBuilder
      • getVersionSummaries

        public WorkerDeploymentInfo.WorkerDeploymentVersionSummary getVersionSummaries​(int index)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
        Specified by:
        getVersionSummaries in interface WorkerDeploymentInfoOrBuilder
      • setVersionSummaries

        public WorkerDeploymentInfo.Builder setVersionSummaries​(int index,
                                                                WorkerDeploymentInfo.WorkerDeploymentVersionSummary value)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • setVersionSummaries

        public WorkerDeploymentInfo.Builder setVersionSummaries​(int index,
                                                                WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder builderForValue)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addVersionSummaries

        public WorkerDeploymentInfo.Builder addVersionSummaries​(WorkerDeploymentInfo.WorkerDeploymentVersionSummary value)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addVersionSummaries

        public WorkerDeploymentInfo.Builder addVersionSummaries​(int index,
                                                                WorkerDeploymentInfo.WorkerDeploymentVersionSummary value)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addVersionSummaries

        public WorkerDeploymentInfo.Builder addVersionSummaries​(WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder builderForValue)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addVersionSummaries

        public WorkerDeploymentInfo.Builder addVersionSummaries​(int index,
                                                                WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder builderForValue)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addAllVersionSummaries

        public WorkerDeploymentInfo.Builder addAllVersionSummaries​(java.lang.Iterable<? extends WorkerDeploymentInfo.WorkerDeploymentVersionSummary> values)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • clearVersionSummaries

        public WorkerDeploymentInfo.Builder clearVersionSummaries()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • removeVersionSummaries

        public WorkerDeploymentInfo.Builder removeVersionSummaries​(int index)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • getVersionSummariesBuilder

        public WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder getVersionSummariesBuilder​(int index)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • getVersionSummariesOrBuilder

        public WorkerDeploymentInfo.WorkerDeploymentVersionSummaryOrBuilder getVersionSummariesOrBuilder​(int index)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
        Specified by:
        getVersionSummariesOrBuilder in interface WorkerDeploymentInfoOrBuilder
      • getVersionSummariesOrBuilderList

        public java.util.List<? extends WorkerDeploymentInfo.WorkerDeploymentVersionSummaryOrBuilder> getVersionSummariesOrBuilderList()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
        Specified by:
        getVersionSummariesOrBuilderList in interface WorkerDeploymentInfoOrBuilder
      • addVersionSummariesBuilder

        public WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder addVersionSummariesBuilder()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • addVersionSummariesBuilder

        public WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder addVersionSummariesBuilder​(int index)
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • getVersionSummariesBuilderList

        public java.util.List<WorkerDeploymentInfo.WorkerDeploymentVersionSummary.Builder> getVersionSummariesBuilderList()
         Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
         cleaned up automatically if all the following conditions meet:
         - It does not receive new executions (is not current or ramping)
         - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) 
         - It is drained (see WorkerDeploymentVersionInfo.drainage_status) 
         
        repeated .temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary version_summaries = 2;
      • hasCreateTime

        public boolean hasCreateTime()
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        hasCreateTime in interface WorkerDeploymentInfoOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        getCreateTime in interface WorkerDeploymentInfoOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public WorkerDeploymentInfo.Builder setCreateTime​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp create_time = 3;
      • setCreateTime

        public WorkerDeploymentInfo.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp create_time = 3;
      • mergeCreateTime

        public WorkerDeploymentInfo.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp create_time = 3;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
        .google.protobuf.Timestamp create_time = 3;
      • hasRoutingConfig

        public boolean hasRoutingConfig()
        .temporal.api.deployment.v1.RoutingConfig routing_config = 4;
        Specified by:
        hasRoutingConfig in interface WorkerDeploymentInfoOrBuilder
        Returns:
        Whether the routingConfig field is set.
      • clearRoutingConfig

        public WorkerDeploymentInfo.Builder clearRoutingConfig()
        .temporal.api.deployment.v1.RoutingConfig routing_config = 4;
      • getRoutingConfigBuilder

        public RoutingConfig.Builder getRoutingConfigBuilder()
        .temporal.api.deployment.v1.RoutingConfig routing_config = 4;
      • getLastModifierIdentity

        public java.lang.String getLastModifierIdentity()
         Identity of the last client who modified the configuration of this Deployment. Set to the
         `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
         `SetWorkerDeploymentRampingVersion`.
         
        string last_modifier_identity = 5;
        Specified by:
        getLastModifierIdentity in interface WorkerDeploymentInfoOrBuilder
        Returns:
        The lastModifierIdentity.
      • getLastModifierIdentityBytes

        public com.google.protobuf.ByteString getLastModifierIdentityBytes()
         Identity of the last client who modified the configuration of this Deployment. Set to the
         `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
         `SetWorkerDeploymentRampingVersion`.
         
        string last_modifier_identity = 5;
        Specified by:
        getLastModifierIdentityBytes in interface WorkerDeploymentInfoOrBuilder
        Returns:
        The bytes for lastModifierIdentity.
      • setLastModifierIdentity

        public WorkerDeploymentInfo.Builder setLastModifierIdentity​(java.lang.String value)
         Identity of the last client who modified the configuration of this Deployment. Set to the
         `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
         `SetWorkerDeploymentRampingVersion`.
         
        string last_modifier_identity = 5;
        Parameters:
        value - The lastModifierIdentity to set.
        Returns:
        This builder for chaining.
      • clearLastModifierIdentity

        public WorkerDeploymentInfo.Builder clearLastModifierIdentity()
         Identity of the last client who modified the configuration of this Deployment. Set to the
         `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
         `SetWorkerDeploymentRampingVersion`.
         
        string last_modifier_identity = 5;
        Returns:
        This builder for chaining.
      • setLastModifierIdentityBytes

        public WorkerDeploymentInfo.Builder setLastModifierIdentityBytes​(com.google.protobuf.ByteString value)
         Identity of the last client who modified the configuration of this Deployment. Set to the
         `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
         `SetWorkerDeploymentRampingVersion`.
         
        string last_modifier_identity = 5;
        Parameters:
        value - The bytes for lastModifierIdentity to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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