From 79b8d825244748473efcee1d75653aa2b5077055 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:53:50 -0700 Subject: [PATCH] fix: Update DocumentUnderstandingService default_host in v1beta2 from a regional endpoint, to non-regional (#252) Committer: @nicain PiperOrigin-RevId: 390219495 --- .../cloud/documentai/v1beta2/document_understanding.proto | 2 +- protos/protos.json | 2 +- src/v1beta2/document_understanding_service_client.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protos/google/cloud/documentai/v1beta2/document_understanding.proto b/protos/google/cloud/documentai/v1beta2/document_understanding.proto index cf336f014..137ba5e31 100644 --- a/protos/google/cloud/documentai/v1beta2/document_understanding.proto +++ b/protos/google/cloud/documentai/v1beta2/document_understanding.proto @@ -36,7 +36,7 @@ option ruby_package = "Google::Cloud::DocumentAI::V1beta2"; // documents using state-of-the-art Google AI such as natural language, // computer vision, and translation. service DocumentUnderstandingService { - 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"; // LRO endpoint to batch process many documents. The output is written diff --git a/protos/protos.json b/protos/protos.json index b7abceda7..04a286de0 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -2802,7 +2802,7 @@ }, "DocumentUnderstandingService": { "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/src/v1beta2/document_understanding_service_client.ts b/src/v1beta2/document_understanding_service_client.ts index ca4fb252d..62ce5d4ca 100644 --- a/src/v1beta2/document_understanding_service_client.ts +++ b/src/v1beta2/document_understanding_service_client.ts @@ -265,7 +265,7 @@ export class DocumentUnderstandingServiceClient { * @returns {string} The DNS address for this service. */ static get servicePath() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /** @@ -274,7 +274,7 @@ export class DocumentUnderstandingServiceClient { * @returns {string} The DNS address for this service. */ static get apiEndpoint() { - return 'us-documentai.googleapis.com'; + return 'documentai.googleapis.com'; } /**