Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
fix: Update DocumentUnderstandingService default_host in v1beta2 from…
Browse files Browse the repository at this point in the history
… a regional endpoint, to non-regional (#584)

Committer: @nicain
PiperOrigin-RevId: 390219495

Source-Link: googleapis/googleapis@09a6183

Source-Link: googleapis/googleapis-gen@6a6d8a4
  • Loading branch information
gcf-owl-bot[bot] committed Aug 12, 2021
1 parent fbb2f87 commit aeb841e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Expand Up @@ -40,7 +40,7 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (us-documentai.googleapis.com) and default port (443) are used.
* <li>The default service address (documentai.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
Expand Down
Expand Up @@ -57,7 +57,7 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (us-documentai.googleapis.com) and default port (443) are used.
* <li>The default service address (documentai.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
Expand Down Expand Up @@ -135,12 +135,12 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild

/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return "us-documentai.googleapis.com:443";
return "documentai.googleapis.com:443";
}

/** Returns the default mTLS service endpoint. */
public static String getDefaultMtlsEndpoint() {
return "us-documentai.mtls.googleapis.com:443";
return "documentai.mtls.googleapis.com:443";
}

/** Returns the default service scopes. */
Expand Down
Expand Up @@ -166,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le.protobuf.Timestamp\"p\n\005State\022\025\n\021STATE_"
+ "UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\013\n\007WAITING\020\002"
+ "\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLE"
+ "D\020\005\022\n\n\006FAILED\020\0062\243\005\n\034DocumentUnderstandin"
+ "D\020\005\022\n\n\006FAILED\020\0062\240\005\n\034DocumentUnderstandin"
+ "gService\022\274\002\n\025BatchProcessDocuments\022=.goo"
+ "gle.cloud.documentai.v1beta2.BatchProces"
+ "sDocumentsRequest\032\035.google.longrunning.O"
Expand All @@ -181,15 +181,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ocument\"z\202\323\344\223\002t\":/v1beta2/{parent=projec"
+ "ts/*/locations/*}/documents:process:\001*Z3"
+ "\"./v1beta2/{parent=projects/*}/documents"
+ ":process:\001*\032P\312A\034us-documentai.googleapis"
+ ".com\322A.https://www.googleapis.com/auth/c"
+ "loud-platformB\354\001\n#com.google.cloud.docum"
+ "entai.v1beta2B\017DocumentAiProtoP\001ZIgoogle"
+ ".golang.org/genproto/googleapis/cloud/do"
+ "cumentai/v1beta2;documentai\252\002\037Google.Clo"
+ "ud.DocumentAI.V1Beta2\312\002\037Google\\Cloud\\Doc"
+ "umentAI\\V1beta2\352\002\"Google::Cloud::Documen"
+ "tAI::V1beta2b\006proto3"
+ ":process:\001*\032M\312A\031documentai.googleapis.co"
+ "m\322A.https://www.googleapis.com/auth/clou"
+ "d-platformB\354\001\n#com.google.cloud.document"
+ "ai.v1beta2B\017DocumentAiProtoP\001ZIgoogle.go"
+ "lang.org/genproto/googleapis/cloud/docum"
+ "entai/v1beta2;documentai\252\002\037Google.Cloud."
+ "DocumentAI.V1Beta2\312\002\037Google\\Cloud\\Docume"
+ "ntAI\\V1beta2\352\002\"Google::Cloud::DocumentAI"
+ "::V1beta2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit aeb841e

Please sign in to comment.