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

Commit aeb841e

Browse files
fix: Update DocumentUnderstandingService default_host in v1beta2 from a regional endpoint, to non-regional (#584)
Committer: @nicain PiperOrigin-RevId: 390219495 Source-Link: googleapis/googleapis@09a6183 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6a6d8a449edb378a9d352716cafea8af5e5756f0
1 parent fbb2f87 commit aeb841e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* <p>The default instance has everything set to sensible defaults:
4141
*
4242
* <ul>
43-
* <li>The default service address (us-documentai.googleapis.com) and default port (443) are used.
43+
* <li>The default service address (documentai.googleapis.com) and default port (443) are used.
4444
* <li>Credentials are acquired automatically through Application Default Credentials.
4545
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4646
* </ul>

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* <p>The default instance has everything set to sensible defaults:
5858
*
5959
* <ul>
60-
* <li>The default service address (us-documentai.googleapis.com) and default port (443) are used.
60+
* <li>The default service address (documentai.googleapis.com) and default port (443) are used.
6161
* <li>Credentials are acquired automatically through Application Default Credentials.
6262
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
6363
* </ul>
@@ -135,12 +135,12 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
135135

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

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

146146
/** Returns the default service scopes. */

proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
166166
+ "le.protobuf.Timestamp\"p\n\005State\022\025\n\021STATE_"
167167
+ "UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\013\n\007WAITING\020\002"
168168
+ "\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLE"
169-
+ "D\020\005\022\n\n\006FAILED\020\0062\243\005\n\034DocumentUnderstandin"
169+
+ "D\020\005\022\n\n\006FAILED\020\0062\240\005\n\034DocumentUnderstandin"
170170
+ "gService\022\274\002\n\025BatchProcessDocuments\022=.goo"
171171
+ "gle.cloud.documentai.v1beta2.BatchProces"
172172
+ "sDocumentsRequest\032\035.google.longrunning.O"
@@ -181,15 +181,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
181181
+ "ocument\"z\202\323\344\223\002t\":/v1beta2/{parent=projec"
182182
+ "ts/*/locations/*}/documents:process:\001*Z3"
183183
+ "\"./v1beta2/{parent=projects/*}/documents"
184-
+ ":process:\001*\032P\312A\034us-documentai.googleapis"
185-
+ ".com\322A.https://www.googleapis.com/auth/c"
186-
+ "loud-platformB\354\001\n#com.google.cloud.docum"
187-
+ "entai.v1beta2B\017DocumentAiProtoP\001ZIgoogle"
188-
+ ".golang.org/genproto/googleapis/cloud/do"
189-
+ "cumentai/v1beta2;documentai\252\002\037Google.Clo"
190-
+ "ud.DocumentAI.V1Beta2\312\002\037Google\\Cloud\\Doc"
191-
+ "umentAI\\V1beta2\352\002\"Google::Cloud::Documen"
192-
+ "tAI::V1beta2b\006proto3"
184+
+ ":process:\001*\032M\312A\031documentai.googleapis.co"
185+
+ "m\322A.https://www.googleapis.com/auth/clou"
186+
+ "d-platformB\354\001\n#com.google.cloud.document"
187+
+ "ai.v1beta2B\017DocumentAiProtoP\001ZIgoogle.go"
188+
+ "lang.org/genproto/googleapis/cloud/docum"
189+
+ "entai/v1beta2;documentai\252\002\037Google.Cloud."
190+
+ "DocumentAI.V1Beta2\312\002\037Google\\Cloud\\Docume"
191+
+ "ntAI\\V1beta2\352\002\"Google::Cloud::DocumentAI"
192+
+ "::V1beta2b\006proto3"
193193
};
194194
descriptor =
195195
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ option ruby_package = "Google::Cloud::DocumentAI::V1beta2";
3636
// documents using state-of-the-art Google AI such as natural language,
3737
// computer vision, and translation.
3838
service DocumentUnderstandingService {
39-
option (google.api.default_host) = "us-documentai.googleapis.com";
39+
option (google.api.default_host) = "documentai.googleapis.com";
4040
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
4141

4242
// LRO endpoint to batch process many documents. The output is written

0 commit comments

Comments
 (0)