All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.checks.v1alpha.model.GoogleChecksAisafetyV1alphaClassifyContentRequest 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.checks.v1alpha.model;

/**
 * Request proto for ClassifyContent RPC.
 *
 * 

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 Checks 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 GoogleChecksAisafetyV1alphaClassifyContentRequest extends com.google.api.client.json.GenericJson { /** * Optional. Version of the classifier to use. If not specified, the latest version will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String classifierVersion; /** * Optional. Context about the input that will be used to help on the classification. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleChecksAisafetyV1alphaClassifyContentRequestContext context; /** * Required. Content to be classified. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent input; /** * Required. List of policies to classify against. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List policies; /** * Optional. Version of the classifier to use. If not specified, the latest version will be used. * @return value or {@code null} for none */ public java.lang.String getClassifierVersion() { return classifierVersion; } /** * Optional. Version of the classifier to use. If not specified, the latest version will be used. * @param classifierVersion classifierVersion or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequest setClassifierVersion(java.lang.String classifierVersion) { this.classifierVersion = classifierVersion; return this; } /** * Optional. Context about the input that will be used to help on the classification. * @return value or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequestContext getContext() { return context; } /** * Optional. Context about the input that will be used to help on the classification. * @param context context or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequest setContext(GoogleChecksAisafetyV1alphaClassifyContentRequestContext context) { this.context = context; return this; } /** * Required. Content to be classified. * @return value or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent getInput() { return input; } /** * Required. Content to be classified. * @param input input or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequest setInput(GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent input) { this.input = input; return this; } /** * Required. List of policies to classify against. * @return value or {@code null} for none */ public java.util.List getPolicies() { return policies; } /** * Required. List of policies to classify against. * @param policies policies or {@code null} for none */ public GoogleChecksAisafetyV1alphaClassifyContentRequest setPolicies(java.util.List policies) { this.policies = policies; return this; } @Override public GoogleChecksAisafetyV1alphaClassifyContentRequest set(String fieldName, Object value) { return (GoogleChecksAisafetyV1alphaClassifyContentRequest) super.set(fieldName, value); } @Override public GoogleChecksAisafetyV1alphaClassifyContentRequest clone() { return (GoogleChecksAisafetyV1alphaClassifyContentRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy