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

fix: Update DocumentUnderstandingService default_host in v1beta2 from a regional endpoint, to non-regional #584

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ compile 'com.google.cloud:google-cloud-document-ai'
If you are using Gradle without BOM, add this to your dependencies

```Groovy
compile 'com.google.cloud:google-cloud-document-ai:1.2.1'
compile 'com.google.cloud:google-cloud-document-ai:2.0.0'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "1.2.1"
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.0.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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