Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata

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

Overview

Metadata for Human Review config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata

Returns a new instance of GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata.



7796
7797
7798
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7796

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

Instance Attribute Details

#confidence_thresholdFloat

The confidence threshold if human review validation is enabled. Corresponds to the JSON property confidenceThreshold

Returns:

  • (Float)


7788
7789
7790
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7788

def confidence_threshold
  @confidence_threshold
end

#enable_validationBoolean Also known as: enable_validation?

Whether to enable human review validation. Corresponds to the JSON property enableValidation

Returns:

  • (Boolean)


7793
7794
7795
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7793

def enable_validation
  @enable_validation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7801
7802
7803
7804
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7801

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