Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Evaluation

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

An evaluation of a ProcessorVersion's performance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1Evaluation

Returns a new instance of GoogleCloudDocumentaiV1Evaluation.



6350
6351
6352
# File 'lib/google/apis/documentai_v1/classes.rb', line 6350

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

Instance Attribute Details

#all_entities_metricsGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics

Metrics across multiple confidence levels. Corresponds to the JSON property allEntitiesMetrics



6311
6312
6313
# File 'lib/google/apis/documentai_v1/classes.rb', line 6311

def all_entities_metrics
  @all_entities_metrics
end

#create_timeString

The time that the evaluation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


6316
6317
6318
# File 'lib/google/apis/documentai_v1/classes.rb', line 6316

def create_time
  @create_time
end

#document_countersGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationCounters

Evaluation counters for the documents that were used. Corresponds to the JSON property documentCounters



6321
6322
6323
# File 'lib/google/apis/documentai_v1/classes.rb', line 6321

def document_counters
  @document_counters
end

#entity_metricsHash<String,Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics>

Metrics across confidence levels, for different entities. Corresponds to the JSON property entityMetrics



6326
6327
6328
# File 'lib/google/apis/documentai_v1/classes.rb', line 6326

def entity_metrics
  @entity_metrics
end

#kms_key_nameString

The KMS key name used for encryption. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


6331
6332
6333
# File 'lib/google/apis/documentai_v1/classes.rb', line 6331

def kms_key_name
  @kms_key_name
end

#kms_key_version_nameString

The KMS key version with which data is encrypted. Corresponds to the JSON property kmsKeyVersionName

Returns:

  • (String)


6336
6337
6338
# File 'lib/google/apis/documentai_v1/classes.rb', line 6336

def kms_key_version_name
  @kms_key_version_name
end

#nameString

The resource name of the evaluation. Format: projects/project/locations/ location/processors/processor/processorVersions/processor_version/ evaluations/evaluation` Corresponds to the JSON propertyname`

Returns:

  • (String)


6343
6344
6345
# File 'lib/google/apis/documentai_v1/classes.rb', line 6343

def name
  @name
end

#revisionsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationEvaluationRevision>

Contains all revisions of the evaluation, excluding the latest one. Corresponds to the JSON property revisions



6348
6349
6350
# File 'lib/google/apis/documentai_v1/classes.rb', line 6348

def revisions
  @revisions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
# File 'lib/google/apis/documentai_v1/classes.rb', line 6355

def update!(**args)
  @all_entities_metrics = args[:all_entities_metrics] if args.key?(:all_entities_metrics)
  @create_time = args[:create_time] if args.key?(:create_time)
  @document_counters = args[:document_counters] if args.key?(:document_counters)
  @entity_metrics = args[:entity_metrics] if args.key?(:entity_metrics)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
  @name = args[:name] if args.key?(:name)
  @revisions = args[:revisions] if args.key?(:revisions)
end