Class VersioningOverride.PinnedOverride.Builder

    • 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<VersioningOverride.PinnedOverride.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<VersioningOverride.PinnedOverride.Builder>
      • getDefaultInstanceForType

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

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

        public VersioningOverride.PinnedOverride buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public VersioningOverride.PinnedOverride.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<VersioningOverride.PinnedOverride.Builder>
        Throws:
        java.io.IOException
      • getBehaviorValue

        public int getBehaviorValue()
         Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
         See `PinnedOverrideBehavior` for details.
         
        .temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior behavior = 1;
        Specified by:
        getBehaviorValue in interface VersioningOverride.PinnedOverrideOrBuilder
        Returns:
        The enum numeric value on the wire for behavior.
      • setBehaviorValue

        public VersioningOverride.PinnedOverride.Builder setBehaviorValue​(int value)
         Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
         See `PinnedOverrideBehavior` for details.
         
        .temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior behavior = 1;
        Parameters:
        value - The enum numeric value on the wire for behavior to set.
        Returns:
        This builder for chaining.
      • clearBehavior

        public VersioningOverride.PinnedOverride.Builder clearBehavior()
         Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED.
         See `PinnedOverrideBehavior` for details.
         
        .temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior behavior = 1;
        Returns:
        This builder for chaining.
      • hasVersion

        public boolean hasVersion()
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
        Specified by:
        hasVersion in interface VersioningOverride.PinnedOverrideOrBuilder
        Returns:
        Whether the version field is set.
      • getVersion

        public WorkerDeploymentVersion getVersion()
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
        Specified by:
        getVersion in interface VersioningOverride.PinnedOverrideOrBuilder
        Returns:
        The version.
      • setVersion

        public VersioningOverride.PinnedOverride.Builder setVersion​(WorkerDeploymentVersion value)
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
      • setVersion

        public VersioningOverride.PinnedOverride.Builder setVersion​(WorkerDeploymentVersion.Builder builderForValue)
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
      • mergeVersion

        public VersioningOverride.PinnedOverride.Builder mergeVersion​(WorkerDeploymentVersion value)
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
      • clearVersion

        public VersioningOverride.PinnedOverride.Builder clearVersion()
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
      • getVersionBuilder

        public WorkerDeploymentVersion.Builder getVersionBuilder()
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
      • getVersionOrBuilder

        public WorkerDeploymentVersionOrBuilder getVersionOrBuilder()
         Specifies the Worker Deployment Version to pin this workflow to.
         Required if the target workflow is not already pinned to a version.
        
         If omitted and the target workflow is already pinned, the effective
         pinned version will be the existing pinned version.
        
         If omitted and the target workflow is not pinned, the override request
         will be rejected with a PreconditionFailed error.
         
        .temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
        Specified by:
        getVersionOrBuilder in interface VersioningOverride.PinnedOverrideOrBuilder