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

Commit

Permalink
feat: Use non-regionalized default host name for documentai.googleapi…
Browse files Browse the repository at this point in the history
…s.com

PiperOrigin-RevId: 373516134

Source-Author: Google APIs <[email protected]>
Source-Date: Wed May 12 22:04:27 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: b29fb6b9fcdf3bc67487fa22ab7783915023041e
Source-Link: googleapis/googleapis@b29fb6b
  • Loading branch information
yoshi-automation committed May 13, 2021
1 parent 14c3a6b commit 05d64a8
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 53 deletions.
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 @@ -60,7 +60,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 @@ -150,7 +150,7 @@ 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 service scopes. */
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 @@ -60,7 +60,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 @@ -151,7 +151,7 @@ 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 service scopes. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/\n\013update_time\030\004 \001(\0132\032.google.protobuf.T"
+ "imestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
+ "\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEED"
+ "ED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\0052\256\006\n\030Docu"
+ "ED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\0052\253\006\n\030Docu"
+ "mentProcessorService\022\264\001\n\017ProcessDocument"
+ "\022*.google.cloud.documentai.v1.ProcessReq"
+ "uest\032+.google.cloud.documentai.v1.Proces"
Expand All @@ -165,22 +165,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ssors/*/humanReviewConfig}:reviewDocumen"
+ "t:\001*\332A\023human_review_config\312A9\n\026ReviewDoc"
+ "umentResponse\022\037ReviewDocumentOperationMe"
+ "tadata\032P\312A\034us-documentai.googleapis.com\322"
+ "A.https://www.googleapis.com/auth/cloud-"
+ "platformB\230\004\n\036com.google.cloud.documentai"
+ ".v1B\032DocumentAiProcessorServiceP\001ZDgoogl"
+ "e.golang.org/genproto/googleapis/cloud/d"
+ "ocumentai/v1;documentai\252\002\032Google.Cloud.D"
+ "ocumentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V"
+ "1\352\002\035Google::Cloud::DocumentAI::V1\352AM\n\"do"
+ "cumentai.googleapis.com/Location\022\'projec"
+ "ts/{project}/locations/{location}\352Ae\n#do"
+ "cumentai.googleapis.com/Processor\022>proje"
+ "cts/{project}/locations/{location}/proce"
+ "ssors/{processor}\352A\177\n+documentai.googlea"
+ "pis.com/HumanReviewConfig\022Pprojects/{pro"
+ "ject}/locations/{location}/processors/{p"
+ "rocessor}/humanReviewConfigb\006proto3"
+ "tadata\032M\312A\031documentai.googleapis.com\322A.h"
+ "ttps://www.googleapis.com/auth/cloud-pla"
+ "tformB\230\004\n\036com.google.cloud.documentai.v1"
+ "B\032DocumentAiProcessorServiceP\001ZDgoogle.g"
+ "olang.org/genproto/googleapis/cloud/docu"
+ "mentai/v1;documentai\252\002\032Google.Cloud.Docu"
+ "mentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V1\352\002"
+ "\035Google::Cloud::DocumentAI::V1\352AM\n\"docum"
+ "entai.googleapis.com/Location\022\'projects/"
+ "{project}/locations/{location}\352Ae\n#docum"
+ "entai.googleapis.com/Processor\022>projects"
+ "/{project}/locations/{location}/processo"
+ "rs/{processor}\352A\177\n+documentai.googleapis"
+ ".com/HumanReviewConfig\022Pprojects/{projec"
+ "t}/locations/{location}/processors/{proc"
+ "essor}/humanReviewConfigb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ option (google.api.resource_definition) = {
// AI such as natural language, computer vision, and translation to extract
// structured information from unstructured or semi-structured documents.
service DocumentProcessorService {
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";

// Processes a single document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"e\n"
+ "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING"
+ "\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAI"
+ "LED\020\004\022\r\n\tCANCELLED\020\0052\322\006\n\030DocumentProcess"
+ "LED\020\004\022\r\n\tCANCELLED\020\0052\317\006\n\030DocumentProcess"
+ "orService\022\303\001\n\017ProcessDocument\022/.google.c"
+ "loud.documentai.v1beta3.ProcessRequest\0320"
+ ".google.cloud.documentai.v1beta3.Process"
Expand All @@ -196,24 +196,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "jects/*/locations/*/processors/*/humanRe"
+ "viewConfig}:reviewDocument:\001*\332A\023human_re"
+ "view_config\312A9\n\026ReviewDocumentResponse\022\037"
+ "ReviewDocumentOperationMetadata\032P\312A\034us-d"
+ "ocumentai.googleapis.com\322A.https://www.g"
+ "oogleapis.com/auth/cloud-platformB\261\004\n#co"
+ "m.google.cloud.documentai.v1beta3B\032Docum"
+ "entAiProcessorServiceP\001ZIgoogle.golang.o"
+ "rg/genproto/googleapis/cloud/documentai/"
+ "v1beta3;documentai\252\002\037Google.Cloud.Docume"
+ "ntAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V"
+ "1beta3\352\002\"Google::Cloud::DocumentAI::V1be"
+ "ta3\352AM\n\"documentai.googleapis.com/Locati"
+ "on\022\'projects/{project}/locations/{locati"
+ "on}\352Ae\n#documentai.googleapis.com/Proces"
+ "sor\022>projects/{project}/locations/{locat"
+ "ion}/processors/{processor}\352A\177\n+document"
+ "ai.googleapis.com/HumanReviewConfig\022Ppro"
+ "jects/{project}/locations/{location}/pro"
+ "cessors/{processor}/humanReviewConfigb\006p"
+ "roto3"
+ "ReviewDocumentOperationMetadata\032M\312A\031docu"
+ "mentai.googleapis.com\322A.https://www.goog"
+ "leapis.com/auth/cloud-platformB\261\004\n#com.g"
+ "oogle.cloud.documentai.v1beta3B\032Document"
+ "AiProcessorServiceP\001ZIgoogle.golang.org/"
+ "genproto/googleapis/cloud/documentai/v1b"
+ "eta3;documentai\252\002\037Google.Cloud.DocumentA"
+ "I.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1be"
+ "ta3\352\002\"Google::Cloud::DocumentAI::V1beta3"
+ "\352AM\n\"documentai.googleapis.com/Location\022"
+ "\'projects/{project}/locations/{location}"
+ "\352Ae\n#documentai.googleapis.com/Processor"
+ "\022>projects/{project}/locations/{location"
+ "}/processors/{processor}\352A\177\n+documentai."
+ "googleapis.com/HumanReviewConfig\022Pprojec"
+ "ts/{project}/locations/{location}/proces"
+ "sors/{processor}/humanReviewConfigb\006prot"
+ "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ option (google.api.resource_definition) = {
// AI such as natural language, computer vision, and translation to extract
// structured information from unstructured or semi-structured documents.
service DocumentProcessorService {
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";

// Processes a single document.
Expand Down
18 changes: 9 additions & 9 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
"sha": "5dbd66d90ac5b85a3925ba3524c2b0b0d758ead6"
"sha": "14c3a6b3c43869784d466aa0f74ca2c7871ef56d"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
"internalRef": "370513265"
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
"internalRef": "373516134"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
"internalRef": "370513265"
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
"internalRef": "373516134"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
"internalRef": "370513265"
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
"internalRef": "373516134"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7713e2e860003a84b35b701de29dd0769795e1e3",
"internalRef": "370513265"
"sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
"internalRef": "373516134"
}
},
{
Expand Down

0 comments on commit 05d64a8

Please sign in to comment.