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, or missing if worker is not
         using versioning. 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 compatability).
         
        .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, or missing if worker is not
         using versioning. 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 compatability).
         
        .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, or missing if worker is not
         using versioning. 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 compatability).
         
        .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, or missing if worker is not
         using versioning. 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 compatability).
         
        .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, or missing if worker is not
         using versioning. 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 compatability).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • clearWorkerVersion

        public WorkflowTaskCompletedEventAttributes.Builder clearWorkerVersion()
         Version info of the worker who processed this workflow task, or missing if worker is not
         using versioning. 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 compatability).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • getWorkerVersionBuilder

        public WorkerVersionStamp.Builder getWorkerVersionBuilder()
         Version info of the worker who processed this workflow task, or missing if worker is not
         using versioning. 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 compatability).
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
      • getWorkerVersionOrBuilder

        public WorkerVersionStampOrBuilder getWorkerVersionOrBuilder()
         Version info of the worker who processed this workflow task, or missing if worker is not
         using versioning. 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 compatability).
         
        .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;