class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorType

A processor type is responsible for performing a certain document understanding task on a certain type of document. All processor types are created by the documentai service internally. User will only list all available processor types via UI. For different users (projects), the available processor types may be different since we'll expose the access of some types via EAP whitelisting. We make the ProcessorType a resource under location so we have a unified API and keep the possibility that UI will load different available processor types from different regions. But for alpha the behavior is that the user will always get the union of all available processor types among all regions no matter which regionalized endpoint is called, and then we use the 'available_locations' field to show under which regions a processor type is available. For example, users can call either the 'US' or ' EU' endpoint to feach processor types. In the return, we will have an 'invoice parsing' processor with 'available_locations' field only containing 'US'. So the user can try to create an 'invoice parsing' processor under the location ' US'. Such attempt of creating under the location 'EU' will fail. Next ID: 8.

Attributes

allow_creation[RW]

Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to request access. Corresponds to the JSON property `allowCreation` @return [Boolean]

allow_creation?[RW]

Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to request access. Corresponds to the JSON property `allowCreation` @return [Boolean]

available_locations[RW]

The locations in which this processor is available. Corresponds to the JSON property `availableLocations` @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo>]

category[RW]

The processor category, used by UI to group processor types. Corresponds to the JSON property `category` @return [String]

name[RW]

The resource name of the processor type. Format: projects/`project`/ processorTypes/`processor_type` Corresponds to the JSON property `name` @return [String]

type[RW]

The type of the processor, e.g, “invoice_parsing”. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1beta3/classes.rb, line 6958
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1beta3/classes.rb, line 6963
def update!(**args)
  @allow_creation = args[:allow_creation] if args.key?(:allow_creation)
  @available_locations = args[:available_locations] if args.key?(:available_locations)
  @category = args[:category] if args.key?(:category)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end