Class: Google::Apis::TranslateV3::FileInputSource

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

An inlined file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileInputSource

Returns a new instance of FileInputSource.



868
869
870
# File 'lib/google/apis/translate_v3/classes.rb', line 868

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

Instance Attribute Details

#contentString

Required. The file's byte contents. Corresponds to the JSON property content NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


856
857
858
# File 'lib/google/apis/translate_v3/classes.rb', line 856

def content
  @content
end

#display_nameString

Required. The file's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


861
862
863
# File 'lib/google/apis/translate_v3/classes.rb', line 861

def display_name
  @display_name
end

#mime_typeString

Required. The file's mime type. Corresponds to the JSON property mimeType

Returns:

  • (String)


866
867
868
# File 'lib/google/apis/translate_v3/classes.rb', line 866

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



873
874
875
876
877
# File 'lib/google/apis/translate_v3/classes.rb', line 873

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