/*
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.safebrowsing.v4.model;

/**
 * Model definition for GoogleSecuritySafebrowsingV4ThreatHit.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Safe Browsing API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleSecuritySafebrowsingV4ThreatHit extends com.google.api.client.json.GenericJson {

  /**
   * Client-reported identification.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleSecuritySafebrowsingV4ClientInfo clientInfo;

  /**
   * The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("entry")
  private GoogleSecuritySafebrowsingV4ThreatEntry entry__;

  /**
   * The platform type reported.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String platformType;

  /**
   * The resources related to the threat hit.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleSecuritySafebrowsingV4ThreatHitThreatSource> resources;

  /**
   * The threat type reported.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String threatType;

  /**
   * Details about the user that encountered the threat.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleSecuritySafebrowsingV4ThreatHitUserInfo userInfo;

  /**
   * Client-reported identification.
   * @return value or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ClientInfo getClientInfo() {
    return clientInfo;
  }

  /**
   * Client-reported identification.
   * @param clientInfo clientInfo or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setClientInfo(GoogleSecuritySafebrowsingV4ClientInfo clientInfo) {
    this.clientInfo = clientInfo;
    return this;
  }

  /**
   * The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
   * @return value or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatEntry getEntry() {
    return entry__;
  }

  /**
   * The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
   * @param entry__ entry__ or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setEntry(GoogleSecuritySafebrowsingV4ThreatEntry entry__) {
    this.entry__ = entry__;
    return this;
  }

  /**
   * The platform type reported.
   * @return value or {@code null} for none
   */
  public java.lang.String getPlatformType() {
    return platformType;
  }

  /**
   * The platform type reported.
   * @param platformType platformType or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setPlatformType(java.lang.String platformType) {
    this.platformType = platformType;
    return this;
  }

  /**
   * The resources related to the threat hit.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleSecuritySafebrowsingV4ThreatHitThreatSource> getResources() {
    return resources;
  }

  /**
   * The resources related to the threat hit.
   * @param resources resources or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setResources(java.util.List<GoogleSecuritySafebrowsingV4ThreatHitThreatSource> resources) {
    this.resources = resources;
    return this;
  }

  /**
   * The threat type reported.
   * @return value or {@code null} for none
   */
  public java.lang.String getThreatType() {
    return threatType;
  }

  /**
   * The threat type reported.
   * @param threatType threatType or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setThreatType(java.lang.String threatType) {
    this.threatType = threatType;
    return this;
  }

  /**
   * Details about the user that encountered the threat.
   * @return value or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHitUserInfo getUserInfo() {
    return userInfo;
  }

  /**
   * Details about the user that encountered the threat.
   * @param userInfo userInfo or {@code null} for none
   */
  public GoogleSecuritySafebrowsingV4ThreatHit setUserInfo(GoogleSecuritySafebrowsingV4ThreatHitUserInfo userInfo) {
    this.userInfo = userInfo;
    return this;
  }

  @Override
  public GoogleSecuritySafebrowsingV4ThreatHit set(String fieldName, Object value) {
    return (GoogleSecuritySafebrowsingV4ThreatHit) super.set(fieldName, value);
  }

  @Override
  public GoogleSecuritySafebrowsingV4ThreatHit clone() {
    return (GoogleSecuritySafebrowsingV4ThreatHit) super.clone();
  }

}
