@@ -349,12 +349,11 @@ message ProcessOptions {
349349 }
350350
351351 // A subset of pages to process. If not specified, all pages are processed.
352- // If a page range is set, only the given pages are extracted and processed
353- // from the document. In the output document,
354- // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number]
355- // refers to the page number in the original document. This configuration
356- // only applies to sync requests. `page_range` can be only one of the
357- // following:
352+ // If a page range is set, only the given pages are extracted and processed
353+ // from the document. In the output document,
354+ // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number]
355+ // refers to the page number in the original document. This configuration
356+ // only applies to sync requests.
358357 oneof page_range {
359358 // Which pages to process (1-indexed).
360359 IndividualPageSelector individual_page_selector = 5 ;
@@ -367,8 +366,8 @@ message ProcessOptions {
367366 int32 from_end = 7 ;
368367 }
369368
370- // Only applicable to `OCR_PROCESSOR`. Returns error if set on other
371- // processor types.
369+ // Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
370+ // Returns error if set on other processor types.
372371 OcrConfig ocr_config = 1 ;
373372
374373 // Optional. Override the schema of the
@@ -428,6 +427,14 @@ message ProcessRequest {
428427
429428 // Inference-time options for the process API
430429 ProcessOptions process_options = 7 ;
430+
431+ // Optional. The labels with user-defined metadata for the request.
432+ //
433+ // Label keys and values can be no longer than 63 characters
434+ // (Unicode codepoints) and can only contain lowercase letters, numeric
435+ // characters, underscores, and dashes. International characters are allowed.
436+ // Label values are optional. Label keys must start with a letter.
437+ map <string , string > labels = 10 [(google.api.field_behavior ) = OPTIONAL ];
431438}
432439
433440// The status of human review on a processed document.
@@ -550,6 +557,14 @@ message BatchProcessRequest {
550557
551558 // Inference-time options for the process API
552559 ProcessOptions process_options = 7 ;
560+
561+ // Optional. The labels with user-defined metadata for the request.
562+ //
563+ // Label keys and values can be no longer than 63 characters
564+ // (Unicode codepoints) and can only contain lowercase letters, numeric
565+ // characters, underscores, and dashes. International characters are allowed.
566+ // Label values are optional. Label keys must start with a letter.
567+ map <string , string > labels = 9 [(google.api.field_behavior ) = OPTIONAL ];
553568}
554569
555570// Response message for
@@ -878,7 +893,8 @@ message CreateProcessorRequest {
878893
879894 // Required. The processor to be created, requires
880895 // [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
881- // [Processor.display_name]][] to be set. Also, the
896+ // [Processor.display_name][google.cloud.documentai.v1beta3.Processor.display_name]
897+ // to be set. Also, the
882898 // [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
883899 // field must be set if the processor is under CMEK.
884900 Processor processor = 2 [(google.api.field_behavior ) = REQUIRED ];
@@ -1027,9 +1043,24 @@ message TrainProcessorVersionRequest {
10271043 TrainingMethod training_method = 3 ;
10281044 }
10291045
1046+ // Options to control foundation model tuning of the processor.
1047+ message FoundationModelTuningOptions {
1048+ // Optional. The number of steps to run for model tuning. Valid values are
1049+ // between 1 and 400. If not provided, recommended steps will be used.
1050+ int32 train_steps = 2 [(google.api.field_behavior ) = OPTIONAL ];
1051+
1052+ // Optional. The multiplier to apply to the recommended learning rate. Valid
1053+ // values are between 0.1 and 10. If not provided, recommended learning rate
1054+ // will be used.
1055+ float learning_rate_multiplier = 3 [(google.api.field_behavior ) = OPTIONAL ];
1056+ }
1057+
10301058 oneof processor_flags {
10311059 // Options to control Custom Document Extraction (CDE) Processor.
10321060 CustomDocumentExtractionOptions custom_document_extraction_options = 5 ;
1061+
1062+ // Options to control foundation model tuning of a processor.
1063+ FoundationModelTuningOptions foundation_model_tuning_options = 12 ;
10331064 }
10341065
10351066 // Required. The parent (project, location and processor) to create the new
0 commit comments