Class TaskQueueVersioningInfo.Builder

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

    public static final class TaskQueueVersioningInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
    implements TaskQueueVersioningInfoOrBuilder
     Experimental. Worker Deployments are experimental and might significantly change in the future.
     
    Protobuf type temporal.api.taskqueue.v1.TaskQueueVersioningInfo
    • 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<TaskQueueVersioningInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getCurrentVersion()
         Always present. Specifies which Deployment Version should receive new workflow
         executions and tasks of existing unversioned or AutoUpgrade workflows.
         Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
         is set (see `ramping_version`.)
         
        string current_version = 1;
        Specified by:
        getCurrentVersion in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The currentVersion.
      • getCurrentVersionBytes

        public com.google.protobuf.ByteString getCurrentVersionBytes()
         Always present. Specifies which Deployment Version should receive new workflow
         executions and tasks of existing unversioned or AutoUpgrade workflows.
         Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
         is set (see `ramping_version`.)
         
        string current_version = 1;
        Specified by:
        getCurrentVersionBytes in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The bytes for currentVersion.
      • setCurrentVersion

        public TaskQueueVersioningInfo.Builder setCurrentVersion​(java.lang.String value)
         Always present. Specifies which Deployment Version should receive new workflow
         executions and tasks of existing unversioned or AutoUpgrade workflows.
         Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
         is set (see `ramping_version`.)
         
        string current_version = 1;
        Parameters:
        value - The currentVersion to set.
        Returns:
        This builder for chaining.
      • clearCurrentVersion

        public TaskQueueVersioningInfo.Builder clearCurrentVersion()
         Always present. Specifies which Deployment Version should receive new workflow
         executions and tasks of existing unversioned or AutoUpgrade workflows.
         Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
         is set (see `ramping_version`.)
         
        string current_version = 1;
        Returns:
        This builder for chaining.
      • setCurrentVersionBytes

        public TaskQueueVersioningInfo.Builder setCurrentVersionBytes​(com.google.protobuf.ByteString value)
         Always present. Specifies which Deployment Version should receive new workflow
         executions and tasks of existing unversioned or AutoUpgrade workflows.
         Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp
         is set (see `ramping_version`.)
         
        string current_version = 1;
        Parameters:
        value - The bytes for currentVersion to set.
        Returns:
        This builder for chaining.
      • getRampingVersion

        public java.lang.String getRampingVersion()
         When present, it means the traffic is being shifted from the Current Version to the Ramping
         Version.
         Must always be different from `current_version`. Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note that it is possible to ramp from one Version to another Version, or from unversioned
         workers to a particular Version, or from a particular Version to unversioned workers.
         
        string ramping_version = 2;
        Specified by:
        getRampingVersion in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The rampingVersion.
      • getRampingVersionBytes

        public com.google.protobuf.ByteString getRampingVersionBytes()
         When present, it means the traffic is being shifted from the Current Version to the Ramping
         Version.
         Must always be different from `current_version`. Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note that it is possible to ramp from one Version to another Version, or from unversioned
         workers to a particular Version, or from a particular Version to unversioned workers.
         
        string ramping_version = 2;
        Specified by:
        getRampingVersionBytes in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The bytes for rampingVersion.
      • setRampingVersion

        public TaskQueueVersioningInfo.Builder setRampingVersion​(java.lang.String value)
         When present, it means the traffic is being shifted from the Current Version to the Ramping
         Version.
         Must always be different from `current_version`. Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note that it is possible to ramp from one Version to another Version, or from unversioned
         workers to a particular Version, or from a particular Version to unversioned workers.
         
        string ramping_version = 2;
        Parameters:
        value - The rampingVersion to set.
        Returns:
        This builder for chaining.
      • clearRampingVersion

        public TaskQueueVersioningInfo.Builder clearRampingVersion()
         When present, it means the traffic is being shifted from the Current Version to the Ramping
         Version.
         Must always be different from `current_version`. Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note that it is possible to ramp from one Version to another Version, or from unversioned
         workers to a particular Version, or from a particular Version to unversioned workers.
         
        string ramping_version = 2;
        Returns:
        This builder for chaining.
      • setRampingVersionBytes

        public TaskQueueVersioningInfo.Builder setRampingVersionBytes​(com.google.protobuf.ByteString value)
         When present, it means the traffic is being shifted from the Current Version to the Ramping
         Version.
         Must always be different from `current_version`. Can be one of the following:
         - A Deployment Version identifier in the form "<deployment_name>.<build_id>".
         - Or, the "__unversioned__" special value, to represent all the unversioned workers (those
           with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
         Note that it is possible to ramp from one Version to another Version, or from unversioned
         workers to a particular Version, or from a particular Version to unversioned workers.
         
        string ramping_version = 2;
        Parameters:
        value - The bytes for rampingVersion to set.
        Returns:
        This builder for chaining.
      • getRampingVersionPercentage

        public float getRampingVersionPercentage()
         Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
         Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
         not yet "promoted" to be the Current Version, likely due to pending validations.
         
        float ramping_version_percentage = 3;
        Specified by:
        getRampingVersionPercentage in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The rampingVersionPercentage.
      • setRampingVersionPercentage

        public TaskQueueVersioningInfo.Builder setRampingVersionPercentage​(float value)
         Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
         Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
         not yet "promoted" to be the Current Version, likely due to pending validations.
         
        float ramping_version_percentage = 3;
        Parameters:
        value - The rampingVersionPercentage to set.
        Returns:
        This builder for chaining.
      • clearRampingVersionPercentage

        public TaskQueueVersioningInfo.Builder clearRampingVersionPercentage()
         Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
         Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
         not yet "promoted" to be the Current Version, likely due to pending validations.
         
        float ramping_version_percentage = 3;
        Returns:
        This builder for chaining.
      • hasUpdateTime

        public boolean hasUpdateTime()
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        hasUpdateTime in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        getUpdateTime in interface TaskQueueVersioningInfoOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public TaskQueueVersioningInfo.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
      • setUpdateTime

        public TaskQueueVersioningInfo.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
      • mergeUpdateTime

        public TaskQueueVersioningInfo.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
      • clearUpdateTime

        public TaskQueueVersioningInfo.Builder clearUpdateTime()
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Last time versioning information of this Task Queue changed.
         
        .google.protobuf.Timestamp update_time = 4;
        Specified by:
        getUpdateTimeOrBuilder in interface TaskQueueVersioningInfoOrBuilder
      • setUnknownFields

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

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