com.google.api.services.firebaseml.v2beta.model.GoogleCloudAiplatformV1beta1SafetyRating Maven / Gradle / Ivy
The newest version!
/*
* 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.firebaseml.v2beta.model;
/**
* Safety rating corresponding to the generated content.
*
* 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 Firebase ML 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 GoogleCloudAiplatformV1beta1SafetyRating extends com.google.api.client.json.GenericJson {
/**
* Output only. Indicates whether the content was filtered out because of this rating.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean blocked;
/**
* Output only. Harm category.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String category;
/**
* Output only. Harm probability levels in the content.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String probability;
/**
* Output only. Harm probability score.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float probabilityScore;
/**
* Output only. Harm severity levels in the content.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String severity;
/**
* Output only. Harm severity score.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float severityScore;
/**
* Output only. Indicates whether the content was filtered out because of this rating.
* @return value or {@code null} for none
*/
public java.lang.Boolean getBlocked() {
return blocked;
}
/**
* Output only. Indicates whether the content was filtered out because of this rating.
* @param blocked blocked or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setBlocked(java.lang.Boolean blocked) {
this.blocked = blocked;
return this;
}
/**
* Output only. Harm category.
* @return value or {@code null} for none
*/
public java.lang.String getCategory() {
return category;
}
/**
* Output only. Harm category.
* @param category category or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setCategory(java.lang.String category) {
this.category = category;
return this;
}
/**
* Output only. Harm probability levels in the content.
* @return value or {@code null} for none
*/
public java.lang.String getProbability() {
return probability;
}
/**
* Output only. Harm probability levels in the content.
* @param probability probability or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setProbability(java.lang.String probability) {
this.probability = probability;
return this;
}
/**
* Output only. Harm probability score.
* @return value or {@code null} for none
*/
public java.lang.Float getProbabilityScore() {
return probabilityScore;
}
/**
* Output only. Harm probability score.
* @param probabilityScore probabilityScore or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setProbabilityScore(java.lang.Float probabilityScore) {
this.probabilityScore = probabilityScore;
return this;
}
/**
* Output only. Harm severity levels in the content.
* @return value or {@code null} for none
*/
public java.lang.String getSeverity() {
return severity;
}
/**
* Output only. Harm severity levels in the content.
* @param severity severity or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setSeverity(java.lang.String severity) {
this.severity = severity;
return this;
}
/**
* Output only. Harm severity score.
* @return value or {@code null} for none
*/
public java.lang.Float getSeverityScore() {
return severityScore;
}
/**
* Output only. Harm severity score.
* @param severityScore severityScore or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1SafetyRating setSeverityScore(java.lang.Float severityScore) {
this.severityScore = severityScore;
return this;
}
@Override
public GoogleCloudAiplatformV1beta1SafetyRating set(String fieldName, Object value) {
return (GoogleCloudAiplatformV1beta1SafetyRating) super.set(fieldName, value);
}
@Override
public GoogleCloudAiplatformV1beta1SafetyRating clone() {
return (GoogleCloudAiplatformV1beta1SafetyRating) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy