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

        public java.lang.String getVersion()
         Required. The target Version of the transition. May be `__unversioned__` which means a
         so-far-versioned workflow is transitioning to unversioned workers.
         
        string version = 1;
        Specified by:
        getVersion in interface DeploymentVersionTransitionOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Required. The target Version of the transition. May be `__unversioned__` which means a
         so-far-versioned workflow is transitioning to unversioned workers.
         
        string version = 1;
        Specified by:
        getVersionBytes in interface DeploymentVersionTransitionOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public DeploymentVersionTransition.Builder setVersion​(java.lang.String value)
         Required. The target Version of the transition. May be `__unversioned__` which means a
         so-far-versioned workflow is transitioning to unversioned workers.
         
        string version = 1;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public DeploymentVersionTransition.Builder clearVersion()
         Required. The target Version of the transition. May be `__unversioned__` which means a
         so-far-versioned workflow is transitioning to unversioned workers.
         
        string version = 1;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public DeploymentVersionTransition.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         Required. The target Version of the transition. May be `__unversioned__` which means a
         so-far-versioned workflow is transitioning to unversioned workers.
         
        string version = 1;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • 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>