Skip to content

Commit f9bd3d0

Browse files
Google APIscopybara-github
authored andcommitted
docs: updated comments
PiperOrigin-RevId: 578242041
1 parent fabe911 commit f9bd3d0

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

google/cloud/documentai/v1/document_io.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ message OcrConfig {
124124

125125
// Configurations for premium OCR features.
126126
message PremiumFeatures {
127-
// Turn on selection mark detector in OCR engine. Only available in OCR 2.0+
128-
// processors.
127+
// Turn on selection mark detector in OCR engine. Only available in OCR 2.0
128+
// (and later) processors.
129129
bool enable_selection_mark_detection = 3;
130130

131131
// Turn on font identification model and return font style information.
@@ -166,7 +166,7 @@ message OcrConfig {
166166
bool compute_style_info = 8 [deprecated = true];
167167

168168
// Turn off character box detector in OCR engine. Character box detection is
169-
// enabled by default in OCR 2.0+ processors.
169+
// enabled by default in OCR 2.0 (and later) processors.
170170
bool disable_character_boxes_detection = 10;
171171

172172
// Configurations for premium OCR features.

google/cloud/documentai/v1/document_processor_service.proto

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,17 +334,19 @@ message ProcessOptions {
334334
repeated int32 pages = 1 [(google.api.field_behavior) = OPTIONAL];
335335
}
336336

337-
// A subset of pages to process. If not specified, all pages will be
338-
// processed. NOTICE: If any of the page range is set, we will extract and
339-
// process only the given pages from the document. In the output document,
340-
// the page_number is referring to the page number in the original document.
341-
// This config only applies to sync requests.
337+
// A subset of pages to process. If not specified, all pages are processed.
338+
// If a page range is set, only the given pages are extracted and processed
339+
// from the document. In the output document,
340+
// [Document.Page.page_number][google.cloud.documentai.v1.Document.Page.page_number]
341+
// refers to the page number in the original document. This configuration
342+
// only applies to sync requests. `page_range` can be only one of the
343+
// following:
342344
oneof page_range {
343345
// Which pages to process (1-indexed).
344346
IndividualPageSelector individual_page_selector = 5;
345347

346-
// Only process certain pages from the start, process all if the document
347-
// has less pages.
348+
// Only process certain pages from the start. Process all if the document
349+
// has fewer pages.
348350
int32 from_start = 6;
349351

350352
// Only process certain pages from the end, same as above.

0 commit comments

Comments
 (0)