Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest.
The request for sending an AdaptiveMt translation query.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::Array<::String>
    Returns
    
  - (::Array<::String>) — Required. The content of the input in string format.
#content=
def content=(value) -> ::Array<::String>
    Parameter
    
  - value (::Array<::String>) — Required. The content of the input in string format.
    Returns
    
  - (::Array<::String>) — Required. The content of the input in string format.
#dataset
def dataset() -> ::String
    Returns
    
  - 
        (::String) — Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
#dataset=
def dataset=(value) -> ::String
    Parameter
    
  - 
        value (::String) — Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
    Returns
    
  - 
        (::String) — Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
#glossary_config
def glossary_config() -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig
    Returns
    
  - (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig) — Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
#glossary_config=
def glossary_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig
    Parameter
    
  - value (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig) — Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
    Returns
    
  - (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig) — Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
#parent
def parent() -> ::String
    Returns
    
  - 
        (::String) — Required. Location to make a regional call.Format: projects/{project-number-or-id}/locations/{location-id}.
#parent=
def parent=(value) -> ::String
    Parameter
    
  - 
        value (::String) — Required. Location to make a regional call.Format: projects/{project-number-or-id}/locations/{location-id}.
    Returns
    
  - 
        (::String) — Required. Location to make a regional call.Format: projects/{project-number-or-id}/locations/{location-id}.
#reference_sentence_config
def reference_sentence_config() -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig
    Returns
    
  - (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig) — Configuration for caller provided reference sentences.
#reference_sentence_config=
def reference_sentence_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig
    Parameter
    
  - value (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig) — Configuration for caller provided reference sentences.
    Returns
    
- (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig) — Configuration for caller provided reference sentences.