Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata

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

Metadata about a property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1PropertyMetadata

Returns a new instance of GoogleCloudDocumentaiV1PropertyMetadata.



4053
4054
4055
# File 'lib/google/apis/documentai_v1/classes.rb', line 4053

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

Instance Attribute Details

#human_review_labeling_metadataGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata

Metadata for human review labeling config. Corresponds to the JSON property humanReviewLabelingMetadata



4034
4035
4036
# File 'lib/google/apis/documentai_v1/classes.rb', line 4034

def 
  @human_review_labeling_metadata
end

#human_review_metadataGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata

Metadata for Human Review config. Corresponds to the JSON property humanReviewMetadata



4039
4040
4041
# File 'lib/google/apis/documentai_v1/classes.rb', line 4039

def 
  @human_review_metadata
end

#inactiveBoolean Also known as: inactive?

Whether the property should be considered as "inactive". Corresponds to the JSON property inactive

Returns:

  • (Boolean)


4044
4045
4046
# File 'lib/google/apis/documentai_v1/classes.rb', line 4044

def inactive
  @inactive
end

#schema_mutability_metadataGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata

Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend. Corresponds to the JSON property schemaMutabilityMetadata



4051
4052
4053
# File 'lib/google/apis/documentai_v1/classes.rb', line 4051

def 
  @schema_mutability_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4058
4059
4060
4061
4062
4063
# File 'lib/google/apis/documentai_v1/classes.rb', line 4058

def update!(**args)
  @human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
  @human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
  @inactive = args[:inactive] if args.key?(:inactive)
  @schema_mutability_metadata = args[:schema_mutability_metadata] if args.key?(:schema_mutability_metadata)
end