class Google::Apis::TranslateV3beta1::DocumentInputConfig

A document translation request input config.

Attributes

content[RW]

Document's content represented as a stream of bytes. Corresponds to the JSON property `content` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

gcs_source[RW]

The Google Cloud Storage location for the input content. Corresponds to the JSON property `gcsSource` @return [Google::Apis::TranslateV3beta1::GcsSource]

mime_type[RW]

Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats- officedocument.wordprocessingml.document - application/vnd.openxmlformats- officedocument.presentationml.presentation - application/vnd.openxmlformats- officedocument.spreadsheetml.sheet Corresponds to the JSON property `mimeType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v3beta1/classes.rb, line 326
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/translate_v3beta1/classes.rb, line 331
def update!(**args)
  @content = args[:content] if args.key?(:content)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end