Class DeploymentVersionTransition.Builder

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

    public static final class DeploymentVersionTransition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DeploymentVersionTransition.Builder>
    implements DeploymentVersionTransitionOrBuilder
     Holds information about ongoing transition of a workflow execution from one worker
     deployment version to another.
     Experimental. Might change in the future.
     
    Protobuf type temporal.api.workflow.v1.DeploymentVersionTransition
    • 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<DeploymentVersionTransition.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<DeploymentVersionTransition.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        @Deprecated
        public java.lang.String getVersion()
        Deprecated.
        temporal.api.workflow.v1.DeploymentVersionTransition.version is deprecated. See temporal/api/workflow/v1/message.proto;l=227
         Deprecated. Use `deployment_version`.
         
        string version = 1 [deprecated = true];
        Specified by:
        getVersion in interface DeploymentVersionTransitionOrBuilder
        Returns:
        The version.
      • getVersionBytes

        @Deprecated
        public com.google.protobuf.ByteString getVersionBytes()
        Deprecated.
        temporal.api.workflow.v1.DeploymentVersionTransition.version is deprecated. See temporal/api/workflow/v1/message.proto;l=227
         Deprecated. Use `deployment_version`.
         
        string version = 1 [deprecated = true];
        Specified by:
        getVersionBytes in interface DeploymentVersionTransitionOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        @Deprecated
        public DeploymentVersionTransition.Builder setVersion​(java.lang.String value)
        Deprecated.
        temporal.api.workflow.v1.DeploymentVersionTransition.version is deprecated. See temporal/api/workflow/v1/message.proto;l=227
         Deprecated. Use `deployment_version`.
         
        string version = 1 [deprecated = true];
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        @Deprecated
        public DeploymentVersionTransition.Builder clearVersion()
        Deprecated.
        temporal.api.workflow.v1.DeploymentVersionTransition.version is deprecated. See temporal/api/workflow/v1/message.proto;l=227
         Deprecated. Use `deployment_version`.
         
        string version = 1 [deprecated = true];
        Returns:
        This builder for chaining.
      • setVersionBytes

        @Deprecated
        public DeploymentVersionTransition.Builder setVersionBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        temporal.api.workflow.v1.DeploymentVersionTransition.version is deprecated. See temporal/api/workflow/v1/message.proto;l=227
         Deprecated. Use `deployment_version`.
         
        string version = 1 [deprecated = true];
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • hasDeploymentVersion

        public boolean hasDeploymentVersion()
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
        Specified by:
        hasDeploymentVersion in interface DeploymentVersionTransitionOrBuilder
        Returns:
        Whether the deploymentVersion field is set.
      • setDeploymentVersion

        public DeploymentVersionTransition.Builder setDeploymentVersion​(WorkerDeploymentVersion value)
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
      • setDeploymentVersion

        public DeploymentVersionTransition.Builder setDeploymentVersion​(WorkerDeploymentVersion.Builder builderForValue)
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
      • mergeDeploymentVersion

        public DeploymentVersionTransition.Builder mergeDeploymentVersion​(WorkerDeploymentVersion value)
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
      • clearDeploymentVersion

        public DeploymentVersionTransition.Builder clearDeploymentVersion()
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
      • getDeploymentVersionBuilder

        public WorkerDeploymentVersion.Builder getDeploymentVersionBuilder()
         The target Version of the transition.
         If nil, a so-far-versioned workflow is transitioning to unversioned workers.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
      • mergeUnknownFields

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