Class WorkflowTaskCompletedEventAttributes.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<WorkflowTaskCompletedEventAttributes.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<WorkflowTaskCompletedEventAttributes.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public WorkflowTaskCompletedEventAttributes.Builder setScheduledEventId​(long value)
         The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
         
        int64 scheduled_event_id = 1;
        Parameters:
        value - The scheduledEventId to set.
        Returns:
        This builder for chaining.
      • clearScheduledEventId

        public WorkflowTaskCompletedEventAttributes.Builder clearScheduledEventId()
         The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
         
        int64 scheduled_event_id = 1;
        Returns:
        This builder for chaining.
      • setStartedEventId

        public WorkflowTaskCompletedEventAttributes.Builder setStartedEventId​(long value)
         The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
         
        int64 started_event_id = 2;
        Parameters:
        value - The startedEventId to set.
        Returns:
        This builder for chaining.
      • clearStartedEventId

        public WorkflowTaskCompletedEventAttributes.Builder clearStartedEventId()
         The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
         
        int64 started_event_id = 2;
        Returns:
        This builder for chaining.
      • setIdentity

        public WorkflowTaskCompletedEventAttributes.Builder setIdentity​(java.lang.String value)
         Identity of the worker who completed this task
         
        string identity = 3;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public WorkflowTaskCompletedEventAttributes.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         Identity of the worker who completed this task
         
        string identity = 3;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • setBinaryChecksum

        public WorkflowTaskCompletedEventAttributes.Builder setBinaryChecksum​(java.lang.String value)
         Binary ID of the worker who completed this task
         
        string binary_checksum = 4;
        Parameters:
        value - The binaryChecksum to set.
        Returns:
        This builder for chaining.
      • setBinaryChecksumBytes

        public WorkflowTaskCompletedEventAttributes.Builder setBinaryChecksumBytes​(com.google.protobuf.ByteString value)
         Binary ID of the worker who completed this task
         
        string binary_checksum = 4;
        Parameters:
        value - The bytes for binaryChecksum to set.
        Returns:
        This builder for chaining.
      • hasWorkerVersion

        public boolean hasWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
        Specified by:
        hasWorkerVersion in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the workerVersion field is set.
      • getWorkerVersion

        public WorkerVersionStamp getWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
        Specified by:
        getWorkerVersion in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The workerVersion.
      • setWorkerVersion

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp value)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • setWorkerVersion

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerVersion​(WorkerVersionStamp.Builder builderForValue)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • mergeWorkerVersion

        public WorkflowTaskCompletedEventAttributes.Builder mergeWorkerVersion​(WorkerVersionStamp value)
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • clearWorkerVersion

        public WorkflowTaskCompletedEventAttributes.Builder clearWorkerVersion()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • getWorkerVersionBuilder

        public WorkerVersionStamp.Builder getWorkerVersionBuilder()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • getWorkerVersionOrBuilder

        public WorkerVersionStampOrBuilder getWorkerVersionOrBuilder()
         Version info of the worker who processed this workflow task. If present, the `build_id` field
         within is also used as `binary_checksum`, which may be omitted in that case (it may also be
         populated to preserve compatibility).
         Deprecated. Use `deployment` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
        Specified by:
        getWorkerVersionOrBuilder in interface WorkflowTaskCompletedEventAttributesOrBuilder
      • hasSdkMetadata

        public boolean hasSdkMetadata()
         Data the SDK wishes to record for itself, but server need not interpret, and does not
         directly impact workflow state.
         
        .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
        Specified by:
        hasSdkMetadata in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the sdkMetadata field is set.
      • clearSdkMetadata

        public WorkflowTaskCompletedEventAttributes.Builder clearSdkMetadata()
         Data the SDK wishes to record for itself, but server need not interpret, and does not
         directly impact workflow state.
         
        .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
      • getSdkMetadataBuilder

        public WorkflowTaskCompletedMetadata.Builder getSdkMetadataBuilder()
         Data the SDK wishes to record for itself, but server need not interpret, and does not
         directly impact workflow state.
         
        .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
      • hasMeteringMetadata

        public boolean hasMeteringMetadata()
         Local usage data sent during workflow task completion and recorded here for posterity
         
        .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
        Specified by:
        hasMeteringMetadata in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the meteringMetadata field is set.
      • clearMeteringMetadata

        public WorkflowTaskCompletedEventAttributes.Builder clearMeteringMetadata()
         Local usage data sent during workflow task completion and recorded here for posterity
         
        .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
      • getMeteringMetadataBuilder

        public MeteringMetadata.Builder getMeteringMetadataBuilder()
         Local usage data sent during workflow task completion and recorded here for posterity
         
        .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
      • hasDeployment

        @Deprecated
        public boolean hasDeployment()
        Deprecated.
        temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.deployment is deprecated. See temporal/api/history/v1/message.proto;l=260
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
        Specified by:
        hasDeployment in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the deployment field is set.
      • getDeployment

        @Deprecated
        public Deployment getDeployment()
        Deprecated.
        temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.deployment is deprecated. See temporal/api/history/v1/message.proto;l=260
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
        Specified by:
        getDeployment in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The deployment.
      • setDeployment

        @Deprecated
        public WorkflowTaskCompletedEventAttributes.Builder setDeployment​(Deployment value)
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
      • setDeployment

        @Deprecated
        public WorkflowTaskCompletedEventAttributes.Builder setDeployment​(Deployment.Builder builderForValue)
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
      • mergeDeployment

        @Deprecated
        public WorkflowTaskCompletedEventAttributes.Builder mergeDeployment​(Deployment value)
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
      • clearDeployment

        @Deprecated
        public WorkflowTaskCompletedEventAttributes.Builder clearDeployment()
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
      • getDeploymentBuilder

        @Deprecated
        public Deployment.Builder getDeploymentBuilder()
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
      • getDeploymentOrBuilder

        @Deprecated
        public DeploymentOrBuilder getDeploymentOrBuilder()
        Deprecated.
         The deployment that completed this task. May or may not be set for unversioned workers,
         depending on whether a value is sent by the SDK. This value updates workflow execution's
         `versioning_info.deployment`.
         Deprecated. Replaced with `worker_deployment_version`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
        Specified by:
        getDeploymentOrBuilder in interface WorkflowTaskCompletedEventAttributesOrBuilder
      • getVersioningBehaviorValue

        public int getVersioningBehaviorValue()
         Versioning behavior sent by the worker that completed this task for this particular workflow
         execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
         updates workflow execution's `versioning_info.behavior`.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 8;
        Specified by:
        getVersioningBehaviorValue in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The enum numeric value on the wire for versioningBehavior.
      • setVersioningBehaviorValue

        public WorkflowTaskCompletedEventAttributes.Builder setVersioningBehaviorValue​(int value)
         Versioning behavior sent by the worker that completed this task for this particular workflow
         execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
         updates workflow execution's `versioning_info.behavior`.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 8;
        Parameters:
        value - The enum numeric value on the wire for versioningBehavior to set.
        Returns:
        This builder for chaining.
      • getVersioningBehavior

        public VersioningBehavior getVersioningBehavior()
         Versioning behavior sent by the worker that completed this task for this particular workflow
         execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
         updates workflow execution's `versioning_info.behavior`.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 8;
        Specified by:
        getVersioningBehavior in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The versioningBehavior.
      • setVersioningBehavior

        public WorkflowTaskCompletedEventAttributes.Builder setVersioningBehavior​(VersioningBehavior value)
         Versioning behavior sent by the worker that completed this task for this particular workflow
         execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
         updates workflow execution's `versioning_info.behavior`.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 8;
        Parameters:
        value - The versioningBehavior to set.
        Returns:
        This builder for chaining.
      • clearVersioningBehavior

        public WorkflowTaskCompletedEventAttributes.Builder clearVersioningBehavior()
         Versioning behavior sent by the worker that completed this task for this particular workflow
         execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
         updates workflow execution's `versioning_info.behavior`.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 8;
        Returns:
        This builder for chaining.
      • getWorkerDeploymentVersion

        public java.lang.String getWorkerDeploymentVersion()
         The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `versioning_info.version`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_version = 9;
        Specified by:
        getWorkerDeploymentVersion in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The workerDeploymentVersion.
      • getWorkerDeploymentVersionBytes

        public com.google.protobuf.ByteString getWorkerDeploymentVersionBytes()
         The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `versioning_info.version`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_version = 9;
        Specified by:
        getWorkerDeploymentVersionBytes in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The bytes for workerDeploymentVersion.
      • setWorkerDeploymentVersion

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerDeploymentVersion​(java.lang.String value)
         The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `versioning_info.version`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_version = 9;
        Parameters:
        value - The workerDeploymentVersion to set.
        Returns:
        This builder for chaining.
      • clearWorkerDeploymentVersion

        public WorkflowTaskCompletedEventAttributes.Builder clearWorkerDeploymentVersion()
         The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `versioning_info.version`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_version = 9;
        Returns:
        This builder for chaining.
      • setWorkerDeploymentVersionBytes

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerDeploymentVersionBytes​(com.google.protobuf.ByteString value)
         The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `versioning_info.version`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_version = 9;
        Parameters:
        value - The bytes for workerDeploymentVersion to set.
        Returns:
        This builder for chaining.
      • getWorkerDeploymentName

        public java.lang.String getWorkerDeploymentName()
         The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `worker_deployment_name`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_name = 10;
        Specified by:
        getWorkerDeploymentName in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The workerDeploymentName.
      • getWorkerDeploymentNameBytes

        public com.google.protobuf.ByteString getWorkerDeploymentNameBytes()
         The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `worker_deployment_name`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_name = 10;
        Specified by:
        getWorkerDeploymentNameBytes in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The bytes for workerDeploymentName.
      • setWorkerDeploymentName

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerDeploymentName​(java.lang.String value)
         The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `worker_deployment_name`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_name = 10;
        Parameters:
        value - The workerDeploymentName to set.
        Returns:
        This builder for chaining.
      • clearWorkerDeploymentName

        public WorkflowTaskCompletedEventAttributes.Builder clearWorkerDeploymentName()
         The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `worker_deployment_name`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_name = 10;
        Returns:
        This builder for chaining.
      • setWorkerDeploymentNameBytes

        public WorkflowTaskCompletedEventAttributes.Builder setWorkerDeploymentNameBytes​(com.google.protobuf.ByteString value)
         The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
         is set. This value updates workflow execution's `worker_deployment_name`.
         Experimental. Worker Deployments are experimental and might significantly change in the future.
         
        string worker_deployment_name = 10;
        Parameters:
        value - The bytes for workerDeploymentName to set.
        Returns:
        This builder for chaining.