Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams

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

Overview

Parameters to control table extraction behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2TableExtractionParams

Returns a new instance of GoogleCloudDocumentaiV1beta2TableExtractionParams.



4013
4014
4015
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 4013

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether to enable table extraction. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


3993
3994
3995
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3993

def enabled
  @enabled
end

#header_hintsArray<String>

Optional. Reserved for future use. Corresponds to the JSON property headerHints

Returns:

  • (Array<String>)


3999
4000
4001
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3999

def header_hints
  @header_hints
end

#model_versionString

Model version of the table extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model. Corresponds to the JSON property modelVersion

Returns:

  • (String)


4005
4006
4007
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 4005

def model_version
  @model_version
end

#table_bound_hintsArray<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableBoundHint>

Optional. Table bounding box hints that can be provided to complex cases which our algorithm cannot locate the table(s) in. Corresponds to the JSON property tableBoundHints



4011
4012
4013
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 4011

def table_bound_hints
  @table_bound_hints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4018
4019
4020
4021
4022
4023
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 4018

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @header_hints = args[:header_hints] if args.key?(:header_hints)
  @model_version = args[:model_version] if args.key?(:model_version)
  @table_bound_hints = args[:table_bound_hints] if args.key?(:table_bound_hints)
end