Class: Google::Apis::TranslateV3::InputFile
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::TranslateV3::InputFile
 
- 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
An input file.
Instance Attribute Summary collapse
- 
  
    
      #gcs_source  ⇒ Google::Apis::TranslateV3::GcsInputSource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Google Cloud Storage location for the input content. 
- 
  
    
      #usage  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ InputFile 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of InputFile. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ InputFile
Returns a new instance of InputFile.
| 1279 1280 1281 | # File 'lib/google/apis/translate_v3/classes.rb', line 1279 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#gcs_source ⇒ Google::Apis::TranslateV3::GcsInputSource
The Google Cloud Storage location for the input content.
Corresponds to the JSON property gcsSource
| 1271 1272 1273 | # File 'lib/google/apis/translate_v3/classes.rb', line 1271 def gcs_source @gcs_source end | 
#usage ⇒ String
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or
UNASSIGNED (by default) for auto split.
Corresponds to the JSON property usage
| 1277 1278 1279 | # File 'lib/google/apis/translate_v3/classes.rb', line 1277 def usage @usage end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1284 1285 1286 1287 | # File 'lib/google/apis/translate_v3/classes.rb', line 1284 def update!(**args) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @usage = args[:usage] if args.key?(:usage) end |