<?php
/*
 * Copyright 2014 Google Inc.
 *
 * 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
 *
 * http://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.
 */

namespace Google\Service\ThreatIntelligenceService;

class PublicExploit extends \Google\Model
{
  /**
   * Unspecified exploit grade.
   */
  public const EXPLOIT_GRADE_EXPLOIT_GRADE_UNSPECIFIED = 'EXPLOIT_GRADE_UNSPECIFIED';
  /**
   * Unevaluated exploit grade.
   */
  public const EXPLOIT_GRADE_UNEVALUATED = 'UNEVALUATED';
  /**
   * Proof-of-concept exploit grade.
   */
  public const EXPLOIT_GRADE_PROOF_OF_CONCEPT = 'PROOF_OF_CONCEPT';
  /**
   * Non-weaponized exploit grade.
   */
  public const EXPLOIT_GRADE_NON_WEAPONIZED = 'NON_WEAPONIZED';
  /**
   * Weaponized exploit grade.
   */
  public const EXPLOIT_GRADE_WEAPONIZED = 'WEAPONIZED';
  /**
   * Scanner exploit grade.
   */
  public const EXPLOIT_GRADE_SCANNER = 'SCANNER';
  /**
   * Fake exploit grade.
   */
  public const EXPLOIT_GRADE_FAKE = 'FAKE';
  /**
   * Unspecified exploit reliability.
   */
  public const EXPLOIT_RELIABILITY_EXPLOIT_RELIABILITY_UNSPECIFIED = 'EXPLOIT_RELIABILITY_UNSPECIFIED';
  /**
   * Confirmed exploit reliability.
   */
  public const EXPLOIT_RELIABILITY_UNREVIEWED = 'UNREVIEWED';
  /**
   * Uncorroborated exploit reliability.
   */
  public const EXPLOIT_RELIABILITY_REVIEWED = 'REVIEWED';
  /**
   * Unconfirmed exploit reliability.
   */
  public const EXPLOIT_RELIABILITY_TESTED = 'TESTED';
  /**
   * Optional. The grade of the exploit. Ex: "non-weaponized".
   *
   * @var string
   */
  public $exploitGrade;
  /**
   * Required. The name of the exploit. Ex: "Magentounauth.php.txt".
   *
   * @var string
   */
  public $exploitName;
  /**
   * Optional. The reliability of the exploit. Ex: "Unreviewed".
   *
   * @var string
   */
  public $exploitReliability;
  /**
   * Optional. The release time of the exploit.
   *
   * @var string
   */
  public $releaseTime;
  /**
   * Optional. The size of the exploit.
   *
   * @var string
   */
  public $sizeBytes;
  /**
   * Optional. The URI of the exploit.
   *
   * @var string
   */
  public $uri;

  /**
   * Optional. The grade of the exploit. Ex: "non-weaponized".
   *
   * Accepted values: EXPLOIT_GRADE_UNSPECIFIED, UNEVALUATED, PROOF_OF_CONCEPT,
   * NON_WEAPONIZED, WEAPONIZED, SCANNER, FAKE
   *
   * @param self::EXPLOIT_GRADE_* $exploitGrade
   */
  public function setExploitGrade($exploitGrade)
  {
    $this->exploitGrade = $exploitGrade;
  }
  /**
   * @return self::EXPLOIT_GRADE_*
   */
  public function getExploitGrade()
  {
    return $this->exploitGrade;
  }
  /**
   * Required. The name of the exploit. Ex: "Magentounauth.php.txt".
   *
   * @param string $exploitName
   */
  public function setExploitName($exploitName)
  {
    $this->exploitName = $exploitName;
  }
  /**
   * @return string
   */
  public function getExploitName()
  {
    return $this->exploitName;
  }
  /**
   * Optional. The reliability of the exploit. Ex: "Unreviewed".
   *
   * Accepted values: EXPLOIT_RELIABILITY_UNSPECIFIED, UNREVIEWED, REVIEWED,
   * TESTED
   *
   * @param self::EXPLOIT_RELIABILITY_* $exploitReliability
   */
  public function setExploitReliability($exploitReliability)
  {
    $this->exploitReliability = $exploitReliability;
  }
  /**
   * @return self::EXPLOIT_RELIABILITY_*
   */
  public function getExploitReliability()
  {
    return $this->exploitReliability;
  }
  /**
   * Optional. The release time of the exploit.
   *
   * @param string $releaseTime
   */
  public function setReleaseTime($releaseTime)
  {
    $this->releaseTime = $releaseTime;
  }
  /**
   * @return string
   */
  public function getReleaseTime()
  {
    return $this->releaseTime;
  }
  /**
   * Optional. The size of the exploit.
   *
   * @param string $sizeBytes
   */
  public function setSizeBytes($sizeBytes)
  {
    $this->sizeBytes = $sizeBytes;
  }
  /**
   * @return string
   */
  public function getSizeBytes()
  {
    return $this->sizeBytes;
  }
  /**
   * Optional. The URI of the exploit.
   *
   * @param string $uri
   */
  public function setUri($uri)
  {
    $this->uri = $uri;
  }
  /**
   * @return string
   */
  public function getUri()
  {
    return $this->uri;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublicExploit::class, 'Google_Service_ThreatIntelligenceService_PublicExploit');
