Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata

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 that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1SchemaMutabilityMetadata

Returns a new instance of GoogleCloudDocumentaiV1SchemaMutabilityMetadata.



4208
4209
4210
# File 'lib/google/apis/documentai_v1/classes.rb', line 4208

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

Instance Attribute Details

#editableBoolean Also known as: editable?

Explicit flag that controls whether the label is editable. Corresponds to the JSON property editable

Returns:

  • (Boolean)


4198
4199
4200
# File 'lib/google/apis/documentai_v1/classes.rb', line 4198

def editable
  @editable
end

#processor_versionsArray<String>

Full resource name of processor versions that contain this label. e.g. projects/project/locations/location/processors/processor/ processorVersions/processorVersion` Corresponds to the JSON propertyprocessorVersions`

Returns:

  • (Array<String>)


4206
4207
4208
# File 'lib/google/apis/documentai_v1/classes.rb', line 4206

def processor_versions
  @processor_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4213
4214
4215
4216
# File 'lib/google/apis/documentai_v1/classes.rb', line 4213

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