Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2FormExtractionParams

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 form extraction behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2FormExtractionParams

Returns a new instance of GoogleCloudDocumentaiV1beta2FormExtractionParams.



3627
3628
3629
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3627

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

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

Returns:

  • (Boolean)


3610
3611
3612
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3610

def enabled
  @enabled
end

#key_value_pair_hintsArray<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint>

Reserved for future use. Corresponds to the JSON property keyValuePairHints



3616
3617
3618
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3616

def key_value_pair_hints
  @key_value_pair_hints
end

#model_versionString

Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model. For custom form models, specify: “custom/model_name". Model name format is "bucket_name/path/to/modeldir" corresponding to "gs://bucket_name/path/to/modeldir" where annotated examples are stored. Corresponds to the JSON property modelVersion

Returns:

  • (String)


3625
3626
3627
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3625

def model_version
  @model_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3632
3633
3634
3635
3636
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3632

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