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

feat: Use non-regionalized default host name for documentai.googleapis.com #476

Merged
merged 2 commits into from
May 14, 2021
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
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
16 changes: 8 additions & 8 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@
"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