diff --git a/README.md b/README.md
index 7d9bbc78..ca5ab28d 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
index 198bb1fd..72f1315d 100644
--- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
+++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
@@ -40,7 +40,7 @@
*
The default instance has everything set to sensible defaults:
*
*
- * - The default service address (us-documentai.googleapis.com) and default port (443) are used.
+ *
- The default service address (documentai.googleapis.com) and default port (443) are used.
*
- Credentials are acquired automatically through Application Default Credentials.
*
- Retries are configured for idempotent methods but not for non-idempotent methods.
*
diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
index 7ee2c091..96150eac 100644
--- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
+++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
@@ -57,7 +57,7 @@
* The default instance has everything set to sensible defaults:
*
*
- * - The default service address (us-documentai.googleapis.com) and default port (443) are used.
+ *
- The default service address (documentai.googleapis.com) and default port (443) are used.
*
- Credentials are acquired automatically through Application Default Credentials.
*
- Retries are configured for idempotent methods but not for non-idempotent methods.
*
@@ -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. */
diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java
index 6d96df91..97d40c62 100644
--- a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java
+++ b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java
@@ -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"
@@ -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(
diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto b/proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto
index cf336f01..137ba5e3 100644
--- a/proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto
+++ b/proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto
@@ -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