Google Cloud Document Ai V1 Client - Class CreateProcessorRequest (1.3.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class CreateProcessorRequest.

Request message for create a processor. Notice this request is sent to a regionalized backend service, and if the processor type is not available on that region, the creation will fail.

Generated from protobuf message google.cloud.documentai.v1.CreateProcessorRequest

Namespace

Google \ Cloud \ DocumentAI \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location}

↳ processor Google\Cloud\DocumentAI\V1\Processor

Required. The processor to be created, requires [processor_type] and [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set.

getParent

Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location}

Returns
TypeDescription
string

setParent

Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProcessor

Required. The processor to be created, requires [processor_type] and [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\Processor|null

hasProcessor

clearProcessor

setProcessor

Required. The processor to be created, requires [processor_type] and [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\Processor
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location} Please see Google\Cloud\DocumentAI\V1\DocumentProcessorServiceClient::locationName() for help formatting this field.

processor Google\Cloud\DocumentAI\V1\Processor

Required. The processor to be created, requires [processor_type] and [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\CreateProcessorRequest