/*
 * 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/websecurityscanner/v1/scan_run_error_trace.proto

package com.google.cloud.websecurityscanner.v1;

public interface ScanRunErrorTraceOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Output only. Indicates the error reason code.
   * </pre>
   *
   * <code>.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;</code>
   *
   * @return The enum numeric value on the wire for code.
   */
  int getCodeValue();
  /**
   *
   *
   * <pre>
   * Output only. Indicates the error reason code.
   * </pre>
   *
   * <code>.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1;</code>
   *
   * @return The code.
   */
  com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode();

  /**
   *
   *
   * <pre>
   * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
   * message encountered during scan configuration validation that is performed
   * before each scan run.
   * </pre>
   *
   * <code>.google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;</code>
   *
   * @return Whether the scanConfigError field is set.
   */
  boolean hasScanConfigError();
  /**
   *
   *
   * <pre>
   * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
   * message encountered during scan configuration validation that is performed
   * before each scan run.
   * </pre>
   *
   * <code>.google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;</code>
   *
   * @return The scanConfigError.
   */
  com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError();
  /**
   *
   *
   * <pre>
   * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
   * message encountered during scan configuration validation that is performed
   * before each scan run.
   * </pre>
   *
   * <code>.google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;</code>
   */
  com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
   * common HTTP error code, if such is available. For example, if this code is
   * 404, the scan has encountered too many NOT_FOUND responses.
   * </pre>
   *
   * <code>int32 most_common_http_error_code = 3;</code>
   *
   * @return The mostCommonHttpErrorCode.
   */
  int getMostCommonHttpErrorCode();
}
