All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/history/v1/message.proto

package io.temporal.api.history.v1;

/**
 * Protobuf type {@code temporal.api.history.v1.WorkflowTaskFailedEventAttributes}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:WorkflowTaskFailedEventAttributes.java.pb.meta")
public  final class WorkflowTaskFailedEventAttributes extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.history.v1.WorkflowTaskFailedEventAttributes)
    WorkflowTaskFailedEventAttributesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WorkflowTaskFailedEventAttributes.newBuilder() to construct.
  private WorkflowTaskFailedEventAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private WorkflowTaskFailedEventAttributes() {
    cause_ = 0;
    identity_ = "";
    baseRunId_ = "";
    newRunId_ = "";
    binaryChecksum_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new WorkflowTaskFailedEventAttributes();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WorkflowTaskFailedEventAttributes(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            scheduledEventId_ = input.readInt64();
            break;
          }
          case 16: {

            startedEventId_ = input.readInt64();
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            cause_ = rawValue;
            break;
          }
          case 34: {
            io.temporal.api.failure.v1.Failure.Builder subBuilder = null;
            if (failure_ != null) {
              subBuilder = failure_.toBuilder();
            }
            failure_ = input.readMessage(io.temporal.api.failure.v1.Failure.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(failure_);
              failure_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            identity_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            baseRunId_ = s;
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            newRunId_ = s;
            break;
          }
          case 64: {

            forkEventVersion_ = input.readInt64();
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            binaryChecksum_ = s;
            break;
          }
          case 82: {
            io.temporal.api.common.v1.WorkerVersionStamp.Builder subBuilder = null;
            if (workerVersion_ != null) {
              subBuilder = workerVersion_.toBuilder();
            }
            workerVersion_ = input.readMessage(io.temporal.api.common.v1.WorkerVersionStamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workerVersion_);
              workerVersion_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskFailedEventAttributes_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskFailedEventAttributes_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.Builder.class);
  }

  public static final int SCHEDULED_EVENT_ID_FIELD_NUMBER = 1;
  private long scheduledEventId_;
  /**
   * 
   * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
   * 
* * int64 scheduled_event_id = 1; * @return The scheduledEventId. */ public long getScheduledEventId() { return scheduledEventId_; } public static final int STARTED_EVENT_ID_FIELD_NUMBER = 2; private long startedEventId_; /** *
   * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
   * 
* * int64 started_event_id = 2; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } public static final int CAUSE_FIELD_NUMBER = 3; private int cause_; /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @return The enum numeric value on the wire for cause. */ public int getCauseValue() { return cause_; } /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @return The cause. */ public io.temporal.api.enums.v1.WorkflowTaskFailedCause getCause() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.WorkflowTaskFailedCause result = io.temporal.api.enums.v1.WorkflowTaskFailedCause.valueOf(cause_); return result == null ? io.temporal.api.enums.v1.WorkflowTaskFailedCause.UNRECOGNIZED : result; } public static final int FAILURE_FIELD_NUMBER = 4; private io.temporal.api.failure.v1.Failure failure_; /** *
   * The failure details
   * 
* * .temporal.api.failure.v1.Failure failure = 4; * @return Whether the failure field is set. */ public boolean hasFailure() { return failure_ != null; } /** *
   * The failure details
   * 
* * .temporal.api.failure.v1.Failure failure = 4; * @return The failure. */ public io.temporal.api.failure.v1.Failure getFailure() { return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_; } /** *
   * The failure details
   * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() { return getFailure(); } public static final int IDENTITY_FIELD_NUMBER = 5; private volatile java.lang.Object identity_; /** *
   * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
   * 
* * string identity = 5; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } } /** *
   * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
   * 
* * string identity = 5; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BASE_RUN_ID_FIELD_NUMBER = 6; private volatile java.lang.Object baseRunId_; /** *
   * The original run id of the workflow. For reset workflow.
   * 
* * string base_run_id = 6; * @return The baseRunId. */ public java.lang.String getBaseRunId() { java.lang.Object ref = baseRunId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseRunId_ = s; return s; } } /** *
   * The original run id of the workflow. For reset workflow.
   * 
* * string base_run_id = 6; * @return The bytes for baseRunId. */ public com.google.protobuf.ByteString getBaseRunIdBytes() { java.lang.Object ref = baseRunId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseRunId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEW_RUN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object newRunId_; /** *
   * If the workflow is being reset, the new run id.
   * 
* * string new_run_id = 7; * @return The newRunId. */ public java.lang.String getNewRunId() { java.lang.Object ref = newRunId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newRunId_ = s; return s; } } /** *
   * If the workflow is being reset, the new run id.
   * 
* * string new_run_id = 7; * @return The bytes for newRunId. */ public com.google.protobuf.ByteString getNewRunIdBytes() { java.lang.Object ref = newRunId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newRunId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORK_EVENT_VERSION_FIELD_NUMBER = 8; private long forkEventVersion_; /** *
   * TODO: ?
   * 
* * int64 fork_event_version = 8; * @return The forkEventVersion. */ public long getForkEventVersion() { return forkEventVersion_; } public static final int BINARY_CHECKSUM_FIELD_NUMBER = 9; private volatile java.lang.Object binaryChecksum_; /** *
   * DEPRECATED since 1.21 - use `worker_version` instead.
   * If a worker explicitly failed this task, its binary id
   * 
* * string binary_checksum = 9; * @return The binaryChecksum. */ public java.lang.String getBinaryChecksum() { java.lang.Object ref = binaryChecksum_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); binaryChecksum_ = s; return s; } } /** *
   * DEPRECATED since 1.21 - use `worker_version` instead.
   * If a worker explicitly failed this task, its binary id
   * 
* * string binary_checksum = 9; * @return The bytes for binaryChecksum. */ public com.google.protobuf.ByteString getBinaryChecksumBytes() { java.lang.Object ref = binaryChecksum_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); binaryChecksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WORKER_VERSION_FIELD_NUMBER = 10; private io.temporal.api.common.v1.WorkerVersionStamp workerVersion_; /** *
   * 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).
   * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; * @return Whether the workerVersion field is set. */ public boolean hasWorkerVersion() { return workerVersion_ != null; } /** *
   * 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).
   * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; * @return The workerVersion. */ public io.temporal.api.common.v1.WorkerVersionStamp getWorkerVersion() { return workerVersion_ == null ? io.temporal.api.common.v1.WorkerVersionStamp.getDefaultInstance() : workerVersion_; } /** *
   * 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).
   * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public io.temporal.api.common.v1.WorkerVersionStampOrBuilder getWorkerVersionOrBuilder() { return getWorkerVersion(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scheduledEventId_ != 0L) { output.writeInt64(1, scheduledEventId_); } if (startedEventId_ != 0L) { output.writeInt64(2, startedEventId_); } if (cause_ != io.temporal.api.enums.v1.WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED.getNumber()) { output.writeEnum(3, cause_); } if (failure_ != null) { output.writeMessage(4, getFailure()); } if (!getIdentityBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, identity_); } if (!getBaseRunIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, baseRunId_); } if (!getNewRunIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, newRunId_); } if (forkEventVersion_ != 0L) { output.writeInt64(8, forkEventVersion_); } if (!getBinaryChecksumBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, binaryChecksum_); } if (workerVersion_ != null) { output.writeMessage(10, getWorkerVersion()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scheduledEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, scheduledEventId_); } if (startedEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startedEventId_); } if (cause_ != io.temporal.api.enums.v1.WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, cause_); } if (failure_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFailure()); } if (!getIdentityBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, identity_); } if (!getBaseRunIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, baseRunId_); } if (!getNewRunIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, newRunId_); } if (forkEventVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, forkEventVersion_); } if (!getBinaryChecksumBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, binaryChecksum_); } if (workerVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getWorkerVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes)) { return super.equals(obj); } io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes other = (io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes) obj; if (getScheduledEventId() != other.getScheduledEventId()) return false; if (getStartedEventId() != other.getStartedEventId()) return false; if (cause_ != other.cause_) return false; if (hasFailure() != other.hasFailure()) return false; if (hasFailure()) { if (!getFailure() .equals(other.getFailure())) return false; } if (!getIdentity() .equals(other.getIdentity())) return false; if (!getBaseRunId() .equals(other.getBaseRunId())) return false; if (!getNewRunId() .equals(other.getNewRunId())) return false; if (getForkEventVersion() != other.getForkEventVersion()) return false; if (!getBinaryChecksum() .equals(other.getBinaryChecksum())) return false; if (hasWorkerVersion() != other.hasWorkerVersion()) return false; if (hasWorkerVersion()) { if (!getWorkerVersion() .equals(other.getWorkerVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCHEDULED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScheduledEventId()); hash = (37 * hash) + STARTED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartedEventId()); hash = (37 * hash) + CAUSE_FIELD_NUMBER; hash = (53 * hash) + cause_; if (hasFailure()) { hash = (37 * hash) + FAILURE_FIELD_NUMBER; hash = (53 * hash) + getFailure().hashCode(); } hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (37 * hash) + BASE_RUN_ID_FIELD_NUMBER; hash = (53 * hash) + getBaseRunId().hashCode(); hash = (37 * hash) + NEW_RUN_ID_FIELD_NUMBER; hash = (53 * hash) + getNewRunId().hashCode(); hash = (37 * hash) + FORK_EVENT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForkEventVersion()); hash = (37 * hash) + BINARY_CHECKSUM_FIELD_NUMBER; hash = (53 * hash) + getBinaryChecksum().hashCode(); if (hasWorkerVersion()) { hash = (37 * hash) + WORKER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getWorkerVersion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code temporal.api.history.v1.WorkflowTaskFailedEventAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.history.v1.WorkflowTaskFailedEventAttributes) io.temporal.api.history.v1.WorkflowTaskFailedEventAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskFailedEventAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskFailedEventAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.Builder.class); } // Construct using io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); scheduledEventId_ = 0L; startedEventId_ = 0L; cause_ = 0; if (failureBuilder_ == null) { failure_ = null; } else { failure_ = null; failureBuilder_ = null; } identity_ = ""; baseRunId_ = ""; newRunId_ = ""; forkEventVersion_ = 0L; binaryChecksum_ = ""; if (workerVersionBuilder_ == null) { workerVersion_ = null; } else { workerVersion_ = null; workerVersionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskFailedEventAttributes_descriptor; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes getDefaultInstanceForType() { return io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.getDefaultInstance(); } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes build() { io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes buildPartial() { io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes result = new io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes(this); result.scheduledEventId_ = scheduledEventId_; result.startedEventId_ = startedEventId_; result.cause_ = cause_; if (failureBuilder_ == null) { result.failure_ = failure_; } else { result.failure_ = failureBuilder_.build(); } result.identity_ = identity_; result.baseRunId_ = baseRunId_; result.newRunId_ = newRunId_; result.forkEventVersion_ = forkEventVersion_; result.binaryChecksum_ = binaryChecksum_; if (workerVersionBuilder_ == null) { result.workerVersion_ = workerVersion_; } else { result.workerVersion_ = workerVersionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes) { return mergeFrom((io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes other) { if (other == io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes.getDefaultInstance()) return this; if (other.getScheduledEventId() != 0L) { setScheduledEventId(other.getScheduledEventId()); } if (other.getStartedEventId() != 0L) { setStartedEventId(other.getStartedEventId()); } if (other.cause_ != 0) { setCauseValue(other.getCauseValue()); } if (other.hasFailure()) { mergeFailure(other.getFailure()); } if (!other.getIdentity().isEmpty()) { identity_ = other.identity_; onChanged(); } if (!other.getBaseRunId().isEmpty()) { baseRunId_ = other.baseRunId_; onChanged(); } if (!other.getNewRunId().isEmpty()) { newRunId_ = other.newRunId_; onChanged(); } if (other.getForkEventVersion() != 0L) { setForkEventVersion(other.getForkEventVersion()); } if (!other.getBinaryChecksum().isEmpty()) { binaryChecksum_ = other.binaryChecksum_; onChanged(); } if (other.hasWorkerVersion()) { mergeWorkerVersion(other.getWorkerVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long scheduledEventId_ ; /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @return The scheduledEventId. */ public long getScheduledEventId() { return scheduledEventId_; } /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @param value The scheduledEventId to set. * @return This builder for chaining. */ public Builder setScheduledEventId(long value) { scheduledEventId_ = value; onChanged(); return this; } /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @return This builder for chaining. */ public Builder clearScheduledEventId() { scheduledEventId_ = 0L; onChanged(); return this; } private long startedEventId_ ; /** *
     * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
     * 
* * int64 started_event_id = 2; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } /** *
     * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
     * 
* * int64 started_event_id = 2; * @param value The startedEventId to set. * @return This builder for chaining. */ public Builder setStartedEventId(long value) { startedEventId_ = value; onChanged(); return this; } /** *
     * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
     * 
* * int64 started_event_id = 2; * @return This builder for chaining. */ public Builder clearStartedEventId() { startedEventId_ = 0L; onChanged(); return this; } private int cause_ = 0; /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @return The enum numeric value on the wire for cause. */ public int getCauseValue() { return cause_; } /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @param value The enum numeric value on the wire for cause to set. * @return This builder for chaining. */ public Builder setCauseValue(int value) { cause_ = value; onChanged(); return this; } /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @return The cause. */ public io.temporal.api.enums.v1.WorkflowTaskFailedCause getCause() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.WorkflowTaskFailedCause result = io.temporal.api.enums.v1.WorkflowTaskFailedCause.valueOf(cause_); return result == null ? io.temporal.api.enums.v1.WorkflowTaskFailedCause.UNRECOGNIZED : result; } /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @param value The cause to set. * @return This builder for chaining. */ public Builder setCause(io.temporal.api.enums.v1.WorkflowTaskFailedCause value) { if (value == null) { throw new NullPointerException(); } cause_ = value.getNumber(); onChanged(); return this; } /** * .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3; * @return This builder for chaining. */ public Builder clearCause() { cause_ = 0; onChanged(); return this; } private io.temporal.api.failure.v1.Failure failure_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> failureBuilder_; /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; * @return Whether the failure field is set. */ public boolean hasFailure() { return failureBuilder_ != null || failure_ != null; } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; * @return The failure. */ public io.temporal.api.failure.v1.Failure getFailure() { if (failureBuilder_ == null) { return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_; } else { return failureBuilder_.getMessage(); } } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public Builder setFailure(io.temporal.api.failure.v1.Failure value) { if (failureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failure_ = value; onChanged(); } else { failureBuilder_.setMessage(value); } return this; } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public Builder setFailure( io.temporal.api.failure.v1.Failure.Builder builderForValue) { if (failureBuilder_ == null) { failure_ = builderForValue.build(); onChanged(); } else { failureBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public Builder mergeFailure(io.temporal.api.failure.v1.Failure value) { if (failureBuilder_ == null) { if (failure_ != null) { failure_ = io.temporal.api.failure.v1.Failure.newBuilder(failure_).mergeFrom(value).buildPartial(); } else { failure_ = value; } onChanged(); } else { failureBuilder_.mergeFrom(value); } return this; } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public Builder clearFailure() { if (failureBuilder_ == null) { failure_ = null; onChanged(); } else { failure_ = null; failureBuilder_ = null; } return this; } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public io.temporal.api.failure.v1.Failure.Builder getFailureBuilder() { onChanged(); return getFailureFieldBuilder().getBuilder(); } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() { if (failureBuilder_ != null) { return failureBuilder_.getMessageOrBuilder(); } else { return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_; } } /** *
     * The failure details
     * 
* * .temporal.api.failure.v1.Failure failure = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> getFailureFieldBuilder() { if (failureBuilder_ == null) { failureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>( getFailure(), getParentForChildren(), isClean()); failure_ = null; } return failureBuilder_; } private java.lang.Object identity_ = ""; /** *
     * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
     * 
* * string identity = 5; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
     * 
* * string identity = 5; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
     * 
* * string identity = 5; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
     * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
     * 
* * string identity = 5; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** *
     * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
     * 
* * string identity = 5; * @param value The bytes for identity to set. * @return This builder for chaining. */ public Builder setIdentityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; onChanged(); return this; } private java.lang.Object baseRunId_ = ""; /** *
     * The original run id of the workflow. For reset workflow.
     * 
* * string base_run_id = 6; * @return The baseRunId. */ public java.lang.String getBaseRunId() { java.lang.Object ref = baseRunId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseRunId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The original run id of the workflow. For reset workflow.
     * 
* * string base_run_id = 6; * @return The bytes for baseRunId. */ public com.google.protobuf.ByteString getBaseRunIdBytes() { java.lang.Object ref = baseRunId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseRunId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The original run id of the workflow. For reset workflow.
     * 
* * string base_run_id = 6; * @param value The baseRunId to set. * @return This builder for chaining. */ public Builder setBaseRunId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } baseRunId_ = value; onChanged(); return this; } /** *
     * The original run id of the workflow. For reset workflow.
     * 
* * string base_run_id = 6; * @return This builder for chaining. */ public Builder clearBaseRunId() { baseRunId_ = getDefaultInstance().getBaseRunId(); onChanged(); return this; } /** *
     * The original run id of the workflow. For reset workflow.
     * 
* * string base_run_id = 6; * @param value The bytes for baseRunId to set. * @return This builder for chaining. */ public Builder setBaseRunIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseRunId_ = value; onChanged(); return this; } private java.lang.Object newRunId_ = ""; /** *
     * If the workflow is being reset, the new run id.
     * 
* * string new_run_id = 7; * @return The newRunId. */ public java.lang.String getNewRunId() { java.lang.Object ref = newRunId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newRunId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * If the workflow is being reset, the new run id.
     * 
* * string new_run_id = 7; * @return The bytes for newRunId. */ public com.google.protobuf.ByteString getNewRunIdBytes() { java.lang.Object ref = newRunId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newRunId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * If the workflow is being reset, the new run id.
     * 
* * string new_run_id = 7; * @param value The newRunId to set. * @return This builder for chaining. */ public Builder setNewRunId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newRunId_ = value; onChanged(); return this; } /** *
     * If the workflow is being reset, the new run id.
     * 
* * string new_run_id = 7; * @return This builder for chaining. */ public Builder clearNewRunId() { newRunId_ = getDefaultInstance().getNewRunId(); onChanged(); return this; } /** *
     * If the workflow is being reset, the new run id.
     * 
* * string new_run_id = 7; * @param value The bytes for newRunId to set. * @return This builder for chaining. */ public Builder setNewRunIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newRunId_ = value; onChanged(); return this; } private long forkEventVersion_ ; /** *
     * TODO: ?
     * 
* * int64 fork_event_version = 8; * @return The forkEventVersion. */ public long getForkEventVersion() { return forkEventVersion_; } /** *
     * TODO: ?
     * 
* * int64 fork_event_version = 8; * @param value The forkEventVersion to set. * @return This builder for chaining. */ public Builder setForkEventVersion(long value) { forkEventVersion_ = value; onChanged(); return this; } /** *
     * TODO: ?
     * 
* * int64 fork_event_version = 8; * @return This builder for chaining. */ public Builder clearForkEventVersion() { forkEventVersion_ = 0L; onChanged(); return this; } private java.lang.Object binaryChecksum_ = ""; /** *
     * DEPRECATED since 1.21 - use `worker_version` instead.
     * If a worker explicitly failed this task, its binary id
     * 
* * string binary_checksum = 9; * @return The binaryChecksum. */ public java.lang.String getBinaryChecksum() { java.lang.Object ref = binaryChecksum_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); binaryChecksum_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED since 1.21 - use `worker_version` instead.
     * If a worker explicitly failed this task, its binary id
     * 
* * string binary_checksum = 9; * @return The bytes for binaryChecksum. */ public com.google.protobuf.ByteString getBinaryChecksumBytes() { java.lang.Object ref = binaryChecksum_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); binaryChecksum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED since 1.21 - use `worker_version` instead.
     * If a worker explicitly failed this task, its binary id
     * 
* * string binary_checksum = 9; * @param value The binaryChecksum to set. * @return This builder for chaining. */ public Builder setBinaryChecksum( java.lang.String value) { if (value == null) { throw new NullPointerException(); } binaryChecksum_ = value; onChanged(); return this; } /** *
     * DEPRECATED since 1.21 - use `worker_version` instead.
     * If a worker explicitly failed this task, its binary id
     * 
* * string binary_checksum = 9; * @return This builder for chaining. */ public Builder clearBinaryChecksum() { binaryChecksum_ = getDefaultInstance().getBinaryChecksum(); onChanged(); return this; } /** *
     * DEPRECATED since 1.21 - use `worker_version` instead.
     * If a worker explicitly failed this task, its binary id
     * 
* * string binary_checksum = 9; * @param value The bytes for binaryChecksum to set. * @return This builder for chaining. */ public Builder setBinaryChecksumBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); binaryChecksum_ = value; onChanged(); return this; } private io.temporal.api.common.v1.WorkerVersionStamp workerVersion_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkerVersionStamp, io.temporal.api.common.v1.WorkerVersionStamp.Builder, io.temporal.api.common.v1.WorkerVersionStampOrBuilder> workerVersionBuilder_; /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; * @return Whether the workerVersion field is set. */ public boolean hasWorkerVersion() { return workerVersionBuilder_ != null || workerVersion_ != null; } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; * @return The workerVersion. */ public io.temporal.api.common.v1.WorkerVersionStamp getWorkerVersion() { if (workerVersionBuilder_ == null) { return workerVersion_ == null ? io.temporal.api.common.v1.WorkerVersionStamp.getDefaultInstance() : workerVersion_; } else { return workerVersionBuilder_.getMessage(); } } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public Builder setWorkerVersion(io.temporal.api.common.v1.WorkerVersionStamp value) { if (workerVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workerVersion_ = value; onChanged(); } else { workerVersionBuilder_.setMessage(value); } return this; } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public Builder setWorkerVersion( io.temporal.api.common.v1.WorkerVersionStamp.Builder builderForValue) { if (workerVersionBuilder_ == null) { workerVersion_ = builderForValue.build(); onChanged(); } else { workerVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public Builder mergeWorkerVersion(io.temporal.api.common.v1.WorkerVersionStamp value) { if (workerVersionBuilder_ == null) { if (workerVersion_ != null) { workerVersion_ = io.temporal.api.common.v1.WorkerVersionStamp.newBuilder(workerVersion_).mergeFrom(value).buildPartial(); } else { workerVersion_ = value; } onChanged(); } else { workerVersionBuilder_.mergeFrom(value); } return this; } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public Builder clearWorkerVersion() { if (workerVersionBuilder_ == null) { workerVersion_ = null; onChanged(); } else { workerVersion_ = null; workerVersionBuilder_ = null; } return this; } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public io.temporal.api.common.v1.WorkerVersionStamp.Builder getWorkerVersionBuilder() { onChanged(); return getWorkerVersionFieldBuilder().getBuilder(); } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ public io.temporal.api.common.v1.WorkerVersionStampOrBuilder getWorkerVersionOrBuilder() { if (workerVersionBuilder_ != null) { return workerVersionBuilder_.getMessageOrBuilder(); } else { return workerVersion_ == null ? io.temporal.api.common.v1.WorkerVersionStamp.getDefaultInstance() : workerVersion_; } } /** *
     * 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).
     * 
* * .temporal.api.common.v1.WorkerVersionStamp worker_version = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkerVersionStamp, io.temporal.api.common.v1.WorkerVersionStamp.Builder, io.temporal.api.common.v1.WorkerVersionStampOrBuilder> getWorkerVersionFieldBuilder() { if (workerVersionBuilder_ == null) { workerVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkerVersionStamp, io.temporal.api.common.v1.WorkerVersionStamp.Builder, io.temporal.api.common.v1.WorkerVersionStampOrBuilder>( getWorkerVersion(), getParentForChildren(), isClean()); workerVersion_ = null; } return workerVersionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.history.v1.WorkflowTaskFailedEventAttributes) } // @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskFailedEventAttributes) private static final io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes(); } public static io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WorkflowTaskFailedEventAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkflowTaskFailedEventAttributes(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskFailedEventAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy