Class: Google::Apis::TranslateV3::FileInputSource
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::FileInputSource
- 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
-
#content ⇒ String
Required.
-
#display_name ⇒ String
Required.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileInputSource
constructor
A new instance of FileInputSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileInputSource
Returns a new instance of FileInputSource.
887 888 889 |
# File 'lib/google/apis/translate_v3/classes.rb', line 887 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
Required. The file's byte contents.
Corresponds to the JSON property content
NOTE: Values are automatically base64 encoded/decoded in the client library.
875 876 877 |
# File 'lib/google/apis/translate_v3/classes.rb', line 875 def content @content end |
#display_name ⇒ String
Required. The file's display name.
Corresponds to the JSON property displayName
880 881 882 |
# File 'lib/google/apis/translate_v3/classes.rb', line 880 def display_name @display_name end |
#mime_type ⇒ String
Required. The file's mime type.
Corresponds to the JSON property mimeType
885 886 887 |
# File 'lib/google/apis/translate_v3/classes.rb', line 885 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
892 893 894 895 896 |
# File 'lib/google/apis/translate_v3/classes.rb', line 892 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 |