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

com.google.cloud.translate.v3beta1.TranslationOrBuilder Maven / Gradle / Ivy

There is a newer version: 0.136.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/translate/v3beta1/translation_service.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.translate.v3beta1;

public interface TranslationOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * Text translated into the target language.
   * If an error occurs during translation, this field might be excluded from
   * the response.
   * 
* * string translated_text = 1; * * @return The translatedText. */ java.lang.String getTranslatedText(); /** * * *
   * Text translated into the target language.
   * If an error occurs during translation, this field might be excluded from
   * the response.
   * 
* * string translated_text = 1; * * @return The bytes for translatedText. */ com.google.protobuf.ByteString getTranslatedTextBytes(); /** * * *
   * Only present when `model` is present in the request.
   * `model` here is normalized to have project number.
   *
   * For example:
   * If the `model` requested in TranslationTextRequest is
   * `projects/{project-id}/locations/{location-id}/models/general/nmt` then
   * `model` here would be normalized to
   * `projects/{project-number}/locations/{location-id}/models/general/nmt`.
   * 
* * string model = 2; * * @return The model. */ java.lang.String getModel(); /** * * *
   * Only present when `model` is present in the request.
   * `model` here is normalized to have project number.
   *
   * For example:
   * If the `model` requested in TranslationTextRequest is
   * `projects/{project-id}/locations/{location-id}/models/general/nmt` then
   * `model` here would be normalized to
   * `projects/{project-number}/locations/{location-id}/models/general/nmt`.
   * 
* * string model = 2; * * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); /** * * *
   * The BCP-47 language code of source text in the initial request, detected
   * automatically, if no source language was passed within the initial
   * request. If the source language was passed, auto-detection of the language
   * does not occur and this field is empty.
   * 
* * string detected_language_code = 4; * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** * * *
   * The BCP-47 language code of source text in the initial request, detected
   * automatically, if no source language was passed within the initial
   * request. If the source language was passed, auto-detection of the language
   * does not occur and this field is empty.
   * 
* * string detected_language_code = 4; * * @return The bytes for detectedLanguageCode. */ com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); /** * * *
   * The `glossary_config` used for this translation.
   * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** * * *
   * The `glossary_config` used for this translation.
   * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** * * *
   * The `glossary_config` used for this translation.
   * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy