File tree Expand file tree Collapse file tree 3 files changed +3
-214
lines changed
test/java/beta/example/language Expand file tree Collapse file tree 3 files changed +3
-214
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -282,7 +282,9 @@ public static void classifyText(String text) throws Exception {
282282 try (LanguageServiceClient language = LanguageServiceClient .create ()) {
283283 // Set content to the text string
284284 Document doc = Document .newBuilder ().setContent (text ).setType (Type .PLAIN_TEXT ).build ();
285- V2Model v2Model = V2Model .setContentCategoriesVersion (ContentCategoriesVersion .V2 ).build ();
285+ V2Model v2Model = V2Model .newBuilder ()
286+ .setContentCategoriesVersion (ContentCategoriesVersion .V2 )
287+ .build ();
286288 ClassificationModelOptions options =
287289 ClassificationModelOptions .newBuilder ().setV2Model (v2Model ).build ();
288290 ClassifyTextRequest request =
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments