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

        public boolean hasDeployment()
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
        Specified by:
        hasDeployment in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        Whether the deployment field is set.
      • getDeployment

        public Deployment getDeployment()
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
        Specified by:
        getDeployment in interface WorkflowTaskCompletedEventAttributesOrBuilder
        Returns:
        The deployment.
      • setDeployment

        public WorkflowTaskCompletedEventAttributes.Builder setDeployment​(Deployment value)
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
      • setDeployment

        public WorkflowTaskCompletedEventAttributes.Builder setDeployment​(Deployment.Builder builderForValue)
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
      • mergeDeployment

        public WorkflowTaskCompletedEventAttributes.Builder mergeDeployment​(Deployment value)
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
      • clearDeployment

        public WorkflowTaskCompletedEventAttributes.Builder clearDeployment()
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
      • getDeploymentBuilder

        public Deployment.Builder getDeploymentBuilder()
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
      • getDeploymentOrBuilder

        public DeploymentOrBuilder getDeploymentOrBuilder()
         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`.
         
        .temporal.api.deployment.v1.Deployment deployment = 7;
        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.