Cloud Translation V3 API - Class Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest (v1.1.0)

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

#glossary_config=

def glossary_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig
Parameter
Returns

#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

#reference_sentence_config=

def reference_sentence_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig
Parameter
Returns