/*
 * 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>
 * Component Settings for Security Command Center
 * </pre>
 *
 * Protobuf type {@code google.cloud.securitycenter.settings.v1beta1.ComponentSettings}
 */
public final class ComponentSettings extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.settings.v1beta1.ComponentSettings)
    ComponentSettingsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ComponentSettings.newBuilder() to construct.
  private ComponentSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ComponentSettings() {
    name_ = "";
    state_ = 0;
    projectServiceAccount_ = "";
    etag_ = "";
  }

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 4:
        return internalGetDetectorSettings();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @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_ComponentSettings_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.class,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.Builder.class);
  }

  public interface DetectorSettingsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    int getStateValue();
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
     * </code>
     *
     * @return The state.
     */
    com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState getState();
  }
  /**
   *
   *
   * <pre>
   * Settings for each detector.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings}
   */
  public static final class DetectorSettings extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings)
      DetectorSettingsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use DetectorSettings.newBuilder() to construct.
    private DetectorSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private DetectorSettings() {
      state_ = 0;
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_ComponentSettings_DetectorSettings_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_ComponentSettings_DetectorSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                  .class,
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                  .Builder.class);
    }

    public static final int STATE_FIELD_NUMBER = 1;
    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState getState() {
      com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState result =
          com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.forNumber(
              state_);
      return result == null
          ? com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.UNRECOGNIZED
          : result;
    }

    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 (state_
          != com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState
              .COMPONENT_ENABLEMENT_STATE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, state_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (state_
          != com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState
              .COMPONENT_ENABLEMENT_STATE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
      }
      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.ComponentSettings.DetectorSettings)) {
        return super.equals(obj);
      }
      com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings other =
          (com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings) obj;

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

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

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

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

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

    public static com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings
            .DetectorSettings
        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.ComponentSettings.DetectorSettings
            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 each detector.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings)
        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
            .DetectorSettingsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
            .internal_static_google_cloud_securitycenter_settings_v1beta1_ComponentSettings_DetectorSettings_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_ComponentSettings_DetectorSettings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                    .class,
                com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                    .Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        state_ = 0;
        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_ComponentSettings_DetectorSettings_descriptor;
      }

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

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

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

      private void buildPartial0(
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.state_ = state_;
        }
      }

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

      public Builder mergeFrom(
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
              other) {
        if (other
            == com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                .getDefaultInstance()) return this;
        if (other.state_ != 0) {
          setStateValue(other.getStateValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  state_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              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 int state_ = 0;
      /**
       *
       *
       * <pre>
       * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       * setting from ancestors.
       * </pre>
       *
       * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for state.
       */
      @java.lang.Override
      public int getStateValue() {
        return state_;
      }
      /**
       *
       *
       * <pre>
       * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       * setting from ancestors.
       * </pre>
       *
       * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
       * </code>
       *
       * @param value The enum numeric value on the wire for state to set.
       * @return This builder for chaining.
       */
      public Builder setStateValue(int value) {
        state_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       * setting from ancestors.
       * </pre>
       *
       * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
       * </code>
       *
       * @return The state.
       */
      @java.lang.Override
      public com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState getState() {
        com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState result =
            com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.forNumber(
                state_);
        return result == null
            ? com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       * setting from ancestors.
       * </pre>
       *
       * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
       * </code>
       *
       * @param value The state to set.
       * @return This builder for chaining.
       */
      public Builder setState(
          com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        state_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
       * setting from ancestors.
       * </pre>
       *
       * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 1;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearState() {
        bitField0_ = (bitField0_ & ~0x00000001);
        state_ = 0;
        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.ComponentSettings.DetectorSettings)
    }

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

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

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

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

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

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

  private int specificSettingsCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object specificSettings_;

  public enum SpecificSettingsCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    CONTAINER_THREAT_DETECTION_SETTINGS(41),
    EVENT_THREAT_DETECTION_SETTINGS(42),
    SECURITY_HEALTH_ANALYTICS_SETTINGS(44),
    WEB_SECURITY_SCANNER_SETTINGS(40),
    SPECIFICSETTINGS_NOT_SET(0);
    private final int value;

    private SpecificSettingsCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SpecificSettingsCase valueOf(int value) {
      return forNumber(value);
    }

    public static SpecificSettingsCase forNumber(int value) {
      switch (value) {
        case 41:
          return CONTAINER_THREAT_DETECTION_SETTINGS;
        case 42:
          return EVENT_THREAT_DETECTION_SETTINGS;
        case 44:
          return SECURITY_HEALTH_ANALYTICS_SETTINGS;
        case 40:
          return WEB_SECURITY_SCANNER_SETTINGS;
        case 0:
          return SPECIFICSETTINGS_NOT_SET;
        default:
          return null;
      }
    }

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

  public SpecificSettingsCase getSpecificSettingsCase() {
    return SpecificSettingsCase.forNumber(specificSettingsCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * The relative resource name of the component settings.
   * Formats:
   *  * `organizations/{organization}/components/{component}/settings`
   *  * `folders/{folder}/components/{component}/settings`
   *  * `projects/{project}/components/{component}/settings`
   *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
   *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
   *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The relative resource name of the component settings.
   * Formats:
   *  * `organizations/{organization}/components/{component}/settings`
   *  * `folders/{folder}/components/{component}/settings`
   *  * `projects/{project}/components/{component}/settings`
   *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
   *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
   *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATE_FIELD_NUMBER = 2;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
   * setting from ancestors.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;</code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
   * setting from ancestors.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;</code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState getState() {
    com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState result =
        com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.forNumber(state_);
    return result == null
        ? com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.UNRECOGNIZED
        : result;
  }

  public static final int PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object projectServiceAccount_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The service account to be used for security center component.
   * The component must have permission to "act as" the service account.
   * </pre>
   *
   * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The projectServiceAccount.
   */
  @java.lang.Override
  public java.lang.String getProjectServiceAccount() {
    java.lang.Object ref = projectServiceAccount_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      projectServiceAccount_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The service account to be used for security center component.
   * The component must have permission to "act as" the service account.
   * </pre>
   *
   * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for projectServiceAccount.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getProjectServiceAccountBytes() {
    java.lang.Object ref = projectServiceAccount_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      projectServiceAccount_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DETECTOR_SETTINGS_FIELD_NUMBER = 4;

  private static final class DetectorSettingsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        defaultEntry =
            com.google.protobuf.MapEntry
                .<java.lang.String,
                    com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
                        .DetectorSettings>
                    newDefaultInstance(
                        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
                            .internal_static_google_cloud_securitycenter_settings_v1beta1_ComponentSettings_DetectorSettingsEntry_descriptor,
                        com.google.protobuf.WireFormat.FieldType.STRING,
                        "",
                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
                        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
                            .DetectorSettings.getDefaultInstance());
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
          java.lang.String,
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
      detectorSettings_;

  private com.google.protobuf.MapField<
          java.lang.String,
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
      internalGetDetectorSettings() {
    if (detectorSettings_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          DetectorSettingsDefaultEntryHolder.defaultEntry);
    }
    return detectorSettings_;
  }

  public int getDetectorSettingsCount() {
    return internalGetDetectorSettings().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Settings for detectors.  Not all detectors must have settings present at
   * each and every level in the hierarchy.  If it is not present the setting
   * will be inherited from its ancestors folders, organizations or the
   * defaults.
   * </pre>
   *
   * <code>
   * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
   * </code>
   */
  @java.lang.Override
  public boolean containsDetectorSettings(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetDetectorSettings().getMap().containsKey(key);
  }
  /** Use {@link #getDetectorSettingsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<
          java.lang.String,
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
      getDetectorSettings() {
    return getDetectorSettingsMap();
  }
  /**
   *
   *
   * <pre>
   * Settings for detectors.  Not all detectors must have settings present at
   * each and every level in the hierarchy.  If it is not present the setting
   * will be inherited from its ancestors folders, organizations or the
   * defaults.
   * </pre>
   *
   * <code>
   * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
   * </code>
   */
  @java.lang.Override
  public java.util.Map<
          java.lang.String,
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
      getDetectorSettingsMap() {
    return internalGetDetectorSettings().getMap();
  }
  /**
   *
   *
   * <pre>
   * Settings for detectors.  Not all detectors must have settings present at
   * each and every level in the hierarchy.  If it is not present the setting
   * will be inherited from its ancestors folders, organizations or the
   * defaults.
   * </pre>
   *
   * <code>
   * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
   * </code>
   */
  @java.lang.Override
  public /* nullable */ com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
          .DetectorSettings
      getDetectorSettingsOrDefault(
          java.lang.String key,
          /* nullable */
          com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
              defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        map = internalGetDetectorSettings().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Settings for detectors.  Not all detectors must have settings present at
   * each and every level in the hierarchy.  If it is not present the setting
   * will be inherited from its ancestors folders, organizations or the
   * defaults.
   * </pre>
   *
   * <code>
   * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
      getDetectorSettingsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        map = internalGetDetectorSettings().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int ETAG_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object etag_ = "";
  /**
   *
   *
   * <pre>
   * Output only. An fingerprint used for optimistic concurrency. If none is provided
   * on updates then the existing metadata will be blindly overwritten.
   * </pre>
   *
   * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The etag.
   */
  @java.lang.Override
  public java.lang.String getEtag() {
    java.lang.Object ref = etag_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      etag_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. An fingerprint used for optimistic concurrency. If none is provided
   * on updates then the existing metadata will be blindly overwritten.
   * </pre>
   *
   * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for etag.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getEtagBytes() {
    java.lang.Object ref = etag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      etag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. The time these settings were last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time these settings were last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time these settings were last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }

  public static final int CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER = 41;
  /**
   *
   *
   * <pre>
   * Container Threate Detection specific settings
   * For component, expect CONTAINER_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
   * </code>
   *
   * @return Whether the containerThreatDetectionSettings field is set.
   */
  @java.lang.Override
  public boolean hasContainerThreatDetectionSettings() {
    return specificSettingsCase_ == 41;
  }
  /**
   *
   *
   * <pre>
   * Container Threate Detection specific settings
   * For component, expect CONTAINER_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
   * </code>
   *
   * @return The containerThreatDetectionSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
      getContainerThreatDetectionSettings() {
    if (specificSettingsCase_ == 41) {
      return (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Container Threate Detection specific settings
   * For component, expect CONTAINER_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettingsOrBuilder
      getContainerThreatDetectionSettingsOrBuilder() {
    if (specificSettingsCase_ == 41) {
      return (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
        .getDefaultInstance();
  }

  public static final int EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER = 42;
  /**
   *
   *
   * <pre>
   * Event Threat Detection specific settings
   * For component, expect EVENT_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
   * </code>
   *
   * @return Whether the eventThreatDetectionSettings field is set.
   */
  @java.lang.Override
  public boolean hasEventThreatDetectionSettings() {
    return specificSettingsCase_ == 42;
  }
  /**
   *
   *
   * <pre>
   * Event Threat Detection specific settings
   * For component, expect EVENT_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
   * </code>
   *
   * @return The eventThreatDetectionSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
      getEventThreatDetectionSettings() {
    if (specificSettingsCase_ == 42) {
      return (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Event Threat Detection specific settings
   * For component, expect EVENT_THREAT_DETECTION
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettingsOrBuilder
      getEventThreatDetectionSettingsOrBuilder() {
    if (specificSettingsCase_ == 42) {
      return (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
        .getDefaultInstance();
  }

  public static final int SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER = 44;
  /**
   *
   *
   * <pre>
   * Security Health Analytics specific settings
   * For component, expect SECURITY_HEALTH_ANALYTICS
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
   * </code>
   *
   * @return Whether the securityHealthAnalyticsSettings field is set.
   */
  @java.lang.Override
  public boolean hasSecurityHealthAnalyticsSettings() {
    return specificSettingsCase_ == 44;
  }
  /**
   *
   *
   * <pre>
   * Security Health Analytics specific settings
   * For component, expect SECURITY_HEALTH_ANALYTICS
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
   * </code>
   *
   * @return The securityHealthAnalyticsSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
      getSecurityHealthAnalyticsSettings() {
    if (specificSettingsCase_ == 44) {
      return (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Security Health Analytics specific settings
   * For component, expect SECURITY_HEALTH_ANALYTICS
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettingsOrBuilder
      getSecurityHealthAnalyticsSettingsOrBuilder() {
    if (specificSettingsCase_ == 44) {
      return (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        .getDefaultInstance();
  }

  public static final int WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER = 40;
  /**
   *
   *
   * <pre>
   * Web Security Scanner specific settings
   * For component, expect WEB_SECURITY_SCANNER
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
   * </code>
   *
   * @return Whether the webSecurityScannerSettings field is set.
   */
  @java.lang.Override
  public boolean hasWebSecurityScannerSettings() {
    return specificSettingsCase_ == 40;
  }
  /**
   *
   *
   * <pre>
   * Web Security Scanner specific settings
   * For component, expect WEB_SECURITY_SCANNER
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
   * </code>
   *
   * @return The webSecurityScannerSettings.
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
      getWebSecurityScannerSettings() {
    if (specificSettingsCase_ == 40) {
      return (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Web Security Scanner specific settings
   * For component, expect WEB_SECURITY_SCANNER
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScannerOrBuilder
      getWebSecurityScannerSettingsOrBuilder() {
    if (specificSettingsCase_ == 40) {
      return (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
          specificSettings_;
    }
    return com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (state_
        != com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState
            .COMPONENT_ENABLEMENT_STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(2, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectServiceAccount_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectServiceAccount_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetDetectorSettings(), DetectorSettingsDefaultEntryHolder.defaultEntry, 4);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_);
    }
    if (updateTime_ != null) {
      output.writeMessage(6, getUpdateTime());
    }
    if (specificSettingsCase_ == 40) {
      output.writeMessage(
          40,
          (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner) specificSettings_);
    }
    if (specificSettingsCase_ == 41) {
      output.writeMessage(
          41,
          (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
              specificSettings_);
    }
    if (specificSettingsCase_ == 42) {
      output.writeMessage(
          42,
          (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
              specificSettings_);
    }
    if (specificSettingsCase_ == 44) {
      output.writeMessage(
          44,
          (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
              specificSettings_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (state_
        != com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState
            .COMPONENT_ENABLEMENT_STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectServiceAccount_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectServiceAccount_);
    }
    for (java.util.Map.Entry<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        entry : internalGetDetectorSettings().getMap().entrySet()) {
      com.google.protobuf.MapEntry<
              java.lang.String,
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
          detectorSettings__ =
              DetectorSettingsDefaultEntryHolder.defaultEntry
                  .newBuilderForType()
                  .setKey(entry.getKey())
                  .setValue(entry.getValue())
                  .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, detectorSettings__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_);
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
    }
    if (specificSettingsCase_ == 40) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              40,
              (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
                  specificSettings_);
    }
    if (specificSettingsCase_ == 41) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              41,
              (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
                  specificSettings_);
    }
    if (specificSettingsCase_ == 42) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              42,
              (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
                  specificSettings_);
    }
    if (specificSettingsCase_ == 44) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              44,
              (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
                  specificSettings_);
    }
    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.ComponentSettings)) {
      return super.equals(obj);
    }
    com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings other =
        (com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings) obj;

    if (!getName().equals(other.getName())) return false;
    if (state_ != other.state_) return false;
    if (!getProjectServiceAccount().equals(other.getProjectServiceAccount())) return false;
    if (!internalGetDetectorSettings().equals(other.internalGetDetectorSettings())) return false;
    if (!getEtag().equals(other.getEtag())) return false;
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (!getSpecificSettingsCase().equals(other.getSpecificSettingsCase())) return false;
    switch (specificSettingsCase_) {
      case 41:
        if (!getContainerThreatDetectionSettings()
            .equals(other.getContainerThreatDetectionSettings())) return false;
        break;
      case 42:
        if (!getEventThreatDetectionSettings().equals(other.getEventThreatDetectionSettings()))
          return false;
        break;
      case 44:
        if (!getSecurityHealthAnalyticsSettings()
            .equals(other.getSecurityHealthAnalyticsSettings())) return false;
        break;
      case 40:
        if (!getWebSecurityScannerSettings().equals(other.getWebSecurityScannerSettings()))
          return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getProjectServiceAccount().hashCode();
    if (!internalGetDetectorSettings().getMap().isEmpty()) {
      hash = (37 * hash) + DETECTOR_SETTINGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetDetectorSettings().hashCode();
    }
    hash = (37 * hash) + ETAG_FIELD_NUMBER;
    hash = (53 * hash) + getEtag().hashCode();
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    switch (specificSettingsCase_) {
      case 41:
        hash = (37 * hash) + CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER;
        hash = (53 * hash) + getContainerThreatDetectionSettings().hashCode();
        break;
      case 42:
        hash = (37 * hash) + EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER;
        hash = (53 * hash) + getEventThreatDetectionSettings().hashCode();
        break;
      case 44:
        hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER;
        hash = (53 * hash) + getSecurityHealthAnalyticsSettings().hashCode();
        break;
      case 40:
        hash = (37 * hash) + WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER;
        hash = (53 * hash) + getWebSecurityScannerSettings().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

  public static com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings 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.ComponentSettings 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.ComponentSettings 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.ComponentSettings
      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.ComponentSettings
      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.ComponentSettings 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.ComponentSettings 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.ComponentSettings 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>
   * Component Settings for Security Command Center
   * </pre>
   *
   * Protobuf type {@code google.cloud.securitycenter.settings.v1beta1.ComponentSettings}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.settings.v1beta1.ComponentSettings)
      com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.securitycenter.settings.v1beta1.ComponentSettingsProto
          .internal_static_google_cloud_securitycenter_settings_v1beta1_ComponentSettings_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 4:
          return internalGetDetectorSettings();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 4:
          return internalGetMutableDetectorSettings();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @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_ComponentSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.class,
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.Builder.class);
    }

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      state_ = 0;
      projectServiceAccount_ = "";
      internalGetMutableDetectorSettings().clear();
      etag_ = "";
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      if (containerThreatDetectionSettingsBuilder_ != null) {
        containerThreatDetectionSettingsBuilder_.clear();
      }
      if (eventThreatDetectionSettingsBuilder_ != null) {
        eventThreatDetectionSettingsBuilder_.clear();
      }
      if (securityHealthAnalyticsSettingsBuilder_ != null) {
        securityHealthAnalyticsSettingsBuilder_.clear();
      }
      if (webSecurityScannerSettingsBuilder_ != null) {
        webSecurityScannerSettingsBuilder_.clear();
      }
      specificSettingsCase_ = 0;
      specificSettings_ = 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_ComponentSettings_descriptor;
    }

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

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

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

    private void buildPartial0(
        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.projectServiceAccount_ = projectServiceAccount_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.detectorSettings_ = internalGetDetectorSettings();
        result.detectorSettings_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.etag_ = etag_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
    }

    private void buildPartialOneofs(
        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings result) {
      result.specificSettingsCase_ = specificSettingsCase_;
      result.specificSettings_ = this.specificSettings_;
      if (specificSettingsCase_ == 41 && containerThreatDetectionSettingsBuilder_ != null) {
        result.specificSettings_ = containerThreatDetectionSettingsBuilder_.build();
      }
      if (specificSettingsCase_ == 42 && eventThreatDetectionSettingsBuilder_ != null) {
        result.specificSettings_ = eventThreatDetectionSettingsBuilder_.build();
      }
      if (specificSettingsCase_ == 44 && securityHealthAnalyticsSettingsBuilder_ != null) {
        result.specificSettings_ = securityHealthAnalyticsSettingsBuilder_.build();
      }
      if (specificSettingsCase_ == 40 && webSecurityScannerSettingsBuilder_ != null) {
        result.specificSettings_ = webSecurityScannerSettingsBuilder_.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.ComponentSettings) {
        return mergeFrom(
            (com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings other) {
      if (other
          == com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
              .getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getProjectServiceAccount().isEmpty()) {
        projectServiceAccount_ = other.projectServiceAccount_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      internalGetMutableDetectorSettings().mergeFrom(other.internalGetDetectorSettings());
      bitField0_ |= 0x00000008;
      if (!other.getEtag().isEmpty()) {
        etag_ = other.etag_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      switch (other.getSpecificSettingsCase()) {
        case CONTAINER_THREAT_DETECTION_SETTINGS:
          {
            mergeContainerThreatDetectionSettings(other.getContainerThreatDetectionSettings());
            break;
          }
        case EVENT_THREAT_DETECTION_SETTINGS:
          {
            mergeEventThreatDetectionSettings(other.getEventThreatDetectionSettings());
            break;
          }
        case SECURITY_HEALTH_ANALYTICS_SETTINGS:
          {
            mergeSecurityHealthAnalyticsSettings(other.getSecurityHealthAnalyticsSettings());
            break;
          }
        case WEB_SECURITY_SCANNER_SETTINGS:
          {
            mergeWebSecurityScannerSettings(other.getWebSecurityScannerSettings());
            break;
          }
        case SPECIFICSETTINGS_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 16:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
            case 26:
              {
                projectServiceAccount_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                com.google.protobuf.MapEntry<
                        java.lang.String,
                        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
                            .DetectorSettings>
                    detectorSettings__ =
                        input.readMessage(
                            DetectorSettingsDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                internalGetMutableDetectorSettings()
                    .getMutableMap()
                    .put(detectorSettings__.getKey(), detectorSettings__.getValue());
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                etag_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 322:
              {
                input.readMessage(
                    getWebSecurityScannerSettingsFieldBuilder().getBuilder(), extensionRegistry);
                specificSettingsCase_ = 40;
                break;
              } // case 322
            case 330:
              {
                input.readMessage(
                    getContainerThreatDetectionSettingsFieldBuilder().getBuilder(),
                    extensionRegistry);
                specificSettingsCase_ = 41;
                break;
              } // case 330
            case 338:
              {
                input.readMessage(
                    getEventThreatDetectionSettingsFieldBuilder().getBuilder(), extensionRegistry);
                specificSettingsCase_ = 42;
                break;
              } // case 338
            case 354:
              {
                input.readMessage(
                    getSecurityHealthAnalyticsSettingsFieldBuilder().getBuilder(),
                    extensionRegistry);
                specificSettingsCase_ = 44;
                break;
              } // case 354
            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 specificSettingsCase_ = 0;
    private java.lang.Object specificSettings_;

    public SpecificSettingsCase getSpecificSettingsCase() {
      return SpecificSettingsCase.forNumber(specificSettingsCase_);
    }

    public Builder clearSpecificSettings() {
      specificSettingsCase_ = 0;
      specificSettings_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * The relative resource name of the component settings.
     * Formats:
     *  * `organizations/{organization}/components/{component}/settings`
     *  * `folders/{folder}/components/{component}/settings`
     *  * `projects/{project}/components/{component}/settings`
     *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The relative resource name of the component settings.
     * Formats:
     *  * `organizations/{organization}/components/{component}/settings`
     *  * `folders/{folder}/components/{component}/settings`
     *  * `projects/{project}/components/{component}/settings`
     *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The relative resource name of the component settings.
     * Formats:
     *  * `organizations/{organization}/components/{component}/settings`
     *  * `folders/{folder}/components/{component}/settings`
     *  * `projects/{project}/components/{component}/settings`
     *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The relative resource name of the component settings.
     * Formats:
     *  * `organizations/{organization}/components/{component}/settings`
     *  * `folders/{folder}/components/{component}/settings`
     *  * `projects/{project}/components/{component}/settings`
     *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The relative resource name of the component settings.
     * Formats:
     *  * `organizations/{organization}/components/{component}/settings`
     *  * `folders/{folder}/components/{component}/settings`
     *  * `projects/{project}/components/{component}/settings`
     *  * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings`
     *  * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings`
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
     * </code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState getState() {
      com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState result =
          com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.forNumber(
              state_);
      return result == null
          ? com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
     * </code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(
        com.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * ENABLE to enable component, DISABLE to disable and INHERIT to inherit
     * setting from ancestors.
     * </pre>
     *
     * <code>.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000002);
      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object projectServiceAccount_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The service account to be used for security center component.
     * The component must have permission to "act as" the service account.
     * </pre>
     *
     * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The projectServiceAccount.
     */
    public java.lang.String getProjectServiceAccount() {
      java.lang.Object ref = projectServiceAccount_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        projectServiceAccount_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account to be used for security center component.
     * The component must have permission to "act as" the service account.
     * </pre>
     *
     * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for projectServiceAccount.
     */
    public com.google.protobuf.ByteString getProjectServiceAccountBytes() {
      java.lang.Object ref = projectServiceAccount_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        projectServiceAccount_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account to be used for security center component.
     * The component must have permission to "act as" the service account.
     * </pre>
     *
     * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The projectServiceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setProjectServiceAccount(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      projectServiceAccount_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account to be used for security center component.
     * The component must have permission to "act as" the service account.
     * </pre>
     *
     * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearProjectServiceAccount() {
      projectServiceAccount_ = getDefaultInstance().getProjectServiceAccount();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The service account to be used for security center component.
     * The component must have permission to "act as" the service account.
     * </pre>
     *
     * <code>string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for projectServiceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setProjectServiceAccountBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      projectServiceAccount_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        detectorSettings_;

    private com.google.protobuf.MapField<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        internalGetDetectorSettings() {
      if (detectorSettings_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            DetectorSettingsDefaultEntryHolder.defaultEntry);
      }
      return detectorSettings_;
    }

    private com.google.protobuf.MapField<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        internalGetMutableDetectorSettings() {
      if (detectorSettings_ == null) {
        detectorSettings_ =
            com.google.protobuf.MapField.newMapField(
                DetectorSettingsDefaultEntryHolder.defaultEntry);
      }
      if (!detectorSettings_.isMutable()) {
        detectorSettings_ = detectorSettings_.copy();
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return detectorSettings_;
    }

    public int getDetectorSettingsCount() {
      return internalGetDetectorSettings().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    @java.lang.Override
    public boolean containsDetectorSettings(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetDetectorSettings().getMap().containsKey(key);
    }
    /** Use {@link #getDetectorSettingsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        getDetectorSettings() {
      return getDetectorSettingsMap();
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    @java.lang.Override
    public java.util.Map<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        getDetectorSettingsMap() {
      return internalGetDetectorSettings().getMap();
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    @java.lang.Override
    public /* nullable */ com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings
            .DetectorSettings
        getDetectorSettingsOrDefault(
            java.lang.String key,
            /* nullable */
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
                defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<
              java.lang.String,
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
          map = internalGetDetectorSettings().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings
        getDetectorSettingsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<
              java.lang.String,
              com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
          map = internalGetDetectorSettings().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearDetectorSettings() {
      bitField0_ = (bitField0_ & ~0x00000008);
      internalGetMutableDetectorSettings().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    public Builder removeDetectorSettings(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableDetectorSettings().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<
            java.lang.String,
            com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
        getMutableDetectorSettings() {
      bitField0_ |= 0x00000008;
      return internalGetMutableDetectorSettings().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    public Builder putDetectorSettings(
        java.lang.String key,
        com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableDetectorSettings().getMutableMap().put(key, value);
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Settings for detectors.  Not all detectors must have settings present at
     * each and every level in the hierarchy.  If it is not present the setting
     * will be inherited from its ancestors folders, organizations or the
     * defaults.
     * </pre>
     *
     * <code>
     * map&lt;string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings&gt; detector_settings = 4;
     * </code>
     */
    public Builder putAllDetectorSettings(
        java.util.Map<
                java.lang.String,
                com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings>
            values) {
      internalGetMutableDetectorSettings().getMutableMap().putAll(values);
      bitField0_ |= 0x00000008;
      return this;
    }

    private java.lang.Object etag_ = "";
    /**
     *
     *
     * <pre>
     * Output only. An fingerprint used for optimistic concurrency. If none is provided
     * on updates then the existing metadata will be blindly overwritten.
     * </pre>
     *
     * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The etag.
     */
    public java.lang.String getEtag() {
      java.lang.Object ref = etag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        etag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. An fingerprint used for optimistic concurrency. If none is provided
     * on updates then the existing metadata will be blindly overwritten.
     * </pre>
     *
     * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for etag.
     */
    public com.google.protobuf.ByteString getEtagBytes() {
      java.lang.Object ref = etag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        etag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. An fingerprint used for optimistic concurrency. If none is provided
     * on updates then the existing metadata will be blindly overwritten.
     * </pre>
     *
     * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The etag to set.
     * @return This builder for chaining.
     */
    public Builder setEtag(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      etag_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. An fingerprint used for optimistic concurrency. If none is provided
     * on updates then the existing metadata will be blindly overwritten.
     * </pre>
     *
     * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearEtag() {
      etag_ = getDefaultInstance().getEtag();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. An fingerprint used for optimistic concurrency. If none is provided
     * on updates then the existing metadata will be blindly overwritten.
     * </pre>
     *
     * <code>string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for etag to set.
     * @return This builder for chaining.
     */
    public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      etag_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
      } else {
        updateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time these settings were last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings,
            com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                .Builder,
            com.google.cloud.securitycenter.settings.v1beta1
                .ContainerThreatDetectionSettingsOrBuilder>
        containerThreatDetectionSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     *
     * @return Whether the containerThreatDetectionSettings field is set.
     */
    @java.lang.Override
    public boolean hasContainerThreatDetectionSettings() {
      return specificSettingsCase_ == 41;
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     *
     * @return The containerThreatDetectionSettings.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
        getContainerThreatDetectionSettings() {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 41) {
          return (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
            .getDefaultInstance();
      } else {
        if (specificSettingsCase_ == 41) {
          return containerThreatDetectionSettingsBuilder_.getMessage();
        }
        return com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    public Builder setContainerThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings value) {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        specificSettings_ = value;
        onChanged();
      } else {
        containerThreatDetectionSettingsBuilder_.setMessage(value);
      }
      specificSettingsCase_ = 41;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    public Builder setContainerThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings.Builder
            builderForValue) {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        specificSettings_ = builderForValue.build();
        onChanged();
      } else {
        containerThreatDetectionSettingsBuilder_.setMessage(builderForValue.build());
      }
      specificSettingsCase_ = 41;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    public Builder mergeContainerThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings value) {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 41
            && specificSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                    .getDefaultInstance()) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                  .newBuilder(
                      (com.google.cloud.securitycenter.settings.v1beta1
                              .ContainerThreatDetectionSettings)
                          specificSettings_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          specificSettings_ = value;
        }
        onChanged();
      } else {
        if (specificSettingsCase_ == 41) {
          containerThreatDetectionSettingsBuilder_.mergeFrom(value);
        } else {
          containerThreatDetectionSettingsBuilder_.setMessage(value);
        }
      }
      specificSettingsCase_ = 41;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    public Builder clearContainerThreatDetectionSettings() {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 41) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
          onChanged();
        }
      } else {
        if (specificSettingsCase_ == 41) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
        }
        containerThreatDetectionSettingsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings.Builder
        getContainerThreatDetectionSettingsBuilder() {
      return getContainerThreatDetectionSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1
            .ContainerThreatDetectionSettingsOrBuilder
        getContainerThreatDetectionSettingsOrBuilder() {
      if ((specificSettingsCase_ == 41) && (containerThreatDetectionSettingsBuilder_ != null)) {
        return containerThreatDetectionSettingsBuilder_.getMessageOrBuilder();
      } else {
        if (specificSettingsCase_ == 41) {
          return (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Container Threate Detection specific settings
     * For component, expect CONTAINER_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings,
            com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                .Builder,
            com.google.cloud.securitycenter.settings.v1beta1
                .ContainerThreatDetectionSettingsOrBuilder>
        getContainerThreatDetectionSettingsFieldBuilder() {
      if (containerThreatDetectionSettingsBuilder_ == null) {
        if (!(specificSettingsCase_ == 41)) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                  .getDefaultInstance();
        }
        containerThreatDetectionSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings,
                com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings
                    .Builder,
                com.google.cloud.securitycenter.settings.v1beta1
                    .ContainerThreatDetectionSettingsOrBuilder>(
                (com.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings)
                    specificSettings_,
                getParentForChildren(),
                isClean());
        specificSettings_ = null;
      }
      specificSettingsCase_ = 41;
      onChanged();
      return containerThreatDetectionSettingsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings,
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettingsOrBuilder>
        eventThreatDetectionSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     *
     * @return Whether the eventThreatDetectionSettings field is set.
     */
    @java.lang.Override
    public boolean hasEventThreatDetectionSettings() {
      return specificSettingsCase_ == 42;
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     *
     * @return The eventThreatDetectionSettings.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
        getEventThreatDetectionSettings() {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 42) {
          return (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
            .getDefaultInstance();
      } else {
        if (specificSettingsCase_ == 42) {
          return eventThreatDetectionSettingsBuilder_.getMessage();
        }
        return com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    public Builder setEventThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings value) {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        specificSettings_ = value;
        onChanged();
      } else {
        eventThreatDetectionSettingsBuilder_.setMessage(value);
      }
      specificSettingsCase_ = 42;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    public Builder setEventThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings.Builder
            builderForValue) {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        specificSettings_ = builderForValue.build();
        onChanged();
      } else {
        eventThreatDetectionSettingsBuilder_.setMessage(builderForValue.build());
      }
      specificSettingsCase_ = 42;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    public Builder mergeEventThreatDetectionSettings(
        com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings value) {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 42
            && specificSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
                    .getDefaultInstance()) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
                  .newBuilder(
                      (com.google.cloud.securitycenter.settings.v1beta1
                              .EventThreatDetectionSettings)
                          specificSettings_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          specificSettings_ = value;
        }
        onChanged();
      } else {
        if (specificSettingsCase_ == 42) {
          eventThreatDetectionSettingsBuilder_.mergeFrom(value);
        } else {
          eventThreatDetectionSettingsBuilder_.setMessage(value);
        }
      }
      specificSettingsCase_ = 42;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    public Builder clearEventThreatDetectionSettings() {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 42) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
          onChanged();
        }
      } else {
        if (specificSettingsCase_ == 42) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
        }
        eventThreatDetectionSettingsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings.Builder
        getEventThreatDetectionSettingsBuilder() {
      return getEventThreatDetectionSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettingsOrBuilder
        getEventThreatDetectionSettingsOrBuilder() {
      if ((specificSettingsCase_ == 42) && (eventThreatDetectionSettingsBuilder_ != null)) {
        return eventThreatDetectionSettingsBuilder_.getMessageOrBuilder();
      } else {
        if (specificSettingsCase_ == 42) {
          return (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Event Threat Detection specific settings
     * For component, expect EVENT_THREAT_DETECTION
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings,
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettingsOrBuilder>
        getEventThreatDetectionSettingsFieldBuilder() {
      if (eventThreatDetectionSettingsBuilder_ == null) {
        if (!(specificSettingsCase_ == 42)) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
                  .getDefaultInstance();
        }
        eventThreatDetectionSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings,
                com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings
                    .Builder,
                com.google.cloud.securitycenter.settings.v1beta1
                    .EventThreatDetectionSettingsOrBuilder>(
                (com.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings)
                    specificSettings_,
                getParentForChildren(),
                isClean());
        specificSettings_ = null;
      }
      specificSettingsCase_ = 42;
      onChanged();
      return eventThreatDetectionSettingsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .Builder,
            com.google.cloud.securitycenter.settings.v1beta1
                .SecurityHealthAnalyticsSettingsOrBuilder>
        securityHealthAnalyticsSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     *
     * @return Whether the securityHealthAnalyticsSettings field is set.
     */
    @java.lang.Override
    public boolean hasSecurityHealthAnalyticsSettings() {
      return specificSettingsCase_ == 44;
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     *
     * @return The securityHealthAnalyticsSettings.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
        getSecurityHealthAnalyticsSettings() {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 44) {
          return (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .getDefaultInstance();
      } else {
        if (specificSettingsCase_ == 44) {
          return securityHealthAnalyticsSettingsBuilder_.getMessage();
        }
        return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    public Builder setSecurityHealthAnalyticsSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings value) {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        specificSettings_ = value;
        onChanged();
      } else {
        securityHealthAnalyticsSettingsBuilder_.setMessage(value);
      }
      specificSettingsCase_ = 44;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    public Builder setSecurityHealthAnalyticsSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.Builder
            builderForValue) {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        specificSettings_ = builderForValue.build();
        onChanged();
      } else {
        securityHealthAnalyticsSettingsBuilder_.setMessage(builderForValue.build());
      }
      specificSettingsCase_ = 44;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    public Builder mergeSecurityHealthAnalyticsSettings(
        com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings value) {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 44
            && specificSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .getDefaultInstance()) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .newBuilder(
                      (com.google.cloud.securitycenter.settings.v1beta1
                              .SecurityHealthAnalyticsSettings)
                          specificSettings_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          specificSettings_ = value;
        }
        onChanged();
      } else {
        if (specificSettingsCase_ == 44) {
          securityHealthAnalyticsSettingsBuilder_.mergeFrom(value);
        } else {
          securityHealthAnalyticsSettingsBuilder_.setMessage(value);
        }
      }
      specificSettingsCase_ = 44;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    public Builder clearSecurityHealthAnalyticsSettings() {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 44) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
          onChanged();
        }
      } else {
        if (specificSettingsCase_ == 44) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
        }
        securityHealthAnalyticsSettingsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.Builder
        getSecurityHealthAnalyticsSettingsBuilder() {
      return getSecurityHealthAnalyticsSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettingsOrBuilder
        getSecurityHealthAnalyticsSettingsOrBuilder() {
      if ((specificSettingsCase_ == 44) && (securityHealthAnalyticsSettingsBuilder_ != null)) {
        return securityHealthAnalyticsSettingsBuilder_.getMessageOrBuilder();
      } else {
        if (specificSettingsCase_ == 44) {
          return (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Security Health Analytics specific settings
     * For component, expect SECURITY_HEALTH_ANALYTICS
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings,
            com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                .Builder,
            com.google.cloud.securitycenter.settings.v1beta1
                .SecurityHealthAnalyticsSettingsOrBuilder>
        getSecurityHealthAnalyticsSettingsFieldBuilder() {
      if (securityHealthAnalyticsSettingsBuilder_ == null) {
        if (!(specificSettingsCase_ == 44)) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                  .getDefaultInstance();
        }
        securityHealthAnalyticsSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings,
                com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings
                    .Builder,
                com.google.cloud.securitycenter.settings.v1beta1
                    .SecurityHealthAnalyticsSettingsOrBuilder>(
                (com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings)
                    specificSettings_,
                getParentForChildren(),
                isClean());
        specificSettings_ = null;
      }
      specificSettingsCase_ = 44;
      onChanged();
      return securityHealthAnalyticsSettingsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner,
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScannerOrBuilder>
        webSecurityScannerSettingsBuilder_;
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     *
     * @return Whether the webSecurityScannerSettings field is set.
     */
    @java.lang.Override
    public boolean hasWebSecurityScannerSettings() {
      return specificSettingsCase_ == 40;
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     *
     * @return The webSecurityScannerSettings.
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
        getWebSecurityScannerSettings() {
      if (webSecurityScannerSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 40) {
          return (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
            .getDefaultInstance();
      } else {
        if (specificSettingsCase_ == 40) {
          return webSecurityScannerSettingsBuilder_.getMessage();
        }
        return com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    public Builder setWebSecurityScannerSettings(
        com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner value) {
      if (webSecurityScannerSettingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        specificSettings_ = value;
        onChanged();
      } else {
        webSecurityScannerSettingsBuilder_.setMessage(value);
      }
      specificSettingsCase_ = 40;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    public Builder setWebSecurityScannerSettings(
        com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.Builder
            builderForValue) {
      if (webSecurityScannerSettingsBuilder_ == null) {
        specificSettings_ = builderForValue.build();
        onChanged();
      } else {
        webSecurityScannerSettingsBuilder_.setMessage(builderForValue.build());
      }
      specificSettingsCase_ = 40;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    public Builder mergeWebSecurityScannerSettings(
        com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner value) {
      if (webSecurityScannerSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 40
            && specificSettings_
                != com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
                    .getDefaultInstance()) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.newBuilder(
                      (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
                          specificSettings_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          specificSettings_ = value;
        }
        onChanged();
      } else {
        if (specificSettingsCase_ == 40) {
          webSecurityScannerSettingsBuilder_.mergeFrom(value);
        } else {
          webSecurityScannerSettingsBuilder_.setMessage(value);
        }
      }
      specificSettingsCase_ = 40;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    public Builder clearWebSecurityScannerSettings() {
      if (webSecurityScannerSettingsBuilder_ == null) {
        if (specificSettingsCase_ == 40) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
          onChanged();
        }
      } else {
        if (specificSettingsCase_ == 40) {
          specificSettingsCase_ = 0;
          specificSettings_ = null;
        }
        webSecurityScannerSettingsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    public com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.Builder
        getWebSecurityScannerSettingsBuilder() {
      return getWebSecurityScannerSettingsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScannerOrBuilder
        getWebSecurityScannerSettingsOrBuilder() {
      if ((specificSettingsCase_ == 40) && (webSecurityScannerSettingsBuilder_ != null)) {
        return webSecurityScannerSettingsBuilder_.getMessageOrBuilder();
      } else {
        if (specificSettingsCase_ == 40) {
          return (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
              specificSettings_;
        }
        return com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Web Security Scanner specific settings
     * For component, expect WEB_SECURITY_SCANNER
     * </pre>
     *
     * <code>
     * .google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner,
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.Builder,
            com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScannerOrBuilder>
        getWebSecurityScannerSettingsFieldBuilder() {
      if (webSecurityScannerSettingsBuilder_ == null) {
        if (!(specificSettingsCase_ == 40)) {
          specificSettings_ =
              com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner
                  .getDefaultInstance();
        }
        webSecurityScannerSettingsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner,
                com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner.Builder,
                com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScannerOrBuilder>(
                (com.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner)
                    specificSettings_,
                getParentForChildren(),
                isClean());
        specificSettings_ = null;
      }
      specificSettingsCase_ = 40;
      onChanged();
      return webSecurityScannerSettingsBuilder_;
    }

    @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.ComponentSettings)
  }

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

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

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

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

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

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