Package com.google.cloud.translate.v3
Interface TranslateDocumentResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TranslateDocumentResponse,TranslateDocumentResponse.Builder
@Generated
public interface TranslateDocumentResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionTranslated document.Translated document.The `glossary_config` used for this translation.The `glossary_config` used for this translation.The document's translation output if a glossary is provided in the request.The document's translation output if a glossary is provided in the request.getModel()Only present when 'model' is present in the request.com.google.protobuf.ByteStringOnly present when 'model' is present in the request.booleanTranslated document.booleanThe `glossary_config` used for this translation.booleanThe document's translation output if a glossary is provided in the request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasDocumentTranslation
boolean hasDocumentTranslation()Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;- Returns:
- Whether the documentTranslation field is set.
-
getDocumentTranslation
DocumentTranslation getDocumentTranslation()Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;- Returns:
- The documentTranslation.
-
getDocumentTranslationOrBuilder
DocumentTranslationOrBuilder getDocumentTranslationOrBuilder()Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1; -
hasGlossaryDocumentTranslation
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.v3.DocumentTranslation glossary_document_translation = 2;- Returns:
- Whether the glossaryDocumentTranslation field is set.
-
getGlossaryDocumentTranslation
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.v3.DocumentTranslation glossary_document_translation = 2;- Returns:
- The glossaryDocumentTranslation.
-
getGlossaryDocumentTranslationOrBuilder
DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder()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.v3.DocumentTranslation glossary_document_translation = 2; -
getModel
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;- Returns:
- The model.
-
getModelBytes
com.google.protobuf.ByteString getModelBytes()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;- Returns:
- The bytes for model.
-
hasGlossaryConfig
boolean hasGlossaryConfig()The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;- Returns:
- Whether the glossaryConfig field is set.
-
getGlossaryConfig
TranslateTextGlossaryConfig getGlossaryConfig()The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;- Returns:
- The glossaryConfig.
-
getGlossaryConfigOrBuilder
TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder()The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
-