Skip to content

Commit 0e6ff10

Browse files
authored
fix: update language_v1.Document to language_v1.types.Document (GoogleCloudPlatform#9900)
Fixes b/232089081
1 parent f283eb8 commit 0e6ff10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/snippets/cloud-client/v1/quickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def run_quickstart():
2929

3030
# The text to analyze
3131
text = "Hello, world!"
32-
document = language_v1.Document(
33-
content=text, type_=language_v1.Document.Type.PLAIN_TEXT
32+
document = language_v1.types.Document(
33+
content=text, type_=language_v1.types.Document.Type.PLAIN_TEXT
3434
)
3535

3636
# Detects the sentiment of the text

0 commit comments

Comments
 (0)