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

Commit 8b0c212

Browse files
feat: Use non-regionalized default host name for documentai.googleapis.com (#476)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/314d186f-5257-43ad-9396-ff1623c83eb2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 373516134 Source-Link: googleapis/googleapis@b29fb6b
1 parent 2fac8fc commit 8b0c212

9 files changed

Lines changed: 52 additions & 52 deletions

File tree

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.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/v1/stub/DocumentProcessorServiceStubSettings.java

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

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

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

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.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/v1beta3/stub/DocumentProcessorServiceStubSettings.java

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

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

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

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessorService.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
146146
+ "/\n\013update_time\030\004 \001(\0132\032.google.protobuf.T"
147147
+ "imestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
148148
+ "\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEED"
149-
+ "ED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\0052\256\006\n\030Docu"
149+
+ "ED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\0052\253\006\n\030Docu"
150150
+ "mentProcessorService\022\264\001\n\017ProcessDocument"
151151
+ "\022*.google.cloud.documentai.v1.ProcessReq"
152152
+ "uest\032+.google.cloud.documentai.v1.Proces"
@@ -165,22 +165,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
165165
+ "ssors/*/humanReviewConfig}:reviewDocumen"
166166
+ "t:\001*\332A\023human_review_config\312A9\n\026ReviewDoc"
167167
+ "umentResponse\022\037ReviewDocumentOperationMe"
168-
+ "tadata\032P\312A\034us-documentai.googleapis.com\322"
169-
+ "A.https://www.googleapis.com/auth/cloud-"
170-
+ "platformB\230\004\n\036com.google.cloud.documentai"
171-
+ ".v1B\032DocumentAiProcessorServiceP\001ZDgoogl"
172-
+ "e.golang.org/genproto/googleapis/cloud/d"
173-
+ "ocumentai/v1;documentai\252\002\032Google.Cloud.D"
174-
+ "ocumentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V"
175-
+ "1\352\002\035Google::Cloud::DocumentAI::V1\352AM\n\"do"
176-
+ "cumentai.googleapis.com/Location\022\'projec"
177-
+ "ts/{project}/locations/{location}\352Ae\n#do"
178-
+ "cumentai.googleapis.com/Processor\022>proje"
179-
+ "cts/{project}/locations/{location}/proce"
180-
+ "ssors/{processor}\352A\177\n+documentai.googlea"
181-
+ "pis.com/HumanReviewConfig\022Pprojects/{pro"
182-
+ "ject}/locations/{location}/processors/{p"
183-
+ "rocessor}/humanReviewConfigb\006proto3"
168+
+ "tadata\032M\312A\031documentai.googleapis.com\322A.h"
169+
+ "ttps://www.googleapis.com/auth/cloud-pla"
170+
+ "tformB\230\004\n\036com.google.cloud.documentai.v1"
171+
+ "B\032DocumentAiProcessorServiceP\001ZDgoogle.g"
172+
+ "olang.org/genproto/googleapis/cloud/docu"
173+
+ "mentai/v1;documentai\252\002\032Google.Cloud.Docu"
174+
+ "mentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V1\352\002"
175+
+ "\035Google::Cloud::DocumentAI::V1\352AM\n\"docum"
176+
+ "entai.googleapis.com/Location\022\'projects/"
177+
+ "{project}/locations/{location}\352Ae\n#docum"
178+
+ "entai.googleapis.com/Processor\022>projects"
179+
+ "/{project}/locations/{location}/processo"
180+
+ "rs/{processor}\352A\177\n+documentai.googleapis"
181+
+ ".com/HumanReviewConfig\022Pprojects/{projec"
182+
+ "t}/locations/{location}/processors/{proc"
183+
+ "essor}/humanReviewConfigb\006proto3"
184184
};
185185
descriptor =
186186
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ option (google.api.resource_definition) = {
5252
// AI such as natural language, computer vision, and translation to extract
5353
// structured information from unstructured or semi-structured documents.
5454
service DocumentProcessorService {
55-
option (google.api.default_host) = "us-documentai.googleapis.com";
55+
option (google.api.default_host) = "documentai.googleapis.com";
5656
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
5757

5858
// Processes a single document.

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
177177
+ "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"e\n"
178178
+ "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING"
179179
+ "\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAI"
180-
+ "LED\020\004\022\r\n\tCANCELLED\020\0052\322\006\n\030DocumentProcess"
180+
+ "LED\020\004\022\r\n\tCANCELLED\020\0052\317\006\n\030DocumentProcess"
181181
+ "orService\022\303\001\n\017ProcessDocument\022/.google.c"
182182
+ "loud.documentai.v1beta3.ProcessRequest\0320"
183183
+ ".google.cloud.documentai.v1beta3.Process"
@@ -196,24 +196,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
196196
+ "jects/*/locations/*/processors/*/humanRe"
197197
+ "viewConfig}:reviewDocument:\001*\332A\023human_re"
198198
+ "view_config\312A9\n\026ReviewDocumentResponse\022\037"
199-
+ "ReviewDocumentOperationMetadata\032P\312A\034us-d"
200-
+ "ocumentai.googleapis.com\322A.https://www.g"
201-
+ "oogleapis.com/auth/cloud-platformB\261\004\n#co"
202-
+ "m.google.cloud.documentai.v1beta3B\032Docum"
203-
+ "entAiProcessorServiceP\001ZIgoogle.golang.o"
204-
+ "rg/genproto/googleapis/cloud/documentai/"
205-
+ "v1beta3;documentai\252\002\037Google.Cloud.Docume"
206-
+ "ntAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V"
207-
+ "1beta3\352\002\"Google::Cloud::DocumentAI::V1be"
208-
+ "ta3\352AM\n\"documentai.googleapis.com/Locati"
209-
+ "on\022\'projects/{project}/locations/{locati"
210-
+ "on}\352Ae\n#documentai.googleapis.com/Proces"
211-
+ "sor\022>projects/{project}/locations/{locat"
212-
+ "ion}/processors/{processor}\352A\177\n+document"
213-
+ "ai.googleapis.com/HumanReviewConfig\022Ppro"
214-
+ "jects/{project}/locations/{location}/pro"
215-
+ "cessors/{processor}/humanReviewConfigb\006p"
216-
+ "roto3"
199+
+ "ReviewDocumentOperationMetadata\032M\312A\031docu"
200+
+ "mentai.googleapis.com\322A.https://www.goog"
201+
+ "leapis.com/auth/cloud-platformB\261\004\n#com.g"
202+
+ "oogle.cloud.documentai.v1beta3B\032Document"
203+
+ "AiProcessorServiceP\001ZIgoogle.golang.org/"
204+
+ "genproto/googleapis/cloud/documentai/v1b"
205+
+ "eta3;documentai\252\002\037Google.Cloud.DocumentA"
206+
+ "I.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1be"
207+
+ "ta3\352\002\"Google::Cloud::DocumentAI::V1beta3"
208+
+ "\352AM\n\"documentai.googleapis.com/Location\022"
209+
+ "\'projects/{project}/locations/{location}"
210+
+ "\352Ae\n#documentai.googleapis.com/Processor"
211+
+ "\022>projects/{project}/locations/{location"
212+
+ "}/processors/{processor}\352A\177\n+documentai."
213+
+ "googleapis.com/HumanReviewConfig\022Pprojec"
214+
+ "ts/{project}/locations/{location}/proces"
215+
+ "sors/{processor}/humanReviewConfigb\006prot"
216+
+ "o3"
217217
};
218218
descriptor =
219219
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ option (google.api.resource_definition) = {
5757
// AI such as natural language, computer vision, and translation to extract
5858
// structured information from unstructured or semi-structured documents.
5959
service DocumentProcessorService {
60-
option (google.api.default_host) = "us-documentai.googleapis.com";
60+
option (google.api.default_host) = "documentai.googleapis.com";
6161
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
6262

6363
// Processes a single document.

synth.metadata

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,32 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
15-
"internalRef": "370513265"
14+
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
15+
"internalRef": "373516134"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
23-
"internalRef": "370513265"
22+
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
23+
"internalRef": "373516134"
2424
}
2525
},
2626
{
2727
"git": {
2828
"name": "googleapis",
2929
"remote": "https://github.com/googleapis/googleapis.git",
30-
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
31-
"internalRef": "370513265"
30+
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
31+
"internalRef": "373516134"
3232
}
3333
},
3434
{
3535
"git": {
3636
"name": "googleapis",
3737
"remote": "https://github.com/googleapis/googleapis.git",
38-
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
39-
"internalRef": "370513265"
38+
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
39+
"internalRef": "373516134"
4040
}
4141
},
4242
{

0 commit comments

Comments
 (0)