You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-translate/src/main/java/com/google/cloud/translate/Detection.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@
26
26
* Information about a language detection. Objects of this class contain the detected language and
27
27
* possibly a confidence level.
28
28
*
29
-
* <a href="https://cloud.google.com/translate/v2/detecting-language-with-rest">Detecting Language
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ public Builder setTransportOptions(TransportOptions transportOptions) {
100
100
}
101
101
102
102
/**
103
-
* Sets project id. Setting a project id has no impact on the {@link Translate} service.
103
+
* Sets the project ID. Setting a project ID has no impact on the {@link Translate} service.
104
104
*
105
105
* @return the builder
106
106
*/
@@ -114,8 +114,8 @@ public Builder setProjectId(String projectId) {
114
114
* Sets the API key used to issue requests. This will be ignored if credentials are explicitly
115
115
* set with {@link ServiceOptions.Builder#setCredentials setCredentials}. If neither are set,
116
116
* and no Application Default Credentials are available, an API key is looked for in the
117
-
* {@code GOOGLE_API_KEY} environment variable. For instructions on how to get an API key see <a
* {@code GOOGLE_API_KEY} environment variable. For instructions on how to get an API key, see
118
+
* the <a href="https://cloud.google.com/translate/v2/quickstart">Translate Quickstart</a>.
119
119
*/
120
120
@Deprecated
121
121
publicBuildersetApiKey(StringapiKey) {
@@ -125,11 +125,10 @@ public Builder setApiKey(String apiKey) {
125
125
126
126
127
127
/**
128
-
* Sets the code for the default target language. If not set, English ({@code en}) is used.
129
-
* {@link Translate#translate(List, TranslateOption...)} and
130
-
* {@link Translate#translate(String, TranslateOption...)} calls will use this
131
-
* value unless a {@link TranslateOption#targetLanguage(String)} option is explicitly
132
-
* provided.
128
+
* Sets the code for the default target language. If not set, English ({@code en}) is
129
+
* used. Calls to {@link Translate#translate(List, TranslateOption...)} and
130
+
* {@link Translate#translate(String, TranslateOption...)} will use this value unless an option
131
+
* from {@link TranslateOption#targetLanguage(String)} is explicitly provided.
0 commit comments