Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata
- 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
Metadata for Human Review config.
Instance Attribute Summary collapse
-
#confidence_threshold ⇒ Float
The confidence threshold if human review validation is enabled.
-
#enable_validation ⇒ Boolean
(also: #enable_validation?)
Whether to enable human review validation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1HumanReviewValidationMetadata
constructor
A new instance of GoogleCloudDocumentaiV1HumanReviewValidationMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1HumanReviewValidationMetadata
Returns a new instance of GoogleCloudDocumentaiV1HumanReviewValidationMetadata.
3425 3426 3427 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 3425 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_threshold ⇒ Float
The confidence threshold if human review validation is enabled.
Corresponds to the JSON property confidenceThreshold
3417 3418 3419 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 3417 def confidence_threshold @confidence_threshold end |
#enable_validation ⇒ Boolean Also known as: enable_validation?
Whether to enable human review validation.
Corresponds to the JSON property enableValidation
3422 3423 3424 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 3422 def enable_validation @enable_validation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3430 3431 3432 3433 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 3430 def update!(**args) @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold) @enable_validation = args[:enable_validation] if args.key?(:enable_validation) end |