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. For now only one sentence per request is supported.
#content=
def content=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Required. The content of the input in string format. For now only one sentence per request is supported.
Returns
- (::Array<::String>) — Required. The content of the input in string format. For now only one sentence per request is supported.
#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}
#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}
.