Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 3bf0271

Browse files
feat: publish updated protos for cloud/automl/v1 service (#318)
* fix: proto field markdown comment for the display_name field in annotation_payload.proto to point the correct public v1/ version fix: Add back java_multiple_files option to the text_sentiment.proto to match with the previous published version of text_sentiment proto PiperOrigin-RevId: 421849336 Source-Link: googleapis/googleapis@5c24921 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0195e8e45f41225dde15b3a24fe89ed27686cb64 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDE5NWU4ZTQ1ZjQxMjI1ZGRlMTViM2EyNGZlODllZDI3Njg2Y2I2NCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent ba271a8 commit 3bf0271

File tree

16 files changed

+152
-214
lines changed

16 files changed

+152
-214
lines changed

google/cloud/automl_v1/services/auto_ml/async_client.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AutoMlAsyncClient:
7373
Currently the only supported ``location_id`` is "us-central1".
7474
7575
On any input that is documented to expect a string parameter in
76-
snake_case or kebab-case, either of those cases is accepted.
76+
snake_case or dash-case, either of those cases is accepted.
7777
"""
7878

7979
_client: AutoMlClient
@@ -1411,7 +1411,6 @@ async def deploy_model(
14111411
r"""Deploys a model. If a model is already deployed, deploying it
14121412
with the same parameters has no effect. Deploying with different
14131413
parametrs (as e.g. changing
1414-
14151414
[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
14161415
will reset the deployment state without pausing the model's
14171416
availability.

google/cloud/automl_v1/services/auto_ml/client.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AutoMlClient(metaclass=AutoMlClientMeta):
107107
Currently the only supported ``location_id`` is "us-central1".
108108
109109
On any input that is documented to expect a string parameter in
110-
snake_case or kebab-case, either of those cases is accepted.
110+
snake_case or dash-case, either of those cases is accepted.
111111
"""
112112

113113
@staticmethod
@@ -1593,7 +1593,6 @@ def deploy_model(
15931593
r"""Deploys a model. If a model is already deployed, deploying it
15941594
with the same parameters has no effect. Deploying with different
15951595
parametrs (as e.g. changing
1596-
15971596
[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
15981597
will reset the deployment state without pausing the model's
15991598
availability.

google/cloud/automl_v1/services/auto_ml/transports/grpc.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class AutoMlGrpcTransport(AutoMlTransport):
5353
Currently the only supported ``location_id`` is "us-central1".
5454
5555
On any input that is documented to expect a string parameter in
56-
snake_case or kebab-case, either of those cases is accepted.
56+
snake_case or dash-case, either of those cases is accepted.
5757
5858
This class defines the same methods as the primary client, so the
5959
primary client can load the underlying transport implementation
@@ -626,7 +626,6 @@ def deploy_model(
626626
Deploys a model. If a model is already deployed, deploying it
627627
with the same parameters has no effect. Deploying with different
628628
parametrs (as e.g. changing
629-
630629
[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
631630
will reset the deployment state without pausing the model's
632631
availability.

google/cloud/automl_v1/services/auto_ml/transports/grpc_asyncio.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class AutoMlGrpcAsyncIOTransport(AutoMlTransport):
5454
Currently the only supported ``location_id`` is "us-central1".
5555
5656
On any input that is documented to expect a string parameter in
57-
snake_case or kebab-case, either of those cases is accepted.
57+
snake_case or dash-case, either of those cases is accepted.
5858
5959
This class defines the same methods as the primary client, so the
6060
primary client can load the underlying transport implementation
@@ -638,7 +638,6 @@ def deploy_model(
638638
Deploys a model. If a model is already deployed, deploying it
639639
with the same parameters has no effect. Deploying with different
640640
parametrs (as e.g. changing
641-
642641
[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
643642
will reset the deployment state without pausing the model's
644643
availability.

google/cloud/automl_v1/services/prediction_service/async_client.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PredictionServiceAsyncClient:
4747
"""AutoML Prediction API.
4848
4949
On any input that is documented to expect a string parameter in
50-
snake_case or kebab-case, either of those cases is accepted.
50+
snake_case or dash-case, either of those cases is accepted.
5151
"""
5252

5353
_client: PredictionServiceClient
@@ -270,7 +270,6 @@ async def predict(
270270
AutoML Tables
271271
272272
``feature_importance`` : (boolean) Whether
273-
274273
[feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance]
275274
is populated in the returned list of
276275
[TablesAnnotation][google.cloud.automl.v1.TablesAnnotation]

google/cloud/automl_v1/services/prediction_service/client.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PredictionServiceClient(metaclass=PredictionServiceClientMeta):
8585
"""AutoML Prediction API.
8686
8787
On any input that is documented to expect a string parameter in
88-
snake_case or kebab-case, either of those cases is accepted.
88+
snake_case or dash-case, either of those cases is accepted.
8989
"""
9090

9191
@staticmethod
@@ -464,7 +464,6 @@ def predict(
464464
AutoML Tables
465465
466466
``feature_importance`` : (boolean) Whether
467-
468467
[feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance]
469468
is populated in the returned list of
470469
[TablesAnnotation][google.cloud.automl.v1.TablesAnnotation]

google/cloud/automl_v1/services/prediction_service/transports/grpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PredictionServiceGrpcTransport(PredictionServiceTransport):
3636
AutoML Prediction API.
3737
3838
On any input that is documented to expect a string parameter in
39-
snake_case or kebab-case, either of those cases is accepted.
39+
snake_case or dash-case, either of those cases is accepted.
4040
4141
This class defines the same methods as the primary client, so the
4242
primary client can load the underlying transport implementation

google/cloud/automl_v1/services/prediction_service/transports/grpc_asyncio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PredictionServiceGrpcAsyncIOTransport(PredictionServiceTransport):
3737
AutoML Prediction API.
3838
3939
On any input that is documented to expect a string parameter in
40-
snake_case or kebab-case, either of those cases is accepted.
40+
snake_case or dash-case, either of those cases is accepted.
4141
4242
This class defines the same methods as the primary client, so the
4343
primary client can load the underlying transport implementation

google/cloud/automl_v1/types/annotation_spec.py

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class AnnotationSpec(proto.Message):
2727
Attributes:
2828
name (str):
2929
Output only. Resource name of the annotation spec. Form:
30-
3130
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
3231
display_name (str):
3332
Required. The name of the annotation spec to show in the

google/cloud/automl_v1/types/classification.py

-2
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,13 @@ class ConfusionMatrix(proto.Message):
169169
annotation_spec_id (Sequence[str]):
170170
Output only. IDs of the annotation specs used in the
171171
confusion matrix. For Tables CLASSIFICATION
172-
173172
[prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]
174173
only list of [annotation_spec_display_name-s][] is
175174
populated.
176175
display_name (Sequence[str]):
177176
Output only. Display name of the annotation specs used in
178177
the confusion matrix, as they were at the moment of the
179178
evaluation. For Tables CLASSIFICATION
180-
181179
[prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type],
182180
distinct values of the target column at the moment of the
183181
model evaluation are populated here.

google/cloud/automl_v1/types/data_items.py

-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ class Layout(proto.Message):
139139
The position of the
140140
[text_segment][google.cloud.automl.v1.Document.Layout.text_segment]
141141
in the page. Contains exactly 4
142-
143142
[normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices]
144143
and they are connected by edges in the order provided, which
145144
will represent a rectangle parallel to the frame. The

google/cloud/automl_v1/types/image.py

+14-16
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ class ImageClassificationModelMetadata(proto.Message):
6161
``location`` as the new model to create, and have the same
6262
``model_type``.
6363
train_budget_milli_node_hours (int):
64-
The train budget of creating this model, expressed in milli
65-
node hours i.e. 1,000 value in this field means 1 node hour.
66-
The actual ``train_cost`` will be equal or less than this
67-
value. If further model training ceases to provide any
68-
improvements, it will stop without using full budget and the
69-
stop_reason will be ``MODEL_CONVERGED``. Note, node_hour =
70-
actual_hour \* number_of_nodes_invovled. For model type
64+
Optional. The train budget of creating this model, expressed
65+
in milli node hours i.e. 1,000 value in this field means 1
66+
node hour. The actual ``train_cost`` will be equal or less
67+
than this value. If further model training ceases to provide
68+
any improvements, it will stop without using full budget and
69+
the stop_reason will be ``MODEL_CONVERGED``. Note, node_hour
70+
= actual_hour \* number_of_nodes_invovled. For model type
7171
``cloud``\ (default), the train budget must be between 8,000
7272
and 800,000 milli node hours, inclusive. The default value
7373
is 192, 000 which represents one day in wall time. For model
@@ -199,13 +199,13 @@ class ImageObjectDetectionModelMetadata(proto.Message):
199199
Output only. The reason that this create model operation
200200
stopped, e.g. ``BUDGET_REACHED``, ``MODEL_CONVERGED``.
201201
train_budget_milli_node_hours (int):
202-
The train budget of creating this model, expressed in milli
203-
node hours i.e. 1,000 value in this field means 1 node hour.
204-
The actual ``train_cost`` will be equal or less than this
205-
value. If further model training ceases to provide any
206-
improvements, it will stop without using full budget and the
207-
stop_reason will be ``MODEL_CONVERGED``. Note, node_hour =
208-
actual_hour \* number_of_nodes_invovled. For model type
202+
Optional. The train budget of creating this model, expressed
203+
in milli node hours i.e. 1,000 value in this field means 1
204+
node hour. The actual ``train_cost`` will be equal or less
205+
than this value. If further model training ceases to provide
206+
any improvements, it will stop without using full budget and
207+
the stop_reason will be ``MODEL_CONVERGED``. Note, node_hour
208+
= actual_hour \* number_of_nodes_invovled. For model type
209209
``cloud-high-accuracy-1``\ (default) and
210210
``cloud-low-latency-1``, the train budget must be between
211211
20,000 and 900,000 milli node hours, inclusive. The default
@@ -242,7 +242,6 @@ class ImageClassificationModelDeploymentMetadata(proto.Message):
242242
Input only. The number of nodes to deploy the model on. A
243243
node is an abstraction of a machine resource, which can
244244
handle online prediction QPS as given in the model's
245-
246245
[node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps].
247246
Must be between 1 and 100, inclusive on both ends.
248247
"""
@@ -258,7 +257,6 @@ class ImageObjectDetectionModelDeploymentMetadata(proto.Message):
258257
Input only. The number of nodes to deploy the model on. A
259258
node is an abstraction of a machine resource, which can
260259
handle online prediction QPS as given in the model's
261-
262260
[qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node].
263261
Must be between 1 and 100, inclusive on both ends.
264262
"""

0 commit comments

Comments
 (0)