text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/run/v2/condition.proto

package com.google.cloud.run.v2;

/**
 *
 *
 *

 * Defines a status condition for a resource.
 *

 *
 * Protobuf type {@code google.cloud.run.v2.Condition}
 */
public final class Condition extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Condition)
    ConditionOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Condition.newBuilder() to construct.
  private Condition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Condition() {
    type_ = "";
    state_ = 0;
    message_ = "";
    severity_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private Condition(
      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();

              type_ = s;
              break;
            }
          case 16:
            {
              int rawValue = input.readEnum();

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

              message_ = s;
              break;
            }
          case 34:
            {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (lastTransitionTime_ != null) {
                subBuilder = lastTransitionTime_.toBuilder();
              }
              lastTransitionTime_ =
                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(lastTransitionTime_);
                lastTransitionTime_ = subBuilder.buildPartial();
              }

              break;
            }
          case 40:
            {
              int rawValue = input.readEnum();

              severity_ = rawValue;
              break;
            }
          case 48:
            {
              int rawValue = input.readEnum();
              reasonsCase_ = 6;
              reasons_ = rawValue;
              break;
            }
          case 56:
            {
              int rawValue = input.readEnum();
              reasonsCase_ = 7;
              reasons_ = rawValue;
              break;
            }
          case 64:
            {
              int rawValue = input.readEnum();
              reasonsCase_ = 8;
              reasons_ = rawValue;
              break;
            }
          case 72:
            {
              int rawValue = input.readEnum();
              reasonsCase_ = 9;
              reasons_ = rawValue;
              break;
            }
          case 88:
            {
              int rawValue = input.readEnum();
              reasonsCase_ = 11;
              reasons_ = rawValue;
              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 com.google.cloud.run.v2.ConditionProto
        .internal_static_google_cloud_run_v2_Condition_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.run.v2.ConditionProto
        .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.run.v2.Condition.class,
            com.google.cloud.run.v2.Condition.Builder.class);
  }

  /**
   *
   *
   *

   * Represents the possible Condition states.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * The default value. This value is used if the state is omitted.
     *

     *
     * STATE_UNSPECIFIED = 0;
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     *

     * Transient state: Reconciliation has not started yet.
     *

     *
     * CONDITION_PENDING = 1;
     */
    CONDITION_PENDING(1),
    /**
     *
     *
     *

     * Transient state: reconciliation is still in progress.
     *

     *
     * CONDITION_RECONCILING = 2;
     */
    CONDITION_RECONCILING(2),
    /**
     *
     *
     *

     * Terminal state: Reconciliation did not succeed.
     *

     *
     * CONDITION_FAILED = 3;
     */
    CONDITION_FAILED(3),
    /**
     *
     *
     *

     * Terminal state: Reconciliation completed successfully.
     *

     *
     * CONDITION_SUCCEEDED = 4;
     */
    CONDITION_SUCCEEDED(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * The default value. This value is used if the state is omitted.
     *

     *
     * STATE_UNSPECIFIED = 0;
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     *

     * Transient state: Reconciliation has not started yet.
     *

     *
     * CONDITION_PENDING = 1;
     */
    public static final int CONDITION_PENDING_VALUE = 1;
    /**
     *
     *
     *

     * Transient state: reconciliation is still in progress.
     *

     *
     * CONDITION_RECONCILING = 2;
     */
    public static final int CONDITION_RECONCILING_VALUE = 2;
    /**
     *
     *
     *

     * Terminal state: Reconciliation did not succeed.
     *

     *
     * CONDITION_FAILED = 3;
     */
    public static final int CONDITION_FAILED_VALUE = 3;
    /**
     *
     *
     *

     * Terminal state: Reconciliation completed successfully.
     *

     *
     * CONDITION_SUCCEEDED = 4;
     */
    public static final int CONDITION_SUCCEEDED_VALUE = 4;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return CONDITION_PENDING;
        case 2:
          return CONDITION_RECONCILING;
        case 3:
          return CONDITION_FAILED;
        case 4:
          return CONDITION_SUCCEEDED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.State)
  }

  /**
   *
   *
   *

   * Represents the severity of the condition failures.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.Severity}
   */
  public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Unspecified severity
     *

     *
     * SEVERITY_UNSPECIFIED = 0;
     */
    SEVERITY_UNSPECIFIED(0),
    /**
     *
     *
     *

     * Error severity.
     *

     *
     * ERROR = 1;
     */
    ERROR(1),
    /**
     *
     *
     *

     * Warning severity.
     *

     *
     * WARNING = 2;
     */
    WARNING(2),
    /**
     *
     *
     *

     * Info severity.
     *

     *
     * INFO = 3;
     */
    INFO(3),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Unspecified severity
     *

     *
     * SEVERITY_UNSPECIFIED = 0;
     */
    public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     *

     * Error severity.
     *

     *
     * ERROR = 1;
     */
    public static final int ERROR_VALUE = 1;
    /**
     *
     *
     *

     * Warning severity.
     *

     *
     * WARNING = 2;
     */
    public static final int WARNING_VALUE = 2;
    /**
     *
     *
     *

     * Info severity.
     *

     *
     * INFO = 3;
     */
    public static final int INFO_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Severity valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Severity forNumber(int value) {
      switch (value) {
        case 0:
          return SEVERITY_UNSPECIFIED;
        case 1:
          return ERROR;
        case 2:
          return WARNING;
        case 3:
          return INFO;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Severity> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<Severity> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
          public Severity findValueByNumber(int number) {
            return Severity.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(1);
    }

    private static final Severity[] VALUES = values();

    public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Severity(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.Severity)
  }

  /**
   *
   *
   *

   * Reasons common to all types of conditions.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.CommonReason}
   */
  public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Default value.
     *

     *
     * COMMON_REASON_UNDEFINED = 0;
     */
    COMMON_REASON_UNDEFINED(0),
    /**
     *
     *
     *

     * Reason unknown. Further details will be in message.
     *

     *
     * UNKNOWN = 1;
     */
    UNKNOWN(1),
    /**
     *
     *
     *

     * The internal route is missing.
     *

     *
     * ROUTE_MISSING = 2;
     */
    ROUTE_MISSING(2),
    /**
     *
     *
     *

     * Revision creation process failed.
     *

     *
     * REVISION_FAILED = 3;
     */
    REVISION_FAILED(3),
    /**
     *
     *
     *

     * Timed out waiting for completion.
     *

     *
     * PROGRESS_DEADLINE_EXCEEDED = 4;
     */
    PROGRESS_DEADLINE_EXCEEDED(4),
    /**
     *
     *
     *

     * There was a build error.
     *

     *
     * BUILD_STEP_FAILED = 5;
     */
    BUILD_STEP_FAILED(5),
    /**
     *
     *
     *

     * The container image path is incorrect.
     *

     *
     * CONTAINER_MISSING = 6;
     */
    CONTAINER_MISSING(6),
    /**
     *
     *
     *

     * Insufficient permissions on the container image.
     *

     *
     * CONTAINER_PERMISSION_DENIED = 7;
     */
    CONTAINER_PERMISSION_DENIED(7),
    /**
     *
     *
     *

     * Container image is not authorized by policy.
     *

     *
     * CONTAINER_IMAGE_UNAUTHORIZED = 8;
     */
    CONTAINER_IMAGE_UNAUTHORIZED(8),
    /**
     *
     *
     *

     * Container image policy authorization check failed.
     *

     *
     * CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9;
     */
    CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9),
    /**
     *
     *
     *

     * Insufficient permissions on encryption key.
     *

     *
     * ENCRYPTION_KEY_PERMISSION_DENIED = 10;
     */
    ENCRYPTION_KEY_PERMISSION_DENIED(10),
    /**
     *
     *
     *

     * Permission check on encryption key failed.
     *

     *
     * ENCRYPTION_KEY_CHECK_FAILED = 11;
     */
    ENCRYPTION_KEY_CHECK_FAILED(11),
    /**
     *
     *
     *

     * At least one Access check on secrets failed.
     *

     *
     * SECRETS_ACCESS_CHECK_FAILED = 12;
     */
    SECRETS_ACCESS_CHECK_FAILED(12),
    /**
     *
     *
     *

     * Waiting for operation to complete.
     *

     *
     * WAITING_FOR_OPERATION = 13;
     */
    WAITING_FOR_OPERATION(13),
    /**
     *
     *
     *

     * System will retry immediately.
     *

     *
     * IMMEDIATE_RETRY = 14;
     */
    IMMEDIATE_RETRY(14),
    /**
     *
     *
     *

     * System will retry later; current attempt failed.
     *

     *
     * POSTPONED_RETRY = 15;
     */
    POSTPONED_RETRY(15),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Default value.
     *

     *
     * COMMON_REASON_UNDEFINED = 0;
     */
    public static final int COMMON_REASON_UNDEFINED_VALUE = 0;
    /**
     *
     *
     *

     * Reason unknown. Further details will be in message.
     *

     *
     * UNKNOWN = 1;
     */
    public static final int UNKNOWN_VALUE = 1;
    /**
     *
     *
     *

     * The internal route is missing.
     *

     *
     * ROUTE_MISSING = 2;
     */
    public static final int ROUTE_MISSING_VALUE = 2;
    /**
     *
     *
     *

     * Revision creation process failed.
     *

     *
     * REVISION_FAILED = 3;
     */
    public static final int REVISION_FAILED_VALUE = 3;
    /**
     *
     *
     *

     * Timed out waiting for completion.
     *

     *
     * PROGRESS_DEADLINE_EXCEEDED = 4;
     */
    public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4;
    /**
     *
     *
     *

     * There was a build error.
     *

     *
     * BUILD_STEP_FAILED = 5;
     */
    public static final int BUILD_STEP_FAILED_VALUE = 5;
    /**
     *
     *
     *

     * The container image path is incorrect.
     *

     *
     * CONTAINER_MISSING = 6;
     */
    public static final int CONTAINER_MISSING_VALUE = 6;
    /**
     *
     *
     *

     * Insufficient permissions on the container image.
     *

     *
     * CONTAINER_PERMISSION_DENIED = 7;
     */
    public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7;
    /**
     *
     *
     *

     * Container image is not authorized by policy.
     *

     *
     * CONTAINER_IMAGE_UNAUTHORIZED = 8;
     */
    public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8;
    /**
     *
     *
     *

     * Container image policy authorization check failed.
     *

     *
     * CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9;
     */
    public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9;
    /**
     *
     *
     *

     * Insufficient permissions on encryption key.
     *

     *
     * ENCRYPTION_KEY_PERMISSION_DENIED = 10;
     */
    public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10;
    /**
     *
     *
     *

     * Permission check on encryption key failed.
     *

     *
     * ENCRYPTION_KEY_CHECK_FAILED = 11;
     */
    public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11;
    /**
     *
     *
     *

     * At least one Access check on secrets failed.
     *

     *
     * SECRETS_ACCESS_CHECK_FAILED = 12;
     */
    public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12;
    /**
     *
     *
     *

     * Waiting for operation to complete.
     *

     *
     * WAITING_FOR_OPERATION = 13;
     */
    public static final int WAITING_FOR_OPERATION_VALUE = 13;
    /**
     *
     *
     *

     * System will retry immediately.
     *

     *
     * IMMEDIATE_RETRY = 14;
     */
    public static final int IMMEDIATE_RETRY_VALUE = 14;
    /**
     *
     *
     *

     * System will retry later; current attempt failed.
     *

     *
     * POSTPONED_RETRY = 15;
     */
    public static final int POSTPONED_RETRY_VALUE = 15;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CommonReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static CommonReason forNumber(int value) {
      switch (value) {
        case 0:
          return COMMON_REASON_UNDEFINED;
        case 1:
          return UNKNOWN;
        case 2:
          return ROUTE_MISSING;
        case 3:
          return REVISION_FAILED;
        case 4:
          return PROGRESS_DEADLINE_EXCEEDED;
        case 5:
          return BUILD_STEP_FAILED;
        case 6:
          return CONTAINER_MISSING;
        case 7:
          return CONTAINER_PERMISSION_DENIED;
        case 8:
          return CONTAINER_IMAGE_UNAUTHORIZED;
        case 9:
          return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED;
        case 10:
          return ENCRYPTION_KEY_PERMISSION_DENIED;
        case 11:
          return ENCRYPTION_KEY_CHECK_FAILED;
        case 12:
          return SECRETS_ACCESS_CHECK_FAILED;
        case 13:
          return WAITING_FOR_OPERATION;
        case 14:
          return IMMEDIATE_RETRY;
        case 15:
          return POSTPONED_RETRY;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<CommonReason> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<CommonReason> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<CommonReason>() {
          public CommonReason findValueByNumber(int number) {
            return CommonReason.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(2);
    }

    private static final CommonReason[] VALUES = values();

    public static CommonReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CommonReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.CommonReason)
  }

  /**
   *
   *
   *

   * Reasons applicable to internal resources not exposed to users. These will
   * surface in Service.conditions, and could be useful for further diagnosis.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.InternalReason}
   */
  public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Default value.
     *

     *
     * INTERNAL_REASON_UNDEFINED = 0;
     */
    INTERNAL_REASON_UNDEFINED(0),
    /**
     *
     *
     *

     * The revision name provided conflicts with an existing one.
     *

     *
     * CONFLICTING_REVISION_NAME = 1;
     */
    CONFLICTING_REVISION_NAME(1),
    /**
     *
     *
     *

     * Revision is missing; this is usually a transient reason.
     *

     *
     * REVISION_MISSING = 2;
     */
    REVISION_MISSING(2),
    /**
     *
     *
     *

     * Internal configuration is missing; this is usually a transient reason.
     *

     *
     * CONFIGURATION_MISSING = 3;
     */
    CONFIGURATION_MISSING(3),
    /**
     *
     *
     *

     * Assigning traffic; this is a transient reason.
     *

     *
     * ASSIGNING_TRAFFIC = 4;
     */
    ASSIGNING_TRAFFIC(4),
    /**
     *
     *
     *

     * Updating ingress traffic settings; this is a transient reason.
     *

     *
     * UPDATING_INGRESS_TRAFFIC_ALLOWED = 5;
     */
    UPDATING_INGRESS_TRAFFIC_ALLOWED(5),
    /**
     *
     *
     *

     * The revision can't be created because it violates an org policy setting.
     *

     *
     * REVISION_ORG_POLICY_VIOLATION = 6;
     */
    REVISION_ORG_POLICY_VIOLATION(6),
    /**
     *
     *
     *

     * Enabling GCFv2 URI support; this is a transient reason.
     *

     *
     * ENABLING_GCFV2_URI_SUPPORT = 7;
     */
    ENABLING_GCFV2_URI_SUPPORT(7),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Default value.
     *

     *
     * INTERNAL_REASON_UNDEFINED = 0;
     */
    public static final int INTERNAL_REASON_UNDEFINED_VALUE = 0;
    /**
     *
     *
     *

     * The revision name provided conflicts with an existing one.
     *

     *
     * CONFLICTING_REVISION_NAME = 1;
     */
    public static final int CONFLICTING_REVISION_NAME_VALUE = 1;
    /**
     *
     *
     *

     * Revision is missing; this is usually a transient reason.
     *

     *
     * REVISION_MISSING = 2;
     */
    public static final int REVISION_MISSING_VALUE = 2;
    /**
     *
     *
     *

     * Internal configuration is missing; this is usually a transient reason.
     *

     *
     * CONFIGURATION_MISSING = 3;
     */
    public static final int CONFIGURATION_MISSING_VALUE = 3;
    /**
     *
     *
     *

     * Assigning traffic; this is a transient reason.
     *

     *
     * ASSIGNING_TRAFFIC = 4;
     */
    public static final int ASSIGNING_TRAFFIC_VALUE = 4;
    /**
     *
     *
     *

     * Updating ingress traffic settings; this is a transient reason.
     *

     *
     * UPDATING_INGRESS_TRAFFIC_ALLOWED = 5;
     */
    public static final int UPDATING_INGRESS_TRAFFIC_ALLOWED_VALUE = 5;
    /**
     *
     *
     *

     * The revision can't be created because it violates an org policy setting.
     *

     *
     * REVISION_ORG_POLICY_VIOLATION = 6;
     */
    public static final int REVISION_ORG_POLICY_VIOLATION_VALUE = 6;
    /**
     *
     *
     *

     * Enabling GCFv2 URI support; this is a transient reason.
     *

     *
     * ENABLING_GCFV2_URI_SUPPORT = 7;
     */
    public static final int ENABLING_GCFV2_URI_SUPPORT_VALUE = 7;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static InternalReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static InternalReason forNumber(int value) {
      switch (value) {
        case 0:
          return INTERNAL_REASON_UNDEFINED;
        case 1:
          return CONFLICTING_REVISION_NAME;
        case 2:
          return REVISION_MISSING;
        case 3:
          return CONFIGURATION_MISSING;
        case 4:
          return ASSIGNING_TRAFFIC;
        case 5:
          return UPDATING_INGRESS_TRAFFIC_ALLOWED;
        case 6:
          return REVISION_ORG_POLICY_VIOLATION;
        case 7:
          return ENABLING_GCFV2_URI_SUPPORT;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<InternalReason> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<InternalReason> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<InternalReason>() {
          public InternalReason findValueByNumber(int number) {
            return InternalReason.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
    }

    private static final InternalReason[] VALUES = values();

    public static InternalReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private InternalReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.InternalReason)
  }

  /**
   *
   *
   *

   * Reasons specific to DomainMapping resource.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.DomainMappingReason}
   */
  public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Default value.
     *

     *
     * DOMAIN_MAPPING_REASON_UNDEFINED = 0;
     */
    DOMAIN_MAPPING_REASON_UNDEFINED(0),
    /**
     *
     *
     *

     * Internal route is not yet ready.
     *

     *
     * ROUTE_NOT_READY = 1;
     */
    ROUTE_NOT_READY(1),
    /**
     *
     *
     *

     * Insufficient permissions.
     *

     *
     * PERMISSION_DENIED = 2;
     */
    PERMISSION_DENIED(2),
    /**
     *
     *
     *

     * Certificate already exists.
     *

     *
     * CERTIFICATE_ALREADY_EXISTS = 3;
     */
    CERTIFICATE_ALREADY_EXISTS(3),
    /**
     *
     *
     *

     * Mapping already exists.
     *

     *
     * MAPPING_ALREADY_EXISTS = 4;
     */
    MAPPING_ALREADY_EXISTS(4),
    /**
     *
     *
     *

     * Certificate issuance pending.
     *

     *
     * CERTIFICATE_PENDING = 5;
     */
    CERTIFICATE_PENDING(5),
    /**
     *
     *
     *

     * Certificate issuance failed.
     *

     *
     * CERTIFICATE_FAILED = 6;
     */
    CERTIFICATE_FAILED(6),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Default value.
     *

     *
     * DOMAIN_MAPPING_REASON_UNDEFINED = 0;
     */
    public static final int DOMAIN_MAPPING_REASON_UNDEFINED_VALUE = 0;
    /**
     *
     *
     *

     * Internal route is not yet ready.
     *

     *
     * ROUTE_NOT_READY = 1;
     */
    public static final int ROUTE_NOT_READY_VALUE = 1;
    /**
     *
     *
     *

     * Insufficient permissions.
     *

     *
     * PERMISSION_DENIED = 2;
     */
    public static final int PERMISSION_DENIED_VALUE = 2;
    /**
     *
     *
     *

     * Certificate already exists.
     *

     *
     * CERTIFICATE_ALREADY_EXISTS = 3;
     */
    public static final int CERTIFICATE_ALREADY_EXISTS_VALUE = 3;
    /**
     *
     *
     *

     * Mapping already exists.
     *

     *
     * MAPPING_ALREADY_EXISTS = 4;
     */
    public static final int MAPPING_ALREADY_EXISTS_VALUE = 4;
    /**
     *
     *
     *

     * Certificate issuance pending.
     *

     *
     * CERTIFICATE_PENDING = 5;
     */
    public static final int CERTIFICATE_PENDING_VALUE = 5;
    /**
     *
     *
     *

     * Certificate issuance failed.
     *

     *
     * CERTIFICATE_FAILED = 6;
     */
    public static final int CERTIFICATE_FAILED_VALUE = 6;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DomainMappingReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static DomainMappingReason forNumber(int value) {
      switch (value) {
        case 0:
          return DOMAIN_MAPPING_REASON_UNDEFINED;
        case 1:
          return ROUTE_NOT_READY;
        case 2:
          return PERMISSION_DENIED;
        case 3:
          return CERTIFICATE_ALREADY_EXISTS;
        case 4:
          return MAPPING_ALREADY_EXISTS;
        case 5:
          return CERTIFICATE_PENDING;
        case 6:
          return CERTIFICATE_FAILED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<DomainMappingReason>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<DomainMappingReason>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<DomainMappingReason>() {
              public DomainMappingReason findValueByNumber(int number) {
                return DomainMappingReason.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(4);
    }

    private static final DomainMappingReason[] VALUES = values();

    public static DomainMappingReason valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private DomainMappingReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.DomainMappingReason)
  }

  /**
   *
   *
   *

   * Reasons specific to Revision resource.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason}
   */
  public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Default value.
     *

     *
     * REVISION_REASON_UNDEFINED = 0;
     */
    REVISION_REASON_UNDEFINED(0),
    /**
     *
     *
     *

     * Revision in Pending state.
     *

     *
     * PENDING = 1;
     */
    PENDING(1),
    /**
     *
     *
     *

     * Revision is in Reserve state.
     *

     *
     * RESERVE = 2;
     */
    RESERVE(2),
    /**
     *
     *
     *

     * Revision is Retired.
     *

     *
     * RETIRED = 3;
     */
    RETIRED(3),
    /**
     *
     *
     *

     * Revision is being retired.
     *

     *
     * RETIRING = 4;
     */
    RETIRING(4),
    /**
     *
     *
     *

     * Revision is being recreated.
     *

     *
     * RECREATING = 5;
     */
    RECREATING(5),
    /**
     *
     *
     *

     * There was a health check error.
     *

     *
     * HEALTH_CHECK_CONTAINER_ERROR = 6;
     */
    HEALTH_CHECK_CONTAINER_ERROR(6),
    /**
     *
     *
     *

     * Health check failed due to user error from customized path of the
     * container. System will retry.
     *

     *
     * CUSTOMIZED_PATH_RESPONSE_PENDING = 7;
     */
    CUSTOMIZED_PATH_RESPONSE_PENDING(7),
    /**
     *
     *
     *

     * A revision with min_instance_count > 0 was created and is reserved, but
     * it was not configured to serve traffic, so it's not live. This can also
     * happen momentarily during traffic migration.
     *

     *
     * MIN_INSTANCES_NOT_PROVISIONED = 8;
     */
    MIN_INSTANCES_NOT_PROVISIONED(8),
    /**
     *
     *
     *

     * The maximum allowed number of active revisions has been reached.
     *

     *
     * ACTIVE_REVISION_LIMIT_REACHED = 9;
     */
    ACTIVE_REVISION_LIMIT_REACHED(9),
    /**
     *
     *
     *

     * There was no deployment defined.
     * This value is no longer used, but Services created in older versions of
     * the API might contain this value.
     *

     *
     * NO_DEPLOYMENT = 10;
     */
    NO_DEPLOYMENT(10),
    /**
     *
     *
     *

     * A revision's container has no port specified since the revision is of a
     * manually scaled service with 0 instance count
     *

     *
     * HEALTH_CHECK_SKIPPED = 11;
     */
    HEALTH_CHECK_SKIPPED(11),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Default value.
     *

     *
     * REVISION_REASON_UNDEFINED = 0;
     */
    public static final int REVISION_REASON_UNDEFINED_VALUE = 0;
    /**
     *
     *
     *

     * Revision in Pending state.
     *

     *
     * PENDING = 1;
     */
    public static final int PENDING_VALUE = 1;
    /**
     *
     *
     *

     * Revision is in Reserve state.
     *

     *
     * RESERVE = 2;
     */
    public static final int RESERVE_VALUE = 2;
    /**
     *
     *
     *

     * Revision is Retired.
     *

     *
     * RETIRED = 3;
     */
    public static final int RETIRED_VALUE = 3;
    /**
     *
     *
     *

     * Revision is being retired.
     *

     *
     * RETIRING = 4;
     */
    public static final int RETIRING_VALUE = 4;
    /**
     *
     *
     *

     * Revision is being recreated.
     *

     *
     * RECREATING = 5;
     */
    public static final int RECREATING_VALUE = 5;
    /**
     *
     *
     *

     * There was a health check error.
     *

     *
     * HEALTH_CHECK_CONTAINER_ERROR = 6;
     */
    public static final int HEALTH_CHECK_CONTAINER_ERROR_VALUE = 6;
    /**
     *
     *
     *

     * Health check failed due to user error from customized path of the
     * container. System will retry.
     *

     *
     * CUSTOMIZED_PATH_RESPONSE_PENDING = 7;
     */
    public static final int CUSTOMIZED_PATH_RESPONSE_PENDING_VALUE = 7;
    /**
     *
     *
     *

     * A revision with min_instance_count > 0 was created and is reserved, but
     * it was not configured to serve traffic, so it's not live. This can also
     * happen momentarily during traffic migration.
     *

     *
     * MIN_INSTANCES_NOT_PROVISIONED = 8;
     */
    public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
    /**
     *
     *
     *

     * The maximum allowed number of active revisions has been reached.
     *

     *
     * ACTIVE_REVISION_LIMIT_REACHED = 9;
     */
    public static final int ACTIVE_REVISION_LIMIT_REACHED_VALUE = 9;
    /**
     *
     *
     *

     * There was no deployment defined.
     * This value is no longer used, but Services created in older versions of
     * the API might contain this value.
     *

     *
     * NO_DEPLOYMENT = 10;
     */
    public static final int NO_DEPLOYMENT_VALUE = 10;
    /**
     *
     *
     *

     * A revision's container has no port specified since the revision is of a
     * manually scaled service with 0 instance count
     *

     *
     * HEALTH_CHECK_SKIPPED = 11;
     */
    public static final int HEALTH_CHECK_SKIPPED_VALUE = 11;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RevisionReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static RevisionReason forNumber(int value) {
      switch (value) {
        case 0:
          return REVISION_REASON_UNDEFINED;
        case 1:
          return PENDING;
        case 2:
          return RESERVE;
        case 3:
          return RETIRED;
        case 4:
          return RETIRING;
        case 5:
          return RECREATING;
        case 6:
          return HEALTH_CHECK_CONTAINER_ERROR;
        case 7:
          return CUSTOMIZED_PATH_RESPONSE_PENDING;
        case 8:
          return MIN_INSTANCES_NOT_PROVISIONED;
        case 9:
          return ACTIVE_REVISION_LIMIT_REACHED;
        case 10:
          return NO_DEPLOYMENT;
        case 11:
          return HEALTH_CHECK_SKIPPED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<RevisionReason> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<RevisionReason> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<RevisionReason>() {
          public RevisionReason findValueByNumber(int number) {
            return RevisionReason.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(5);
    }

    private static final RevisionReason[] VALUES = values();

    public static RevisionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private RevisionReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.RevisionReason)
  }

  /**
   *
   *
   *

   * Reasons specific to Execution resource.
   *

   *
   * Protobuf enum {@code google.cloud.run.v2.Condition.ExecutionReason}
   */
  public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     *

     * Default value.
     *

     *
     * EXECUTION_REASON_UNDEFINED = 0;
     */
    EXECUTION_REASON_UNDEFINED(0),
    /**
     *
     *
     *

     * Internal system error getting execution status. System will retry.
     *

     *
     * JOB_STATUS_SERVICE_POLLING_ERROR = 1;
     */
    JOB_STATUS_SERVICE_POLLING_ERROR(1),
    /**
     *
     *
     *

     * A task reached its retry limit and the last attempt failed due to the
     * user container exiting with a non-zero exit code.
     *

     *
     * NON_ZERO_EXIT_CODE = 2;
     */
    NON_ZERO_EXIT_CODE(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     *

     * Default value.
     *

     *
     * EXECUTION_REASON_UNDEFINED = 0;
     */
    public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0;
    /**
     *
     *
     *

     * Internal system error getting execution status. System will retry.
     *

     *
     * JOB_STATUS_SERVICE_POLLING_ERROR = 1;
     */
    public static final int JOB_STATUS_SERVICE_POLLING_ERROR_VALUE = 1;
    /**
     *
     *
     *

     * A task reached its retry limit and the last attempt failed due to the
     * user container exiting with a non-zero exit code.
     *

     *
     * NON_ZERO_EXIT_CODE = 2;
     */
    public static final int NON_ZERO_EXIT_CODE_VALUE = 2;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ExecutionReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ExecutionReason forNumber(int value) {
      switch (value) {
        case 0:
          return EXECUTION_REASON_UNDEFINED;
        case 1:
          return JOB_STATUS_SERVICE_POLLING_ERROR;
        case 2:
          return NON_ZERO_EXIT_CODE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ExecutionReason> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<ExecutionReason>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<ExecutionReason>() {
              public ExecutionReason findValueByNumber(int number) {
                return ExecutionReason.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(6);
    }

    private static final ExecutionReason[] VALUES = values();

    public static ExecutionReason valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ExecutionReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.ExecutionReason)
  }

  private int reasonsCase_ = 0;
  private java.lang.Object reasons_;

  public enum ReasonsCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    REASON(6),
    INTERNAL_REASON(7),
    DOMAIN_MAPPING_REASON(8),
    REVISION_REASON(9),
    EXECUTION_REASON(11),
    REASONS_NOT_SET(0);
    private final int value;

    private ReasonsCase(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 ReasonsCase valueOf(int value) {
      return forNumber(value);
    }

    public static ReasonsCase forNumber(int value) {
      switch (value) {
        case 6:
          return REASON;
        case 7:
          return INTERNAL_REASON;
        case 8:
          return DOMAIN_MAPPING_REASON;
        case 9:
          return REVISION_REASON;
        case 11:
          return EXECUTION_REASON;
        case 0:
          return REASONS_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public ReasonsCase getReasonsCase() {
    return ReasonsCase.forNumber(reasonsCase_);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object type_;
  /**
   *
   *
   *

   * type is used to communicate the status of the reconciliation process.
   * See also:
   * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
   * Types common to all resources include:
   * * "Ready": True when the Resource is ready.
   *

   *
   * string type = 1;
   *
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    java.lang.Object ref = type_;
    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();
      type_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * type is used to communicate the status of the reconciliation process.
   * See also:
   * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
   * Types common to all resources include:
   * * "Ready": True when the Resource is ready.
   *

   *
   * string type = 1;
   *
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getTypeBytes() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      type_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATE_FIELD_NUMBER = 2;
  private int state_;
  /**
   *
   *
   *

   * State of the condition.
   *

   *
   * .google.cloud.run.v2.Condition.State state = 2;
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   *

   * State of the condition.
   *

   *
   * .google.cloud.run.v2.Condition.State state = 2;
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.run.v2.Condition.State getState() {
    @SuppressWarnings("deprecation")
    com.google.cloud.run.v2.Condition.State result =
        com.google.cloud.run.v2.Condition.State.valueOf(state_);
    return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result;
  }

  public static final int MESSAGE_FIELD_NUMBER = 3;
  private volatile java.lang.Object message_;
  /**
   *
   *
   *

   * Human readable message indicating details about the current status.
   *

   *
   * string message = 3;
   *
   * @return The message.
   */
  @java.lang.Override
  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;
    }
  }
  /**
   *
   *
   *

   * Human readable message indicating details about the current status.
   *

   *
   * string message = 3;
   *
   * @return The bytes for message.
   */
  @java.lang.Override
  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 LAST_TRANSITION_TIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp lastTransitionTime_;
  /**
   *
   *
   *

   * Last time the condition transitioned from one status to another.
   *

   *
   * .google.protobuf.Timestamp last_transition_time = 4;
   *
   * @return Whether the lastTransitionTime field is set.
   */
  @java.lang.Override
  public boolean hasLastTransitionTime() {
    return lastTransitionTime_ != null;
  }
  /**
   *
   *
   *

   * Last time the condition transitioned from one status to another.
   *

   *
   * .google.protobuf.Timestamp last_transition_time = 4;
   *
   * @return The lastTransitionTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getLastTransitionTime() {
    return lastTransitionTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : lastTransitionTime_;
  }
  /**
   *
   *
   *

   * Last time the condition transitioned from one status to another.
   *

   *
   * .google.protobuf.Timestamp last_transition_time = 4;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() {
    return getLastTransitionTime();
  }

  public static final int SEVERITY_FIELD_NUMBER = 5;
  private int severity_;
  /**
   *
   *
   *

   * How to interpret failures of this condition, one of Error, Warning, Info
   *

   *
   * .google.cloud.run.v2.Condition.Severity severity = 5;
   *
   * @return The enum numeric value on the wire for severity.
   */
  @java.lang.Override
  public int getSeverityValue() {
    return severity_;
  }
  /**
   *
   *
   *

   * How to interpret failures of this condition, one of Error, Warning, Info
   *

   *
   * .google.cloud.run.v2.Condition.Severity severity = 5;
   *
   * @return The severity.
   */
  @java.lang.Override
  public com.google.cloud.run.v2.Condition.Severity getSeverity() {
    @SuppressWarnings("deprecation")
    com.google.cloud.run.v2.Condition.Severity result =
        com.google.cloud.run.v2.Condition.Severity.valueOf(severity_);
    return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result;
  }

  public static final int REASON_FIELD_NUMBER = 6;
  /**
   *
   *
   *

   * A common (service-level) reason for this condition.
   *

   *
   * .google.cloud.run.v2.Condition.CommonReason reason = 6;
   *
   * @return Whether the reason field is set.
   */
  public boolean hasReason() {
    return reasonsCase_ == 6;
  }
  /**
   *
   *
   *

   * A common (service-level) reason for this condition.
   *

   *
   * .google.cloud.run.v2.Condition.CommonReason reason = 6;
   *
   * @return The enum numeric value on the wire for reason.
   */
  public int getReasonValue() {
    if (reasonsCase_ == 6) {
      return (java.lang.Integer) reasons_;
    }
    return 0;
  }
  /**
   *
   *
   *

   * A common (service-level) reason for this condition.
   *

   *
   * .google.cloud.run.v2.Condition.CommonReason reason = 6;
   *
   * @return The reason.
   */
  public com.google.cloud.run.v2.Condition.CommonReason getReason() {
    if (reasonsCase_ == 6) {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.CommonReason result =
          com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_);
      return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result;
    }
    return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED;
  }

  public static final int INTERNAL_REASON_FIELD_NUMBER = 7;
  /**
   *
   *
   *

   * A reason for the internal condition.
   *

   *
   * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
   *
   * @return Whether the internalReason field is set.
   */
  public boolean hasInternalReason() {
    return reasonsCase_ == 7;
  }
  /**
   *
   *
   *

   * A reason for the internal condition.
   *

   *
   * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
   *
   * @return The enum numeric value on the wire for internalReason.
   */
  public int getInternalReasonValue() {
    if (reasonsCase_ == 7) {
      return (java.lang.Integer) reasons_;
    }
    return 0;
  }
  /**
   *
   *
   *

   * A reason for the internal condition.
   *

   *
   * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
   *
   * @return The internalReason.
   */
  public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() {
    if (reasonsCase_ == 7) {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.InternalReason result =
          com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_);
      return result == null
          ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED;
  }

  public static final int DOMAIN_MAPPING_REASON_FIELD_NUMBER = 8;
  /**
   *
   *
   *

   * A reason for the domain mapping condition.
   *

   *
   * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
   *
   * @return Whether the domainMappingReason field is set.
   */
  public boolean hasDomainMappingReason() {
    return reasonsCase_ == 8;
  }
  /**
   *
   *
   *

   * A reason for the domain mapping condition.
   *

   *
   * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
   *
   * @return The enum numeric value on the wire for domainMappingReason.
   */
  public int getDomainMappingReasonValue() {
    if (reasonsCase_ == 8) {
      return (java.lang.Integer) reasons_;
    }
    return 0;
  }
  /**
   *
   *
   *

   * A reason for the domain mapping condition.
   *

   *
   * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
   *
   * @return The domainMappingReason.
   */
  public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() {
    if (reasonsCase_ == 8) {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.DomainMappingReason result =
          com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf(
              (java.lang.Integer) reasons_);
      return result == null
          ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED;
  }

  public static final int REVISION_REASON_FIELD_NUMBER = 9;
  /**
   *
   *
   *

   * A reason for the revision condition.
   *

   *
   * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
   *
   * @return Whether the revisionReason field is set.
   */
  public boolean hasRevisionReason() {
    return reasonsCase_ == 9;
  }
  /**
   *
   *
   *

   * A reason for the revision condition.
   *

   *
   * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
   *
   * @return The enum numeric value on the wire for revisionReason.
   */
  public int getRevisionReasonValue() {
    if (reasonsCase_ == 9) {
      return (java.lang.Integer) reasons_;
    }
    return 0;
  }
  /**
   *
   *
   *

   * A reason for the revision condition.
   *

   *
   * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
   *
   * @return The revisionReason.
   */
  public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() {
    if (reasonsCase_ == 9) {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.RevisionReason result =
          com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_);
      return result == null
          ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED;
  }

  public static final int EXECUTION_REASON_FIELD_NUMBER = 11;
  /**
   *
   *
   *

   * A reason for the execution condition.
   *

   *
   * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
   *
   * @return Whether the executionReason field is set.
   */
  public boolean hasExecutionReason() {
    return reasonsCase_ == 11;
  }
  /**
   *
   *
   *

   * A reason for the execution condition.
   *

   *
   * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
   *
   * @return The enum numeric value on the wire for executionReason.
   */
  public int getExecutionReasonValue() {
    if (reasonsCase_ == 11) {
      return (java.lang.Integer) reasons_;
    }
    return 0;
  }
  /**
   *
   *
   *

   * A reason for the execution condition.
   *

   *
   * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
   *
   * @return The executionReason.
   */
  public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() {
    if (reasonsCase_ == 11) {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.ExecutionReason result =
          com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_);
      return result == null
          ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
    }
    if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
    }
    if (lastTransitionTime_ != null) {
      output.writeMessage(4, getLastTransitionTime());
    }
    if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(5, severity_);
    }
    if (reasonsCase_ == 6) {
      output.writeEnum(6, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 7) {
      output.writeEnum(7, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 8) {
      output.writeEnum(8, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 9) {
      output.writeEnum(9, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 11) {
      output.writeEnum(11, ((java.lang.Integer) reasons_));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
    }
    if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
    }
    if (lastTransitionTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime());
    }
    if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_);
    }
    if (reasonsCase_ == 6) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 7) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(7, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 8) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(8, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_));
    }
    if (reasonsCase_ == 11) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_));
    }
    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 com.google.cloud.run.v2.Condition)) {
      return super.equals(obj);
    }
    com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj;

    if (!getType().equals(other.getType())) return false;
    if (state_ != other.state_) return false;
    if (!getMessage().equals(other.getMessage())) return false;
    if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false;
    if (hasLastTransitionTime()) {
      if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false;
    }
    if (severity_ != other.severity_) return false;
    if (!getReasonsCase().equals(other.getReasonsCase())) return false;
    switch (reasonsCase_) {
      case 6:
        if (getReasonValue() != other.getReasonValue()) return false;
        break;
      case 7:
        if (getInternalReasonValue() != other.getInternalReasonValue()) return false;
        break;
      case 8:
        if (getDomainMappingReasonValue() != other.getDomainMappingReasonValue()) return false;
        break;
      case 9:
        if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false;
        break;
      case 11:
        if (getExecutionReasonValue() != other.getExecutionReasonValue()) 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) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
    hash = (53 * hash) + getMessage().hashCode();
    if (hasLastTransitionTime()) {
      hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getLastTransitionTime().hashCode();
    }
    hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
    hash = (53 * hash) + severity_;
    switch (reasonsCase_) {
      case 6:
        hash = (37 * hash) + REASON_FIELD_NUMBER;
        hash = (53 * hash) + getReasonValue();
        break;
      case 7:
        hash = (37 * hash) + INTERNAL_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getInternalReasonValue();
        break;
      case 8:
        hash = (37 * hash) + DOMAIN_MAPPING_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getDomainMappingReasonValue();
        break;
      case 9:
        hash = (37 * hash) + REVISION_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getRevisionReasonValue();
        break;
      case 11:
        hash = (37 * hash) + EXECUTION_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getExecutionReasonValue();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.run.v2.Condition parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.run.v2.Condition parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.run.v2.Condition 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 com.google.cloud.run.v2.Condition parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.run.v2.Condition 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 com.google.cloud.run.v2.Condition parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.run.v2.Condition 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(com.google.cloud.run.v2.Condition 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;
  }
  /**
   *
   *
   *

   * Defines a status condition for a resource.
   *

   *
   * Protobuf type {@code google.cloud.run.v2.Condition}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Condition)
      com.google.cloud.run.v2.ConditionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.run.v2.ConditionProto
          .internal_static_google_cloud_run_v2_Condition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.run.v2.ConditionProto
          .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.run.v2.Condition.class,
              com.google.cloud.run.v2.Condition.Builder.class);
    }

    // Construct using com.google.cloud.run.v2.Condition.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();
      type_ = "";

      state_ = 0;

      message_ = "";

      if (lastTransitionTimeBuilder_ == null) {
        lastTransitionTime_ = null;
      } else {
        lastTransitionTime_ = null;
        lastTransitionTimeBuilder_ = null;
      }
      severity_ = 0;

      reasonsCase_ = 0;
      reasons_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.run.v2.ConditionProto
          .internal_static_google_cloud_run_v2_Condition_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.run.v2.Condition getDefaultInstanceForType() {
      return com.google.cloud.run.v2.Condition.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.run.v2.Condition build() {
      com.google.cloud.run.v2.Condition result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.run.v2.Condition buildPartial() {
      com.google.cloud.run.v2.Condition result = new com.google.cloud.run.v2.Condition(this);
      result.type_ = type_;
      result.state_ = state_;
      result.message_ = message_;
      if (lastTransitionTimeBuilder_ == null) {
        result.lastTransitionTime_ = lastTransitionTime_;
      } else {
        result.lastTransitionTime_ = lastTransitionTimeBuilder_.build();
      }
      result.severity_ = severity_;
      if (reasonsCase_ == 6) {
        result.reasons_ = reasons_;
      }
      if (reasonsCase_ == 7) {
        result.reasons_ = reasons_;
      }
      if (reasonsCase_ == 8) {
        result.reasons_ = reasons_;
      }
      if (reasonsCase_ == 9) {
        result.reasons_ = reasons_;
      }
      if (reasonsCase_ == 11) {
        result.reasons_ = reasons_;
      }
      result.reasonsCase_ = reasonsCase_;
      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 com.google.cloud.run.v2.Condition) {
        return mergeFrom((com.google.cloud.run.v2.Condition) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.run.v2.Condition other) {
      if (other == com.google.cloud.run.v2.Condition.getDefaultInstance()) return this;
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getMessage().isEmpty()) {
        message_ = other.message_;
        onChanged();
      }
      if (other.hasLastTransitionTime()) {
        mergeLastTransitionTime(other.getLastTransitionTime());
      }
      if (other.severity_ != 0) {
        setSeverityValue(other.getSeverityValue());
      }
      switch (other.getReasonsCase()) {
        case REASON:
          {
            setReasonValue(other.getReasonValue());
            break;
          }
        case INTERNAL_REASON:
          {
            setInternalReasonValue(other.getInternalReasonValue());
            break;
          }
        case DOMAIN_MAPPING_REASON:
          {
            setDomainMappingReasonValue(other.getDomainMappingReasonValue());
            break;
          }
        case REVISION_REASON:
          {
            setRevisionReasonValue(other.getRevisionReasonValue());
            break;
          }
        case EXECUTION_REASON:
          {
            setExecutionReasonValue(other.getExecutionReasonValue());
            break;
          }
        case REASONS_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 {
      com.google.cloud.run.v2.Condition parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.run.v2.Condition) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int reasonsCase_ = 0;
    private java.lang.Object reasons_;

    public ReasonsCase getReasonsCase() {
      return ReasonsCase.forNumber(reasonsCase_);
    }

    public Builder clearReasons() {
      reasonsCase_ = 0;
      reasons_ = null;
      onChanged();
      return this;
    }

    private java.lang.Object type_ = "";
    /**
     *
     *
     *

     * type is used to communicate the status of the reconciliation process.
     * See also:
     * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
     * Types common to all resources include:
     * * "Ready": True when the Resource is ready.
     *

     *
     * string type = 1;
     *
     * @return The type.
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        type_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * type is used to communicate the status of the reconciliation process.
     * See also:
     * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
     * Types common to all resources include:
     * * "Ready": True when the Resource is ready.
     *

     *
     * string type = 1;
     *
     * @return The bytes for type.
     */
    public com.google.protobuf.ByteString getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * type is used to communicate the status of the reconciliation process.
     * See also:
     * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
     * Types common to all resources include:
     * * "Ready": True when the Resource is ready.
     *

     *
     * string type = 1;
     *
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      type_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * type is used to communicate the status of the reconciliation process.
     * See also:
     * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
     * Types common to all resources include:
     * * "Ready": True when the Resource is ready.
     *

     *
     * string type = 1;
     *
     * @return This builder for chaining.
     */
    public Builder clearType() {

      type_ = getDefaultInstance().getType();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * type is used to communicate the status of the reconciliation process.
     * See also:
     * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
     * Types common to all resources include:
     * * "Ready": True when the Resource is ready.
     *

     *
     * string type = 1;
     *
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      type_ = value;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     *

     * State of the condition.
     *

     *
     * .google.cloud.run.v2.Condition.State state = 2;
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     *

     * State of the condition.
     *

     *
     * .google.cloud.run.v2.Condition.State state = 2;
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {

      state_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * State of the condition.
     *

     *
     * .google.cloud.run.v2.Condition.State state = 2;
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.State getState() {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.State result =
          com.google.cloud.run.v2.Condition.State.valueOf(state_);
      return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result;
    }
    /**
     *
     *
     *

     * State of the condition.
     *

     *
     * .google.cloud.run.v2.Condition.State state = 2;
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.run.v2.Condition.State value) {
      if (value == null) {
        throw new NullPointerException();
      }

      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * State of the condition.
     *

     *
     * .google.cloud.run.v2.Condition.State state = 2;
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {

      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object message_ = "";
    /**
     *
     *
     *

     * Human readable message indicating details about the current status.
     *

     *
     * string message = 3;
     *
     * @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;
      }
    }
    /**
     *
     *
     *

     * Human readable message indicating details about the current status.
     *

     *
     * string message = 3;
     *
     * @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;
      }
    }
    /**
     *
     *
     *

     * Human readable message indicating details about the current status.
     *

     *
     * string message = 3;
     *
     * @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;
    }
    /**
     *
     *
     *

     * Human readable message indicating details about the current status.
     *

     *
     * string message = 3;
     *
     * @return This builder for chaining.
     */
    public Builder clearMessage() {

      message_ = getDefaultInstance().getMessage();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * Human readable message indicating details about the current status.
     *

     *
     * string message = 3;
     *
     * @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 com.google.protobuf.Timestamp lastTransitionTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        lastTransitionTimeBuilder_;
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     *
     * @return Whether the lastTransitionTime field is set.
     */
    public boolean hasLastTransitionTime() {
      return lastTransitionTimeBuilder_ != null || lastTransitionTime_ != null;
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     *
     * @return The lastTransitionTime.
     */
    public com.google.protobuf.Timestamp getLastTransitionTime() {
      if (lastTransitionTimeBuilder_ == null) {
        return lastTransitionTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : lastTransitionTime_;
      } else {
        return lastTransitionTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) {
      if (lastTransitionTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lastTransitionTime_ = value;
        onChanged();
      } else {
        lastTransitionTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (lastTransitionTimeBuilder_ == null) {
        lastTransitionTime_ = builderForValue.build();
        onChanged();
      } else {
        lastTransitionTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) {
      if (lastTransitionTimeBuilder_ == null) {
        if (lastTransitionTime_ != null) {
          lastTransitionTime_ =
              com.google.protobuf.Timestamp.newBuilder(lastTransitionTime_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          lastTransitionTime_ = value;
        }
        onChanged();
      } else {
        lastTransitionTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public Builder clearLastTransitionTime() {
      if (lastTransitionTimeBuilder_ == null) {
        lastTransitionTime_ = null;
        onChanged();
      } else {
        lastTransitionTime_ = null;
        lastTransitionTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() {

      onChanged();
      return getLastTransitionTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() {
      if (lastTransitionTimeBuilder_ != null) {
        return lastTransitionTimeBuilder_.getMessageOrBuilder();
      } else {
        return lastTransitionTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : lastTransitionTime_;
      }
    }
    /**
     *
     *
     *

     * Last time the condition transitioned from one status to another.
     *

     *
     * .google.protobuf.Timestamp last_transition_time = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getLastTransitionTimeFieldBuilder() {
      if (lastTransitionTimeBuilder_ == null) {
        lastTransitionTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getLastTransitionTime(), getParentForChildren(), isClean());
        lastTransitionTime_ = null;
      }
      return lastTransitionTimeBuilder_;
    }

    private int severity_ = 0;
    /**
     *
     *
     *

     * How to interpret failures of this condition, one of Error, Warning, Info
     *

     *
     * .google.cloud.run.v2.Condition.Severity severity = 5;
     *
     * @return The enum numeric value on the wire for severity.
     */
    @java.lang.Override
    public int getSeverityValue() {
      return severity_;
    }
    /**
     *
     *
     *

     * How to interpret failures of this condition, one of Error, Warning, Info
     *

     *
     * .google.cloud.run.v2.Condition.Severity severity = 5;
     *
     * @param value The enum numeric value on the wire for severity to set.
     * @return This builder for chaining.
     */
    public Builder setSeverityValue(int value) {

      severity_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * How to interpret failures of this condition, one of Error, Warning, Info
     *

     *
     * .google.cloud.run.v2.Condition.Severity severity = 5;
     *
     * @return The severity.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.Severity getSeverity() {
      @SuppressWarnings("deprecation")
      com.google.cloud.run.v2.Condition.Severity result =
          com.google.cloud.run.v2.Condition.Severity.valueOf(severity_);
      return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result;
    }
    /**
     *
     *
     *

     * How to interpret failures of this condition, one of Error, Warning, Info
     *

     *
     * .google.cloud.run.v2.Condition.Severity severity = 5;
     *
     * @param value The severity to set.
     * @return This builder for chaining.
     */
    public Builder setSeverity(com.google.cloud.run.v2.Condition.Severity value) {
      if (value == null) {
        throw new NullPointerException();
      }

      severity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * How to interpret failures of this condition, one of Error, Warning, Info
     *

     *
     * .google.cloud.run.v2.Condition.Severity severity = 5;
     *
     * @return This builder for chaining.
     */
    public Builder clearSeverity() {

      severity_ = 0;
      onChanged();
      return this;
    }

    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @return Whether the reason field is set.
     */
    @java.lang.Override
    public boolean hasReason() {
      return reasonsCase_ == 6;
    }
    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @return The enum numeric value on the wire for reason.
     */
    @java.lang.Override
    public int getReasonValue() {
      if (reasonsCase_ == 6) {
        return ((java.lang.Integer) reasons_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @param value The enum numeric value on the wire for reason to set.
     * @return This builder for chaining.
     */
    public Builder setReasonValue(int value) {
      reasonsCase_ = 6;
      reasons_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @return The reason.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.CommonReason getReason() {
      if (reasonsCase_ == 6) {
        @SuppressWarnings("deprecation")
        com.google.cloud.run.v2.Condition.CommonReason result =
            com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_);
        return result == null
            ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED;
    }
    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @param value The reason to set.
     * @return This builder for chaining.
     */
    public Builder setReason(com.google.cloud.run.v2.Condition.CommonReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reasonsCase_ = 6;
      reasons_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A common (service-level) reason for this condition.
     *

     *
     * .google.cloud.run.v2.Condition.CommonReason reason = 6;
     *
     * @return This builder for chaining.
     */
    public Builder clearReason() {
      if (reasonsCase_ == 6) {
        reasonsCase_ = 0;
        reasons_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @return Whether the internalReason field is set.
     */
    @java.lang.Override
    public boolean hasInternalReason() {
      return reasonsCase_ == 7;
    }
    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @return The enum numeric value on the wire for internalReason.
     */
    @java.lang.Override
    public int getInternalReasonValue() {
      if (reasonsCase_ == 7) {
        return ((java.lang.Integer) reasons_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @param value The enum numeric value on the wire for internalReason to set.
     * @return This builder for chaining.
     */
    public Builder setInternalReasonValue(int value) {
      reasonsCase_ = 7;
      reasons_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @return The internalReason.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() {
      if (reasonsCase_ == 7) {
        @SuppressWarnings("deprecation")
        com.google.cloud.run.v2.Condition.InternalReason result =
            com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_);
        return result == null
            ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED;
    }
    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @param value The internalReason to set.
     * @return This builder for chaining.
     */
    public Builder setInternalReason(com.google.cloud.run.v2.Condition.InternalReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reasonsCase_ = 7;
      reasons_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the internal condition.
     *

     *
     * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7;
     *
     * @return This builder for chaining.
     */
    public Builder clearInternalReason() {
      if (reasonsCase_ == 7) {
        reasonsCase_ = 0;
        reasons_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @return Whether the domainMappingReason field is set.
     */
    @java.lang.Override
    public boolean hasDomainMappingReason() {
      return reasonsCase_ == 8;
    }
    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @return The enum numeric value on the wire for domainMappingReason.
     */
    @java.lang.Override
    public int getDomainMappingReasonValue() {
      if (reasonsCase_ == 8) {
        return ((java.lang.Integer) reasons_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @param value The enum numeric value on the wire for domainMappingReason to set.
     * @return This builder for chaining.
     */
    public Builder setDomainMappingReasonValue(int value) {
      reasonsCase_ = 8;
      reasons_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @return The domainMappingReason.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() {
      if (reasonsCase_ == 8) {
        @SuppressWarnings("deprecation")
        com.google.cloud.run.v2.Condition.DomainMappingReason result =
            com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf(
                (java.lang.Integer) reasons_);
        return result == null
            ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED;
    }
    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @param value The domainMappingReason to set.
     * @return This builder for chaining.
     */
    public Builder setDomainMappingReason(
        com.google.cloud.run.v2.Condition.DomainMappingReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reasonsCase_ = 8;
      reasons_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the domain mapping condition.
     *

     *
     * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8;
     *
     * @return This builder for chaining.
     */
    public Builder clearDomainMappingReason() {
      if (reasonsCase_ == 8) {
        reasonsCase_ = 0;
        reasons_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @return Whether the revisionReason field is set.
     */
    @java.lang.Override
    public boolean hasRevisionReason() {
      return reasonsCase_ == 9;
    }
    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @return The enum numeric value on the wire for revisionReason.
     */
    @java.lang.Override
    public int getRevisionReasonValue() {
      if (reasonsCase_ == 9) {
        return ((java.lang.Integer) reasons_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @param value The enum numeric value on the wire for revisionReason to set.
     * @return This builder for chaining.
     */
    public Builder setRevisionReasonValue(int value) {
      reasonsCase_ = 9;
      reasons_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @return The revisionReason.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() {
      if (reasonsCase_ == 9) {
        @SuppressWarnings("deprecation")
        com.google.cloud.run.v2.Condition.RevisionReason result =
            com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_);
        return result == null
            ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED;
    }
    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @param value The revisionReason to set.
     * @return This builder for chaining.
     */
    public Builder setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reasonsCase_ = 9;
      reasons_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the revision condition.
     *

     *
     * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
     *
     * @return This builder for chaining.
     */
    public Builder clearRevisionReason() {
      if (reasonsCase_ == 9) {
        reasonsCase_ = 0;
        reasons_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @return Whether the executionReason field is set.
     */
    @java.lang.Override
    public boolean hasExecutionReason() {
      return reasonsCase_ == 11;
    }
    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @return The enum numeric value on the wire for executionReason.
     */
    @java.lang.Override
    public int getExecutionReasonValue() {
      if (reasonsCase_ == 11) {
        return ((java.lang.Integer) reasons_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @param value The enum numeric value on the wire for executionReason to set.
     * @return This builder for chaining.
     */
    public Builder setExecutionReasonValue(int value) {
      reasonsCase_ = 11;
      reasons_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @return The executionReason.
     */
    @java.lang.Override
    public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() {
      if (reasonsCase_ == 11) {
        @SuppressWarnings("deprecation")
        com.google.cloud.run.v2.Condition.ExecutionReason result =
            com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_);
        return result == null
            ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED;
    }
    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @param value The executionReason to set.
     * @return This builder for chaining.
     */
    public Builder setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reasonsCase_ = 11;
      reasons_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * A reason for the execution condition.
     *

     *
     * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
     *
     * @return This builder for chaining.
     */
    public Builder clearExecutionReason() {
      if (reasonsCase_ == 11) {
        reasonsCase_ = 0;
        reasons_ = null;
        onChanged();
      }
      return this;
    }

    @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:google.cloud.run.v2.Condition)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Condition)
  private static final com.google.cloud.run.v2.Condition DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.run.v2.Condition();
  }

  public static com.google.cloud.run.v2.Condition getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Condition> PARSER =
      new com.google.protobuf.AbstractParser<Condition>() {
        @java.lang.Override
        public Condition parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Condition(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<Condition> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Condition> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.run.v2.Condition getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}