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

com.google.api.services.translate.v3.model.Dataset Maven / Gradle / Ivy

There is a newer version: v3-rev20241218-2.0.0
Show 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.translate.v3.model;

/**
 * A dataset that hosts the examples (sentence pairs) used for translation models.
 *
 * 

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 Cloud Translation 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 Dataset extends com.google.api.client.json.GenericJson { /** * Output only. Timestamp when this dataset was created. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * The name of the dataset to show in the interface. The name can be up to 32 characters long and * can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * Output only. The number of examples in the dataset. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer exampleCount; /** * The resource name of the dataset, in form of `projects/{project-number-or- * id}/locations/{location_id}/datasets/{dataset_id}` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The BCP-47 language code of the source language. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceLanguageCode; /** * The BCP-47 language code of the target language. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String targetLanguageCode; /** * Output only. Number of test examples (sentence pairs). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer testExampleCount; /** * Output only. Number of training examples (sentence pairs). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer trainExampleCount; /** * Output only. Timestamp when this dataset was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Output only. Number of validation examples (sentence pairs). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer validateExampleCount; /** * Output only. Timestamp when this dataset was created. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. Timestamp when this dataset was created. * @param createTime createTime or {@code null} for none */ public Dataset setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * The name of the dataset to show in the interface. The name can be up to 32 characters long and * can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * The name of the dataset to show in the interface. The name can be up to 32 characters long and * can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. * @param displayName displayName or {@code null} for none */ public Dataset setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * Output only. The number of examples in the dataset. * @return value or {@code null} for none */ public java.lang.Integer getExampleCount() { return exampleCount; } /** * Output only. The number of examples in the dataset. * @param exampleCount exampleCount or {@code null} for none */ public Dataset setExampleCount(java.lang.Integer exampleCount) { this.exampleCount = exampleCount; return this; } /** * The resource name of the dataset, in form of `projects/{project-number-or- * id}/locations/{location_id}/datasets/{dataset_id}` * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The resource name of the dataset, in form of `projects/{project-number-or- * id}/locations/{location_id}/datasets/{dataset_id}` * @param name name or {@code null} for none */ public Dataset setName(java.lang.String name) { this.name = name; return this; } /** * The BCP-47 language code of the source language. * @return value or {@code null} for none */ public java.lang.String getSourceLanguageCode() { return sourceLanguageCode; } /** * The BCP-47 language code of the source language. * @param sourceLanguageCode sourceLanguageCode or {@code null} for none */ public Dataset setSourceLanguageCode(java.lang.String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; return this; } /** * The BCP-47 language code of the target language. * @return value or {@code null} for none */ public java.lang.String getTargetLanguageCode() { return targetLanguageCode; } /** * The BCP-47 language code of the target language. * @param targetLanguageCode targetLanguageCode or {@code null} for none */ public Dataset setTargetLanguageCode(java.lang.String targetLanguageCode) { this.targetLanguageCode = targetLanguageCode; return this; } /** * Output only. Number of test examples (sentence pairs). * @return value or {@code null} for none */ public java.lang.Integer getTestExampleCount() { return testExampleCount; } /** * Output only. Number of test examples (sentence pairs). * @param testExampleCount testExampleCount or {@code null} for none */ public Dataset setTestExampleCount(java.lang.Integer testExampleCount) { this.testExampleCount = testExampleCount; return this; } /** * Output only. Number of training examples (sentence pairs). * @return value or {@code null} for none */ public java.lang.Integer getTrainExampleCount() { return trainExampleCount; } /** * Output only. Number of training examples (sentence pairs). * @param trainExampleCount trainExampleCount or {@code null} for none */ public Dataset setTrainExampleCount(java.lang.Integer trainExampleCount) { this.trainExampleCount = trainExampleCount; return this; } /** * Output only. Timestamp when this dataset was last updated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. Timestamp when this dataset was last updated. * @param updateTime updateTime or {@code null} for none */ public Dataset setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Output only. Number of validation examples (sentence pairs). * @return value or {@code null} for none */ public java.lang.Integer getValidateExampleCount() { return validateExampleCount; } /** * Output only. Number of validation examples (sentence pairs). * @param validateExampleCount validateExampleCount or {@code null} for none */ public Dataset setValidateExampleCount(java.lang.Integer validateExampleCount) { this.validateExampleCount = validateExampleCount; return this; } @Override public Dataset set(String fieldName, Object value) { return (Dataset) super.set(fieldName, value); } @Override public Dataset clone() { return (Dataset) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy