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 0d3e872ca62..033b3cb75a0 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 @@ -52,7 +52,7 @@ option (google.api.resource_definition) = { // AI such as natural language, computer vision, and translation to extract // structured information from unstructured or semi-structured documents. service DocumentProcessorService { - option (google.api.default_host) = "us-documentai.googleapis.com"; + option (google.api.default_host) = "documentai.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Processes a single document. 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 7c37b406b35..d69689f7c09 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 @@ -57,7 +57,7 @@ option (google.api.resource_definition) = { // AI such as natural language, computer vision, and translation to extract // structured information from unstructured or semi-structured documents. service DocumentProcessorService { - option (google.api.default_host) = "us-documentai.googleapis.com"; + option (google.api.default_host) = "documentai.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Processes a single document. diff --git a/packages/google-cloud-documentai/protos/protos.json b/packages/google-cloud-documentai/protos/protos.json index c35422f270d..5aea6b3717c 100644 --- a/packages/google-cloud-documentai/protos/protos.json +++ b/packages/google-cloud-documentai/protos/protos.json @@ -985,7 +985,7 @@ }, "DocumentProcessorService": { "options": { - "(google.api.default_host)": "us-documentai.googleapis.com", + "(google.api.default_host)": "documentai.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { @@ -4091,7 +4091,7 @@ }, "DocumentProcessorService": { "options": { - "(google.api.default_host)": "us-documentai.googleapis.com", + "(google.api.default_host)": "documentai.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { diff --git a/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts b/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts index 77d39b177bb..578d2500d2f 100644 --- a/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts +++ b/packages/google-cloud-documentai/src/v1/document_processor_service_client.ts @@ -280,7 +280,7 @@ export class DocumentProcessorServiceClient { * @returns {string} The DNS address for this service. */ static get servicePath() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /** @@ -289,7 +289,7 @@ export class DocumentProcessorServiceClient { * @returns {string} The DNS address for this service. */ static get apiEndpoint() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /** diff --git a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts index 7694507fff4..570cee2268f 100644 --- a/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts +++ b/packages/google-cloud-documentai/src/v1beta3/document_processor_service_client.ts @@ -280,7 +280,7 @@ export class DocumentProcessorServiceClient { * @returns {string} The DNS address for this service. */ static get servicePath() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /** @@ -289,7 +289,7 @@ export class DocumentProcessorServiceClient { * @returns {string} The DNS address for this service. */ static get apiEndpoint() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /**