Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

docs: Fix formatting of request arg in docstring #429

Merged
merged 2 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,9 @@ async def sample_annotate_text():
Args:
request (Optional[Union[google.cloud.language_v1.types.AnnotateTextRequest, dict]]):
The request object. The request message for the text
annotation API, which can perform multiple analysis
types (sentiment, entities, and syntax) in one call.
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.
document (:class:`google.cloud.language_v1.types.Document`):
Required. Input document.
This corresponds to the ``document`` field
Expand Down
5 changes: 3 additions & 2 deletions google/cloud/language_v1/services/language_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,9 @@ def sample_annotate_text():
Args:
request (Union[google.cloud.language_v1.types.AnnotateTextRequest, dict]):
The request object. The request message for the text
annotation API, which can perform multiple analysis
types (sentiment, entities, and syntax) in one call.
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.
document (google.cloud.language_v1.types.Document):
Required. Input document.
This corresponds to the ``document`` field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def __call__(
request (~.language_service.AnalyzeEntitySentimentRequest):
The request object. The entity-level sentiment analysis
request message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -581,7 +580,6 @@ def __call__(
request (~.language_service.AnalyzeSentimentRequest):
The request object. The sentiment analysis request
message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -779,7 +777,6 @@ def __call__(
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -878,7 +875,6 @@ def __call__(
request (~.language_service.ClassifyTextRequest):
The request object. The document classification request
message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,9 @@ async def sample_annotate_text():
Args:
request (Optional[Union[google.cloud.language_v1beta2.types.AnnotateTextRequest, dict]]):
The request object. The request message for the text
annotation API, which can perform multiple analysis
types (sentiment, entities, and syntax) in one call.
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.
document (:class:`google.cloud.language_v1beta2.types.Document`):
Required. Input document.
This corresponds to the ``document`` field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,9 @@ def sample_annotate_text():
Args:
request (Union[google.cloud.language_v1beta2.types.AnnotateTextRequest, dict]):
The request object. The request message for the text
annotation API, which can perform multiple analysis
types (sentiment, entities, and syntax) in one call.
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.
document (google.cloud.language_v1beta2.types.Document):
Required. Input document.
This corresponds to the ``document`` field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def __call__(
request (~.language_service.AnalyzeEntitySentimentRequest):
The request object. The entity-level sentiment analysis
request message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -581,7 +580,6 @@ def __call__(
request (~.language_service.AnalyzeSentimentRequest):
The request object. The sentiment analysis request
message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -779,7 +777,6 @@ def __call__(
annotation API, which can perform
multiple analysis types (sentiment,
entities, and syntax) in one call.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -878,7 +875,6 @@ def __call__(
request (~.language_service.ClassifyTextRequest):
The request object. The document classification request
message.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down