Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig.
Message of caller-provided reference configuration.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#reference_sentence_pair_lists
def reference_sentence_pair_lists() -> ::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentencePairList>
Returns
- (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentencePairList>) — Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.
#reference_sentence_pair_lists=
def reference_sentence_pair_lists=(value) -> ::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentencePairList>
Parameter
- value (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentencePairList>) — Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.
Returns
- (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentencePairList>) — Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.
#source_language_code
def source_language_code() -> ::String
Returns
- (::String) — Source language code.
#source_language_code=
def source_language_code=(value) -> ::String
Parameter
- value (::String) — Source language code.
Returns
- (::String) — Source language code.
#target_language_code
def target_language_code() -> ::String
Returns
- (::String) — Target language code.
#target_language_code=
def target_language_code=(value) -> ::String
Parameter
- value (::String) — Target language code.
Returns
- (::String) — Target language code.