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.



911
912
913
# File 'lib/google/apis/translate_v3/classes.rb', line 911

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)


899
900
901
# File 'lib/google/apis/translate_v3/classes.rb', line 899

def content
  @content
end

#display_nameString

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

Returns:

  • (String)


904
905
906
# File 'lib/google/apis/translate_v3/classes.rb', line 904

def display_name
  @display_name
end

#mime_typeString

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

Returns:

  • (String)


909
910
911
# File 'lib/google/apis/translate_v3/classes.rb', line 909

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



916
917
918
919
920
# File 'lib/google/apis/translate_v3/classes.rb', line 916

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