Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootTranslationRequestInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Each TranslationRequestInfo corresponds to a request sent to the translation server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootTranslationRequestInfo

Returns a new instance of LearningGenaiRootTranslationRequestInfo.



36712
36713
36714
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36712

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#detected_language_codesArray<String>

The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty. Corresponds to the JSON property detectedLanguageCodes

Returns:

  • (Array<String>)


36705
36706
36707
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36705

def detected_language_codes
  @detected_language_codes
end

#total_content_sizeFixnum

The sum of the size of all the contents in the request. Corresponds to the JSON property totalContentSize

Returns:

  • (Fixnum)


36710
36711
36712
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36710

def total_content_size
  @total_content_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36717
36718
36719
36720
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36717

def update!(**args)
  @detected_language_codes = args[:detected_language_codes] if args.key?(:detected_language_codes)
  @total_content_size = args[:total_content_size] if args.key?(:total_content_size)
end