public sealed class CreateProcessorRequest : IMessage<CreateProcessorRequest>, IEquatable<CreateProcessorRequest>, IDeepCloneable<CreateProcessorRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class CreateProcessorRequest.
Request message for the
[CreateProcessor][google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor]
method. Notice this request is sent to a regionalized backend service. If the
[ProcessorType][google.cloud.documentai.v1.ProcessorType] isn't available in
that region, the creation fails.
Required. The processor to be created, requires
[Processor.type][google.cloud.documentai.v1.Processor.type] and
[Processor.display_name][google.cloud.documentai.v1.Processor.display_name]
to be set. Also, the
[Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
field must be set if the processor is under CMEK.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eCreateProcessorRequest\u003c/code\u003e class in the Cloud Document AI v1 API is version 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used for sending requests to create a new processor in the Document AI service, which is regionalized and requires a valid \u003ccode\u003eProcessorType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateProcessorRequest\u003c/code\u003e class requires the \u003ccode\u003eProcessor.type\u003c/code\u003e and \u003ccode\u003eProcessor.display_name\u003c/code\u003e to be set, with the additional \u003ccode\u003eProcessor.kms_key_name\u003c/code\u003e field being necessary for processors under CMEK.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities like message handling, equality checking, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003eThe class also has two constructors, \u003ccode\u003eCreateProcessorRequest()\u003c/code\u003e and \u003ccode\u003eCreateProcessorRequest(CreateProcessorRequest other)\u003c/code\u003e, and contains two main properties \u003ccode\u003eParent\u003c/code\u003e and \u003ccode\u003eProcessor\u003c/code\u003e to set the project and location in which the processor is created, as well as the type of processor to create.\u003c/p\u003e\n"]]],[],null,[]]