Class WorkerDeploymentVersion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkerDeploymentVersion.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkerDeploymentVersion.Builder>
io.temporal.api.deployment.v1.WorkerDeploymentVersion.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkerDeploymentVersionOrBuilder, 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 Details

    • 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

      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

      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, 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, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkerDeploymentVersion.Builder>
    • mergeFrom

      public WorkerDeploymentVersion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkerDeploymentVersion.Builder>
    • mergeFrom

    • 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 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:
      IOException
    • getBuildId

      public 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(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 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(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>