diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto index a84bfc4fba6..b18537f30b9 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto @@ -66,7 +66,8 @@ message GcsPrefix { // The common config to specify a set of documents used as input. message BatchDocumentsInputConfig { - // The source. + // The source. Make sure that the caller of the API has storage.objects.get + // access to the buckets. oneof source { // The set of documents that match the specified Cloud Storage `gcs_prefix`. GcsPrefix gcs_prefix = 1; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto index a39ba6ded05..03ca4730266 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -359,8 +359,9 @@ message ProcessOptions { // If a page range is set, only the given pages are extracted and processed // from the document. In the output document, // [Document.Page.page_number][google.cloud.documentai.v1.Document.Page.page_number] - // refers to the page number in the original document. This configuration - // only applies to sync requests. + // refers to the page number in the original document. + // This configuration only applies to online processing with + // [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]. oneof page_range { // Which pages to process (1-indexed). IndividualPageSelector individual_page_selector = 5; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto index 25e3d24b176..220a3b42e43 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/dataset.proto @@ -174,6 +174,12 @@ message DatasetSchema { // Optional. Schema of the dataset. DocumentSchema document_schema = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Dataset documents that the batch operation will be applied to. diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto index edb1364b266..d0db0252fd6 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto @@ -66,7 +66,8 @@ message GcsPrefix { // The common config to specify a set of documents used as input. message BatchDocumentsInputConfig { - // The source. + // The source. Make sure that the caller of the API has storage.objects.get + // access to the buckets. oneof source { // The set of documents that match the specified Cloud Storage `gcs_prefix`. GcsPrefix gcs_prefix = 1; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto index 31b5182f9c0..b84d38643d3 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -384,8 +384,9 @@ message ProcessOptions { // If a page range is set, only the given pages are extracted and processed // from the document. In the output document, // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number] - // refers to the page number in the original document. This configuration - // only applies to sync requests. + // refers to the page number in the original document. + // This configuration only applies to online processing with + // [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]. oneof page_range { // Which pages to process (1-indexed). IndividualPageSelector individual_page_selector = 5; diff --git a/packages/google-cloud-documentai/protos/protos.d.ts b/packages/google-cloud-documentai/protos/protos.d.ts index c1c9a873a5a..410773ab66d 100644 --- a/packages/google-cloud-documentai/protos/protos.d.ts +++ b/packages/google-cloud-documentai/protos/protos.d.ts @@ -29001,6 +29001,12 @@ export namespace google { /** DatasetSchema documentSchema */ documentSchema?: (google.cloud.documentai.v1beta3.IDocumentSchema|null); + + /** DatasetSchema satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** DatasetSchema satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a DatasetSchema. */ @@ -29018,6 +29024,12 @@ export namespace google { /** DatasetSchema documentSchema. */ public documentSchema?: (google.cloud.documentai.v1beta3.IDocumentSchema|null); + /** DatasetSchema satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** DatasetSchema satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new DatasetSchema instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-documentai/protos/protos.js b/packages/google-cloud-documentai/protos/protos.js index 4fce4f24966..fda880f9d11 100644 --- a/packages/google-cloud-documentai/protos/protos.js +++ b/packages/google-cloud-documentai/protos/protos.js @@ -72328,6 +72328,8 @@ * @interface IDatasetSchema * @property {string|null} [name] DatasetSchema name * @property {google.cloud.documentai.v1beta3.IDocumentSchema|null} [documentSchema] DatasetSchema documentSchema + * @property {boolean|null} [satisfiesPzs] DatasetSchema satisfiesPzs + * @property {boolean|null} [satisfiesPzi] DatasetSchema satisfiesPzi */ /** @@ -72361,6 +72363,22 @@ */ DatasetSchema.prototype.documentSchema = null; + /** + * DatasetSchema satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.documentai.v1beta3.DatasetSchema + * @instance + */ + DatasetSchema.prototype.satisfiesPzs = false; + + /** + * DatasetSchema satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.documentai.v1beta3.DatasetSchema + * @instance + */ + DatasetSchema.prototype.satisfiesPzi = false; + /** * Creates a new DatasetSchema instance using the specified properties. * @function create @@ -72389,6 +72407,10 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.documentSchema != null && Object.hasOwnProperty.call(message, "documentSchema")) $root.google.cloud.documentai.v1beta3.DocumentSchema.encode(message.documentSchema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.satisfiesPzi); return writer; }; @@ -72431,6 +72453,14 @@ message.documentSchema = $root.google.cloud.documentai.v1beta3.DocumentSchema.decode(reader, reader.uint32()); break; } + case 4: { + message.satisfiesPzs = reader.bool(); + break; + } + case 5: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -72474,6 +72504,12 @@ if (error) return "documentSchema." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -72496,6 +72532,10 @@ throw TypeError(".google.cloud.documentai.v1beta3.DatasetSchema.documentSchema: object expected"); message.documentSchema = $root.google.cloud.documentai.v1beta3.DocumentSchema.fromObject(object.documentSchema); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -72515,11 +72555,17 @@ if (options.defaults) { object.name = ""; object.documentSchema = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.documentSchema != null && message.hasOwnProperty("documentSchema")) object.documentSchema = $root.google.cloud.documentai.v1beta3.DocumentSchema.toObject(message.documentSchema, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; diff --git a/packages/google-cloud-documentai/protos/protos.json b/packages/google-cloud-documentai/protos/protos.json index 464ef59c0d2..1e2ad4a604d 100644 --- a/packages/google-cloud-documentai/protos/protos.json +++ b/packages/google-cloud-documentai/protos/protos.json @@ -6228,6 +6228,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, diff --git a/packages/google-cloud-documentai/src/v1/document_processor_service_client_config.json b/packages/google-cloud-documentai/src/v1/document_processor_service_client_config.json index 82435251ecd..dc1f741acb4 100644 --- a/packages/google-cloud-documentai/src/v1/document_processor_service_client_config.json +++ b/packages/google-cloud-documentai/src/v1/document_processor_service_client_config.json @@ -6,6 +6,11 @@ "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" + ], + "deadline_exceeded_resource_exhausted_unavailable": [ + "DEADLINE_EXCEEDED", + "RESOURCE_EXHAUSTED", + "UNAVAILABLE" ] }, "retry_params": { @@ -17,18 +22,36 @@ "rpc_timeout_multiplier": 1, "max_rpc_timeout_millis": 60000, "total_timeout_millis": 600000 + }, + "cf44f94e283152b741c30fbc9df4a6abb71aa468": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 9, + "max_retry_delay_millis": 90000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "c85d7af2fd532496a9c7916f9bf84795125b2bf2": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.5, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 } }, "methods": { "ProcessDocument": { "timeout_millis": 300000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable", + "retry_params_name": "cf44f94e283152b741c30fbc9df4a6abb71aa468" }, "BatchProcessDocuments": { "timeout_millis": 120000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "c85d7af2fd532496a9c7916f9bf84795125b2bf2" }, "FetchProcessorTypes": { "retry_codes_name": "non_idempotent", @@ -97,7 +120,7 @@ "ReviewDocument": { "timeout_millis": 120000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "c85d7af2fd532496a9c7916f9bf84795125b2bf2" }, "EvaluateProcessorVersion": { "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client_config.json b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client_config.json index e6b9cc46e4e..04847ad3c4f 100644 --- a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client_config.json +++ b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client_config.json @@ -6,6 +6,11 @@ "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" + ], + "deadline_exceeded_resource_exhausted_unavailable": [ + "DEADLINE_EXCEEDED", + "RESOURCE_EXHAUSTED", + "UNAVAILABLE" ] }, "retry_params": { @@ -17,18 +22,36 @@ "rpc_timeout_multiplier": 1, "max_rpc_timeout_millis": 60000, "total_timeout_millis": 600000 + }, + "cf44f94e283152b741c30fbc9df4a6abb71aa468": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 9, + "max_retry_delay_millis": 90000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "c85d7af2fd532496a9c7916f9bf84795125b2bf2": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.5, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 } }, "methods": { "ProcessDocument": { "timeout_millis": 300000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable", + "retry_params_name": "cf44f94e283152b741c30fbc9df4a6abb71aa468" }, "BatchProcessDocuments": { "timeout_millis": 120000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "c85d7af2fd532496a9c7916f9bf84795125b2bf2" }, "FetchProcessorTypes": { "retry_codes_name": "non_idempotent", @@ -97,7 +120,7 @@ "ReviewDocument": { "timeout_millis": 120000, "retry_codes_name": "idempotent", - "retry_params_name": "default" + "retry_params_name": "c85d7af2fd532496a9c7916f9bf84795125b2bf2" }, "EvaluateProcessorVersion": { "retry_codes_name": "non_idempotent",