/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/asset/v1/asset_service.proto

package com.google.cloud.asset.v1;

/**
 *
 *
 * <pre>
 * The organization policy constraint definition.
 * </pre>
 *
 * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint}
 */
public final class AnalyzerOrgPolicyConstraint extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint)
    AnalyzerOrgPolicyConstraintOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AnalyzerOrgPolicyConstraint.newBuilder() to construct.
  private AnalyzerOrgPolicyConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AnalyzerOrgPolicyConstraint() {}

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

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.asset.v1.AssetServiceProto
        .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.asset.v1.AssetServiceProto
        .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.class,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder.class);
  }

  public interface ConstraintOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The unique name of the constraint. Format of the name should be
     * * `constraints/{constraint_name}`
     * For example, `constraints/compute.disableSerialPortAccess`.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * The unique name of the constraint. Format of the name should be
     * * `constraints/{constraint_name}`
     * For example, `constraints/compute.disableSerialPortAccess`.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * The human readable name of the constraint.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The displayName.
     */
    java.lang.String getDisplayName();
    /**
     *
     *
     * <pre>
     * The human readable name of the constraint.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The bytes for displayName.
     */
    com.google.protobuf.ByteString getDisplayNameBytes();

    /**
     *
     *
     * <pre>
     * Detailed description of what this `Constraint` controls as well as how
     * and where it is enforced.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     *
     *
     * <pre>
     * Detailed description of what this `Constraint` controls as well as how
     * and where it is enforced.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString getDescriptionBytes();

    /**
     *
     *
     * <pre>
     * The evaluation behavior of this constraint in the absence of 'Policy'.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
     * </code>
     *
     * @return The enum numeric value on the wire for constraintDefault.
     */
    int getConstraintDefaultValue();
    /**
     *
     *
     * <pre>
     * The evaluation behavior of this constraint in the absence of 'Policy'.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
     * </code>
     *
     * @return The constraintDefault.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
        getConstraintDefault();

    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     *
     * @return Whether the listConstraint field is set.
     */
    boolean hasListConstraint();
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     *
     * @return The listConstraint.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
        getListConstraint();
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder
        getListConstraintOrBuilder();

    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     *
     * @return Whether the booleanConstraint field is set.
     */
    boolean hasBooleanConstraint();
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     *
     * @return The booleanConstraint.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
        getBooleanConstraint();
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder
        getBooleanConstraintOrBuilder();

    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase
        getConstraintTypeCase();
  }
  /**
   *
   *
   * <pre>
   * The definition of a constraint.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint}
   */
  public static final class Constraint extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
      ConstraintOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Constraint.newBuilder() to construct.
    private Constraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Constraint() {
      name_ = "";
      displayName_ = "";
      description_ = "";
      constraintDefault_ = 0;
    }

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

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.class,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Specifies the default behavior in the absence of any `Policy` for the
     * `Constraint`. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`.
     * </pre>
     *
     * Protobuf enum {@code
     * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault}
     */
    public enum ConstraintDefault implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * This is only used for distinguishing unset values and should never be
       * used.
       * </pre>
       *
       * <code>CONSTRAINT_DEFAULT_UNSPECIFIED = 0;</code>
       */
      CONSTRAINT_DEFAULT_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Indicate that all values are allowed for list constraints.
       * Indicate that enforcement is off for boolean constraints.
       * </pre>
       *
       * <code>ALLOW = 1;</code>
       */
      ALLOW(1),
      /**
       *
       *
       * <pre>
       * Indicate that all values are denied for list constraints.
       * Indicate that enforcement is on for boolean constraints.
       * </pre>
       *
       * <code>DENY = 2;</code>
       */
      DENY(2),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * This is only used for distinguishing unset values and should never be
       * used.
       * </pre>
       *
       * <code>CONSTRAINT_DEFAULT_UNSPECIFIED = 0;</code>
       */
      public static final int CONSTRAINT_DEFAULT_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Indicate that all values are allowed for list constraints.
       * Indicate that enforcement is off for boolean constraints.
       * </pre>
       *
       * <code>ALLOW = 1;</code>
       */
      public static final int ALLOW_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Indicate that all values are denied for list constraints.
       * Indicate that enforcement is on for boolean constraints.
       * </pre>
       *
       * <code>DENY = 2;</code>
       */
      public static final int DENY_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 ConstraintDefault 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 ConstraintDefault forNumber(int value) {
        switch (value) {
          case 0:
            return CONSTRAINT_DEFAULT_UNSPECIFIED;
          case 1:
            return ALLOW;
          case 2:
            return DENY;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<ConstraintDefault>
          internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<ConstraintDefault>() {
                public ConstraintDefault findValueByNumber(int number) {
                  return ConstraintDefault.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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

      public static ConstraintDefault 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 ConstraintDefault(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault)
    }

    public interface ListConstraintOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Indicates whether values grouped into categories can be used in
       * `Policy.allowed_values` and `Policy.denied_values`. For example,
       * `"in:Python"` would match any value in the 'Python' group.
       * </pre>
       *
       * <code>bool supports_in = 1;</code>
       *
       * @return The supportsIn.
       */
      boolean getSupportsIn();

      /**
       *
       *
       * <pre>
       * Indicates whether subtrees of Cloud Resource Manager resource hierarchy
       * can be used in `Policy.allowed_values` and `Policy.denied_values`. For
       * example, `"under:folders/123"` would match any resource under the
       * 'folders/123' folder.
       * </pre>
       *
       * <code>bool supports_under = 2;</code>
       *
       * @return The supportsUnder.
       */
      boolean getSupportsUnder();
    }
    /**
     *
     *
     * <pre>
     * A `Constraint` that allows or disallows a list of string values, which
     * are configured by an organization's policy administrator with a `Policy`.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint}
     */
    public static final class ListConstraint extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
        ListConstraintOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use ListConstraint.newBuilder() to construct.
      private ListConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private ListConstraint() {}

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

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                    .class,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                    .Builder.class);
      }

      public static final int SUPPORTS_IN_FIELD_NUMBER = 1;
      private boolean supportsIn_ = false;
      /**
       *
       *
       * <pre>
       * Indicates whether values grouped into categories can be used in
       * `Policy.allowed_values` and `Policy.denied_values`. For example,
       * `"in:Python"` would match any value in the 'Python' group.
       * </pre>
       *
       * <code>bool supports_in = 1;</code>
       *
       * @return The supportsIn.
       */
      @java.lang.Override
      public boolean getSupportsIn() {
        return supportsIn_;
      }

      public static final int SUPPORTS_UNDER_FIELD_NUMBER = 2;
      private boolean supportsUnder_ = false;
      /**
       *
       *
       * <pre>
       * Indicates whether subtrees of Cloud Resource Manager resource hierarchy
       * can be used in `Policy.allowed_values` and `Policy.denied_values`. For
       * example, `"under:folders/123"` would match any resource under the
       * 'folders/123' folder.
       * </pre>
       *
       * <code>bool supports_under = 2;</code>
       *
       * @return The supportsUnder.
       */
      @java.lang.Override
      public boolean getSupportsUnder() {
        return supportsUnder_;
      }

      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 (supportsIn_ != false) {
          output.writeBool(1, supportsIn_);
        }
        if (supportsUnder_ != false) {
          output.writeBool(2, supportsUnder_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (supportsIn_ != false) {
          size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, supportsIn_);
        }
        if (supportsUnder_ != false) {
          size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, supportsUnder_);
        }
        size += getUnknownFields().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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)) {
          return super.equals(obj);
        }
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint other =
            (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint) obj;

        if (getSupportsIn() != other.getSupportsIn()) return false;
        if (getSupportsUnder() != other.getSupportsUnder()) return false;
        if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SUPPORTS_IN_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsIn());
        hash = (37 * hash) + SUPPORTS_UNDER_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsUnder());
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          parseFrom(com.google.protobuf.ByteString data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

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

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

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
              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;
      }
      /**
       *
       *
       * <pre>
       * A `Constraint` that allows or disallows a list of string values, which
       * are configured by an organization's policy administrator with a `Policy`.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                      .class,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                      .Builder.class);
        }

        // Construct using
        // com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.newBuilder()
        private Builder() {}

        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
        }

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          supportsIn_ = false;
          supportsUnder_ = false;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
            getDefaultInstanceForType() {
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
            build() {
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
            buildPartial() {
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint result =
              new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint(
                  this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.supportsIn_ = supportsIn_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.supportsUnder_ = supportsUnder_;
          }
        }

        @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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint) {
            return mergeFrom(
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                    other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint other) {
          if (other
              == com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                  .getDefaultInstance()) return this;
          if (other.getSupportsIn() != false) {
            setSupportsIn(other.getSupportsIn());
          }
          if (other.getSupportsUnder() != false) {
            setSupportsUnder(other.getSupportsUnder());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          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 {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 8:
                  {
                    supportsIn_ = input.readBool();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                case 16:
                  {
                    supportsUnder_ = input.readBool();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private boolean supportsIn_;
        /**
         *
         *
         * <pre>
         * Indicates whether values grouped into categories can be used in
         * `Policy.allowed_values` and `Policy.denied_values`. For example,
         * `"in:Python"` would match any value in the 'Python' group.
         * </pre>
         *
         * <code>bool supports_in = 1;</code>
         *
         * @return The supportsIn.
         */
        @java.lang.Override
        public boolean getSupportsIn() {
          return supportsIn_;
        }
        /**
         *
         *
         * <pre>
         * Indicates whether values grouped into categories can be used in
         * `Policy.allowed_values` and `Policy.denied_values`. For example,
         * `"in:Python"` would match any value in the 'Python' group.
         * </pre>
         *
         * <code>bool supports_in = 1;</code>
         *
         * @param value The supportsIn to set.
         * @return This builder for chaining.
         */
        public Builder setSupportsIn(boolean value) {

          supportsIn_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Indicates whether values grouped into categories can be used in
         * `Policy.allowed_values` and `Policy.denied_values`. For example,
         * `"in:Python"` would match any value in the 'Python' group.
         * </pre>
         *
         * <code>bool supports_in = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSupportsIn() {
          bitField0_ = (bitField0_ & ~0x00000001);
          supportsIn_ = false;
          onChanged();
          return this;
        }

        private boolean supportsUnder_;
        /**
         *
         *
         * <pre>
         * Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         * can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         * example, `"under:folders/123"` would match any resource under the
         * 'folders/123' folder.
         * </pre>
         *
         * <code>bool supports_under = 2;</code>
         *
         * @return The supportsUnder.
         */
        @java.lang.Override
        public boolean getSupportsUnder() {
          return supportsUnder_;
        }
        /**
         *
         *
         * <pre>
         * Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         * can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         * example, `"under:folders/123"` would match any resource under the
         * 'folders/123' folder.
         * </pre>
         *
         * <code>bool supports_under = 2;</code>
         *
         * @param value The supportsUnder to set.
         * @return This builder for chaining.
         */
        public Builder setSupportsUnder(boolean value) {

          supportsUnder_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         * can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         * example, `"under:folders/123"` would match any resource under the
         * 'folders/123' folder.
         * </pre>
         *
         * <code>bool supports_under = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSupportsUnder() {
          bitField0_ = (bitField0_ & ~0x00000002);
          supportsUnder_ = false;
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
      private static final com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .ListConstraint
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint();
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser<ListConstraint> PARSER =
          new com.google.protobuf.AbstractParser<ListConstraint>() {
            @java.lang.Override
            public ListConstraint parsePartialFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
              Builder builder = newBuilder();
              try {
                builder.mergeFrom(input, extensionRegistry);
              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(builder.buildPartial());
              } catch (com.google.protobuf.UninitializedMessageException e) {
                throw e.asInvalidProtocolBufferException()
                    .setUnfinishedMessage(builder.buildPartial());
              } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e)
                    .setUnfinishedMessage(builder.buildPartial());
              }
              return builder.buildPartial();
            }
          };

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

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

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface BooleanConstraintOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
        com.google.protobuf.MessageOrBuilder {}
    /**
     *
     *
     * <pre>
     * A `Constraint` that is either enforced or not.
     * For example a constraint `constraints/compute.disableSerialPortAccess`.
     * If it is enforced on a VM instance, serial port connections will not be
     * opened to that instance.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint}
     */
    public static final class BooleanConstraint extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
        BooleanConstraintOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use BooleanConstraint.newBuilder() to construct.
      private BooleanConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private BooleanConstraint() {}

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

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                    .class,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                    .Builder.class);
      }

      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 {
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        size += getUnknownFields().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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)) {
          return super.equals(obj);
        }
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint other =
            (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
                obj;

        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          parseFrom(com.google.protobuf.ByteString data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

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

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

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              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;
      }
      /**
       *
       *
       * <pre>
       * A `Constraint` that is either enforced or not.
       * For example a constraint `constraints/compute.disableSerialPortAccess`.
       * If it is enforced on a VM instance, serial port connections will not be
       * opened to that instance.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraintOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                      .class,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                      .Builder.class);
        }

        // Construct using
        // com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.newBuilder()
        private Builder() {}

        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
        }

        @java.lang.Override
        public Builder clear() {
          super.clear();
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.asset.v1.AssetServiceProto
              .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
            getDefaultInstanceForType() {
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
            build() {
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
            buildPartial() {
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              result =
                  new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                      .BooleanConstraint(this);
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint) {
            return mergeFrom(
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
                    other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                other) {
          if (other
              == com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                  .getDefaultInstance()) return this;
          this.mergeUnknownFields(other.getUnknownFields());
          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 {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
      private static final com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                .BooleanConstraint();
      }

      public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraint
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser<BooleanConstraint> PARSER =
          new com.google.protobuf.AbstractParser<BooleanConstraint>() {
            @java.lang.Override
            public BooleanConstraint parsePartialFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
              Builder builder = newBuilder();
              try {
                builder.mergeFrom(input, extensionRegistry);
              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(builder.buildPartial());
              } catch (com.google.protobuf.UninitializedMessageException e) {
                throw e.asInvalidProtocolBufferException()
                    .setUnfinishedMessage(builder.buildPartial());
              } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e)
                    .setUnfinishedMessage(builder.buildPartial());
              }
              return builder.buildPartial();
            }
          };

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

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

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    private int constraintTypeCase_ = 0;
    private java.lang.Object constraintType_;

    public enum ConstraintTypeCase
        implements
            com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      LIST_CONSTRAINT(5),
      BOOLEAN_CONSTRAINT(6),
      CONSTRAINTTYPE_NOT_SET(0);
      private final int value;

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

      public static ConstraintTypeCase forNumber(int value) {
        switch (value) {
          case 5:
            return LIST_CONSTRAINT;
          case 6:
            return BOOLEAN_CONSTRAINT;
          case 0:
            return CONSTRAINTTYPE_NOT_SET;
          default:
            return null;
        }
      }

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

    public ConstraintTypeCase getConstraintTypeCase() {
      return ConstraintTypeCase.forNumber(constraintTypeCase_);
    }

    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * The unique name of the constraint. Format of the name should be
     * * `constraints/{constraint_name}`
     * For example, `constraints/compute.disableSerialPortAccess`.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique name of the constraint. Format of the name should be
     * * `constraints/{constraint_name}`
     * For example, `constraints/compute.disableSerialPortAccess`.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * The human readable name of the constraint.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The displayName.
     */
    @java.lang.Override
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      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();
        displayName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The human readable name of the constraint.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The bytes for displayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private volatile java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * Detailed description of what this `Constraint` controls as well as how
     * and where it is enforced.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      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();
        description_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Detailed description of what this `Constraint` controls as well as how
     * and where it is enforced.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CONSTRAINT_DEFAULT_FIELD_NUMBER = 4;
    private int constraintDefault_ = 0;
    /**
     *
     *
     * <pre>
     * The evaluation behavior of this constraint in the absence of 'Policy'.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
     * </code>
     *
     * @return The enum numeric value on the wire for constraintDefault.
     */
    @java.lang.Override
    public int getConstraintDefaultValue() {
      return constraintDefault_;
    }
    /**
     *
     *
     * <pre>
     * The evaluation behavior of this constraint in the absence of 'Policy'.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
     * </code>
     *
     * @return The constraintDefault.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
        getConstraintDefault() {
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault result =
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
              .forNumber(constraintDefault_);
      return result == null
          ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
              .UNRECOGNIZED
          : result;
    }

    public static final int LIST_CONSTRAINT_FIELD_NUMBER = 5;
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     *
     * @return Whether the listConstraint field is set.
     */
    @java.lang.Override
    public boolean hasListConstraint() {
      return constraintTypeCase_ == 5;
    }
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     *
     * @return The listConstraint.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
        getListConstraint() {
      if (constraintTypeCase_ == 5) {
        return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
            constraintType_;
      }
      return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a ListConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder
        getListConstraintOrBuilder() {
      if (constraintTypeCase_ == 5) {
        return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
            constraintType_;
      }
      return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          .getDefaultInstance();
    }

    public static final int BOOLEAN_CONSTRAINT_FIELD_NUMBER = 6;
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     *
     * @return Whether the booleanConstraint field is set.
     */
    @java.lang.Override
    public boolean hasBooleanConstraint() {
      return constraintTypeCase_ == 6;
    }
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     *
     * @return The booleanConstraint.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
        getBooleanConstraint() {
      if (constraintTypeCase_ == 6) {
        return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
            constraintType_;
      }
      return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Defines this constraint as being a BooleanConstraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
            .BooleanConstraintOrBuilder
        getBooleanConstraintOrBuilder() {
      if (constraintTypeCase_ == 6) {
        return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
            constraintType_;
      }
      return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
          .getDefaultInstance();
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
      }
      if (constraintDefault_
          != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
              .CONSTRAINT_DEFAULT_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(4, constraintDefault_);
      }
      if (constraintTypeCase_ == 5) {
        output.writeMessage(
            5,
            (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                constraintType_);
      }
      if (constraintTypeCase_ == 6) {
        output.writeMessage(
            6,
            (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
                constraintType_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
      }
      if (constraintDefault_
          != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
              .CONSTRAINT_DEFAULT_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, constraintDefault_);
      }
      if (constraintTypeCase_ == 5) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                5,
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                    constraintType_);
      }
      if (constraintTypeCase_ == 6) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                6,
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint)
                    constraintType_);
      }
      size += getUnknownFields().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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint other =
          (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint) obj;

      if (!getName().equals(other.getName())) return false;
      if (!getDisplayName().equals(other.getDisplayName())) return false;
      if (!getDescription().equals(other.getDescription())) return false;
      if (constraintDefault_ != other.constraintDefault_) return false;
      if (!getConstraintTypeCase().equals(other.getConstraintTypeCase())) return false;
      switch (constraintTypeCase_) {
        case 5:
          if (!getListConstraint().equals(other.getListConstraint())) return false;
          break;
        case 6:
          if (!getBooleanConstraint().equals(other.getBooleanConstraint())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getDisplayName().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      hash = (37 * hash) + CONSTRAINT_DEFAULT_FIELD_NUMBER;
      hash = (53 * hash) + constraintDefault_;
      switch (constraintTypeCase_) {
        case 5:
          hash = (37 * hash) + LIST_CONSTRAINT_FIELD_NUMBER;
          hash = (53 * hash) + getListConstraint().hashCode();
          break;
        case 6:
          hash = (37 * hash) + BOOLEAN_CONSTRAINT_FIELD_NUMBER;
          hash = (53 * hash) + getBooleanConstraint().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint 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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint 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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

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

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

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint 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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint 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;
    }
    /**
     *
     *
     * <pre>
     * The definition of a constraint.
     * </pre>
     *
     * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.class,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder.class);
      }

      // Construct using
      // com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        displayName_ = "";
        description_ = "";
        constraintDefault_ = 0;
        if (listConstraintBuilder_ != null) {
          listConstraintBuilder_.clear();
        }
        if (booleanConstraintBuilder_ != null) {
          booleanConstraintBuilder_.clear();
        }
        constraintTypeCase_ = 0;
        constraintType_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_Constraint_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
          getDefaultInstanceForType() {
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint build() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint buildPartial() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint result =
            new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        buildPartialOneofs(result);
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.displayName_ = displayName_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.description_ = description_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.constraintDefault_ = constraintDefault_;
        }
      }

      private void buildPartialOneofs(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint result) {
        result.constraintTypeCase_ = constraintTypeCase_;
        result.constraintType_ = this.constraintType_;
        if (constraintTypeCase_ == 5 && listConstraintBuilder_ != null) {
          result.constraintType_ = listConstraintBuilder_.build();
        }
        if (constraintTypeCase_ == 6 && booleanConstraintBuilder_ != null) {
          result.constraintType_ = booleanConstraintBuilder_.build();
        }
      }

      @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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                .getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getDisplayName().isEmpty()) {
          displayName_ = other.displayName_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        if (other.constraintDefault_ != 0) {
          setConstraintDefaultValue(other.getConstraintDefaultValue());
        }
        switch (other.getConstraintTypeCase()) {
          case LIST_CONSTRAINT:
            {
              mergeListConstraint(other.getListConstraint());
              break;
            }
          case BOOLEAN_CONSTRAINT:
            {
              mergeBooleanConstraint(other.getBooleanConstraint());
              break;
            }
          case CONSTRAINTTYPE_NOT_SET:
            {
              break;
            }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  name_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  displayName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 26:
                {
                  description_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 26
              case 32:
                {
                  constraintDefault_ = input.readEnum();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 32
              case 42:
                {
                  input.readMessage(
                      getListConstraintFieldBuilder().getBuilder(), extensionRegistry);
                  constraintTypeCase_ = 5;
                  break;
                } // case 42
              case 50:
                {
                  input.readMessage(
                      getBooleanConstraintFieldBuilder().getBuilder(), extensionRegistry);
                  constraintTypeCase_ = 6;
                  break;
                } // case 50
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int constraintTypeCase_ = 0;
      private java.lang.Object constraintType_;

      public ConstraintTypeCase getConstraintTypeCase() {
        return ConstraintTypeCase.forNumber(constraintTypeCase_);
      }

      public Builder clearConstraintType() {
        constraintTypeCase_ = 0;
        constraintType_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * The unique name of the constraint. Format of the name should be
       * * `constraints/{constraint_name}`
       * For example, `constraints/compute.disableSerialPortAccess`.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique name of the constraint. Format of the name should be
       * * `constraints/{constraint_name}`
       * For example, `constraints/compute.disableSerialPortAccess`.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique name of the constraint. Format of the name should be
       * * `constraints/{constraint_name}`
       * For example, `constraints/compute.disableSerialPortAccess`.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique name of the constraint. Format of the name should be
       * * `constraints/{constraint_name}`
       * For example, `constraints/compute.disableSerialPortAccess`.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique name of the constraint. Format of the name should be
       * * `constraints/{constraint_name}`
       * For example, `constraints/compute.disableSerialPortAccess`.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object displayName_ = "";
      /**
       *
       *
       * <pre>
       * The human readable name of the constraint.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return The displayName.
       */
      public java.lang.String getDisplayName() {
        java.lang.Object ref = displayName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          displayName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The human readable name of the constraint.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return The bytes for displayName.
       */
      public com.google.protobuf.ByteString getDisplayNameBytes() {
        java.lang.Object ref = displayName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          displayName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The human readable name of the constraint.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @param value The displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        displayName_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The human readable name of the constraint.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDisplayName() {
        displayName_ = getDefaultInstance().getDisplayName();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The human readable name of the constraint.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @param value The bytes for displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        displayName_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * Detailed description of what this `Constraint` controls as well as how
       * and where it is enforced.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Detailed description of what this `Constraint` controls as well as how
       * and where it is enforced.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Detailed description of what this `Constraint` controls as well as how
       * and where it is enforced.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        description_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Detailed description of what this `Constraint` controls as well as how
       * and where it is enforced.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        description_ = getDefaultInstance().getDescription();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Detailed description of what this `Constraint` controls as well as how
       * and where it is enforced.
       * </pre>
       *
       * <code>string description = 3;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        description_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      private int constraintDefault_ = 0;
      /**
       *
       *
       * <pre>
       * The evaluation behavior of this constraint in the absence of 'Policy'.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
       * </code>
       *
       * @return The enum numeric value on the wire for constraintDefault.
       */
      @java.lang.Override
      public int getConstraintDefaultValue() {
        return constraintDefault_;
      }
      /**
       *
       *
       * <pre>
       * The evaluation behavior of this constraint in the absence of 'Policy'.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
       * </code>
       *
       * @param value The enum numeric value on the wire for constraintDefault to set.
       * @return This builder for chaining.
       */
      public Builder setConstraintDefaultValue(int value) {
        constraintDefault_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The evaluation behavior of this constraint in the absence of 'Policy'.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
       * </code>
       *
       * @return The constraintDefault.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
          getConstraintDefault() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault result =
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
                .forNumber(constraintDefault_);
        return result == null
            ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
                .UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * The evaluation behavior of this constraint in the absence of 'Policy'.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
       * </code>
       *
       * @param value The constraintDefault to set.
       * @return This builder for chaining.
       */
      public Builder setConstraintDefault(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault
              value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000008;
        constraintDefault_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The evaluation behavior of this constraint in the absence of 'Policy'.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearConstraintDefault() {
        bitField0_ = (bitField0_ & ~0x00000008);
        constraintDefault_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                  .Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                  .ListConstraintOrBuilder>
          listConstraintBuilder_;
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       *
       * @return Whether the listConstraint field is set.
       */
      @java.lang.Override
      public boolean hasListConstraint() {
        return constraintTypeCase_ == 5;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       *
       * @return The listConstraint.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
          getListConstraint() {
        if (listConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 5) {
            return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                constraintType_;
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
              .getDefaultInstance();
        } else {
          if (constraintTypeCase_ == 5) {
            return listConstraintBuilder_.getMessage();
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      public Builder setListConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value) {
        if (listConstraintBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          constraintType_ = value;
          onChanged();
        } else {
          listConstraintBuilder_.setMessage(value);
        }
        constraintTypeCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      public Builder setListConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder
              builderForValue) {
        if (listConstraintBuilder_ == null) {
          constraintType_ = builderForValue.build();
          onChanged();
        } else {
          listConstraintBuilder_.setMessage(builderForValue.build());
        }
        constraintTypeCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      public Builder mergeListConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value) {
        if (listConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 5
              && constraintType_
                  != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                      .getDefaultInstance()) {
            constraintType_ =
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                    .newBuilder(
                        (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                                .ListConstraint)
                            constraintType_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            constraintType_ = value;
          }
          onChanged();
        } else {
          if (constraintTypeCase_ == 5) {
            listConstraintBuilder_.mergeFrom(value);
          } else {
            listConstraintBuilder_.setMessage(value);
          }
        }
        constraintTypeCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      public Builder clearListConstraint() {
        if (listConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 5) {
            constraintTypeCase_ = 0;
            constraintType_ = null;
            onChanged();
          }
        } else {
          if (constraintTypeCase_ == 5) {
            constraintTypeCase_ = 0;
            constraintType_ = null;
          }
          listConstraintBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder
          getListConstraintBuilder() {
        return getListConstraintFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .ListConstraintOrBuilder
          getListConstraintOrBuilder() {
        if ((constraintTypeCase_ == 5) && (listConstraintBuilder_ != null)) {
          return listConstraintBuilder_.getMessageOrBuilder();
        } else {
          if (constraintTypeCase_ == 5) {
            return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                constraintType_;
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a ListConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                  .Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                  .ListConstraintOrBuilder>
          getListConstraintFieldBuilder() {
        if (listConstraintBuilder_ == null) {
          if (!(constraintTypeCase_ == 5)) {
            constraintType_ =
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                    .getDefaultInstance();
          }
          listConstraintBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
                      .Builder,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                      .ListConstraintOrBuilder>(
                  (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint)
                      constraintType_,
                  getParentForChildren(),
                  isClean());
          constraintType_ = null;
        }
        constraintTypeCase_ = 5;
        onChanged();
        return listConstraintBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                  .Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                  .BooleanConstraintOrBuilder>
          booleanConstraintBuilder_;
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       *
       * @return Whether the booleanConstraint field is set.
       */
      @java.lang.Override
      public boolean hasBooleanConstraint() {
        return constraintTypeCase_ == 6;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       *
       * @return The booleanConstraint.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
          getBooleanConstraint() {
        if (booleanConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 6) {
            return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                    .BooleanConstraint)
                constraintType_;
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              .getDefaultInstance();
        } else {
          if (constraintTypeCase_ == 6) {
            return booleanConstraintBuilder_.getMessage();
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      public Builder setBooleanConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              value) {
        if (booleanConstraintBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          constraintType_ = value;
          onChanged();
        } else {
          booleanConstraintBuilder_.setMessage(value);
        }
        constraintTypeCase_ = 6;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      public Builder setBooleanConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder
              builderForValue) {
        if (booleanConstraintBuilder_ == null) {
          constraintType_ = builderForValue.build();
          onChanged();
        } else {
          booleanConstraintBuilder_.setMessage(builderForValue.build());
        }
        constraintTypeCase_ = 6;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      public Builder mergeBooleanConstraint(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              value) {
        if (booleanConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 6
              && constraintType_
                  != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                      .BooleanConstraint.getDefaultInstance()) {
            constraintType_ =
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                    .newBuilder(
                        (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                                .BooleanConstraint)
                            constraintType_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            constraintType_ = value;
          }
          onChanged();
        } else {
          if (constraintTypeCase_ == 6) {
            booleanConstraintBuilder_.mergeFrom(value);
          } else {
            booleanConstraintBuilder_.setMessage(value);
          }
        }
        constraintTypeCase_ = 6;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      public Builder clearBooleanConstraint() {
        if (booleanConstraintBuilder_ == null) {
          if (constraintTypeCase_ == 6) {
            constraintTypeCase_ = 0;
            constraintType_ = null;
            onChanged();
          }
        } else {
          if (constraintTypeCase_ == 6) {
            constraintTypeCase_ = 0;
            constraintType_ = null;
          }
          booleanConstraintBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              .Builder
          getBooleanConstraintBuilder() {
        return getBooleanConstraintFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
              .BooleanConstraintOrBuilder
          getBooleanConstraintOrBuilder() {
        if ((constraintTypeCase_ == 6) && (booleanConstraintBuilder_ != null)) {
          return booleanConstraintBuilder_.getMessageOrBuilder();
        } else {
          if (constraintTypeCase_ == 6) {
            return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                    .BooleanConstraint)
                constraintType_;
          }
          return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Defines this constraint as being a BooleanConstraint.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                  .Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                  .BooleanConstraintOrBuilder>
          getBooleanConstraintFieldBuilder() {
        if (booleanConstraintBuilder_ == null) {
          if (!(constraintTypeCase_ == 6)) {
            constraintType_ =
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                    .getDefaultInstance();
          }
          booleanConstraintBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                      .BooleanConstraint,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
                      .Builder,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                      .BooleanConstraintOrBuilder>(
                  (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                          .BooleanConstraint)
                      constraintType_,
                  getParentForChildren(),
                  isClean());
          constraintType_ = null;
        }
        constraintTypeCase_ = 6;
        onChanged();
        return booleanConstraintBuilder_;
      }

      @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.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
    private static final com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint();
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Constraint> PARSER =
        new com.google.protobuf.AbstractParser<Constraint>() {
          @java.lang.Override
          public Constraint parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface CustomConstraintOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Name of the constraint. This is unique within the organization. Format of
     * the name should be
     * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
     * Example :
     * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * Name of the constraint. This is unique within the organization. Format of
     * the name should be
     * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
     * Example :
     * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @return A list containing the resourceTypes.
     */
    java.util.List<java.lang.String> getResourceTypesList();
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @return The count of resourceTypes.
     */
    int getResourceTypesCount();
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @param index The index of the element to return.
     * @return The resourceTypes at the given index.
     */
    java.lang.String getResourceTypes(int index);
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the resourceTypes at the given index.
     */
    com.google.protobuf.ByteString getResourceTypesBytes(int index);

    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return A list containing the methodTypes.
     */
    java.util.List<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>
        getMethodTypesList();
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return The count of methodTypes.
     */
    int getMethodTypesCount();
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @param index The index of the element to return.
     * @return The methodTypes at the given index.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
        getMethodTypes(int index);
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return A list containing the enum numeric values on the wire for methodTypes.
     */
    java.util.List<java.lang.Integer> getMethodTypesValueList();
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of methodTypes at the given index.
     */
    int getMethodTypesValue(int index);

    /**
     *
     *
     * <pre>
     * Organization Policy condition/expression. For example:
     * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
     * `resource.management.auto_upgrade == true`
     * </pre>
     *
     * <code>string condition = 4;</code>
     *
     * @return The condition.
     */
    java.lang.String getCondition();
    /**
     *
     *
     * <pre>
     * Organization Policy condition/expression. For example:
     * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
     * `resource.management.auto_upgrade == true`
     * </pre>
     *
     * <code>string condition = 4;</code>
     *
     * @return The bytes for condition.
     */
    com.google.protobuf.ByteString getConditionBytes();

    /**
     *
     *
     * <pre>
     * Allow or deny type.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
     * </code>
     *
     * @return The enum numeric value on the wire for actionType.
     */
    int getActionTypeValue();
    /**
     *
     *
     * <pre>
     * Allow or deny type.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
     * </code>
     *
     * @return The actionType.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
        getActionType();

    /**
     *
     *
     * <pre>
     * One line display name for the UI.
     * </pre>
     *
     * <code>string display_name = 6;</code>
     *
     * @return The displayName.
     */
    java.lang.String getDisplayName();
    /**
     *
     *
     * <pre>
     * One line display name for the UI.
     * </pre>
     *
     * <code>string display_name = 6;</code>
     *
     * @return The bytes for displayName.
     */
    com.google.protobuf.ByteString getDisplayNameBytes();

    /**
     *
     *
     * <pre>
     * Detailed information about this custom policy constraint.
     * </pre>
     *
     * <code>string description = 7;</code>
     *
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     *
     *
     * <pre>
     * Detailed information about this custom policy constraint.
     * </pre>
     *
     * <code>string description = 7;</code>
     *
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString getDescriptionBytes();
  }
  /**
   *
   *
   * <pre>
   * The definition of a custom constraint.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint}
   */
  public static final class CustomConstraint extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
      CustomConstraintOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CustomConstraint.newBuilder() to construct.
    private CustomConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CustomConstraint() {
      name_ = "";
      resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      methodTypes_ = java.util.Collections.emptyList();
      condition_ = "";
      actionType_ = 0;
      displayName_ = "";
      description_ = "";
    }

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

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_CustomConstraint_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_CustomConstraint_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.class,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * The operation in which this constraint will be applied. For example:
     * If the constraint applies only when create VMs, the method_types will be
     * "CREATE" only. If the constraint applied when create or delete VMs, the
     * method_types will be "CREATE" and "DELETE".
     * </pre>
     *
     * Protobuf enum {@code
     * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType}
     */
    public enum MethodType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Unspecified. Will results in user error.
       * </pre>
       *
       * <code>METHOD_TYPE_UNSPECIFIED = 0;</code>
       */
      METHOD_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Constraint applied when creating the resource.
       * </pre>
       *
       * <code>CREATE = 1;</code>
       */
      CREATE(1),
      /**
       *
       *
       * <pre>
       * Constraint applied when updating the resource.
       * </pre>
       *
       * <code>UPDATE = 2;</code>
       */
      UPDATE(2),
      /**
       *
       *
       * <pre>
       * Constraint applied when deleting the resource.
       * </pre>
       *
       * <code>DELETE = 3;</code>
       */
      DELETE(3),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Unspecified. Will results in user error.
       * </pre>
       *
       * <code>METHOD_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int METHOD_TYPE_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Constraint applied when creating the resource.
       * </pre>
       *
       * <code>CREATE = 1;</code>
       */
      public static final int CREATE_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Constraint applied when updating the resource.
       * </pre>
       *
       * <code>UPDATE = 2;</code>
       */
      public static final int UPDATE_VALUE = 2;
      /**
       *
       *
       * <pre>
       * Constraint applied when deleting the resource.
       * </pre>
       *
       * <code>DELETE = 3;</code>
       */
      public static final int DELETE_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 MethodType 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 MethodType forNumber(int value) {
        switch (value) {
          case 0:
            return METHOD_TYPE_UNSPECIFIED;
          case 1:
            return CREATE;
          case 2:
            return UPDATE;
          case 3:
            return DELETE;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<MethodType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<MethodType>() {
            public MethodType findValueByNumber(int number) {
              return MethodType.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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

      public static MethodType 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 MethodType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType)
    }

    /**
     *
     *
     * <pre>
     * Allow or deny type.
     * </pre>
     *
     * Protobuf enum {@code
     * google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType}
     */
    public enum ActionType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Unspecified. Will results in user error.
       * </pre>
       *
       * <code>ACTION_TYPE_UNSPECIFIED = 0;</code>
       */
      ACTION_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Allowed action type.
       * </pre>
       *
       * <code>ALLOW = 1;</code>
       */
      ALLOW(1),
      /**
       *
       *
       * <pre>
       * Deny action type.
       * </pre>
       *
       * <code>DENY = 2;</code>
       */
      DENY(2),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Unspecified. Will results in user error.
       * </pre>
       *
       * <code>ACTION_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Allowed action type.
       * </pre>
       *
       * <code>ALLOW = 1;</code>
       */
      public static final int ALLOW_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Deny action type.
       * </pre>
       *
       * <code>DENY = 2;</code>
       */
      public static final int DENY_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 ActionType 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 ActionType forNumber(int value) {
        switch (value) {
          case 0:
            return ACTION_TYPE_UNSPECIFIED;
          case 1:
            return ALLOW;
          case 2:
            return DENY;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<ActionType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ActionType>() {
            public ActionType findValueByNumber(int number) {
              return ActionType.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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDescriptor()
            .getEnumTypes()
            .get(1);
      }

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

      public static ActionType 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 ActionType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType)
    }

    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Name of the constraint. This is unique within the organization. Format of
     * the name should be
     * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
     * Example :
     * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Name of the constraint. This is unique within the organization. Format of
     * the name should be
     * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
     * Example :
     * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int RESOURCE_TYPES_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringList resourceTypes_;
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @return A list containing the resourceTypes.
     */
    public com.google.protobuf.ProtocolStringList getResourceTypesList() {
      return resourceTypes_;
    }
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @return The count of resourceTypes.
     */
    public int getResourceTypesCount() {
      return resourceTypes_.size();
    }
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @param index The index of the element to return.
     * @return The resourceTypes at the given index.
     */
    public java.lang.String getResourceTypes(int index) {
      return resourceTypes_.get(index);
    }
    /**
     *
     *
     * <pre>
     * The Resource Instance type on which this policy applies to. Format will
     * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
     *  * `compute.googleapis.com/Instance`.
     * </pre>
     *
     * <code>repeated string resource_types = 2;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the resourceTypes at the given index.
     */
    public com.google.protobuf.ByteString getResourceTypesBytes(int index) {
      return resourceTypes_.getByteString(index);
    }

    public static final int METHOD_TYPES_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private java.util.List<java.lang.Integer> methodTypes_;

    private static final com.google.protobuf.Internal.ListAdapter.Converter<
            java.lang.Integer,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>
        methodTypes_converter_ =
            new com.google.protobuf.Internal.ListAdapter.Converter<
                java.lang.Integer,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                    .MethodType>() {
              public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                      .MethodType
                  convert(java.lang.Integer from) {
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
                    result =
                        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                            .MethodType.forNumber(from);
                return result == null
                    ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                        .MethodType.UNRECOGNIZED
                    : result;
              }
            };
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return A list containing the methodTypes.
     */
    @java.lang.Override
    public java.util.List<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>
        getMethodTypesList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer,
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>(
          methodTypes_, methodTypes_converter_);
    }
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return The count of methodTypes.
     */
    @java.lang.Override
    public int getMethodTypesCount() {
      return methodTypes_.size();
    }
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @param index The index of the element to return.
     * @return The methodTypes at the given index.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
        getMethodTypes(int index) {
      return methodTypes_converter_.convert(methodTypes_.get(index));
    }
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @return A list containing the enum numeric values on the wire for methodTypes.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer> getMethodTypesValueList() {
      return methodTypes_;
    }
    /**
     *
     *
     * <pre>
     * All the operations being applied for this constraint.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
     * </code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of methodTypes at the given index.
     */
    @java.lang.Override
    public int getMethodTypesValue(int index) {
      return methodTypes_.get(index);
    }

    private int methodTypesMemoizedSerializedSize;

    public static final int CONDITION_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private volatile java.lang.Object condition_ = "";
    /**
     *
     *
     * <pre>
     * Organization Policy condition/expression. For example:
     * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
     * `resource.management.auto_upgrade == true`
     * </pre>
     *
     * <code>string condition = 4;</code>
     *
     * @return The condition.
     */
    @java.lang.Override
    public java.lang.String getCondition() {
      java.lang.Object ref = condition_;
      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();
        condition_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Organization Policy condition/expression. For example:
     * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
     * `resource.management.auto_upgrade == true`
     * </pre>
     *
     * <code>string condition = 4;</code>
     *
     * @return The bytes for condition.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getConditionBytes() {
      java.lang.Object ref = condition_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        condition_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ACTION_TYPE_FIELD_NUMBER = 5;
    private int actionType_ = 0;
    /**
     *
     *
     * <pre>
     * Allow or deny type.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
     * </code>
     *
     * @return The enum numeric value on the wire for actionType.
     */
    @java.lang.Override
    public int getActionTypeValue() {
      return actionType_;
    }
    /**
     *
     *
     * <pre>
     * Allow or deny type.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
     * </code>
     *
     * @return The actionType.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
        getActionType() {
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType result =
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
              .forNumber(actionType_);
      return result == null
          ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
              .UNRECOGNIZED
          : result;
    }

    public static final int DISPLAY_NAME_FIELD_NUMBER = 6;

    @SuppressWarnings("serial")
    private volatile java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * One line display name for the UI.
     * </pre>
     *
     * <code>string display_name = 6;</code>
     *
     * @return The displayName.
     */
    @java.lang.Override
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      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();
        displayName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * One line display name for the UI.
     * </pre>
     *
     * <code>string display_name = 6;</code>
     *
     * @return The bytes for displayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 7;

    @SuppressWarnings("serial")
    private volatile java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * Detailed information about this custom policy constraint.
     * </pre>
     *
     * <code>string description = 7;</code>
     *
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      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();
        description_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Detailed information about this custom policy constraint.
     * </pre>
     *
     * <code>string description = 7;</code>
     *
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 {
      getSerializedSize();
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      for (int i = 0; i < resourceTypes_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceTypes_.getRaw(i));
      }
      if (getMethodTypesList().size() > 0) {
        output.writeUInt32NoTag(26);
        output.writeUInt32NoTag(methodTypesMemoizedSerializedSize);
      }
      for (int i = 0; i < methodTypes_.size(); i++) {
        output.writeEnumNoTag(methodTypes_.get(i));
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, condition_);
      }
      if (actionType_
          != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
              .ACTION_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(5, actionType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < resourceTypes_.size(); i++) {
          dataSize += computeStringSizeNoTag(resourceTypes_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getResourceTypesList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < methodTypes_.size(); i++) {
          dataSize +=
              com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(methodTypes_.get(i));
        }
        size += dataSize;
        if (!getMethodTypesList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
        }
        methodTypesMemoizedSerializedSize = dataSize;
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, condition_);
      }
      if (actionType_
          != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
              .ACTION_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_);
      }
      size += getUnknownFields().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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint other =
          (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint) obj;

      if (!getName().equals(other.getName())) return false;
      if (!getResourceTypesList().equals(other.getResourceTypesList())) return false;
      if (!methodTypes_.equals(other.methodTypes_)) return false;
      if (!getCondition().equals(other.getCondition())) return false;
      if (actionType_ != other.actionType_) return false;
      if (!getDisplayName().equals(other.getDisplayName())) return false;
      if (!getDescription().equals(other.getDescription())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      if (getResourceTypesCount() > 0) {
        hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER;
        hash = (53 * hash) + getResourceTypesList().hashCode();
      }
      if (getMethodTypesCount() > 0) {
        hash = (37 * hash) + METHOD_TYPES_FIELD_NUMBER;
        hash = (53 * hash) + methodTypes_.hashCode();
      }
      hash = (37 * hash) + CONDITION_FIELD_NUMBER;
      hash = (53 * hash) + getCondition().hashCode();
      hash = (37 * hash) + ACTION_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + actionType_;
      hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getDisplayName().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

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

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

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint 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;
    }
    /**
     *
     *
     * <pre>
     * The definition of a custom constraint.
     * </pre>
     *
     * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_CustomConstraint_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_CustomConstraint_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.class,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
                    .class);
      }

      // Construct using
      // com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        methodTypes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        condition_ = "";
        actionType_ = 0;
        displayName_ = "";
        description_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_CustomConstraint_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
          getDefaultInstanceForType() {
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint build() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint buildPartial() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint result =
            new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint result) {
        if (((bitField0_ & 0x00000002) != 0)) {
          resourceTypes_ = resourceTypes_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.resourceTypes_ = resourceTypes_;
        if (((bitField0_ & 0x00000004) != 0)) {
          methodTypes_ = java.util.Collections.unmodifiableList(methodTypes_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.methodTypes_ = methodTypes_;
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.condition_ = condition_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.actionType_ = actionType_;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.displayName_ = displayName_;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          result.description_ = description_;
        }
      }

      @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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                .getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.resourceTypes_.isEmpty()) {
          if (resourceTypes_.isEmpty()) {
            resourceTypes_ = other.resourceTypes_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureResourceTypesIsMutable();
            resourceTypes_.addAll(other.resourceTypes_);
          }
          onChanged();
        }
        if (!other.methodTypes_.isEmpty()) {
          if (methodTypes_.isEmpty()) {
            methodTypes_ = other.methodTypes_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureMethodTypesIsMutable();
            methodTypes_.addAll(other.methodTypes_);
          }
          onChanged();
        }
        if (!other.getCondition().isEmpty()) {
          condition_ = other.condition_;
          bitField0_ |= 0x00000008;
          onChanged();
        }
        if (other.actionType_ != 0) {
          setActionTypeValue(other.getActionTypeValue());
        }
        if (!other.getDisplayName().isEmpty()) {
          displayName_ = other.displayName_;
          bitField0_ |= 0x00000020;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          bitField0_ |= 0x00000040;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  name_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureResourceTypesIsMutable();
                  resourceTypes_.add(s);
                  break;
                } // case 18
              case 24:
                {
                  int tmpRaw = input.readEnum();
                  ensureMethodTypesIsMutable();
                  methodTypes_.add(tmpRaw);
                  break;
                } // case 24
              case 26:
                {
                  int length = input.readRawVarint32();
                  int oldLimit = input.pushLimit(length);
                  while (input.getBytesUntilLimit() > 0) {
                    int tmpRaw = input.readEnum();
                    ensureMethodTypesIsMutable();
                    methodTypes_.add(tmpRaw);
                  }
                  input.popLimit(oldLimit);
                  break;
                } // case 26
              case 34:
                {
                  condition_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
              case 40:
                {
                  actionType_ = input.readEnum();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 40
              case 50:
                {
                  displayName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 50
              case 58:
                {
                  description_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000040;
                  break;
                } // case 58
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * Name of the constraint. This is unique within the organization. Format of
       * the name should be
       * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
       * Example :
       * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Name of the constraint. This is unique within the organization. Format of
       * the name should be
       * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
       * Example :
       * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Name of the constraint. This is unique within the organization. Format of
       * the name should be
       * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
       * Example :
       * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Name of the constraint. This is unique within the organization. Format of
       * the name should be
       * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
       * Example :
       * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Name of the constraint. This is unique within the organization. Format of
       * the name should be
       * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
       * Example :
       * "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList resourceTypes_ =
          com.google.protobuf.LazyStringArrayList.EMPTY;

      private void ensureResourceTypesIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_);
          bitField0_ |= 0x00000002;
        }
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @return A list containing the resourceTypes.
       */
      public com.google.protobuf.ProtocolStringList getResourceTypesList() {
        return resourceTypes_.getUnmodifiableView();
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @return The count of resourceTypes.
       */
      public int getResourceTypesCount() {
        return resourceTypes_.size();
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param index The index of the element to return.
       * @return The resourceTypes at the given index.
       */
      public java.lang.String getResourceTypes(int index) {
        return resourceTypes_.get(index);
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the resourceTypes at the given index.
       */
      public com.google.protobuf.ByteString getResourceTypesBytes(int index) {
        return resourceTypes_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param index The index to set the value at.
       * @param value The resourceTypes to set.
       * @return This builder for chaining.
       */
      public Builder setResourceTypes(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResourceTypesIsMutable();
        resourceTypes_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param value The resourceTypes to add.
       * @return This builder for chaining.
       */
      public Builder addResourceTypes(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResourceTypesIsMutable();
        resourceTypes_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param values The resourceTypes to add.
       * @return This builder for chaining.
       */
      public Builder addAllResourceTypes(java.lang.Iterable<java.lang.String> values) {
        ensureResourceTypesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearResourceTypes() {
        resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Resource Instance type on which this policy applies to. Format will
       * be of the form : "&lt;canonical service name&gt;/&lt;type&gt;" Example:
       *  * `compute.googleapis.com/Instance`.
       * </pre>
       *
       * <code>repeated string resource_types = 2;</code>
       *
       * @param value The bytes of the resourceTypes to add.
       * @return This builder for chaining.
       */
      public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureResourceTypesIsMutable();
        resourceTypes_.add(value);
        onChanged();
        return this;
      }

      private java.util.List<java.lang.Integer> methodTypes_ = java.util.Collections.emptyList();

      private void ensureMethodTypesIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          methodTypes_ = new java.util.ArrayList<java.lang.Integer>(methodTypes_);
          bitField0_ |= 0x00000004;
        }
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @return A list containing the methodTypes.
       */
      public java.util.List<
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>
          getMethodTypesList() {
        return new com.google.protobuf.Internal.ListAdapter<
            java.lang.Integer,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>(
            methodTypes_, methodTypes_converter_);
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @return The count of methodTypes.
       */
      public int getMethodTypesCount() {
        return methodTypes_.size();
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param index The index of the element to return.
       * @return The methodTypes at the given index.
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
          getMethodTypes(int index) {
        return methodTypes_converter_.convert(methodTypes_.get(index));
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param index The index to set the value at.
       * @param value The methodTypes to set.
       * @return This builder for chaining.
       */
      public Builder setMethodTypes(
          int index,
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMethodTypesIsMutable();
        methodTypes_.set(index, value.getNumber());
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param value The methodTypes to add.
       * @return This builder for chaining.
       */
      public Builder addMethodTypes(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMethodTypesIsMutable();
        methodTypes_.add(value.getNumber());
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param values The methodTypes to add.
       * @return This builder for chaining.
       */
      public Builder addAllMethodTypes(
          java.lang.Iterable<
                  ? extends
                      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                          .MethodType>
              values) {
        ensureMethodTypesIsMutable();
        for (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
            value : values) {
          methodTypes_.add(value.getNumber());
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearMethodTypes() {
        methodTypes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @return A list containing the enum numeric values on the wire for methodTypes.
       */
      public java.util.List<java.lang.Integer> getMethodTypesValueList() {
        return java.util.Collections.unmodifiableList(methodTypes_);
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param index The index of the value to return.
       * @return The enum numeric value on the wire of methodTypes at the given index.
       */
      public int getMethodTypesValue(int index) {
        return methodTypes_.get(index);
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param index The index to set the value at.
       * @param value The enum numeric value on the wire for methodTypes to set.
       * @return This builder for chaining.
       */
      public Builder setMethodTypesValue(int index, int value) {
        ensureMethodTypesIsMutable();
        methodTypes_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param value The enum numeric value on the wire for methodTypes to add.
       * @return This builder for chaining.
       */
      public Builder addMethodTypesValue(int value) {
        ensureMethodTypesIsMutable();
        methodTypes_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * All the operations being applied for this constraint.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
       * </code>
       *
       * @param values The enum numeric values on the wire for methodTypes to add.
       * @return This builder for chaining.
       */
      public Builder addAllMethodTypesValue(java.lang.Iterable<java.lang.Integer> values) {
        ensureMethodTypesIsMutable();
        for (int value : values) {
          methodTypes_.add(value);
        }
        onChanged();
        return this;
      }

      private java.lang.Object condition_ = "";
      /**
       *
       *
       * <pre>
       * Organization Policy condition/expression. For example:
       * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
       * `resource.management.auto_upgrade == true`
       * </pre>
       *
       * <code>string condition = 4;</code>
       *
       * @return The condition.
       */
      public java.lang.String getCondition() {
        java.lang.Object ref = condition_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          condition_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Organization Policy condition/expression. For example:
       * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
       * `resource.management.auto_upgrade == true`
       * </pre>
       *
       * <code>string condition = 4;</code>
       *
       * @return The bytes for condition.
       */
      public com.google.protobuf.ByteString getConditionBytes() {
        java.lang.Object ref = condition_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          condition_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Organization Policy condition/expression. For example:
       * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
       * `resource.management.auto_upgrade == true`
       * </pre>
       *
       * <code>string condition = 4;</code>
       *
       * @param value The condition to set.
       * @return This builder for chaining.
       */
      public Builder setCondition(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        condition_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Organization Policy condition/expression. For example:
       * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
       * `resource.management.auto_upgrade == true`
       * </pre>
       *
       * <code>string condition = 4;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearCondition() {
        condition_ = getDefaultInstance().getCondition();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Organization Policy condition/expression. For example:
       * `resource.instanceName.matches("[production|test]_.*_(&#92;d)+")'` or,
       * `resource.management.auto_upgrade == true`
       * </pre>
       *
       * <code>string condition = 4;</code>
       *
       * @param value The bytes for condition to set.
       * @return This builder for chaining.
       */
      public Builder setConditionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        condition_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }

      private int actionType_ = 0;
      /**
       *
       *
       * <pre>
       * Allow or deny type.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
       * </code>
       *
       * @return The enum numeric value on the wire for actionType.
       */
      @java.lang.Override
      public int getActionTypeValue() {
        return actionType_;
      }
      /**
       *
       *
       * <pre>
       * Allow or deny type.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
       * </code>
       *
       * @param value The enum numeric value on the wire for actionType to set.
       * @return This builder for chaining.
       */
      public Builder setActionTypeValue(int value) {
        actionType_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Allow or deny type.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
       * </code>
       *
       * @return The actionType.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
          getActionType() {
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType result =
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
                .forNumber(actionType_);
        return result == null
            ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
                .UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Allow or deny type.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
       * </code>
       *
       * @param value The actionType to set.
       * @return This builder for chaining.
       */
      public Builder setActionType(
          com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000010;
        actionType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Allow or deny type.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearActionType() {
        bitField0_ = (bitField0_ & ~0x00000010);
        actionType_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object displayName_ = "";
      /**
       *
       *
       * <pre>
       * One line display name for the UI.
       * </pre>
       *
       * <code>string display_name = 6;</code>
       *
       * @return The displayName.
       */
      public java.lang.String getDisplayName() {
        java.lang.Object ref = displayName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          displayName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * One line display name for the UI.
       * </pre>
       *
       * <code>string display_name = 6;</code>
       *
       * @return The bytes for displayName.
       */
      public com.google.protobuf.ByteString getDisplayNameBytes() {
        java.lang.Object ref = displayName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          displayName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * One line display name for the UI.
       * </pre>
       *
       * <code>string display_name = 6;</code>
       *
       * @param value The displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        displayName_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * One line display name for the UI.
       * </pre>
       *
       * <code>string display_name = 6;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDisplayName() {
        displayName_ = getDefaultInstance().getDisplayName();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * One line display name for the UI.
       * </pre>
       *
       * <code>string display_name = 6;</code>
       *
       * @param value The bytes for displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        displayName_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * Detailed information about this custom policy constraint.
       * </pre>
       *
       * <code>string description = 7;</code>
       *
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Detailed information about this custom policy constraint.
       * </pre>
       *
       * <code>string description = 7;</code>
       *
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Detailed information about this custom policy constraint.
       * </pre>
       *
       * <code>string description = 7;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        description_ = value;
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Detailed information about this custom policy constraint.
       * </pre>
       *
       * <code>string description = 7;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        description_ = getDefaultInstance().getDescription();
        bitField0_ = (bitField0_ & ~0x00000040);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Detailed information about this custom policy constraint.
       * </pre>
       *
       * <code>string description = 7;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        description_ = value;
        bitField0_ |= 0x00000040;
        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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
    private static final com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint();
    }

    public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<CustomConstraint> PARSER =
        new com.google.protobuf.AbstractParser<CustomConstraint>() {
          @java.lang.Override
          public CustomConstraint parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int constraintDefinitionCase_ = 0;
  private java.lang.Object constraintDefinition_;

  public enum ConstraintDefinitionCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    GOOGLE_DEFINED_CONSTRAINT(1),
    CUSTOM_CONSTRAINT(2),
    CONSTRAINTDEFINITION_NOT_SET(0);
    private final int value;

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

    public static ConstraintDefinitionCase forNumber(int value) {
      switch (value) {
        case 1:
          return GOOGLE_DEFINED_CONSTRAINT;
        case 2:
          return CUSTOM_CONSTRAINT;
        case 0:
          return CONSTRAINTDEFINITION_NOT_SET;
        default:
          return null;
      }
    }

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

  public ConstraintDefinitionCase getConstraintDefinitionCase() {
    return ConstraintDefinitionCase.forNumber(constraintDefinitionCase_);
  }

  public static final int GOOGLE_DEFINED_CONSTRAINT_FIELD_NUMBER = 1;
  /**
   *
   *
   * <pre>
   * The definition of the canned constraint defined by Google.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
   * </code>
   *
   * @return Whether the googleDefinedConstraint field is set.
   */
  @java.lang.Override
  public boolean hasGoogleDefinedConstraint() {
    return constraintDefinitionCase_ == 1;
  }
  /**
   *
   *
   * <pre>
   * The definition of the canned constraint defined by Google.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
   * </code>
   *
   * @return The googleDefinedConstraint.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
      getGoogleDefinedConstraint() {
    if (constraintDefinitionCase_ == 1) {
      return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
          constraintDefinition_;
    }
    return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The definition of the canned constraint defined by Google.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
      getGoogleDefinedConstraintOrBuilder() {
    if (constraintDefinitionCase_ == 1) {
      return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
          constraintDefinition_;
    }
    return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.getDefaultInstance();
  }

  public static final int CUSTOM_CONSTRAINT_FIELD_NUMBER = 2;
  /**
   *
   *
   * <pre>
   * The definition of the custom constraint.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
   * </code>
   *
   * @return Whether the customConstraint field is set.
   */
  @java.lang.Override
  public boolean hasCustomConstraint() {
    return constraintDefinitionCase_ == 2;
  }
  /**
   *
   *
   * <pre>
   * The definition of the custom constraint.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
   * </code>
   *
   * @return The customConstraint.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
      getCustomConstraint() {
    if (constraintDefinitionCase_ == 2) {
      return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
          constraintDefinition_;
    }
    return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The definition of the custom constraint.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
      getCustomConstraintOrBuilder() {
    if (constraintDefinitionCase_ == 2) {
      return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
          constraintDefinition_;
    }
    return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        .getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (constraintDefinitionCase_ == 1) {
      output.writeMessage(
          1,
          (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint) constraintDefinition_);
    }
    if (constraintDefinitionCase_ == 2) {
      output.writeMessage(
          2,
          (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
              constraintDefinition_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (constraintDefinitionCase_ == 1) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              1,
              (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
                  constraintDefinition_);
    }
    if (constraintDefinitionCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2,
              (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
                  constraintDefinition_);
    }
    size += getUnknownFields().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.asset.v1.AnalyzerOrgPolicyConstraint)) {
      return super.equals(obj);
    }
    com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint other =
        (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint) obj;

    if (!getConstraintDefinitionCase().equals(other.getConstraintDefinitionCase())) return false;
    switch (constraintDefinitionCase_) {
      case 1:
        if (!getGoogleDefinedConstraint().equals(other.getGoogleDefinedConstraint())) return false;
        break;
      case 2:
        if (!getCustomConstraint().equals(other.getCustomConstraint())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (constraintDefinitionCase_) {
      case 1:
        hash = (37 * hash) + GOOGLE_DEFINED_CONSTRAINT_FIELD_NUMBER;
        hash = (53 * hash) + getGoogleDefinedConstraint().hashCode();
        break;
      case 2:
        hash = (37 * hash) + CUSTOM_CONSTRAINT_FIELD_NUMBER;
        hash = (53 * hash) + getCustomConstraint().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

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

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

  public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint 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.asset.v1.AnalyzerOrgPolicyConstraint 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;
  }
  /**
   *
   *
   * <pre>
   * The organization policy constraint definition.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzerOrgPolicyConstraint}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint)
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.class,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder.class);
    }

    // Construct using com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (googleDefinedConstraintBuilder_ != null) {
        googleDefinedConstraintBuilder_.clear();
      }
      if (customConstraintBuilder_ != null) {
        customConstraintBuilder_.clear();
      }
      constraintDefinitionCase_ = 0;
      constraintDefinition_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzerOrgPolicyConstraint_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint getDefaultInstanceForType() {
      return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint buildPartial() {
      com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint result =
          new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint result) {
      int from_bitField0_ = bitField0_;
    }

    private void buildPartialOneofs(com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint result) {
      result.constraintDefinitionCase_ = constraintDefinitionCase_;
      result.constraintDefinition_ = this.constraintDefinition_;
      if (constraintDefinitionCase_ == 1 && googleDefinedConstraintBuilder_ != null) {
        result.constraintDefinition_ = googleDefinedConstraintBuilder_.build();
      }
      if (constraintDefinitionCase_ == 2 && customConstraintBuilder_ != null) {
        result.constraintDefinition_ = customConstraintBuilder_.build();
      }
    }

    @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.asset.v1.AnalyzerOrgPolicyConstraint) {
        return mergeFrom((com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint other) {
      if (other == com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance())
        return this;
      switch (other.getConstraintDefinitionCase()) {
        case GOOGLE_DEFINED_CONSTRAINT:
          {
            mergeGoogleDefinedConstraint(other.getGoogleDefinedConstraint());
            break;
          }
        case CUSTOM_CONSTRAINT:
          {
            mergeCustomConstraint(other.getCustomConstraint());
            break;
          }
        case CONSTRAINTDEFINITION_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(
                    getGoogleDefinedConstraintFieldBuilder().getBuilder(), extensionRegistry);
                constraintDefinitionCase_ = 1;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    getCustomConstraintFieldBuilder().getBuilder(), extensionRegistry);
                constraintDefinitionCase_ = 2;
                break;
              } // case 18
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int constraintDefinitionCase_ = 0;
    private java.lang.Object constraintDefinition_;

    public ConstraintDefinitionCase getConstraintDefinitionCase() {
      return ConstraintDefinitionCase.forNumber(constraintDefinitionCase_);
    }

    public Builder clearConstraintDefinition() {
      constraintDefinitionCase_ = 0;
      constraintDefinition_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder>
        googleDefinedConstraintBuilder_;
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     *
     * @return Whether the googleDefinedConstraint field is set.
     */
    @java.lang.Override
    public boolean hasGoogleDefinedConstraint() {
      return constraintDefinitionCase_ == 1;
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     *
     * @return The googleDefinedConstraint.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
        getGoogleDefinedConstraint() {
      if (googleDefinedConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 1) {
          return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
              constraintDefinition_;
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
            .getDefaultInstance();
      } else {
        if (constraintDefinitionCase_ == 1) {
          return googleDefinedConstraintBuilder_.getMessage();
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    public Builder setGoogleDefinedConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint value) {
      if (googleDefinedConstraintBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        constraintDefinition_ = value;
        onChanged();
      } else {
        googleDefinedConstraintBuilder_.setMessage(value);
      }
      constraintDefinitionCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    public Builder setGoogleDefinedConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder builderForValue) {
      if (googleDefinedConstraintBuilder_ == null) {
        constraintDefinition_ = builderForValue.build();
        onChanged();
      } else {
        googleDefinedConstraintBuilder_.setMessage(builderForValue.build());
      }
      constraintDefinitionCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    public Builder mergeGoogleDefinedConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint value) {
      if (googleDefinedConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 1
            && constraintDefinition_
                != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
                    .getDefaultInstance()) {
          constraintDefinition_ =
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.newBuilder(
                      (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
                          constraintDefinition_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          constraintDefinition_ = value;
        }
        onChanged();
      } else {
        if (constraintDefinitionCase_ == 1) {
          googleDefinedConstraintBuilder_.mergeFrom(value);
        } else {
          googleDefinedConstraintBuilder_.setMessage(value);
        }
      }
      constraintDefinitionCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    public Builder clearGoogleDefinedConstraint() {
      if (googleDefinedConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 1) {
          constraintDefinitionCase_ = 0;
          constraintDefinition_ = null;
          onChanged();
        }
      } else {
        if (constraintDefinitionCase_ == 1) {
          constraintDefinitionCase_ = 0;
          constraintDefinition_ = null;
        }
        googleDefinedConstraintBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder
        getGoogleDefinedConstraintBuilder() {
      return getGoogleDefinedConstraintFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
        getGoogleDefinedConstraintOrBuilder() {
      if ((constraintDefinitionCase_ == 1) && (googleDefinedConstraintBuilder_ != null)) {
        return googleDefinedConstraintBuilder_.getMessageOrBuilder();
      } else {
        if (constraintDefinitionCase_ == 1) {
          return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
              constraintDefinition_;
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the canned constraint defined by Google.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder>
        getGoogleDefinedConstraintFieldBuilder() {
      if (googleDefinedConstraintBuilder_ == null) {
        if (!(constraintDefinitionCase_ == 1)) {
          constraintDefinition_ =
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.getDefaultInstance();
        }
        googleDefinedConstraintBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.Builder,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintOrBuilder>(
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint)
                    constraintDefinition_,
                getParentForChildren(),
                isClean());
        constraintDefinition_ = null;
      }
      constraintDefinitionCase_ = 1;
      onChanged();
      return googleDefinedConstraintBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder>
        customConstraintBuilder_;
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     *
     * @return Whether the customConstraint field is set.
     */
    @java.lang.Override
    public boolean hasCustomConstraint() {
      return constraintDefinitionCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     *
     * @return The customConstraint.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
        getCustomConstraint() {
      if (customConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 2) {
          return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
              constraintDefinition_;
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDefaultInstance();
      } else {
        if (constraintDefinitionCase_ == 2) {
          return customConstraintBuilder_.getMessage();
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    public Builder setCustomConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint value) {
      if (customConstraintBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        constraintDefinition_ = value;
        onChanged();
      } else {
        customConstraintBuilder_.setMessage(value);
      }
      constraintDefinitionCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    public Builder setCustomConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
            builderForValue) {
      if (customConstraintBuilder_ == null) {
        constraintDefinition_ = builderForValue.build();
        onChanged();
      } else {
        customConstraintBuilder_.setMessage(builderForValue.build());
      }
      constraintDefinitionCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    public Builder mergeCustomConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint value) {
      if (customConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 2
            && constraintDefinition_
                != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                    .getDefaultInstance()) {
          constraintDefinition_ =
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.newBuilder(
                      (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
                          constraintDefinition_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          constraintDefinition_ = value;
        }
        onChanged();
      } else {
        if (constraintDefinitionCase_ == 2) {
          customConstraintBuilder_.mergeFrom(value);
        } else {
          customConstraintBuilder_.setMessage(value);
        }
      }
      constraintDefinitionCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    public Builder clearCustomConstraint() {
      if (customConstraintBuilder_ == null) {
        if (constraintDefinitionCase_ == 2) {
          constraintDefinitionCase_ = 0;
          constraintDefinition_ = null;
          onChanged();
        }
      } else {
        if (constraintDefinitionCase_ == 2) {
          constraintDefinitionCase_ = 0;
          constraintDefinition_ = null;
        }
        customConstraintBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
        getCustomConstraintBuilder() {
      return getCustomConstraintFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
        getCustomConstraintOrBuilder() {
      if ((constraintDefinitionCase_ == 2) && (customConstraintBuilder_ != null)) {
        return customConstraintBuilder_.getMessageOrBuilder();
      } else {
        if (constraintDefinitionCase_ == 2) {
          return (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
              constraintDefinition_;
        }
        return com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the custom constraint.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder>
        getCustomConstraintFieldBuilder() {
      if (customConstraintBuilder_ == null) {
        if (!(constraintDefinitionCase_ == 2)) {
          constraintDefinition_ =
              com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint
                  .getDefaultInstance();
        }
        customConstraintBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.Builder,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder>(
                (com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint)
                    constraintDefinition_,
                getParentForChildren(),
                isClean());
        constraintDefinition_ = null;
      }
      constraintDefinitionCase_ = 2;
      onChanged();
      return customConstraintBuilder_;
    }

    @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.asset.v1.AnalyzerOrgPolicyConstraint)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzerOrgPolicyConstraint)
  private static final com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint();
  }

  public static com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AnalyzerOrgPolicyConstraint> PARSER =
      new com.google.protobuf.AbstractParser<AnalyzerOrgPolicyConstraint>() {
        @java.lang.Override
        public AnalyzerOrgPolicyConstraint parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
