Class RoutingConfig.Builder

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

    public static final class RoutingConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RoutingConfig.Builder>
    implements RoutingConfigOrBuilder
    Protobuf type temporal.api.deployment.v1.RoutingConfig
    • 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<RoutingConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public RoutingConfig.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<RoutingConfig.Builder>
      • mergeFrom

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

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

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

        public java.lang.String getCurrentVersion()
         Always present. Specifies which Deployment Version should 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 RoutingConfigOrBuilder
        Returns:
        The currentVersion.
      • getCurrentVersionBytes

        public com.google.protobuf.ByteString getCurrentVersionBytes()
         Always present. Specifies which Deployment Version should 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 RoutingConfigOrBuilder
        Returns:
        The bytes for currentVersion.
      • setCurrentVersion

        public RoutingConfig.Builder setCurrentVersion​(java.lang.String value)
         Always present. Specifies which Deployment Version should 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 RoutingConfig.Builder clearCurrentVersion()
         Always present. Specifies which Deployment Version should 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 RoutingConfig.Builder setCurrentVersionBytes​(com.google.protobuf.ByteString value)
         Always present. Specifies which Deployment Version should 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 RoutingConfigOrBuilder
        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 RoutingConfigOrBuilder
        Returns:
        The bytes for rampingVersion.
      • setRampingVersion

        public RoutingConfig.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 RoutingConfig.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 RoutingConfig.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 RoutingConfigOrBuilder
        Returns:
        The rampingVersionPercentage.
      • setRampingVersionPercentage

        public RoutingConfig.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 RoutingConfig.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.
      • hasCurrentVersionChangedTime

        public boolean hasCurrentVersionChangedTime()
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
        Specified by:
        hasCurrentVersionChangedTime in interface RoutingConfigOrBuilder
        Returns:
        Whether the currentVersionChangedTime field is set.
      • getCurrentVersionChangedTime

        public com.google.protobuf.Timestamp getCurrentVersionChangedTime()
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
        Specified by:
        getCurrentVersionChangedTime in interface RoutingConfigOrBuilder
        Returns:
        The currentVersionChangedTime.
      • setCurrentVersionChangedTime

        public RoutingConfig.Builder setCurrentVersionChangedTime​(com.google.protobuf.Timestamp value)
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
      • setCurrentVersionChangedTime

        public RoutingConfig.Builder setCurrentVersionChangedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
      • mergeCurrentVersionChangedTime

        public RoutingConfig.Builder mergeCurrentVersionChangedTime​(com.google.protobuf.Timestamp value)
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
      • clearCurrentVersionChangedTime

        public RoutingConfig.Builder clearCurrentVersionChangedTime()
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
      • getCurrentVersionChangedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCurrentVersionChangedTimeBuilder()
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
      • getCurrentVersionChangedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCurrentVersionChangedTimeOrBuilder()
         Last time current version was changed.
         
        .google.protobuf.Timestamp current_version_changed_time = 4;
        Specified by:
        getCurrentVersionChangedTimeOrBuilder in interface RoutingConfigOrBuilder
      • hasRampingVersionChangedTime

        public boolean hasRampingVersionChangedTime()
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
        Specified by:
        hasRampingVersionChangedTime in interface RoutingConfigOrBuilder
        Returns:
        Whether the rampingVersionChangedTime field is set.
      • getRampingVersionChangedTime

        public com.google.protobuf.Timestamp getRampingVersionChangedTime()
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
        Specified by:
        getRampingVersionChangedTime in interface RoutingConfigOrBuilder
        Returns:
        The rampingVersionChangedTime.
      • setRampingVersionChangedTime

        public RoutingConfig.Builder setRampingVersionChangedTime​(com.google.protobuf.Timestamp value)
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
      • setRampingVersionChangedTime

        public RoutingConfig.Builder setRampingVersionChangedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
      • mergeRampingVersionChangedTime

        public RoutingConfig.Builder mergeRampingVersionChangedTime​(com.google.protobuf.Timestamp value)
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
      • clearRampingVersionChangedTime

        public RoutingConfig.Builder clearRampingVersionChangedTime()
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
      • getRampingVersionChangedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRampingVersionChangedTimeBuilder()
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
      • getRampingVersionChangedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getRampingVersionChangedTimeOrBuilder()
         Last time ramping version was changed. Not updated if only the ramp percentage changes.
         
        .google.protobuf.Timestamp ramping_version_changed_time = 5;
        Specified by:
        getRampingVersionChangedTimeOrBuilder in interface RoutingConfigOrBuilder
      • hasRampingVersionPercentageChangedTime

        public boolean hasRampingVersionPercentageChangedTime()
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
        Specified by:
        hasRampingVersionPercentageChangedTime in interface RoutingConfigOrBuilder
        Returns:
        Whether the rampingVersionPercentageChangedTime field is set.
      • getRampingVersionPercentageChangedTime

        public com.google.protobuf.Timestamp getRampingVersionPercentageChangedTime()
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
        Specified by:
        getRampingVersionPercentageChangedTime in interface RoutingConfigOrBuilder
        Returns:
        The rampingVersionPercentageChangedTime.
      • setRampingVersionPercentageChangedTime

        public RoutingConfig.Builder setRampingVersionPercentageChangedTime​(com.google.protobuf.Timestamp value)
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
      • setRampingVersionPercentageChangedTime

        public RoutingConfig.Builder setRampingVersionPercentageChangedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
      • mergeRampingVersionPercentageChangedTime

        public RoutingConfig.Builder mergeRampingVersionPercentageChangedTime​(com.google.protobuf.Timestamp value)
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
      • clearRampingVersionPercentageChangedTime

        public RoutingConfig.Builder clearRampingVersionPercentageChangedTime()
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
      • getRampingVersionPercentageChangedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRampingVersionPercentageChangedTimeBuilder()
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
      • getRampingVersionPercentageChangedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getRampingVersionPercentageChangedTimeOrBuilder()
         Last time ramping version percentage was changed.
         If ramping version is changed, this is also updated, even if the percentage stays the same.
         
        .google.protobuf.Timestamp ramping_version_percentage_changed_time = 6;
        Specified by:
        getRampingVersionPercentageChangedTimeOrBuilder in interface RoutingConfigOrBuilder
      • setUnknownFields

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

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