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

io.temporal.api.failure.v1.Failure Maven / Gradle / Ivy

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

package io.temporal.api.failure.v1;

/**
 * Protobuf type {@code temporal.api.failure.v1.Failure}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:Failure.java.pb.meta")
public  final class Failure extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.failure.v1.Failure)
    FailureOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Failure.newBuilder() to construct.
  private Failure(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Failure() {
    message_ = "";
    source_ = "";
    stackTrace_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Failure(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

            break;
          }
          case 42: {
            io.temporal.api.failure.v1.ApplicationFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 5) {
              subBuilder = ((io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.ApplicationFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 5;
            break;
          }
          case 50: {
            io.temporal.api.failure.v1.TimeoutFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 6) {
              subBuilder = ((io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.TimeoutFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 6;
            break;
          }
          case 58: {
            io.temporal.api.failure.v1.CanceledFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 7) {
              subBuilder = ((io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.CanceledFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 7;
            break;
          }
          case 66: {
            io.temporal.api.failure.v1.TerminatedFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 8) {
              subBuilder = ((io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.TerminatedFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 8;
            break;
          }
          case 74: {
            io.temporal.api.failure.v1.ServerFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 9) {
              subBuilder = ((io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.ServerFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 9;
            break;
          }
          case 82: {
            io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 10) {
              subBuilder = ((io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.ResetWorkflowFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 10;
            break;
          }
          case 90: {
            io.temporal.api.failure.v1.ActivityFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 11) {
              subBuilder = ((io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.ActivityFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 11;
            break;
          }
          case 98: {
            io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder subBuilder = null;
            if (failureInfoCase_ == 12) {
              subBuilder = ((io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_).toBuilder();
            }
            failureInfo_ =
                input.readMessage(io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_);
              failureInfo_ = subBuilder.buildPartial();
            }
            failureInfoCase_ = 12;
            break;
          }
          case 162: {
            io.temporal.api.common.v1.Payload.Builder subBuilder = null;
            if (encodedAttributes_ != null) {
              subBuilder = encodedAttributes_.toBuilder();
            }
            encodedAttributes_ = input.readMessage(io.temporal.api.common.v1.Payload.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(encodedAttributes_);
              encodedAttributes_ = 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.failure.v1.MessageProto.internal_static_temporal_api_failure_v1_Failure_descriptor;
  }

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

  private int failureInfoCase_ = 0;
  private java.lang.Object failureInfo_;
  public enum FailureInfoCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    APPLICATION_FAILURE_INFO(5),
    TIMEOUT_FAILURE_INFO(6),
    CANCELED_FAILURE_INFO(7),
    TERMINATED_FAILURE_INFO(8),
    SERVER_FAILURE_INFO(9),
    RESET_WORKFLOW_FAILURE_INFO(10),
    ACTIVITY_FAILURE_INFO(11),
    CHILD_WORKFLOW_EXECUTION_FAILURE_INFO(12),
    FAILUREINFO_NOT_SET(0);
    private final int value;
    private FailureInfoCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static FailureInfoCase valueOf(int value) {
      return forNumber(value);
    }

    public static FailureInfoCase forNumber(int value) {
      switch (value) {
        case 5: return APPLICATION_FAILURE_INFO;
        case 6: return TIMEOUT_FAILURE_INFO;
        case 7: return CANCELED_FAILURE_INFO;
        case 8: return TERMINATED_FAILURE_INFO;
        case 9: return SERVER_FAILURE_INFO;
        case 10: return RESET_WORKFLOW_FAILURE_INFO;
        case 11: return ACTIVITY_FAILURE_INFO;
        case 12: return CHILD_WORKFLOW_EXECUTION_FAILURE_INFO;
        case 0: return FAILUREINFO_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public FailureInfoCase
  getFailureInfoCase() {
    return FailureInfoCase.forNumber(
        failureInfoCase_);
  }

  public static final int MESSAGE_FIELD_NUMBER = 1;
  private volatile java.lang.Object message_;
  /**
   * string message = 1;
   * @return The message.
   */
  public java.lang.String getMessage() {
    java.lang.Object ref = message_;
    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();
      message_ = s;
      return s;
    }
  }
  /**
   * string message = 1;
   * @return The bytes for message.
   */
  public com.google.protobuf.ByteString
      getMessageBytes() {
    java.lang.Object ref = message_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      message_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_FIELD_NUMBER = 2;
  private volatile java.lang.Object source_;
  /**
   * 
   * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
   * In some SDKs this is used to rehydrate the stack trace into an exception object.
   * 
* * string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** *
   * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
   * In some SDKs this is used to rehydrate the stack trace into an exception object.
   * 
* * string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STACK_TRACE_FIELD_NUMBER = 3; private volatile java.lang.Object stackTrace_; /** * string stack_trace = 3; * @return The stackTrace. */ public java.lang.String getStackTrace() { java.lang.Object ref = stackTrace_; 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(); stackTrace_ = s; return s; } } /** * string stack_trace = 3; * @return The bytes for stackTrace. */ public com.google.protobuf.ByteString getStackTraceBytes() { java.lang.Object ref = stackTrace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stackTrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENCODED_ATTRIBUTES_FIELD_NUMBER = 20; private io.temporal.api.common.v1.Payload encodedAttributes_; /** *
   * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
   * errors originating in user code which might contain sensitive information.
   * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
   * message.
   * SDK authors: 
   * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
   *   - Uses a JSON object to represent `{ message, stack_trace }`.
   *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
   *   - Overwrites the original stack_trace with an empty string.
   *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
   *     by the user-provided PayloadCodec
   * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
   * (-- api-linter: core::0203::optional=disabled --)
   * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; * @return Whether the encodedAttributes field is set. */ public boolean hasEncodedAttributes() { return encodedAttributes_ != null; } /** *
   * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
   * errors originating in user code which might contain sensitive information.
   * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
   * message.
   * SDK authors: 
   * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
   *   - Uses a JSON object to represent `{ message, stack_trace }`.
   *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
   *   - Overwrites the original stack_trace with an empty string.
   *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
   *     by the user-provided PayloadCodec
   * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
   * (-- api-linter: core::0203::optional=disabled --)
   * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; * @return The encodedAttributes. */ public io.temporal.api.common.v1.Payload getEncodedAttributes() { return encodedAttributes_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : encodedAttributes_; } /** *
   * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
   * errors originating in user code which might contain sensitive information.
   * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
   * message.
   * SDK authors: 
   * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
   *   - Uses a JSON object to represent `{ message, stack_trace }`.
   *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
   *   - Overwrites the original stack_trace with an empty string.
   *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
   *     by the user-provided PayloadCodec
   * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
   * (-- api-linter: core::0203::optional=disabled --)
   * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public io.temporal.api.common.v1.PayloadOrBuilder getEncodedAttributesOrBuilder() { return getEncodedAttributes(); } public static final int CAUSE_FIELD_NUMBER = 4; private io.temporal.api.failure.v1.Failure cause_; /** * .temporal.api.failure.v1.Failure cause = 4; * @return Whether the cause field is set. */ public boolean hasCause() { return cause_ != null; } /** * .temporal.api.failure.v1.Failure cause = 4; * @return The cause. */ public io.temporal.api.failure.v1.Failure getCause() { return cause_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : cause_; } /** * .temporal.api.failure.v1.Failure cause = 4; */ public io.temporal.api.failure.v1.FailureOrBuilder getCauseOrBuilder() { return getCause(); } public static final int APPLICATION_FAILURE_INFO_FIELD_NUMBER = 5; /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; * @return Whether the applicationFailureInfo field is set. */ public boolean hasApplicationFailureInfo() { return failureInfoCase_ == 5; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; * @return The applicationFailureInfo. */ public io.temporal.api.failure.v1.ApplicationFailureInfo getApplicationFailureInfo() { if (failureInfoCase_ == 5) { return (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public io.temporal.api.failure.v1.ApplicationFailureInfoOrBuilder getApplicationFailureInfoOrBuilder() { if (failureInfoCase_ == 5) { return (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } public static final int TIMEOUT_FAILURE_INFO_FIELD_NUMBER = 6; /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; * @return Whether the timeoutFailureInfo field is set. */ public boolean hasTimeoutFailureInfo() { return failureInfoCase_ == 6; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; * @return The timeoutFailureInfo. */ public io.temporal.api.failure.v1.TimeoutFailureInfo getTimeoutFailureInfo() { if (failureInfoCase_ == 6) { return (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public io.temporal.api.failure.v1.TimeoutFailureInfoOrBuilder getTimeoutFailureInfoOrBuilder() { if (failureInfoCase_ == 6) { return (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } public static final int CANCELED_FAILURE_INFO_FIELD_NUMBER = 7; /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; * @return Whether the canceledFailureInfo field is set. */ public boolean hasCanceledFailureInfo() { return failureInfoCase_ == 7; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; * @return The canceledFailureInfo. */ public io.temporal.api.failure.v1.CanceledFailureInfo getCanceledFailureInfo() { if (failureInfoCase_ == 7) { return (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public io.temporal.api.failure.v1.CanceledFailureInfoOrBuilder getCanceledFailureInfoOrBuilder() { if (failureInfoCase_ == 7) { return (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } public static final int TERMINATED_FAILURE_INFO_FIELD_NUMBER = 8; /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; * @return Whether the terminatedFailureInfo field is set. */ public boolean hasTerminatedFailureInfo() { return failureInfoCase_ == 8; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; * @return The terminatedFailureInfo. */ public io.temporal.api.failure.v1.TerminatedFailureInfo getTerminatedFailureInfo() { if (failureInfoCase_ == 8) { return (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public io.temporal.api.failure.v1.TerminatedFailureInfoOrBuilder getTerminatedFailureInfoOrBuilder() { if (failureInfoCase_ == 8) { return (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } public static final int SERVER_FAILURE_INFO_FIELD_NUMBER = 9; /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; * @return Whether the serverFailureInfo field is set. */ public boolean hasServerFailureInfo() { return failureInfoCase_ == 9; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; * @return The serverFailureInfo. */ public io.temporal.api.failure.v1.ServerFailureInfo getServerFailureInfo() { if (failureInfoCase_ == 9) { return (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public io.temporal.api.failure.v1.ServerFailureInfoOrBuilder getServerFailureInfoOrBuilder() { if (failureInfoCase_ == 9) { return (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } public static final int RESET_WORKFLOW_FAILURE_INFO_FIELD_NUMBER = 10; /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; * @return Whether the resetWorkflowFailureInfo field is set. */ public boolean hasResetWorkflowFailureInfo() { return failureInfoCase_ == 10; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; * @return The resetWorkflowFailureInfo. */ public io.temporal.api.failure.v1.ResetWorkflowFailureInfo getResetWorkflowFailureInfo() { if (failureInfoCase_ == 10) { return (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public io.temporal.api.failure.v1.ResetWorkflowFailureInfoOrBuilder getResetWorkflowFailureInfoOrBuilder() { if (failureInfoCase_ == 10) { return (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } public static final int ACTIVITY_FAILURE_INFO_FIELD_NUMBER = 11; /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; * @return Whether the activityFailureInfo field is set. */ public boolean hasActivityFailureInfo() { return failureInfoCase_ == 11; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; * @return The activityFailureInfo. */ public io.temporal.api.failure.v1.ActivityFailureInfo getActivityFailureInfo() { if (failureInfoCase_ == 11) { return (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public io.temporal.api.failure.v1.ActivityFailureInfoOrBuilder getActivityFailureInfoOrBuilder() { if (failureInfoCase_ == 11) { return (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } public static final int CHILD_WORKFLOW_EXECUTION_FAILURE_INFO_FIELD_NUMBER = 12; /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; * @return Whether the childWorkflowExecutionFailureInfo field is set. */ public boolean hasChildWorkflowExecutionFailureInfo() { return failureInfoCase_ == 12; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; * @return The childWorkflowExecutionFailureInfo. */ public io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo getChildWorkflowExecutionFailureInfo() { if (failureInfoCase_ == 12) { return (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoOrBuilder getChildWorkflowExecutionFailureInfoOrBuilder() { if (failureInfoCase_ == 12) { return (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } 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 (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (!getSourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); } if (!getStackTraceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stackTrace_); } if (cause_ != null) { output.writeMessage(4, getCause()); } if (failureInfoCase_ == 5) { output.writeMessage(5, (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_); } if (failureInfoCase_ == 6) { output.writeMessage(6, (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_); } if (failureInfoCase_ == 7) { output.writeMessage(7, (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_); } if (failureInfoCase_ == 8) { output.writeMessage(8, (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_); } if (failureInfoCase_ == 9) { output.writeMessage(9, (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_); } if (failureInfoCase_ == 10) { output.writeMessage(10, (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_); } if (failureInfoCase_ == 11) { output.writeMessage(11, (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_); } if (failureInfoCase_ == 12) { output.writeMessage(12, (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_); } if (encodedAttributes_ != null) { output.writeMessage(20, getEncodedAttributes()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (!getSourceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); } if (!getStackTraceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stackTrace_); } if (cause_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCause()); } if (failureInfoCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_); } if (failureInfoCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_); } if (failureInfoCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_); } if (failureInfoCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_); } if (failureInfoCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_); } if (failureInfoCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_); } if (failureInfoCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_); } if (failureInfoCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_); } if (encodedAttributes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getEncodedAttributes()); } 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.failure.v1.Failure)) { return super.equals(obj); } io.temporal.api.failure.v1.Failure other = (io.temporal.api.failure.v1.Failure) obj; if (!getMessage() .equals(other.getMessage())) return false; if (!getSource() .equals(other.getSource())) return false; if (!getStackTrace() .equals(other.getStackTrace())) return false; if (hasEncodedAttributes() != other.hasEncodedAttributes()) return false; if (hasEncodedAttributes()) { if (!getEncodedAttributes() .equals(other.getEncodedAttributes())) return false; } if (hasCause() != other.hasCause()) return false; if (hasCause()) { if (!getCause() .equals(other.getCause())) return false; } if (!getFailureInfoCase().equals(other.getFailureInfoCase())) return false; switch (failureInfoCase_) { case 5: if (!getApplicationFailureInfo() .equals(other.getApplicationFailureInfo())) return false; break; case 6: if (!getTimeoutFailureInfo() .equals(other.getTimeoutFailureInfo())) return false; break; case 7: if (!getCanceledFailureInfo() .equals(other.getCanceledFailureInfo())) return false; break; case 8: if (!getTerminatedFailureInfo() .equals(other.getTerminatedFailureInfo())) return false; break; case 9: if (!getServerFailureInfo() .equals(other.getServerFailureInfo())) return false; break; case 10: if (!getResetWorkflowFailureInfo() .equals(other.getResetWorkflowFailureInfo())) return false; break; case 11: if (!getActivityFailureInfo() .equals(other.getActivityFailureInfo())) return false; break; case 12: if (!getChildWorkflowExecutionFailureInfo() .equals(other.getChildWorkflowExecutionFailureInfo())) return false; break; case 0: default: } 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + STACK_TRACE_FIELD_NUMBER; hash = (53 * hash) + getStackTrace().hashCode(); if (hasEncodedAttributes()) { hash = (37 * hash) + ENCODED_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getEncodedAttributes().hashCode(); } if (hasCause()) { hash = (37 * hash) + CAUSE_FIELD_NUMBER; hash = (53 * hash) + getCause().hashCode(); } switch (failureInfoCase_) { case 5: hash = (37 * hash) + APPLICATION_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getApplicationFailureInfo().hashCode(); break; case 6: hash = (37 * hash) + TIMEOUT_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getTimeoutFailureInfo().hashCode(); break; case 7: hash = (37 * hash) + CANCELED_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getCanceledFailureInfo().hashCode(); break; case 8: hash = (37 * hash) + TERMINATED_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getTerminatedFailureInfo().hashCode(); break; case 9: hash = (37 * hash) + SERVER_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getServerFailureInfo().hashCode(); break; case 10: hash = (37 * hash) + RESET_WORKFLOW_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getResetWorkflowFailureInfo().hashCode(); break; case 11: hash = (37 * hash) + ACTIVITY_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getActivityFailureInfo().hashCode(); break; case 12: hash = (37 * hash) + CHILD_WORKFLOW_EXECUTION_FAILURE_INFO_FIELD_NUMBER; hash = (53 * hash) + getChildWorkflowExecutionFailureInfo().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.failure.v1.Failure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.failure.v1.Failure 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.failure.v1.Failure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.failure.v1.Failure 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.failure.v1.Failure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.failure.v1.Failure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.failure.v1.Failure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.failure.v1.Failure 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.failure.v1.Failure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.failure.v1.Failure 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.failure.v1.Failure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.failure.v1.Failure 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.failure.v1.Failure 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.failure.v1.Failure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.failure.v1.Failure) io.temporal.api.failure.v1.FailureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.failure.v1.MessageProto.internal_static_temporal_api_failure_v1_Failure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.failure.v1.MessageProto.internal_static_temporal_api_failure_v1_Failure_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.failure.v1.Failure.class, io.temporal.api.failure.v1.Failure.Builder.class); } // Construct using io.temporal.api.failure.v1.Failure.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(); message_ = ""; source_ = ""; stackTrace_ = ""; if (encodedAttributesBuilder_ == null) { encodedAttributes_ = null; } else { encodedAttributes_ = null; encodedAttributesBuilder_ = null; } if (causeBuilder_ == null) { cause_ = null; } else { cause_ = null; causeBuilder_ = null; } failureInfoCase_ = 0; failureInfo_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.failure.v1.MessageProto.internal_static_temporal_api_failure_v1_Failure_descriptor; } @java.lang.Override public io.temporal.api.failure.v1.Failure getDefaultInstanceForType() { return io.temporal.api.failure.v1.Failure.getDefaultInstance(); } @java.lang.Override public io.temporal.api.failure.v1.Failure build() { io.temporal.api.failure.v1.Failure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.failure.v1.Failure buildPartial() { io.temporal.api.failure.v1.Failure result = new io.temporal.api.failure.v1.Failure(this); result.message_ = message_; result.source_ = source_; result.stackTrace_ = stackTrace_; if (encodedAttributesBuilder_ == null) { result.encodedAttributes_ = encodedAttributes_; } else { result.encodedAttributes_ = encodedAttributesBuilder_.build(); } if (causeBuilder_ == null) { result.cause_ = cause_; } else { result.cause_ = causeBuilder_.build(); } if (failureInfoCase_ == 5) { if (applicationFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = applicationFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 6) { if (timeoutFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = timeoutFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 7) { if (canceledFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = canceledFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 8) { if (terminatedFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = terminatedFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 9) { if (serverFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = serverFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 10) { if (resetWorkflowFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = resetWorkflowFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 11) { if (activityFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = activityFailureInfoBuilder_.build(); } } if (failureInfoCase_ == 12) { if (childWorkflowExecutionFailureInfoBuilder_ == null) { result.failureInfo_ = failureInfo_; } else { result.failureInfo_ = childWorkflowExecutionFailureInfoBuilder_.build(); } } result.failureInfoCase_ = failureInfoCase_; 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.failure.v1.Failure) { return mergeFrom((io.temporal.api.failure.v1.Failure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.failure.v1.Failure other) { if (other == io.temporal.api.failure.v1.Failure.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (!other.getSource().isEmpty()) { source_ = other.source_; onChanged(); } if (!other.getStackTrace().isEmpty()) { stackTrace_ = other.stackTrace_; onChanged(); } if (other.hasEncodedAttributes()) { mergeEncodedAttributes(other.getEncodedAttributes()); } if (other.hasCause()) { mergeCause(other.getCause()); } switch (other.getFailureInfoCase()) { case APPLICATION_FAILURE_INFO: { mergeApplicationFailureInfo(other.getApplicationFailureInfo()); break; } case TIMEOUT_FAILURE_INFO: { mergeTimeoutFailureInfo(other.getTimeoutFailureInfo()); break; } case CANCELED_FAILURE_INFO: { mergeCanceledFailureInfo(other.getCanceledFailureInfo()); break; } case TERMINATED_FAILURE_INFO: { mergeTerminatedFailureInfo(other.getTerminatedFailureInfo()); break; } case SERVER_FAILURE_INFO: { mergeServerFailureInfo(other.getServerFailureInfo()); break; } case RESET_WORKFLOW_FAILURE_INFO: { mergeResetWorkflowFailureInfo(other.getResetWorkflowFailureInfo()); break; } case ACTIVITY_FAILURE_INFO: { mergeActivityFailureInfo(other.getActivityFailureInfo()); break; } case CHILD_WORKFLOW_EXECUTION_FAILURE_INFO: { mergeChildWorkflowExecutionFailureInfo(other.getChildWorkflowExecutionFailureInfo()); break; } case FAILUREINFO_NOT_SET: { break; } } 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.failure.v1.Failure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.failure.v1.Failure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int failureInfoCase_ = 0; private java.lang.Object failureInfo_; public FailureInfoCase getFailureInfoCase() { return FailureInfoCase.forNumber( failureInfoCase_); } public Builder clearFailureInfo() { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 1; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 1; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 1; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 1; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private java.lang.Object source_ = ""; /** *
     * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
     * In some SDKs this is used to rehydrate the stack trace into an exception object.
     * 
* * string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
     * In some SDKs this is used to rehydrate the stack trace into an exception object.
     * 
* * string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
     * In some SDKs this is used to rehydrate the stack trace into an exception object.
     * 
* * string source = 2; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); return this; } /** *
     * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
     * In some SDKs this is used to rehydrate the stack trace into an exception object.
     * 
* * string source = 2; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
     * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
     * In some SDKs this is used to rehydrate the stack trace into an exception object.
     * 
* * string source = 2; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; onChanged(); return this; } private java.lang.Object stackTrace_ = ""; /** * string stack_trace = 3; * @return The stackTrace. */ public java.lang.String getStackTrace() { java.lang.Object ref = stackTrace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stackTrace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string stack_trace = 3; * @return The bytes for stackTrace. */ public com.google.protobuf.ByteString getStackTraceBytes() { java.lang.Object ref = stackTrace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stackTrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string stack_trace = 3; * @param value The stackTrace to set. * @return This builder for chaining. */ public Builder setStackTrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } stackTrace_ = value; onChanged(); return this; } /** * string stack_trace = 3; * @return This builder for chaining. */ public Builder clearStackTrace() { stackTrace_ = getDefaultInstance().getStackTrace(); onChanged(); return this; } /** * string stack_trace = 3; * @param value The bytes for stackTrace to set. * @return This builder for chaining. */ public Builder setStackTraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stackTrace_ = value; onChanged(); return this; } private io.temporal.api.common.v1.Payload encodedAttributes_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder> encodedAttributesBuilder_; /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; * @return Whether the encodedAttributes field is set. */ public boolean hasEncodedAttributes() { return encodedAttributesBuilder_ != null || encodedAttributes_ != null; } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; * @return The encodedAttributes. */ public io.temporal.api.common.v1.Payload getEncodedAttributes() { if (encodedAttributesBuilder_ == null) { return encodedAttributes_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : encodedAttributes_; } else { return encodedAttributesBuilder_.getMessage(); } } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public Builder setEncodedAttributes(io.temporal.api.common.v1.Payload value) { if (encodedAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } encodedAttributes_ = value; onChanged(); } else { encodedAttributesBuilder_.setMessage(value); } return this; } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public Builder setEncodedAttributes( io.temporal.api.common.v1.Payload.Builder builderForValue) { if (encodedAttributesBuilder_ == null) { encodedAttributes_ = builderForValue.build(); onChanged(); } else { encodedAttributesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public Builder mergeEncodedAttributes(io.temporal.api.common.v1.Payload value) { if (encodedAttributesBuilder_ == null) { if (encodedAttributes_ != null) { encodedAttributes_ = io.temporal.api.common.v1.Payload.newBuilder(encodedAttributes_).mergeFrom(value).buildPartial(); } else { encodedAttributes_ = value; } onChanged(); } else { encodedAttributesBuilder_.mergeFrom(value); } return this; } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public Builder clearEncodedAttributes() { if (encodedAttributesBuilder_ == null) { encodedAttributes_ = null; onChanged(); } else { encodedAttributes_ = null; encodedAttributesBuilder_ = null; } return this; } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public io.temporal.api.common.v1.Payload.Builder getEncodedAttributesBuilder() { onChanged(); return getEncodedAttributesFieldBuilder().getBuilder(); } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ public io.temporal.api.common.v1.PayloadOrBuilder getEncodedAttributesOrBuilder() { if (encodedAttributesBuilder_ != null) { return encodedAttributesBuilder_.getMessageOrBuilder(); } else { return encodedAttributes_ == null ? io.temporal.api.common.v1.Payload.getDefaultInstance() : encodedAttributes_; } } /** *
     * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
     * errors originating in user code which might contain sensitive information.
     * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
     * message.
     * SDK authors: 
     * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
     *   - Uses a JSON object to represent `{ message, stack_trace }`.
     *   - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
     *   - Overwrites the original stack_trace with an empty string.
     *   - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
     *     by the user-provided PayloadCodec
     * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
     * (-- api-linter: core::0203::optional=disabled --)
     * 
* * .temporal.api.common.v1.Payload encoded_attributes = 20; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder> getEncodedAttributesFieldBuilder() { if (encodedAttributesBuilder_ == null) { encodedAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payload, io.temporal.api.common.v1.Payload.Builder, io.temporal.api.common.v1.PayloadOrBuilder>( getEncodedAttributes(), getParentForChildren(), isClean()); encodedAttributes_ = null; } return encodedAttributesBuilder_; } private io.temporal.api.failure.v1.Failure cause_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> causeBuilder_; /** * .temporal.api.failure.v1.Failure cause = 4; * @return Whether the cause field is set. */ public boolean hasCause() { return causeBuilder_ != null || cause_ != null; } /** * .temporal.api.failure.v1.Failure cause = 4; * @return The cause. */ public io.temporal.api.failure.v1.Failure getCause() { if (causeBuilder_ == null) { return cause_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : cause_; } else { return causeBuilder_.getMessage(); } } /** * .temporal.api.failure.v1.Failure cause = 4; */ public Builder setCause(io.temporal.api.failure.v1.Failure value) { if (causeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cause_ = value; onChanged(); } else { causeBuilder_.setMessage(value); } return this; } /** * .temporal.api.failure.v1.Failure cause = 4; */ public Builder setCause( io.temporal.api.failure.v1.Failure.Builder builderForValue) { if (causeBuilder_ == null) { cause_ = builderForValue.build(); onChanged(); } else { causeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.failure.v1.Failure cause = 4; */ public Builder mergeCause(io.temporal.api.failure.v1.Failure value) { if (causeBuilder_ == null) { if (cause_ != null) { cause_ = io.temporal.api.failure.v1.Failure.newBuilder(cause_).mergeFrom(value).buildPartial(); } else { cause_ = value; } onChanged(); } else { causeBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.failure.v1.Failure cause = 4; */ public Builder clearCause() { if (causeBuilder_ == null) { cause_ = null; onChanged(); } else { cause_ = null; causeBuilder_ = null; } return this; } /** * .temporal.api.failure.v1.Failure cause = 4; */ public io.temporal.api.failure.v1.Failure.Builder getCauseBuilder() { onChanged(); return getCauseFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.Failure cause = 4; */ public io.temporal.api.failure.v1.FailureOrBuilder getCauseOrBuilder() { if (causeBuilder_ != null) { return causeBuilder_.getMessageOrBuilder(); } else { return cause_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : cause_; } } /** * .temporal.api.failure.v1.Failure cause = 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> getCauseFieldBuilder() { if (causeBuilder_ == null) { causeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>( getCause(), getParentForChildren(), isClean()); cause_ = null; } return causeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ApplicationFailureInfo, io.temporal.api.failure.v1.ApplicationFailureInfo.Builder, io.temporal.api.failure.v1.ApplicationFailureInfoOrBuilder> applicationFailureInfoBuilder_; /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; * @return Whether the applicationFailureInfo field is set. */ public boolean hasApplicationFailureInfo() { return failureInfoCase_ == 5; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; * @return The applicationFailureInfo. */ public io.temporal.api.failure.v1.ApplicationFailureInfo getApplicationFailureInfo() { if (applicationFailureInfoBuilder_ == null) { if (failureInfoCase_ == 5) { return (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 5) { return applicationFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public Builder setApplicationFailureInfo(io.temporal.api.failure.v1.ApplicationFailureInfo value) { if (applicationFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { applicationFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 5; return this; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public Builder setApplicationFailureInfo( io.temporal.api.failure.v1.ApplicationFailureInfo.Builder builderForValue) { if (applicationFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { applicationFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 5; return this; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public Builder mergeApplicationFailureInfo(io.temporal.api.failure.v1.ApplicationFailureInfo value) { if (applicationFailureInfoBuilder_ == null) { if (failureInfoCase_ == 5 && failureInfo_ != io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.ApplicationFailureInfo.newBuilder((io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 5) { applicationFailureInfoBuilder_.mergeFrom(value); } applicationFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 5; return this; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public Builder clearApplicationFailureInfo() { if (applicationFailureInfoBuilder_ == null) { if (failureInfoCase_ == 5) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 5) { failureInfoCase_ = 0; failureInfo_ = null; } applicationFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public io.temporal.api.failure.v1.ApplicationFailureInfo.Builder getApplicationFailureInfoBuilder() { return getApplicationFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ public io.temporal.api.failure.v1.ApplicationFailureInfoOrBuilder getApplicationFailureInfoOrBuilder() { if ((failureInfoCase_ == 5) && (applicationFailureInfoBuilder_ != null)) { return applicationFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 5) { return (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ApplicationFailureInfo, io.temporal.api.failure.v1.ApplicationFailureInfo.Builder, io.temporal.api.failure.v1.ApplicationFailureInfoOrBuilder> getApplicationFailureInfoFieldBuilder() { if (applicationFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 5)) { failureInfo_ = io.temporal.api.failure.v1.ApplicationFailureInfo.getDefaultInstance(); } applicationFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ApplicationFailureInfo, io.temporal.api.failure.v1.ApplicationFailureInfo.Builder, io.temporal.api.failure.v1.ApplicationFailureInfoOrBuilder>( (io.temporal.api.failure.v1.ApplicationFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 5; onChanged();; return applicationFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TimeoutFailureInfo, io.temporal.api.failure.v1.TimeoutFailureInfo.Builder, io.temporal.api.failure.v1.TimeoutFailureInfoOrBuilder> timeoutFailureInfoBuilder_; /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; * @return Whether the timeoutFailureInfo field is set. */ public boolean hasTimeoutFailureInfo() { return failureInfoCase_ == 6; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; * @return The timeoutFailureInfo. */ public io.temporal.api.failure.v1.TimeoutFailureInfo getTimeoutFailureInfo() { if (timeoutFailureInfoBuilder_ == null) { if (failureInfoCase_ == 6) { return (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 6) { return timeoutFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public Builder setTimeoutFailureInfo(io.temporal.api.failure.v1.TimeoutFailureInfo value) { if (timeoutFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { timeoutFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 6; return this; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public Builder setTimeoutFailureInfo( io.temporal.api.failure.v1.TimeoutFailureInfo.Builder builderForValue) { if (timeoutFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { timeoutFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 6; return this; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public Builder mergeTimeoutFailureInfo(io.temporal.api.failure.v1.TimeoutFailureInfo value) { if (timeoutFailureInfoBuilder_ == null) { if (failureInfoCase_ == 6 && failureInfo_ != io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.TimeoutFailureInfo.newBuilder((io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 6) { timeoutFailureInfoBuilder_.mergeFrom(value); } timeoutFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 6; return this; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public Builder clearTimeoutFailureInfo() { if (timeoutFailureInfoBuilder_ == null) { if (failureInfoCase_ == 6) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 6) { failureInfoCase_ = 0; failureInfo_ = null; } timeoutFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public io.temporal.api.failure.v1.TimeoutFailureInfo.Builder getTimeoutFailureInfoBuilder() { return getTimeoutFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ public io.temporal.api.failure.v1.TimeoutFailureInfoOrBuilder getTimeoutFailureInfoOrBuilder() { if ((failureInfoCase_ == 6) && (timeoutFailureInfoBuilder_ != null)) { return timeoutFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 6) { return (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TimeoutFailureInfo, io.temporal.api.failure.v1.TimeoutFailureInfo.Builder, io.temporal.api.failure.v1.TimeoutFailureInfoOrBuilder> getTimeoutFailureInfoFieldBuilder() { if (timeoutFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 6)) { failureInfo_ = io.temporal.api.failure.v1.TimeoutFailureInfo.getDefaultInstance(); } timeoutFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TimeoutFailureInfo, io.temporal.api.failure.v1.TimeoutFailureInfo.Builder, io.temporal.api.failure.v1.TimeoutFailureInfoOrBuilder>( (io.temporal.api.failure.v1.TimeoutFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 6; onChanged();; return timeoutFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.CanceledFailureInfo, io.temporal.api.failure.v1.CanceledFailureInfo.Builder, io.temporal.api.failure.v1.CanceledFailureInfoOrBuilder> canceledFailureInfoBuilder_; /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; * @return Whether the canceledFailureInfo field is set. */ public boolean hasCanceledFailureInfo() { return failureInfoCase_ == 7; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; * @return The canceledFailureInfo. */ public io.temporal.api.failure.v1.CanceledFailureInfo getCanceledFailureInfo() { if (canceledFailureInfoBuilder_ == null) { if (failureInfoCase_ == 7) { return (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 7) { return canceledFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public Builder setCanceledFailureInfo(io.temporal.api.failure.v1.CanceledFailureInfo value) { if (canceledFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { canceledFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 7; return this; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public Builder setCanceledFailureInfo( io.temporal.api.failure.v1.CanceledFailureInfo.Builder builderForValue) { if (canceledFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { canceledFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 7; return this; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public Builder mergeCanceledFailureInfo(io.temporal.api.failure.v1.CanceledFailureInfo value) { if (canceledFailureInfoBuilder_ == null) { if (failureInfoCase_ == 7 && failureInfo_ != io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.CanceledFailureInfo.newBuilder((io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 7) { canceledFailureInfoBuilder_.mergeFrom(value); } canceledFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 7; return this; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public Builder clearCanceledFailureInfo() { if (canceledFailureInfoBuilder_ == null) { if (failureInfoCase_ == 7) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 7) { failureInfoCase_ = 0; failureInfo_ = null; } canceledFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public io.temporal.api.failure.v1.CanceledFailureInfo.Builder getCanceledFailureInfoBuilder() { return getCanceledFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ public io.temporal.api.failure.v1.CanceledFailureInfoOrBuilder getCanceledFailureInfoOrBuilder() { if ((failureInfoCase_ == 7) && (canceledFailureInfoBuilder_ != null)) { return canceledFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 7) { return (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.CanceledFailureInfo, io.temporal.api.failure.v1.CanceledFailureInfo.Builder, io.temporal.api.failure.v1.CanceledFailureInfoOrBuilder> getCanceledFailureInfoFieldBuilder() { if (canceledFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 7)) { failureInfo_ = io.temporal.api.failure.v1.CanceledFailureInfo.getDefaultInstance(); } canceledFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.CanceledFailureInfo, io.temporal.api.failure.v1.CanceledFailureInfo.Builder, io.temporal.api.failure.v1.CanceledFailureInfoOrBuilder>( (io.temporal.api.failure.v1.CanceledFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 7; onChanged();; return canceledFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TerminatedFailureInfo, io.temporal.api.failure.v1.TerminatedFailureInfo.Builder, io.temporal.api.failure.v1.TerminatedFailureInfoOrBuilder> terminatedFailureInfoBuilder_; /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; * @return Whether the terminatedFailureInfo field is set. */ public boolean hasTerminatedFailureInfo() { return failureInfoCase_ == 8; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; * @return The terminatedFailureInfo. */ public io.temporal.api.failure.v1.TerminatedFailureInfo getTerminatedFailureInfo() { if (terminatedFailureInfoBuilder_ == null) { if (failureInfoCase_ == 8) { return (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 8) { return terminatedFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public Builder setTerminatedFailureInfo(io.temporal.api.failure.v1.TerminatedFailureInfo value) { if (terminatedFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { terminatedFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 8; return this; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public Builder setTerminatedFailureInfo( io.temporal.api.failure.v1.TerminatedFailureInfo.Builder builderForValue) { if (terminatedFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { terminatedFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 8; return this; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public Builder mergeTerminatedFailureInfo(io.temporal.api.failure.v1.TerminatedFailureInfo value) { if (terminatedFailureInfoBuilder_ == null) { if (failureInfoCase_ == 8 && failureInfo_ != io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.TerminatedFailureInfo.newBuilder((io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 8) { terminatedFailureInfoBuilder_.mergeFrom(value); } terminatedFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 8; return this; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public Builder clearTerminatedFailureInfo() { if (terminatedFailureInfoBuilder_ == null) { if (failureInfoCase_ == 8) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 8) { failureInfoCase_ = 0; failureInfo_ = null; } terminatedFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public io.temporal.api.failure.v1.TerminatedFailureInfo.Builder getTerminatedFailureInfoBuilder() { return getTerminatedFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ public io.temporal.api.failure.v1.TerminatedFailureInfoOrBuilder getTerminatedFailureInfoOrBuilder() { if ((failureInfoCase_ == 8) && (terminatedFailureInfoBuilder_ != null)) { return terminatedFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 8) { return (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TerminatedFailureInfo, io.temporal.api.failure.v1.TerminatedFailureInfo.Builder, io.temporal.api.failure.v1.TerminatedFailureInfoOrBuilder> getTerminatedFailureInfoFieldBuilder() { if (terminatedFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 8)) { failureInfo_ = io.temporal.api.failure.v1.TerminatedFailureInfo.getDefaultInstance(); } terminatedFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.TerminatedFailureInfo, io.temporal.api.failure.v1.TerminatedFailureInfo.Builder, io.temporal.api.failure.v1.TerminatedFailureInfoOrBuilder>( (io.temporal.api.failure.v1.TerminatedFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 8; onChanged();; return terminatedFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ServerFailureInfo, io.temporal.api.failure.v1.ServerFailureInfo.Builder, io.temporal.api.failure.v1.ServerFailureInfoOrBuilder> serverFailureInfoBuilder_; /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; * @return Whether the serverFailureInfo field is set. */ public boolean hasServerFailureInfo() { return failureInfoCase_ == 9; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; * @return The serverFailureInfo. */ public io.temporal.api.failure.v1.ServerFailureInfo getServerFailureInfo() { if (serverFailureInfoBuilder_ == null) { if (failureInfoCase_ == 9) { return (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 9) { return serverFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public Builder setServerFailureInfo(io.temporal.api.failure.v1.ServerFailureInfo value) { if (serverFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { serverFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 9; return this; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public Builder setServerFailureInfo( io.temporal.api.failure.v1.ServerFailureInfo.Builder builderForValue) { if (serverFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { serverFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 9; return this; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public Builder mergeServerFailureInfo(io.temporal.api.failure.v1.ServerFailureInfo value) { if (serverFailureInfoBuilder_ == null) { if (failureInfoCase_ == 9 && failureInfo_ != io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.ServerFailureInfo.newBuilder((io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 9) { serverFailureInfoBuilder_.mergeFrom(value); } serverFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 9; return this; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public Builder clearServerFailureInfo() { if (serverFailureInfoBuilder_ == null) { if (failureInfoCase_ == 9) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 9) { failureInfoCase_ = 0; failureInfo_ = null; } serverFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public io.temporal.api.failure.v1.ServerFailureInfo.Builder getServerFailureInfoBuilder() { return getServerFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ public io.temporal.api.failure.v1.ServerFailureInfoOrBuilder getServerFailureInfoOrBuilder() { if ((failureInfoCase_ == 9) && (serverFailureInfoBuilder_ != null)) { return serverFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 9) { return (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ServerFailureInfo, io.temporal.api.failure.v1.ServerFailureInfo.Builder, io.temporal.api.failure.v1.ServerFailureInfoOrBuilder> getServerFailureInfoFieldBuilder() { if (serverFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 9)) { failureInfo_ = io.temporal.api.failure.v1.ServerFailureInfo.getDefaultInstance(); } serverFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ServerFailureInfo, io.temporal.api.failure.v1.ServerFailureInfo.Builder, io.temporal.api.failure.v1.ServerFailureInfoOrBuilder>( (io.temporal.api.failure.v1.ServerFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 9; onChanged();; return serverFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ResetWorkflowFailureInfo, io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder, io.temporal.api.failure.v1.ResetWorkflowFailureInfoOrBuilder> resetWorkflowFailureInfoBuilder_; /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; * @return Whether the resetWorkflowFailureInfo field is set. */ public boolean hasResetWorkflowFailureInfo() { return failureInfoCase_ == 10; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; * @return The resetWorkflowFailureInfo. */ public io.temporal.api.failure.v1.ResetWorkflowFailureInfo getResetWorkflowFailureInfo() { if (resetWorkflowFailureInfoBuilder_ == null) { if (failureInfoCase_ == 10) { return (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 10) { return resetWorkflowFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public Builder setResetWorkflowFailureInfo(io.temporal.api.failure.v1.ResetWorkflowFailureInfo value) { if (resetWorkflowFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { resetWorkflowFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 10; return this; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public Builder setResetWorkflowFailureInfo( io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder builderForValue) { if (resetWorkflowFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { resetWorkflowFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 10; return this; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public Builder mergeResetWorkflowFailureInfo(io.temporal.api.failure.v1.ResetWorkflowFailureInfo value) { if (resetWorkflowFailureInfoBuilder_ == null) { if (failureInfoCase_ == 10 && failureInfo_ != io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.ResetWorkflowFailureInfo.newBuilder((io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 10) { resetWorkflowFailureInfoBuilder_.mergeFrom(value); } resetWorkflowFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 10; return this; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public Builder clearResetWorkflowFailureInfo() { if (resetWorkflowFailureInfoBuilder_ == null) { if (failureInfoCase_ == 10) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 10) { failureInfoCase_ = 0; failureInfo_ = null; } resetWorkflowFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder getResetWorkflowFailureInfoBuilder() { return getResetWorkflowFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ public io.temporal.api.failure.v1.ResetWorkflowFailureInfoOrBuilder getResetWorkflowFailureInfoOrBuilder() { if ((failureInfoCase_ == 10) && (resetWorkflowFailureInfoBuilder_ != null)) { return resetWorkflowFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 10) { return (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ResetWorkflowFailureInfo, io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder, io.temporal.api.failure.v1.ResetWorkflowFailureInfoOrBuilder> getResetWorkflowFailureInfoFieldBuilder() { if (resetWorkflowFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 10)) { failureInfo_ = io.temporal.api.failure.v1.ResetWorkflowFailureInfo.getDefaultInstance(); } resetWorkflowFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ResetWorkflowFailureInfo, io.temporal.api.failure.v1.ResetWorkflowFailureInfo.Builder, io.temporal.api.failure.v1.ResetWorkflowFailureInfoOrBuilder>( (io.temporal.api.failure.v1.ResetWorkflowFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 10; onChanged();; return resetWorkflowFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ActivityFailureInfo, io.temporal.api.failure.v1.ActivityFailureInfo.Builder, io.temporal.api.failure.v1.ActivityFailureInfoOrBuilder> activityFailureInfoBuilder_; /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; * @return Whether the activityFailureInfo field is set. */ public boolean hasActivityFailureInfo() { return failureInfoCase_ == 11; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; * @return The activityFailureInfo. */ public io.temporal.api.failure.v1.ActivityFailureInfo getActivityFailureInfo() { if (activityFailureInfoBuilder_ == null) { if (failureInfoCase_ == 11) { return (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 11) { return activityFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public Builder setActivityFailureInfo(io.temporal.api.failure.v1.ActivityFailureInfo value) { if (activityFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { activityFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 11; return this; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public Builder setActivityFailureInfo( io.temporal.api.failure.v1.ActivityFailureInfo.Builder builderForValue) { if (activityFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { activityFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 11; return this; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public Builder mergeActivityFailureInfo(io.temporal.api.failure.v1.ActivityFailureInfo value) { if (activityFailureInfoBuilder_ == null) { if (failureInfoCase_ == 11 && failureInfo_ != io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.ActivityFailureInfo.newBuilder((io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 11) { activityFailureInfoBuilder_.mergeFrom(value); } activityFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 11; return this; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public Builder clearActivityFailureInfo() { if (activityFailureInfoBuilder_ == null) { if (failureInfoCase_ == 11) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 11) { failureInfoCase_ = 0; failureInfo_ = null; } activityFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public io.temporal.api.failure.v1.ActivityFailureInfo.Builder getActivityFailureInfoBuilder() { return getActivityFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ public io.temporal.api.failure.v1.ActivityFailureInfoOrBuilder getActivityFailureInfoOrBuilder() { if ((failureInfoCase_ == 11) && (activityFailureInfoBuilder_ != null)) { return activityFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 11) { return (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ActivityFailureInfo, io.temporal.api.failure.v1.ActivityFailureInfo.Builder, io.temporal.api.failure.v1.ActivityFailureInfoOrBuilder> getActivityFailureInfoFieldBuilder() { if (activityFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 11)) { failureInfo_ = io.temporal.api.failure.v1.ActivityFailureInfo.getDefaultInstance(); } activityFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ActivityFailureInfo, io.temporal.api.failure.v1.ActivityFailureInfo.Builder, io.temporal.api.failure.v1.ActivityFailureInfoOrBuilder>( (io.temporal.api.failure.v1.ActivityFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 11; onChanged();; return activityFailureInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoOrBuilder> childWorkflowExecutionFailureInfoBuilder_; /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; * @return Whether the childWorkflowExecutionFailureInfo field is set. */ public boolean hasChildWorkflowExecutionFailureInfo() { return failureInfoCase_ == 12; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; * @return The childWorkflowExecutionFailureInfo. */ public io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo getChildWorkflowExecutionFailureInfo() { if (childWorkflowExecutionFailureInfoBuilder_ == null) { if (failureInfoCase_ == 12) { return (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } else { if (failureInfoCase_ == 12) { return childWorkflowExecutionFailureInfoBuilder_.getMessage(); } return io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public Builder setChildWorkflowExecutionFailureInfo(io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo value) { if (childWorkflowExecutionFailureInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failureInfo_ = value; onChanged(); } else { childWorkflowExecutionFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 12; return this; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public Builder setChildWorkflowExecutionFailureInfo( io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder builderForValue) { if (childWorkflowExecutionFailureInfoBuilder_ == null) { failureInfo_ = builderForValue.build(); onChanged(); } else { childWorkflowExecutionFailureInfoBuilder_.setMessage(builderForValue.build()); } failureInfoCase_ = 12; return this; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public Builder mergeChildWorkflowExecutionFailureInfo(io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo value) { if (childWorkflowExecutionFailureInfoBuilder_ == null) { if (failureInfoCase_ == 12 && failureInfo_ != io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance()) { failureInfo_ = io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.newBuilder((io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_) .mergeFrom(value).buildPartial(); } else { failureInfo_ = value; } onChanged(); } else { if (failureInfoCase_ == 12) { childWorkflowExecutionFailureInfoBuilder_.mergeFrom(value); } childWorkflowExecutionFailureInfoBuilder_.setMessage(value); } failureInfoCase_ = 12; return this; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public Builder clearChildWorkflowExecutionFailureInfo() { if (childWorkflowExecutionFailureInfoBuilder_ == null) { if (failureInfoCase_ == 12) { failureInfoCase_ = 0; failureInfo_ = null; onChanged(); } } else { if (failureInfoCase_ == 12) { failureInfoCase_ = 0; failureInfo_ = null; } childWorkflowExecutionFailureInfoBuilder_.clear(); } return this; } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder getChildWorkflowExecutionFailureInfoBuilder() { return getChildWorkflowExecutionFailureInfoFieldBuilder().getBuilder(); } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ public io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoOrBuilder getChildWorkflowExecutionFailureInfoOrBuilder() { if ((failureInfoCase_ == 12) && (childWorkflowExecutionFailureInfoBuilder_ != null)) { return childWorkflowExecutionFailureInfoBuilder_.getMessageOrBuilder(); } else { if (failureInfoCase_ == 12) { return (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_; } return io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } } /** * .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoOrBuilder> getChildWorkflowExecutionFailureInfoFieldBuilder() { if (childWorkflowExecutionFailureInfoBuilder_ == null) { if (!(failureInfoCase_ == 12)) { failureInfo_ = io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.getDefaultInstance(); } childWorkflowExecutionFailureInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.Builder, io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoOrBuilder>( (io.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) failureInfo_, getParentForChildren(), isClean()); failureInfo_ = null; } failureInfoCase_ = 12; onChanged();; return childWorkflowExecutionFailureInfoBuilder_; } @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.failure.v1.Failure) } // @@protoc_insertion_point(class_scope:temporal.api.failure.v1.Failure) private static final io.temporal.api.failure.v1.Failure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.failure.v1.Failure(); } public static io.temporal.api.failure.v1.Failure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Failure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Failure(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.failure.v1.Failure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy