com.google.api.services.safebrowsing.v5.model.GoogleSecuritySafebrowsingV5FullHashFullHashDetail Maven / Gradle / Ivy
/*
* 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.v5.model;
/**
* Details about a matching full hash. An important note about forward compatibility: new threat
* types and threat attributes may be added by the server at any time; those additions are
* considered minor version changes. It is Google's policy not to expose minor version numbers in
* APIs (see https://cloud.google.com/apis/design/versioning for the versioning policy), so clients
* MUST be prepared to receive `FullHashDetail` messages containing `ThreatType` enum values or
* `ThreatAttribute` enum values that are considered invalid by the client. Therefore, it is the
* client's responsibility to check for the validity of all `ThreatType` and `ThreatAttribute` enum
* values; if any value is considered invalid, the client MUST disregard the entire `FullHashDetail`
* message.
*
* 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 GoogleSecuritySafebrowsingV5FullHashFullHashDetail extends com.google.api.client.json.GenericJson {
/**
* Unordered list. Additional attributes about those full hashes. This may be empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List attributes;
/**
* The type of threat. This field will never be empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String threatType;
/**
* Unordered list. Additional attributes about those full hashes. This may be empty.
* @return value or {@code null} for none
*/
public java.util.List getAttributes() {
return attributes;
}
/**
* Unordered list. Additional attributes about those full hashes. This may be empty.
* @param attributes attributes or {@code null} for none
*/
public GoogleSecuritySafebrowsingV5FullHashFullHashDetail setAttributes(java.util.List attributes) {
this.attributes = attributes;
return this;
}
/**
* The type of threat. This field will never be empty.
* @return value or {@code null} for none
*/
public java.lang.String getThreatType() {
return threatType;
}
/**
* The type of threat. This field will never be empty.
* @param threatType threatType or {@code null} for none
*/
public GoogleSecuritySafebrowsingV5FullHashFullHashDetail setThreatType(java.lang.String threatType) {
this.threatType = threatType;
return this;
}
@Override
public GoogleSecuritySafebrowsingV5FullHashFullHashDetail set(String fieldName, Object value) {
return (GoogleSecuritySafebrowsingV5FullHashFullHashDetail) super.set(fieldName, value);
}
@Override
public GoogleSecuritySafebrowsingV5FullHashFullHashDetail clone() {
return (GoogleSecuritySafebrowsingV5FullHashFullHashDetail) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy