com.google.api.services.safebrowsing.model.ThreatHit Maven / Gradle / Ivy
/*
* Copyright 2010 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.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2019-02-26 at 05:55:17 UTC
* Modify at your own risk.
*/
package com.google.api.services.safebrowsing.model;
/**
* Model definition for ThreatHit.
*
* 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:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ThreatHit extends com.google.api.client.json.GenericJson {
/**
* Client-reported identification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ClientInfo 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 ThreatEntry 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 resources;
static {
// hack to force ProGuard to consider ThreatSource used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(ThreatSource.class);
}
/**
* 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 UserInfo userInfo;
/**
* Client-reported identification.
* @return value or {@code null} for none
*/
public ClientInfo getClientInfo() {
return clientInfo;
}
/**
* Client-reported identification.
* @param clientInfo clientInfo or {@code null} for none
*/
public ThreatHit setClientInfo(ClientInfo 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 ThreatEntry 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 ThreatHit setEntry(ThreatEntry 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 ThreatHit 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 getResources() {
return resources;
}
/**
* The resources related to the threat hit.
* @param resources resources or {@code null} for none
*/
public ThreatHit setResources(java.util.List 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 ThreatHit 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 UserInfo getUserInfo() {
return userInfo;
}
/**
* Details about the user that encountered the threat.
* @param userInfo userInfo or {@code null} for none
*/
public ThreatHit setUserInfo(UserInfo userInfo) {
this.userInfo = userInfo;
return this;
}
@Override
public ThreatHit set(String fieldName, Object value) {
return (ThreatHit) super.set(fieldName, value);
}
@Override
public ThreatHit clone() {
return (ThreatHit) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy