Class: Google::Apis::TranslateV3::BatchDocumentInputConfig

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

Overview

Input configuration for BatchTranslateDocument request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDocumentInputConfig

Returns a new instance of BatchDocumentInputConfig.



34
35
36
# File 'lib/google/apis/translate_v3/classes.rb', line 34

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

Instance Attribute Details

#gcs_sourceGoogle::Apis::TranslateV3::GcsSource

The Google Cloud Storage location for the input content. Corresponds to the JSON property gcsSource



32
33
34
# File 'lib/google/apis/translate_v3/classes.rb', line 32

def gcs_source
  @gcs_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39
40
41
# File 'lib/google/apis/translate_v3/classes.rb', line 39

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