com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder Maven / Gradle / Ivy
/*
* 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.2
package com.google.cloud.translate.v3beta1;
public interface TranslateDocumentResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Translated document.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1;
*
* @return Whether the documentTranslation field is set.
*/
boolean hasDocumentTranslation();
/**
*
*
*
* Translated document.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1;
*
* @return The documentTranslation.
*/
com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation();
/**
*
*
*
* Translated document.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1;
*/
com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder();
/**
*
*
*
* The document's translation output if a glossary is provided in the request.
* This can be the same as [TranslateDocumentResponse.document_translation]
* if no glossary terms apply.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2;
*
*
* @return Whether the glossaryDocumentTranslation field is set.
*/
boolean hasGlossaryDocumentTranslation();
/**
*
*
*
* The document's translation output if a glossary is provided in the request.
* This can be the same as [TranslateDocumentResponse.document_translation]
* if no glossary terms apply.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2;
*
*
* @return The glossaryDocumentTranslation.
*/
com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation();
/**
*
*
*
* The document's translation output if a glossary is provided in the request.
* This can be the same as [TranslateDocumentResponse.document_translation]
* if no glossary terms apply.
*
*
* .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2;
*
*/
com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder
getGlossaryDocumentTranslationOrBuilder();
/**
*
*
*
* Only present when 'model' is present in the request.
* 'model' is normalized to have a project number.
*
* For example:
* If the 'model' field in TranslateDocumentRequest 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 = 3;
*
* @return The model.
*/
java.lang.String getModel();
/**
*
*
*
* Only present when 'model' is present in the request.
* 'model' is normalized to have a project number.
*
* For example:
* If the 'model' field in TranslateDocumentRequest 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 = 3;
*
* @return The bytes for model.
*/
com.google.protobuf.ByteString getModelBytes();
/**
*
*
*
* The `glossary_config` used for this translation.
*
*
* .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4;
*
* @return Whether the glossaryConfig field is set.
*/
boolean hasGlossaryConfig();
/**
*
*
*
* The `glossary_config` used for this translation.
*
*
* .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4;
*
* @return The glossaryConfig.
*/
com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig();
/**
*
*
*
* The `glossary_config` used for this translation.
*
*
* .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4;
*/
com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder
getGlossaryConfigOrBuilder();
}