Skip to content

Commit

Permalink
Fixed Typo in Comments
Browse files Browse the repository at this point in the history
- `other than 'us', e.g.:` -> `other than 'us'.`
  • Loading branch information
holtskinner authored and dandhlee committed Jan 5, 2023
1 parent ab01937 commit 82adb91
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def batch_process_documents_processor_version(
timeout: int = 400,
):

# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/batch_process_documents_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def batch_process_documents(
timeout: int = 400,
):

# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/cancel_operation_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def cancel_operation_sample(location: str, operation_name: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/create_processor_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def create_processor_sample(
project_id: str, location: str, processor_display_name: str, processor_type: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/delete_processor_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def delete_processor_sample(project_id: str, location: str, processor_id: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/delete_processor_version_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
def delete_processor_version_sample(
project_id: str, location: str, processor_id: str, processor_version_id: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/deploy_processor_version_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def deploy_processor_version_sample(
project_id: str, location: str, processor_id: str, processor_version_id: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/disable_processor_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def disable_processor_sample(project_id: str, location: str, processor_id: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/enable_processor_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def enable_processor_sample(project_id: str, location: str, processor_id: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/fetch_processor_types_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


def fetch_processor_types_sample(project_id: str, location: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/get_operation_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def get_operation_sample(location: str, operation_name: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/get_processor_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


def get_processor_sample(project_id: str, location: str, processor_id: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/get_processor_version_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def get_processor_version_sample(
project_id: str, location: str, processor_id: str, processor_version_id: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/list_operations_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


def list_operations_sample(project_id: str, location: str, operations_filter: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/list_processor_versions_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


def list_processor_versions_sample(project_id: str, location: str, processor_id: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/list_processors_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


def list_processors_sample(project_id: str, location: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/poll_operation_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def poll_operation_sample(location: str, operation_name: str):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_form_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def process_document_form_sample(
def process_document(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_ocr_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def process_document(
file_path: str,
mime_type: str,
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def process_document_processor_version_sample(
mime_type: str,
field_mask: str = None,
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_quality_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def process_document_quality_sample(
def process_document(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def process_document_sample(
mime_type: str,
field_mask: str = None,
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_specialized_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def print_entity(entity: documentai.Document.Entity) -> None:
def process_document(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/process_document_splitter_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def process_document_splitter_sample(
def process_document(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/quickstart_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def quickstart(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
4 changes: 2 additions & 2 deletions documentai/snippets/review_document_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def review_document_sample(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

# Create a client
Expand Down Expand Up @@ -67,7 +67,7 @@ def review_document_sample(
def process_document(
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
) -> documentai.Document:
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def set_default_processor_version_sample(
project_id: str, location: str, processor_id: str, processor_version_id: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down
2 changes: 1 addition & 1 deletion documentai/snippets/undeploy_processor_version_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
def undeploy_processor_version_sample(
project_id: str, location: str, processor_id: str, processor_version_id: str
):
# You must set the api_endpoint if you use a location other than 'us', e.g.:
# You must set the api_endpoint if you use a location other than 'us'.
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")

client = documentai.DocumentProcessorServiceClient(client_options=opts)
Expand Down

0 comments on commit 82adb91

Please sign in to comment.