@@ -352,9 +352,16 @@ message ProcessOptions {
352352 int32 from_end = 7 ;
353353 }
354354
355- // Only applicable to `OCR_PROCESSOR`. Returns error if set on other
356- // processor types.
355+ // Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
356+ // Returns error if set on other processor types.
357357 OcrConfig ocr_config = 1 ;
358+
359+ // Optional. Override the schema of the
360+ // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will
361+ // return an Invalid Argument error if this field is set when the underlying
362+ // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't
363+ // support schema override.
364+ DocumentSchema schema_override = 8 [(google.api.field_behavior ) = OPTIONAL ];
358365}
359366
360367// Request message for the
@@ -400,6 +407,14 @@ message ProcessRequest {
400407
401408 // Inference-time options for the process API
402409 ProcessOptions process_options = 7 ;
410+
411+ // Optional. The labels with user-defined metadata for the request.
412+ //
413+ // Label keys and values can be no longer than 63 characters
414+ // (Unicode codepoints) and can only contain lowercase letters, numeric
415+ // characters, underscores, and dashes. International characters are allowed.
416+ // Label values are optional. Label keys must start with a letter.
417+ map <string , string > labels = 10 [(google.api.field_behavior ) = OPTIONAL ];
403418}
404419
405420// The status of human review on a processed document.
@@ -483,6 +498,14 @@ message BatchProcessRequest {
483498
484499 // Inference-time options for the process API
485500 ProcessOptions process_options = 7 ;
501+
502+ // Optional. The labels with user-defined metadata for the request.
503+ //
504+ // Label keys and values can be no longer than 63 characters
505+ // (Unicode codepoints) and can only contain lowercase letters, numeric
506+ // characters, underscores, and dashes. International characters are allowed.
507+ // Label values are optional. Label keys must start with a letter.
508+ map <string , string > labels = 9 [(google.api.field_behavior ) = OPTIONAL ];
486509}
487510
488511// Response message for
@@ -803,7 +826,8 @@ message CreateProcessorRequest {
803826
804827 // Required. The processor to be created, requires
805828 // [Processor.type][google.cloud.documentai.v1.Processor.type] and
806- // [Processor.display_name]][] to be set. Also, the
829+ // [Processor.display_name][google.cloud.documentai.v1.Processor.display_name]
830+ // to be set. Also, the
807831 // [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
808832 // field must be set if the processor is under CMEK.
809833 Processor processor = 2 [(google.api.field_behavior ) = REQUIRED ];
0 commit comments