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