Skip to content

Commit 075b57b

Browse files
alixhaminnegrey
authored andcommitted
updates all _file_gcs to _gcs (GoogleCloudPlatform#1192)
1 parent 4ba93c4 commit 075b57b

File tree

1 file changed

+10
-10
lines changed
  • language/analysis/src/main/java/com/google/cloud/language/samples

1 file changed

+10
-10
lines changed

language/analysis/src/main/java/com/google/cloud/language/samples/Analyze.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static void analyzeEntitiesText(String text) throws Exception {
131131
* Identifies entities in the contents of the object at the given GCS {@code path}.
132132
*/
133133
public static void analyzeEntitiesFile(String gcsUri) throws Exception {
134-
// [START language_entities_file_gcs]
134+
// [START language_entities_gcs]
135135
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
136136
try (LanguageServiceClient language = LanguageServiceClient.create()) {
137137
// set the GCS Content URI path to the file to be analyzed
@@ -161,7 +161,7 @@ public static void analyzeEntitiesFile(String gcsUri) throws Exception {
161161
}
162162
}
163163
}
164-
// [END language_entities_file_gcs]
164+
// [END language_entities_gcs]
165165
}
166166

167167
/**
@@ -192,7 +192,7 @@ public static Sentiment analyzeSentimentText(String text) throws Exception {
192192
* Gets {@link Sentiment} from the contents of the GCS hosted file.
193193
*/
194194
public static Sentiment analyzeSentimentFile(String gcsUri) throws Exception {
195-
// [START language_sentiment_file_gcs]
195+
// [START language_sentiment_gcs]
196196
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
197197
try (LanguageServiceClient language = LanguageServiceClient.create()) {
198198
Document doc = Document.newBuilder()
@@ -209,7 +209,7 @@ public static Sentiment analyzeSentimentFile(String gcsUri) throws Exception {
209209
}
210210
return sentiment;
211211
}
212-
// [END language_sentiment_file_gcs]
212+
// [END language_sentiment_gcs]
213213
}
214214

215215
/**
@@ -259,7 +259,7 @@ public static List<Token> analyzeSyntaxText(String text) throws Exception {
259259
* Get the syntax of the GCS hosted file.
260260
*/
261261
public static List<Token> analyzeSyntaxFile(String gcsUri) throws Exception {
262-
// [START language_syntax_file_gcs]
262+
// [START language_syntax_gcs]
263263
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
264264
try (LanguageServiceClient language = LanguageServiceClient.create()) {
265265
Document doc = Document.newBuilder()
@@ -296,7 +296,7 @@ public static List<Token> analyzeSyntaxFile(String gcsUri) throws Exception {
296296

297297
return response.getTokensList();
298298
}
299-
// [END language_syntax_file_gcs]
299+
// [END language_syntax_gcs]
300300
}
301301

302302
/**
@@ -329,7 +329,7 @@ public static void classifyText(String text) throws Exception {
329329
* Detects categories in a GCS hosted file using the Language Beta API.
330330
*/
331331
public static void classifyFile(String gcsUri) throws Exception {
332-
// [START language_classify_file_gcs]
332+
// [START language_classify_gcs]
333333
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
334334
try (LanguageServiceClient language = LanguageServiceClient.create()) {
335335
// set the GCS content URI path
@@ -348,7 +348,7 @@ public static void classifyFile(String gcsUri) throws Exception {
348348
category.getName(), category.getConfidence());
349349
}
350350
}
351-
// [END language_classify_file_gcs]
351+
// [END language_classify_gcs]
352352
}
353353

354354
/**
@@ -386,7 +386,7 @@ public static void entitySentimentText(String text) throws Exception {
386386
* Identifies the entity sentiments in the the GCS hosted file using the Language Beta API.
387387
*/
388388
public static void entitySentimentFile(String gcsUri) throws Exception {
389-
// [START language_entity_sentiment_file_gcs]
389+
// [START language_entity_sentiment_gcs]
390390
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
391391
try (LanguageServiceClient language = LanguageServiceClient.create()) {
392392
Document doc = Document.newBuilder()
@@ -413,6 +413,6 @@ public static void entitySentimentFile(String gcsUri) throws Exception {
413413
}
414414
}
415415
}
416-
// [END language_entity_sentiment_file_gcs]
416+
// [END language_entity_sentiment_gcs]
417417
}
418418
}

0 commit comments

Comments
 (0)