Class WorkflowTaskFailedEventAttributes.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkflowTaskFailedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskFailedEventAttributes.Builder>
io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkflowTaskFailedEventAttributesOrBuilder, Cloneable
Enclosing class:
WorkflowTaskFailedEventAttributes

public static final class WorkflowTaskFailedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskFailedEventAttributes.Builder> implements WorkflowTaskFailedEventAttributesOrBuilder
Protobuf type temporal.api.history.v1.WorkflowTaskFailedEventAttributes
  • Method Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WorkflowTaskFailedEventAttributes buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<WorkflowTaskFailedEventAttributes.Builder>
    • setField

      public WorkflowTaskFailedEventAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskFailedEventAttributes.Builder>
    • clearField

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

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

      public WorkflowTaskFailedEventAttributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskFailedEventAttributes.Builder>
    • addRepeatedField

      public WorkflowTaskFailedEventAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskFailedEventAttributes.Builder>
    • mergeFrom

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

    • isInitialized

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

      public WorkflowTaskFailedEventAttributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<WorkflowTaskFailedEventAttributes.Builder>
      Throws:
      IOException
    • getScheduledEventId

      public long getScheduledEventId()
       The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
       
      int64 scheduled_event_id = 1;
      Specified by:
      getScheduledEventId in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The scheduledEventId.
    • setScheduledEventId

      public WorkflowTaskFailedEventAttributes.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 WorkflowTaskFailedEventAttributes.Builder clearScheduledEventId()
       The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
       
      int64 scheduled_event_id = 1;
      Returns:
      This builder for chaining.
    • getStartedEventId

      public long getStartedEventId()
       The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
       
      int64 started_event_id = 2;
      Specified by:
      getStartedEventId in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The startedEventId.
    • setStartedEventId

      public WorkflowTaskFailedEventAttributes.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 WorkflowTaskFailedEventAttributes.Builder clearStartedEventId()
       The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
       
      int64 started_event_id = 2;
      Returns:
      This builder for chaining.
    • getCauseValue

      public int getCauseValue()
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Specified by:
      getCauseValue in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The enum numeric value on the wire for cause.
    • setCauseValue

      public WorkflowTaskFailedEventAttributes.Builder setCauseValue(int value)
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Parameters:
      value - The enum numeric value on the wire for cause to set.
      Returns:
      This builder for chaining.
    • getCause

      public WorkflowTaskFailedCause getCause()
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Specified by:
      getCause in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The cause.
    • setCause

      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Parameters:
      value - The cause to set.
      Returns:
      This builder for chaining.
    • clearCause

      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Returns:
      This builder for chaining.
    • hasFailure

      public boolean hasFailure()
       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
      Specified by:
      hasFailure in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      Whether the failure field is set.
    • getFailure

      public Failure getFailure()
       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
      Specified by:
      getFailure in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The failure.
    • setFailure

       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
    • setFailure

      public WorkflowTaskFailedEventAttributes.Builder setFailure(Failure.Builder builderForValue)
       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
    • mergeFailure

       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
    • clearFailure

       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
    • getFailureBuilder

      public Failure.Builder getFailureBuilder()
       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
    • getFailureOrBuilder

      public FailureOrBuilder getFailureOrBuilder()
       The failure details
       
      .temporal.api.failure.v1.Failure failure = 4;
      Specified by:
      getFailureOrBuilder in interface WorkflowTaskFailedEventAttributesOrBuilder
    • getIdentity

      public String getIdentity()
       If a worker explicitly failed this task, this field contains the worker's identity.
       When the server generates the failure internally this field is set as 'history-service'.
       
      string identity = 5;
      Specified by:
      getIdentity in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       If a worker explicitly failed this task, this field contains the worker's identity.
       When the server generates the failure internally this field is set as 'history-service'.
       
      string identity = 5;
      Specified by:
      getIdentityBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

       If a worker explicitly failed this task, this field contains the worker's identity.
       When the server generates the failure internally this field is set as 'history-service'.
       
      string identity = 5;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

       If a worker explicitly failed this task, this field contains the worker's identity.
       When the server generates the failure internally this field is set as 'history-service'.
       
      string identity = 5;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public WorkflowTaskFailedEventAttributes.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       If a worker explicitly failed this task, this field contains the worker's identity.
       When the server generates the failure internally this field is set as 'history-service'.
       
      string identity = 5;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • getBaseRunId

      public String getBaseRunId()
       The original run id of the workflow. For reset workflow.
       
      string base_run_id = 6;
      Specified by:
      getBaseRunId in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The baseRunId.
    • getBaseRunIdBytes

      public com.google.protobuf.ByteString getBaseRunIdBytes()
       The original run id of the workflow. For reset workflow.
       
      string base_run_id = 6;
      Specified by:
      getBaseRunIdBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The bytes for baseRunId.
    • setBaseRunId

       The original run id of the workflow. For reset workflow.
       
      string base_run_id = 6;
      Parameters:
      value - The baseRunId to set.
      Returns:
      This builder for chaining.
    • clearBaseRunId

       The original run id of the workflow. For reset workflow.
       
      string base_run_id = 6;
      Returns:
      This builder for chaining.
    • setBaseRunIdBytes

      public WorkflowTaskFailedEventAttributes.Builder setBaseRunIdBytes(com.google.protobuf.ByteString value)
       The original run id of the workflow. For reset workflow.
       
      string base_run_id = 6;
      Parameters:
      value - The bytes for baseRunId to set.
      Returns:
      This builder for chaining.
    • getNewRunId

      public String getNewRunId()
       If the workflow is being reset, the new run id.
       
      string new_run_id = 7;
      Specified by:
      getNewRunId in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The newRunId.
    • getNewRunIdBytes

      public com.google.protobuf.ByteString getNewRunIdBytes()
       If the workflow is being reset, the new run id.
       
      string new_run_id = 7;
      Specified by:
      getNewRunIdBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The bytes for newRunId.
    • setNewRunId

       If the workflow is being reset, the new run id.
       
      string new_run_id = 7;
      Parameters:
      value - The newRunId to set.
      Returns:
      This builder for chaining.
    • clearNewRunId

       If the workflow is being reset, the new run id.
       
      string new_run_id = 7;
      Returns:
      This builder for chaining.
    • setNewRunIdBytes

      public WorkflowTaskFailedEventAttributes.Builder setNewRunIdBytes(com.google.protobuf.ByteString value)
       If the workflow is being reset, the new run id.
       
      string new_run_id = 7;
      Parameters:
      value - The bytes for newRunId to set.
      Returns:
      This builder for chaining.
    • getForkEventVersion

      public long getForkEventVersion()
       Version of the event where the history branch was forked. Used by multi-cluster replication
       during resets to identify the correct history branch.
       
      int64 fork_event_version = 8;
      Specified by:
      getForkEventVersion in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The forkEventVersion.
    • setForkEventVersion

      public WorkflowTaskFailedEventAttributes.Builder setForkEventVersion(long value)
       Version of the event where the history branch was forked. Used by multi-cluster replication
       during resets to identify the correct history branch.
       
      int64 fork_event_version = 8;
      Parameters:
      value - The forkEventVersion to set.
      Returns:
      This builder for chaining.
    • clearForkEventVersion

      public WorkflowTaskFailedEventAttributes.Builder clearForkEventVersion()
       Version of the event where the history branch was forked. Used by multi-cluster replication
       during resets to identify the correct history branch.
       
      int64 fork_event_version = 8;
      Returns:
      This builder for chaining.
    • getBinaryChecksum

      @Deprecated public String getBinaryChecksum()
      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.binary_checksum is deprecated. See temporal/api/history/v1/message.proto;l=411
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       If a worker explicitly failed this task, its binary id
       
      string binary_checksum = 9 [deprecated = true];
      Specified by:
      getBinaryChecksum in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The binaryChecksum.
    • getBinaryChecksumBytes

      @Deprecated public com.google.protobuf.ByteString getBinaryChecksumBytes()
      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.binary_checksum is deprecated. See temporal/api/history/v1/message.proto;l=411
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       If a worker explicitly failed this task, its binary id
       
      string binary_checksum = 9 [deprecated = true];
      Specified by:
      getBinaryChecksumBytes in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The bytes for binaryChecksum.
    • setBinaryChecksum

      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.binary_checksum is deprecated. See temporal/api/history/v1/message.proto;l=411
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       If a worker explicitly failed this task, its binary id
       
      string binary_checksum = 9 [deprecated = true];
      Parameters:
      value - The binaryChecksum to set.
      Returns:
      This builder for chaining.
    • clearBinaryChecksum

      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.binary_checksum is deprecated. See temporal/api/history/v1/message.proto;l=411
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       If a worker explicitly failed this task, its binary id
       
      string binary_checksum = 9 [deprecated = true];
      Returns:
      This builder for chaining.
    • setBinaryChecksumBytes

      @Deprecated public WorkflowTaskFailedEventAttributes.Builder setBinaryChecksumBytes(com.google.protobuf.ByteString value)
      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.binary_checksum is deprecated. See temporal/api/history/v1/message.proto;l=411
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       If a worker explicitly failed this task, its binary id
       
      string binary_checksum = 9 [deprecated = true];
      Parameters:
      value - The bytes for binaryChecksum to set.
      Returns:
      This builder for chaining.
    • hasWorkerVersion

      @Deprecated public boolean hasWorkerVersion()
      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=416
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
      Specified by:
      hasWorkerVersion in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      Whether the workerVersion field is set.
    • getWorkerVersion

      @Deprecated public WorkerVersionStamp getWorkerVersion()
      Deprecated.
      temporal.api.history.v1.WorkflowTaskFailedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=416
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
      Specified by:
      getWorkerVersion in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The workerVersion.
    • setWorkerVersion

      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
    • setWorkerVersion

      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
    • mergeWorkerVersion

      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
    • clearWorkerVersion

      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
    • getWorkerVersionBuilder

      @Deprecated public WorkerVersionStamp.Builder getWorkerVersionBuilder()
      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
    • getWorkerVersionOrBuilder

      @Deprecated public WorkerVersionStampOrBuilder getWorkerVersionOrBuilder()
      Deprecated.
       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. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
      Specified by:
      getWorkerVersionOrBuilder in interface WorkflowTaskFailedEventAttributesOrBuilder
    • setUnknownFields

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

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