Class WorkflowTaskFailedEventAttributes

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkflowTaskFailedEventAttributesOrBuilder, Serializable

@Generated(value="protoc", comments="annotations:WorkflowTaskFailedEventAttributes.java.pb.meta") public final class WorkflowTaskFailedEventAttributes extends com.google.protobuf.GeneratedMessageV3 implements WorkflowTaskFailedEventAttributesOrBuilder
Protobuf type temporal.api.history.v1.WorkflowTaskFailedEventAttributes
See Also:
  • Field Details

    • SCHEDULED_EVENT_ID_FIELD_NUMBER

      public static final int SCHEDULED_EVENT_ID_FIELD_NUMBER
      See Also:
    • STARTED_EVENT_ID_FIELD_NUMBER

      public static final int STARTED_EVENT_ID_FIELD_NUMBER
      See Also:
    • CAUSE_FIELD_NUMBER

      public static final int CAUSE_FIELD_NUMBER
      See Also:
    • FAILURE_FIELD_NUMBER

      public static final int FAILURE_FIELD_NUMBER
      See Also:
    • IDENTITY_FIELD_NUMBER

      public static final int IDENTITY_FIELD_NUMBER
      See Also:
    • BASE_RUN_ID_FIELD_NUMBER

      public static final int BASE_RUN_ID_FIELD_NUMBER
      See Also:
    • NEW_RUN_ID_FIELD_NUMBER

      public static final int NEW_RUN_ID_FIELD_NUMBER
      See Also:
    • FORK_EVENT_VERSION_FIELD_NUMBER

      public static final int FORK_EVENT_VERSION_FIELD_NUMBER
      See Also:
    • BINARY_CHECKSUM_FIELD_NUMBER

      public static final int BINARY_CHECKSUM_FIELD_NUMBER
      See Also:
    • WORKER_VERSION_FIELD_NUMBER

      public static final int WORKER_VERSION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • getCause

      public WorkflowTaskFailedCause getCause()
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
      Specified by:
      getCause in interface WorkflowTaskFailedEventAttributesOrBuilder
      Returns:
      The cause.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkflowTaskFailedEventAttributes parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkflowTaskFailedEventAttributes parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkflowTaskFailedEventAttributes parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public WorkflowTaskFailedEventAttributes.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static WorkflowTaskFailedEventAttributes.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WorkflowTaskFailedEventAttributes.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static WorkflowTaskFailedEventAttributes getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WorkflowTaskFailedEventAttributes> parser()
    • getParserForType

      public com.google.protobuf.Parser<WorkflowTaskFailedEventAttributes> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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