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

package com.google.cloud.securitycenter.v1;

public interface CustomConfigOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * The CEL expression to evaluate to produce findings. When the expression
   * evaluates to true against a resource, a finding is generated.
   * </pre>
   *
   * <code>.google.type.Expr predicate = 1;</code>
   *
   * @return Whether the predicate field is set.
   */
  boolean hasPredicate();
  /**
   *
   *
   * <pre>
   * The CEL expression to evaluate to produce findings. When the expression
   * evaluates to true against a resource, a finding is generated.
   * </pre>
   *
   * <code>.google.type.Expr predicate = 1;</code>
   *
   * @return The predicate.
   */
  com.google.type.Expr getPredicate();
  /**
   *
   *
   * <pre>
   * The CEL expression to evaluate to produce findings. When the expression
   * evaluates to true against a resource, a finding is generated.
   * </pre>
   *
   * <code>.google.type.Expr predicate = 1;</code>
   */
  com.google.type.ExprOrBuilder getPredicateOrBuilder();

  /**
   *
   *
   * <pre>
   * Custom output properties.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
   *
   * @return Whether the customOutput field is set.
   */
  boolean hasCustomOutput();
  /**
   *
   *
   * <pre>
   * Custom output properties.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
   *
   * @return The customOutput.
   */
  com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec getCustomOutput();
  /**
   *
   *
   * <pre>
   * Custom output properties.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
   */
  com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder
      getCustomOutputOrBuilder();

  /**
   *
   *
   * <pre>
   * The resource types that the custom module operates on. Each custom module
   * can specify up to 5 resource types.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
   * </code>
   *
   * @return Whether the resourceSelector field is set.
   */
  boolean hasResourceSelector();
  /**
   *
   *
   * <pre>
   * The resource types that the custom module operates on. Each custom module
   * can specify up to 5 resource types.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
   * </code>
   *
   * @return The resourceSelector.
   */
  com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector getResourceSelector();
  /**
   *
   *
   * <pre>
   * The resource types that the custom module operates on. Each custom module
   * can specify up to 5 resource types.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
   * </code>
   */
  com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder
      getResourceSelectorOrBuilder();

  /**
   *
   *
   * <pre>
   * The severity to assign to findings generated by the module.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;</code>
   *
   * @return The enum numeric value on the wire for severity.
   */
  int getSeverityValue();
  /**
   *
   *
   * <pre>
   * The severity to assign to findings generated by the module.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;</code>
   *
   * @return The severity.
   */
  com.google.cloud.securitycenter.v1.CustomConfig.Severity getSeverity();

  /**
   *
   *
   * <pre>
   * Text that describes the vulnerability or misconfiguration that the custom
   * module detects. This explanation is returned with each finding instance to
   * help investigators understand the detected issue. The text must be enclosed
   * in quotation marks.
   * </pre>
   *
   * <code>string description = 5;</code>
   *
   * @return The description.
   */
  java.lang.String getDescription();
  /**
   *
   *
   * <pre>
   * Text that describes the vulnerability or misconfiguration that the custom
   * module detects. This explanation is returned with each finding instance to
   * help investigators understand the detected issue. The text must be enclosed
   * in quotation marks.
   * </pre>
   *
   * <code>string description = 5;</code>
   *
   * @return The bytes for description.
   */
  com.google.protobuf.ByteString getDescriptionBytes();

  /**
   *
   *
   * <pre>
   * An explanation of the recommended steps that security teams can take to
   * resolve the detected issue. This explanation is returned with each finding
   * generated by this module in the `nextSteps` property of the finding JSON.
   * </pre>
   *
   * <code>string recommendation = 6;</code>
   *
   * @return The recommendation.
   */
  java.lang.String getRecommendation();
  /**
   *
   *
   * <pre>
   * An explanation of the recommended steps that security teams can take to
   * resolve the detected issue. This explanation is returned with each finding
   * generated by this module in the `nextSteps` property of the finding JSON.
   * </pre>
   *
   * <code>string recommendation = 6;</code>
   *
   * @return The bytes for recommendation.
   */
  com.google.protobuf.ByteString getRecommendationBytes();
}
