/*
 * Copyright 2023 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/securitycenter/settings/v1beta1/component_settings.proto

package com.google.cloud.securitycenter.settings.v1beta1;

/**
 *
 *
 * <pre>
 * User specified settings for Security Health Analytics
 * </pre>
 *
 * Protobuf type {@code
 * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings}
 */
public final class SecurityHealthAnalyticsSettings extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
    SecurityHealthAnalyticsSettingsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use SecurityHealthAnalyticsSettings.newBuilder() to construct.
  private SecurityHealthAnalyticsSettings(
      com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private SecurityHealthAnalyticsSettings() {}

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
        .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
        .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.class,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.Builder
                .class);
  }

  public interface NonOrgIamMemberSettingsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return A list containing the approvedIdentities.
     */
    java.util.List<java.lang.String> getApprovedIdentitiesList();
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return The count of approvedIdentities.
     */
    int getApprovedIdentitiesCount();
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The approvedIdentities at the given index.
     */
    java.lang.String getApprovedIdentities(int index);
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the approvedIdentities at the given index.
     */
    com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index);
  }
  /**
   *
   *
   * <pre>
   * Settings for "NON_ORG_IAM_MEMBER" scanner.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings}
   */
  public static final class NonOrgIamMemberSettings extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings)
      NonOrgIamMemberSettingsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use NonOrgIamMemberSettings.newBuilder() to construct.
    private NonOrgIamMemberSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private NonOrgIamMemberSettings() {
      approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_NonOrgIamMemberSettings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_NonOrgIamMemberSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .NonOrgIamMemberSettings.class,
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .NonOrgIamMemberSettings.Builder.class);
    }

    public static final int APPROVED_IDENTITIES_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList approvedIdentities_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return A list containing the approvedIdentities.
     */
    public com.google.protobuf.ProtocolStringList getApprovedIdentitiesList() {
      return approvedIdentities_;
    }
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return The count of approvedIdentities.
     */
    public int getApprovedIdentitiesCount() {
      return approvedIdentities_.size();
    }
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The approvedIdentities at the given index.
     */
    public java.lang.String getApprovedIdentities(int index) {
      return approvedIdentities_.get(index);
    }
    /**
     *
     *
     * <pre>
     * User emails ending in the provided identities are allowed to have IAM
     * permissions on a project or the organization. Otherwise a finding will
     * be created.
     * A valid identity can be:
     *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
     *   *  a fully specified email address that does not start with "&#64;", e.g.
     *   "abc&#64;gmail.com"
     * Regular expressions are not supported.
     * Service accounts are not examined by the scanner and will be omitted if
     * added to the list.
     * If not specified, only Gmail accounts will be considered as non-approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the approvedIdentities at the given index.
     */
    public com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index) {
      return approvedIdentities_.getByteString(index);
    }

    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 {
      for (int i = 0; i < approvedIdentities_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(
            output, 1, approvedIdentities_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < approvedIdentities_.size(); i++) {
          dataSize += computeStringSizeNoTag(approvedIdentities_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getApprovedIdentitiesList().size();
      }
      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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings)) {
        return super.equals(obj);
      }
      com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings
          other =
              (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                      .NonOrgIamMemberSettings)
                  obj;

      if (!getApprovedIdentitiesList().equals(other.getApprovedIdentitiesList())) 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();
      if (getApprovedIdentitiesCount() > 0) {
        hash = (37 * hash) + APPROVED_IDENTITIES_FIELD_NUMBER;
        hash = (53 * hash) + getApprovedIdentitiesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

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

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

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings
            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>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings)
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettingsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_NonOrgIamMemberSettings_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_NonOrgIamMemberSettings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings.class,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings.Builder.class);
      }

      // Construct using
      // com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_NonOrgIamMemberSettings_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings
          getDefaultInstanceForType() {
        return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings
          build() {
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings
            result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings
          buildPartial() {
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings
            result =
                new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .NonOrgIamMemberSettings
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          approvedIdentities_.makeImmutable();
          result.approvedIdentities_ = approvedIdentities_;
        }
      }

      @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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings) {
          return mergeFrom(
              (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                      .NonOrgIamMemberSettings)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .NonOrgIamMemberSettings
              other) {
        if (other
            == com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.getDefaultInstance()) return this;
        if (!other.approvedIdentities_.isEmpty()) {
          if (approvedIdentities_.isEmpty()) {
            approvedIdentities_ = other.approvedIdentities_;
            bitField0_ |= 0x00000001;
          } else {
            ensureApprovedIdentitiesIsMutable();
            approvedIdentities_.addAll(other.approvedIdentities_);
          }
          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:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureApprovedIdentitiesIsMutable();
                  approvedIdentities_.add(s);
                  break;
                } // case 10
              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 com.google.protobuf.LazyStringArrayList approvedIdentities_ =
          com.google.protobuf.LazyStringArrayList.emptyList();

      private void ensureApprovedIdentitiesIsMutable() {
        if (!approvedIdentities_.isModifiable()) {
          approvedIdentities_ = new com.google.protobuf.LazyStringArrayList(approvedIdentities_);
        }
        bitField0_ |= 0x00000001;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return A list containing the approvedIdentities.
       */
      public com.google.protobuf.ProtocolStringList getApprovedIdentitiesList() {
        approvedIdentities_.makeImmutable();
        return approvedIdentities_;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return The count of approvedIdentities.
       */
      public int getApprovedIdentitiesCount() {
        return approvedIdentities_.size();
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index of the element to return.
       * @return The approvedIdentities at the given index.
       */
      public java.lang.String getApprovedIdentities(int index) {
        return approvedIdentities_.get(index);
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the approvedIdentities at the given index.
       */
      public com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index) {
        return approvedIdentities_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index to set the value at.
       * @param value The approvedIdentities to set.
       * @return This builder for chaining.
       */
      public Builder setApprovedIdentities(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.set(index, value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param value The approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addApprovedIdentities(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param values The approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addAllApprovedIdentities(java.lang.Iterable<java.lang.String> values) {
        ensureApprovedIdentitiesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, approvedIdentities_);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearApprovedIdentities() {
        approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        ;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User emails ending in the provided identities are allowed to have IAM
       * permissions on a project or the organization. Otherwise a finding will
       * be created.
       * A valid identity can be:
       *   *  a domain that starts with "&#64;", e.g. "&#64;yourdomain.com".
       *   *  a fully specified email address that does not start with "&#64;", e.g.
       *   "abc&#64;gmail.com"
       * Regular expressions are not supported.
       * Service accounts are not examined by the scanner and will be omitted if
       * added to the list.
       * If not specified, only Gmail accounts will be considered as non-approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param value The bytes of the approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addApprovedIdentitiesBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.add(value);
        bitField0_ |= 0x00000001;
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings)
    private static final com.google.cloud.securitycenter.settings.v1beta1
            .SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .NonOrgIamMemberSettings();
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<NonOrgIamMemberSettings> PARSER =
        new com.google.protobuf.AbstractParser<NonOrgIamMemberSettings>() {
          @java.lang.Override
          public NonOrgIamMemberSettings 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<NonOrgIamMemberSettings> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface AdminServiceAccountSettingsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return A list containing the approvedIdentities.
     */
    java.util.List<java.lang.String> getApprovedIdentitiesList();
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return The count of approvedIdentities.
     */
    int getApprovedIdentitiesCount();
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The approvedIdentities at the given index.
     */
    java.lang.String getApprovedIdentities(int index);
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the approvedIdentities at the given index.
     */
    com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index);
  }
  /**
   *
   *
   * <pre>
   * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings}
   */
  public static final class AdminServiceAccountSettings
      extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings)
      AdminServiceAccountSettingsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use AdminServiceAccountSettings.newBuilder() to construct.
    private AdminServiceAccountSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private AdminServiceAccountSettings() {
      approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_AdminServiceAccountSettings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_AdminServiceAccountSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .AdminServiceAccountSettings.class,
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .AdminServiceAccountSettings.Builder.class);
    }

    public static final int APPROVED_IDENTITIES_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList approvedIdentities_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return A list containing the approvedIdentities.
     */
    public com.google.protobuf.ProtocolStringList getApprovedIdentitiesList() {
      return approvedIdentities_;
    }
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @return The count of approvedIdentities.
     */
    public int getApprovedIdentitiesCount() {
      return approvedIdentities_.size();
    }
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The approvedIdentities at the given index.
     */
    public java.lang.String getApprovedIdentities(int index) {
      return approvedIdentities_.get(index);
    }
    /**
     *
     *
     * <pre>
     * User-created service accounts ending in the provided identities are
     * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
     * a finding will be created.
     * A valid identity can be:
     *   *  a partilly specified service account that starts with "&#64;", e.g.
     *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
     *   accounts suffixed with the specified identity.
     *   *  a fully specified service account that does not start with "&#64;", e.g.
     *   "myadmin&#64;myproject.iam.gserviceaccount.com".
     * Google-created service accounts are all approved.
     * </pre>
     *
     * <code>repeated string approved_identities = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the approvedIdentities at the given index.
     */
    public com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index) {
      return approvedIdentities_.getByteString(index);
    }

    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 {
      for (int i = 0; i < approvedIdentities_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(
            output, 1, approvedIdentities_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < approvedIdentities_.size(); i++) {
          dataSize += computeStringSizeNoTag(approvedIdentities_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getApprovedIdentitiesList().size();
      }
      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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings)) {
        return super.equals(obj);
      }
      com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings
          other =
              (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                      .AdminServiceAccountSettings)
                  obj;

      if (!getApprovedIdentitiesList().equals(other.getApprovedIdentitiesList())) 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();
      if (getApprovedIdentitiesCount() > 0) {
        hash = (37 * hash) + APPROVED_IDENTITIES_FIELD_NUMBER;
        hash = (53 * hash) + getApprovedIdentitiesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

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

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

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings
            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>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings)
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettingsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_AdminServiceAccountSettings_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_AdminServiceAccountSettings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings.class,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings.Builder.class);
      }

      // Construct using
      // com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_AdminServiceAccountSettings_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings
          getDefaultInstanceForType() {
        return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings
          build() {
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings
            result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings
          buildPartial() {
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings
            result =
                new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .AdminServiceAccountSettings
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          approvedIdentities_.makeImmutable();
          result.approvedIdentities_ = approvedIdentities_;
        }
      }

      @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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings) {
          return mergeFrom(
              (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                      .AdminServiceAccountSettings)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .AdminServiceAccountSettings
              other) {
        if (other
            == com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.getDefaultInstance()) return this;
        if (!other.approvedIdentities_.isEmpty()) {
          if (approvedIdentities_.isEmpty()) {
            approvedIdentities_ = other.approvedIdentities_;
            bitField0_ |= 0x00000001;
          } else {
            ensureApprovedIdentitiesIsMutable();
            approvedIdentities_.addAll(other.approvedIdentities_);
          }
          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:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureApprovedIdentitiesIsMutable();
                  approvedIdentities_.add(s);
                  break;
                } // case 10
              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 com.google.protobuf.LazyStringArrayList approvedIdentities_ =
          com.google.protobuf.LazyStringArrayList.emptyList();

      private void ensureApprovedIdentitiesIsMutable() {
        if (!approvedIdentities_.isModifiable()) {
          approvedIdentities_ = new com.google.protobuf.LazyStringArrayList(approvedIdentities_);
        }
        bitField0_ |= 0x00000001;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return A list containing the approvedIdentities.
       */
      public com.google.protobuf.ProtocolStringList getApprovedIdentitiesList() {
        approvedIdentities_.makeImmutable();
        return approvedIdentities_;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return The count of approvedIdentities.
       */
      public int getApprovedIdentitiesCount() {
        return approvedIdentities_.size();
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index of the element to return.
       * @return The approvedIdentities at the given index.
       */
      public java.lang.String getApprovedIdentities(int index) {
        return approvedIdentities_.get(index);
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the approvedIdentities at the given index.
       */
      public com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index) {
        return approvedIdentities_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param index The index to set the value at.
       * @param value The approvedIdentities to set.
       * @return This builder for chaining.
       */
      public Builder setApprovedIdentities(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.set(index, value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param value The approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addApprovedIdentities(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param values The approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addAllApprovedIdentities(java.lang.Iterable<java.lang.String> values) {
        ensureApprovedIdentitiesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, approvedIdentities_);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearApprovedIdentities() {
        approvedIdentities_ = com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        ;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * User-created service accounts ending in the provided identities are
       * allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       * a finding will be created.
       * A valid identity can be:
       *   *  a partilly specified service account that starts with "&#64;", e.g.
       *   "&#64;myproject.iam.gserviceaccount.com". This approves all the service
       *   accounts suffixed with the specified identity.
       *   *  a fully specified service account that does not start with "&#64;", e.g.
       *   "myadmin&#64;myproject.iam.gserviceaccount.com".
       * Google-created service accounts are all approved.
       * </pre>
       *
       * <code>repeated string approved_identities = 1;</code>
       *
       * @param value The bytes of the approvedIdentities to add.
       * @return This builder for chaining.
       */
      public Builder addApprovedIdentitiesBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureApprovedIdentitiesIsMutable();
        approvedIdentities_.add(value);
        bitField0_ |= 0x00000001;
        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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings)
    private static final com.google.cloud.securitycenter.settings.v1beta1
            .SecurityHealthAnalyticsSettings.AdminServiceAccountSettings
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .AdminServiceAccountSettings();
    }

    public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<AdminServiceAccountSettings> PARSER =
        new com.google.protobuf.AbstractParser<AdminServiceAccountSettings>() {
          @java.lang.Override
          public AdminServiceAccountSettings 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<AdminServiceAccountSettings> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int NON_ORG_IAM_MEMBER_SETTINGS_FIELD_NUMBER = 1;
  private com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .NonOrgIamMemberSettings
      nonOrgIamMemberSettings_;
  /**
   *
   *
   * <pre>
   * Settings for "NON_ORG_IAM_MEMBER" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
   * </code>
   *
   * @return Whether the nonOrgIamMemberSettings field is set.
   */
  @java.lang.Override
  public boolean hasNonOrgIamMemberSettings() {
    return nonOrgIamMemberSettings_ != null;
  }
  /**
   *
   *
   * <pre>
   * Settings for "NON_ORG_IAM_MEMBER" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
   * </code>
   *
   * @return The nonOrgIamMemberSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .NonOrgIamMemberSettings
      getNonOrgIamMemberSettings() {
    return nonOrgIamMemberSettings_ == null
        ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings.getDefaultInstance()
        : nonOrgIamMemberSettings_;
  }
  /**
   *
   *
   * <pre>
   * Settings for "NON_ORG_IAM_MEMBER" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .NonOrgIamMemberSettingsOrBuilder
      getNonOrgIamMemberSettingsOrBuilder() {
    return nonOrgIamMemberSettings_ == null
        ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings.getDefaultInstance()
        : nonOrgIamMemberSettings_;
  }

  public static final int ADMIN_SERVICE_ACCOUNT_SETTINGS_FIELD_NUMBER = 2;
  private com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .AdminServiceAccountSettings
      adminServiceAccountSettings_;
  /**
   *
   *
   * <pre>
   * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
   * </code>
   *
   * @return Whether the adminServiceAccountSettings field is set.
   */
  @java.lang.Override
  public boolean hasAdminServiceAccountSettings() {
    return adminServiceAccountSettings_ != null;
  }
  /**
   *
   *
   * <pre>
   * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
   * </code>
   *
   * @return The adminServiceAccountSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .AdminServiceAccountSettings
      getAdminServiceAccountSettings() {
    return adminServiceAccountSettings_ == null
        ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings.getDefaultInstance()
        : adminServiceAccountSettings_;
  }
  /**
   *
   *
   * <pre>
   * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .AdminServiceAccountSettingsOrBuilder
      getAdminServiceAccountSettingsOrBuilder() {
    return adminServiceAccountSettings_ == null
        ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings.getDefaultInstance()
        : adminServiceAccountSettings_;
  }

  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 (nonOrgIamMemberSettings_ != null) {
      output.writeMessage(1, getNonOrgIamMemberSettings());
    }
    if (adminServiceAccountSettings_ != null) {
      output.writeMessage(2, getAdminServiceAccountSettings());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (nonOrgIamMemberSettings_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNonOrgIamMemberSettings());
    }
    if (adminServiceAccountSettings_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, getAdminServiceAccountSettings());
    }
    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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)) {
      return super.equals(obj);
    }
    com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings other =
        (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings) obj;

    if (hasNonOrgIamMemberSettings() != other.hasNonOrgIamMemberSettings()) return false;
    if (hasNonOrgIamMemberSettings()) {
      if (!getNonOrgIamMemberSettings().equals(other.getNonOrgIamMemberSettings())) return false;
    }
    if (hasAdminServiceAccountSettings() != other.hasAdminServiceAccountSettings()) return false;
    if (hasAdminServiceAccountSettings()) {
      if (!getAdminServiceAccountSettings().equals(other.getAdminServiceAccountSettings()))
        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();
    if (hasNonOrgIamMemberSettings()) {
      hash = (37 * hash) + NON_ORG_IAM_MEMBER_SETTINGS_FIELD_NUMBER;
      hash = (53 * hash) + getNonOrgIamMemberSettings().hashCode();
    }
    if (hasAdminServiceAccountSettings()) {
      hash = (37 * hash) + ADMIN_SERVICE_ACCOUNT_SETTINGS_FIELD_NUMBER;
      hash = (53 * hash) + getAdminServiceAccountSettings().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      parseFrom(java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      parseFrom(com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      parseFrom(java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

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

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings 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>
   * User specified settings for Security Health Analytics
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
      com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettingsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .class,
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .Builder.class);
    }

    // Construct using
    // com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      nonOrgIamMemberSettings_ = null;
      if (nonOrgIamMemberSettingsBuilder_ != null) {
        nonOrgIamMemberSettingsBuilder_.dispose();
        nonOrgIamMemberSettingsBuilder_ = null;
      }
      adminServiceAccountSettings_ = null;
      if (adminServiceAccountSettingsBuilder_ != null) {
        adminServiceAccountSettingsBuilder_.dispose();
        adminServiceAccountSettingsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_SecurityHealthAnalyticsSettings_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        getDefaultInstanceForType() {
      return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
          .getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        build() {
      com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings result =
          buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        buildPartial() {
      com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings result =
          new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings(
              this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.nonOrgIamMemberSettings_ =
            nonOrgIamMemberSettingsBuilder_ == null
                ? nonOrgIamMemberSettings_
                : nonOrgIamMemberSettingsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.adminServiceAccountSettings_ =
            adminServiceAccountSettingsBuilder_ == null
                ? adminServiceAccountSettings_
                : adminServiceAccountSettingsBuilder_.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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings) {
        return mergeFrom(
            (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
                other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings other) {
      if (other
          == com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
              .getDefaultInstance()) return this;
      if (other.hasNonOrgIamMemberSettings()) {
        mergeNonOrgIamMemberSettings(other.getNonOrgIamMemberSettings());
      }
      if (other.hasAdminServiceAccountSettings()) {
        mergeAdminServiceAccountSettings(other.getAdminServiceAccountSettings());
      }
      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(
                    getNonOrgIamMemberSettingsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    getAdminServiceAccountSettingsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                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 bitField0_;

    private com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        nonOrgIamMemberSettings_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettingsOrBuilder>
        nonOrgIamMemberSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     *
     * @return Whether the nonOrgIamMemberSettings field is set.
     */
    public boolean hasNonOrgIamMemberSettings() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     *
     * @return The nonOrgIamMemberSettings.
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings
        getNonOrgIamMemberSettings() {
      if (nonOrgIamMemberSettingsBuilder_ == null) {
        return nonOrgIamMemberSettings_ == null
            ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.getDefaultInstance()
            : nonOrgIamMemberSettings_;
      } else {
        return nonOrgIamMemberSettingsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public Builder setNonOrgIamMemberSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings
            value) {
      if (nonOrgIamMemberSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        nonOrgIamMemberSettings_ = value;
      } else {
        nonOrgIamMemberSettingsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public Builder setNonOrgIamMemberSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.Builder
            builderForValue) {
      if (nonOrgIamMemberSettingsBuilder_ == null) {
        nonOrgIamMemberSettings_ = builderForValue.build();
      } else {
        nonOrgIamMemberSettingsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public Builder mergeNonOrgIamMemberSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings
            value) {
      if (nonOrgIamMemberSettingsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && nonOrgIamMemberSettings_ != null
            && nonOrgIamMemberSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings.getDefaultInstance()) {
          getNonOrgIamMemberSettingsBuilder().mergeFrom(value);
        } else {
          nonOrgIamMemberSettings_ = value;
        }
      } else {
        nonOrgIamMemberSettingsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public Builder clearNonOrgIamMemberSettings() {
      bitField0_ = (bitField0_ & ~0x00000001);
      nonOrgIamMemberSettings_ = null;
      if (nonOrgIamMemberSettingsBuilder_ != null) {
        nonOrgIamMemberSettingsBuilder_.dispose();
        nonOrgIamMemberSettingsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettings.Builder
        getNonOrgIamMemberSettingsBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getNonOrgIamMemberSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .NonOrgIamMemberSettingsOrBuilder
        getNonOrgIamMemberSettingsOrBuilder() {
      if (nonOrgIamMemberSettingsBuilder_ != null) {
        return nonOrgIamMemberSettingsBuilder_.getMessageOrBuilder();
      } else {
        return nonOrgIamMemberSettings_ == null
            ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.getDefaultInstance()
            : nonOrgIamMemberSettings_;
      }
    }
    /**
     *
     *
     * <pre>
     * Settings for "NON_ORG_IAM_MEMBER" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.NonOrgIamMemberSettings non_org_iam_member_settings = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .NonOrgIamMemberSettingsOrBuilder>
        getNonOrgIamMemberSettingsFieldBuilder() {
      if (nonOrgIamMemberSettingsBuilder_ == null) {
        nonOrgIamMemberSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettings.Builder,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .NonOrgIamMemberSettingsOrBuilder>(
                getNonOrgIamMemberSettings(), getParentForChildren(), isClean());
        nonOrgIamMemberSettings_ = null;
      }
      return nonOrgIamMemberSettingsBuilder_;
    }

    private com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        adminServiceAccountSettings_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettingsOrBuilder>
        adminServiceAccountSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     *
     * @return Whether the adminServiceAccountSettings field is set.
     */
    public boolean hasAdminServiceAccountSettings() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     *
     * @return The adminServiceAccountSettings.
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings
        getAdminServiceAccountSettings() {
      if (adminServiceAccountSettingsBuilder_ == null) {
        return adminServiceAccountSettings_ == null
            ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.getDefaultInstance()
            : adminServiceAccountSettings_;
      } else {
        return adminServiceAccountSettingsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public Builder setAdminServiceAccountSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings
            value) {
      if (adminServiceAccountSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        adminServiceAccountSettings_ = value;
      } else {
        adminServiceAccountSettingsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public Builder setAdminServiceAccountSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.Builder
            builderForValue) {
      if (adminServiceAccountSettingsBuilder_ == null) {
        adminServiceAccountSettings_ = builderForValue.build();
      } else {
        adminServiceAccountSettingsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public Builder mergeAdminServiceAccountSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings
            value) {
      if (adminServiceAccountSettingsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && adminServiceAccountSettings_ != null
            && adminServiceAccountSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings.getDefaultInstance()) {
          getAdminServiceAccountSettingsBuilder().mergeFrom(value);
        } else {
          adminServiceAccountSettings_ = value;
        }
      } else {
        adminServiceAccountSettingsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public Builder clearAdminServiceAccountSettings() {
      bitField0_ = (bitField0_ & ~0x00000002);
      adminServiceAccountSettings_ = null;
      if (adminServiceAccountSettingsBuilder_ != null) {
        adminServiceAccountSettingsBuilder_.dispose();
        adminServiceAccountSettingsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettings.Builder
        getAdminServiceAccountSettingsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getAdminServiceAccountSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .AdminServiceAccountSettingsOrBuilder
        getAdminServiceAccountSettingsOrBuilder() {
      if (adminServiceAccountSettingsBuilder_ != null) {
        return adminServiceAccountSettingsBuilder_.getMessageOrBuilder();
      } else {
        return adminServiceAccountSettings_ == null
            ? com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.getDefaultInstance()
            : adminServiceAccountSettings_;
      }
    }
    /**
     *
     *
     * <pre>
     * Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings admin_service_account_settings = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .AdminServiceAccountSettingsOrBuilder>
        getAdminServiceAccountSettingsFieldBuilder() {
      if (adminServiceAccountSettingsBuilder_ == null) {
        adminServiceAccountSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettings.Builder,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .AdminServiceAccountSettingsOrBuilder>(
                getAdminServiceAccountSettings(), getParentForChildren(), isClean());
        adminServiceAccountSettings_ = null;
      }
      return adminServiceAccountSettingsBuilder_;
    }

    @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.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
  private static final com.google.cloud.securitycenter.settings.v1beta1
          .SecurityHealthAnalyticsSettings
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE =
        new com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings();
  }

  public static com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<SecurityHealthAnalyticsSettings> PARSER =
      new com.google.protobuf.AbstractParser<SecurityHealthAnalyticsSettings>() {
        @java.lang.Override
        public SecurityHealthAnalyticsSettings 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<SecurityHealthAnalyticsSettings> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
