From e1462325c948e800edc93ba45f437d3e66cb5556 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:29:22 -0400 Subject: [PATCH] docs: Minor formatting (#506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: https://github.com/googleapis/googleapis/commit/42fd37b18d706f6f51f52f209973b3b2c28f509a Source-Link: https://github.com/googleapis/googleapis-gen/commit/280264ca02fb9316b4237a96d0af1a2343a81a56 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- google/cloud/automl_v1/types/dataset.py | 1 + google/cloud/automl_v1/types/io.py | 1 + google/cloud/automl_v1/types/model.py | 1 + google/cloud/automl_v1beta1/types/operations.py | 15 +++++++-------- google/cloud/automl_v1beta1/types/tables.py | 2 ++ tests/unit/gapic/automl_v1/test_auto_ml.py | 2 +- .../gapic/automl_v1/test_prediction_service.py | 2 +- tests/unit/gapic/automl_v1beta1/test_auto_ml.py | 2 +- .../automl_v1beta1/test_prediction_service.py | 2 +- 9 files changed, 16 insertions(+), 12 deletions(-) diff --git a/google/cloud/automl_v1/types/dataset.py b/google/cloud/automl_v1/types/dataset.py index ad7bed47..f0ad21a4 100644 --- a/google/cloud/automl_v1/types/dataset.py +++ b/google/cloud/automl_v1/types/dataset.py @@ -105,6 +105,7 @@ class Dataset(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://goo.gl/xmQnxf for more information on and examples of labels. """ diff --git a/google/cloud/automl_v1/types/io.py b/google/cloud/automl_v1/types/io.py index 9f01e5e2..ce3f572d 100644 --- a/google/cloud/automl_v1/types/io.py +++ b/google/cloud/automl_v1/types/io.py @@ -1108,6 +1108,7 @@ class DocumentInputConfig(proto.Message): The Google Cloud Storage location of the document file. Only a single path should be given. + Max supported size: 512MB. Supported extensions: .PDF. diff --git a/google/cloud/automl_v1/types/model.py b/google/cloud/automl_v1/types/model.py index 19611777..50aee402 100644 --- a/google/cloud/automl_v1/types/model.py +++ b/google/cloud/automl_v1/types/model.py @@ -104,6 +104,7 @@ class Model(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://goo.gl/xmQnxf for more information on and examples of labels. """ diff --git a/google/cloud/automl_v1beta1/types/operations.py b/google/cloud/automl_v1beta1/types/operations.py index c12d4fc5..e6743803 100644 --- a/google/cloud/automl_v1beta1/types/operations.py +++ b/google/cloud/automl_v1beta1/types/operations.py @@ -232,8 +232,8 @@ class ExportDataOutputInfo(proto.Message): This field is a member of `oneof`_ ``output_location``. bigquery_output_dataset (str): The path of the BigQuery dataset created, in - bq://projectId.bqDatasetId - format, into which the exported data is written. + bq://projectId.bqDatasetId format, into which + the exported data is written. This field is a member of `oneof`_ ``output_location``. """ @@ -289,9 +289,8 @@ class BatchPredictOutputInfo(proto.Message): This field is a member of `oneof`_ ``output_location``. bigquery_output_dataset (str): The path of the BigQuery dataset created, in - bq://projectId.bqDatasetId - format, into which the prediction output is - written. + bq://projectId.bqDatasetId format, into which + the prediction output is written. This field is a member of `oneof`_ ``output_location``. """ @@ -370,9 +369,9 @@ class ExportEvaluatedExamplesOutputInfo(proto.Message): Attributes: bigquery_output_dataset (str): The path of the BigQuery dataset created, in - bq://projectId.bqDatasetId - format, into which the output of export - evaluated examples is written. + bq://projectId.bqDatasetId format, into which + the output of export evaluated examples is + written. """ bigquery_output_dataset: str = proto.Field( diff --git a/google/cloud/automl_v1beta1/types/tables.py b/google/cloud/automl_v1beta1/types/tables.py index 1cc95ba6..6bf0f800 100644 --- a/google/cloud/automl_v1beta1/types/tables.py +++ b/google/cloud/automl_v1beta1/types/tables.py @@ -227,6 +227,7 @@ class TablesModelMetadata(proto.Message): Required. The train budget of creating this model, expressed in milli node hours i.e. 1,000 value in this field means 1 node hour. + The training cost of the model will not exceed this budget. The final cost will be attempted to be close to the budget, though may end up being @@ -234,6 +235,7 @@ class TablesModelMetadata(proto.Message): discretion. This especially may happen when further model training ceases to provide any improvements. + If the budget is set to a value known to be insufficient to train a model for the given dataset, the training won't be attempted and diff --git a/tests/unit/gapic/automl_v1/test_auto_ml.py b/tests/unit/gapic/automl_v1/test_auto_ml.py index 64cb2de2..b8ad35b1 100644 --- a/tests/unit/gapic/automl_v1/test_auto_ml.py +++ b/tests/unit/gapic/automl_v1/test_auto_ml.py @@ -68,7 +68,7 @@ from google.cloud.automl_v1.types import text_extraction from google.cloud.automl_v1.types import text_sentiment from google.cloud.automl_v1.types import translation -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/automl_v1/test_prediction_service.py b/tests/unit/gapic/automl_v1/test_prediction_service.py index 31c7071c..ae3fc572 100644 --- a/tests/unit/gapic/automl_v1/test_prediction_service.py +++ b/tests/unit/gapic/automl_v1/test_prediction_service.py @@ -60,7 +60,7 @@ from google.cloud.automl_v1.types import operations from google.cloud.automl_v1.types import prediction_service from google.cloud.automl_v1.types import text_segment -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account import google.auth diff --git a/tests/unit/gapic/automl_v1beta1/test_auto_ml.py b/tests/unit/gapic/automl_v1beta1/test_auto_ml.py index de40a609..1fec8da9 100644 --- a/tests/unit/gapic/automl_v1beta1/test_auto_ml.py +++ b/tests/unit/gapic/automl_v1beta1/test_auto_ml.py @@ -77,7 +77,7 @@ from google.cloud.automl_v1beta1.types import text_sentiment from google.cloud.automl_v1beta1.types import translation from google.cloud.automl_v1beta1.types import video -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/automl_v1beta1/test_prediction_service.py b/tests/unit/gapic/automl_v1beta1/test_prediction_service.py index f1038415..f60c8381 100644 --- a/tests/unit/gapic/automl_v1beta1/test_prediction_service.py +++ b/tests/unit/gapic/automl_v1beta1/test_prediction_service.py @@ -62,7 +62,7 @@ from google.cloud.automl_v1beta1.types import operations from google.cloud.automl_v1beta1.types import prediction_service from google.cloud.automl_v1beta1.types import text_segment -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import struct_pb2 # type: ignore import google.auth