Class WorkerDeploymentVersion.Builder

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

    public static final class WorkerDeploymentVersion.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WorkerDeploymentVersion.Builder>
    implements WorkerDeploymentVersionOrBuilder
     A Worker Deployment Version (Version, for short) represents a
     version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)
     Version records are created in Temporal server automatically when their
     first poller arrives to the server.
     Experimental. Worker Deployment Versions are experimental and might significantly change in the future.
     
    Protobuf type temporal.api.deployment.v1.WorkerDeploymentVersion
    • 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<WorkerDeploymentVersion.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getBuildId()
         A unique identifier for this Version within the Deployment it is a part of.
         Not necessarily unique within the namespace.
         The combination of `deployment_name` and `build_id` uniquely identifies this
         Version within the namespace, because Deployment names are unique within a namespace.
         
        string build_id = 1;
        Specified by:
        getBuildId in interface WorkerDeploymentVersionOrBuilder
        Returns:
        The buildId.
      • getBuildIdBytes

        public com.google.protobuf.ByteString getBuildIdBytes()
         A unique identifier for this Version within the Deployment it is a part of.
         Not necessarily unique within the namespace.
         The combination of `deployment_name` and `build_id` uniquely identifies this
         Version within the namespace, because Deployment names are unique within a namespace.
         
        string build_id = 1;
        Specified by:
        getBuildIdBytes in interface WorkerDeploymentVersionOrBuilder
        Returns:
        The bytes for buildId.
      • setBuildId

        public WorkerDeploymentVersion.Builder setBuildId​(java.lang.String value)
         A unique identifier for this Version within the Deployment it is a part of.
         Not necessarily unique within the namespace.
         The combination of `deployment_name` and `build_id` uniquely identifies this
         Version within the namespace, because Deployment names are unique within a namespace.
         
        string build_id = 1;
        Parameters:
        value - The buildId to set.
        Returns:
        This builder for chaining.
      • clearBuildId

        public WorkerDeploymentVersion.Builder clearBuildId()
         A unique identifier for this Version within the Deployment it is a part of.
         Not necessarily unique within the namespace.
         The combination of `deployment_name` and `build_id` uniquely identifies this
         Version within the namespace, because Deployment names are unique within a namespace.
         
        string build_id = 1;
        Returns:
        This builder for chaining.
      • setBuildIdBytes

        public WorkerDeploymentVersion.Builder setBuildIdBytes​(com.google.protobuf.ByteString value)
         A unique identifier for this Version within the Deployment it is a part of.
         Not necessarily unique within the namespace.
         The combination of `deployment_name` and `build_id` uniquely identifies this
         Version within the namespace, because Deployment names are unique within a namespace.
         
        string build_id = 1;
        Parameters:
        value - The bytes for buildId to set.
        Returns:
        This builder for chaining.
      • getDeploymentName

        public java.lang.String getDeploymentName()
         Identifies the Worker Deployment this Version is part of.
         
        string deployment_name = 2;
        Specified by:
        getDeploymentName in interface WorkerDeploymentVersionOrBuilder
        Returns:
        The deploymentName.
      • getDeploymentNameBytes

        public com.google.protobuf.ByteString getDeploymentNameBytes()
         Identifies the Worker Deployment this Version is part of.
         
        string deployment_name = 2;
        Specified by:
        getDeploymentNameBytes in interface WorkerDeploymentVersionOrBuilder
        Returns:
        The bytes for deploymentName.
      • setDeploymentName

        public WorkerDeploymentVersion.Builder setDeploymentName​(java.lang.String value)
         Identifies the Worker Deployment this Version is part of.
         
        string deployment_name = 2;
        Parameters:
        value - The deploymentName to set.
        Returns:
        This builder for chaining.
      • clearDeploymentName

        public WorkerDeploymentVersion.Builder clearDeploymentName()
         Identifies the Worker Deployment this Version is part of.
         
        string deployment_name = 2;
        Returns:
        This builder for chaining.
      • setDeploymentNameBytes

        public WorkerDeploymentVersion.Builder setDeploymentNameBytes​(com.google.protobuf.ByteString value)
         Identifies the Worker Deployment this Version is part of.
         
        string deployment_name = 2;
        Parameters:
        value - The bytes for deploymentName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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