Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

The configuration used when outputting documents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig

Returns a new instance of GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig.



1889
1890
1891
# File 'lib/google/apis/documentai_v1/classes.rb', line 1889

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

Instance Attribute Details

#field_maskString

Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of document_field_name or pages.page_field_name`. Corresponds to the JSON propertyfieldMask`

Returns:

  • (String)


1882
1883
1884
# File 'lib/google/apis/documentai_v1/classes.rb', line 1882

def field_mask
  @field_mask
end

#gcs_uriString

The Cloud Storage uri (a directory) of the output. Corresponds to the JSON property gcsUri

Returns:

  • (String)


1887
1888
1889
# File 'lib/google/apis/documentai_v1/classes.rb', line 1887

def gcs_uri
  @gcs_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1894
1895
1896
1897
# File 'lib/google/apis/documentai_v1/classes.rb', line 1894

def update!(**args)
  @field_mask = args[:field_mask] if args.key?(:field_mask)
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
end