Skip to content

Commit 308c790

Browse files
chore: use gapic-generator-python 0.53.4 (googleapis#1037)
* chore: use gapic-generator-python 0.53.4 docs: list oneofs in docstring committer: busunkim96@ PiperOrigin-RevId: 406468269 Source-Link: googleapis/googleapis@83d81b0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2ff001fbacb9e77e71d734de5f955c05fdae8526 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9 * 🦉 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>
1 parent db966f7 commit 308c790

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

google/cloud/bigquery_v2/types/model.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,23 @@ class Cluster(proto.Message):
560560
class FeatureValue(proto.Message):
561561
r"""Representative value of a single feature within the cluster.
562562
563+
This message has `oneof`_ fields (mutually exclusive fields).
564+
For each oneof, at most one member field can be set at the same time.
565+
Setting any member of the oneof automatically clears all other
566+
members.
567+
568+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
569+
563570
Attributes:
564571
feature_column (str):
565572
The feature column name.
566573
numerical_value (google.protobuf.wrappers_pb2.DoubleValue):
567574
The numerical feature value. This is the
568575
centroid value for this feature.
576+
This field is a member of `oneof`_ ``value``.
569577
categorical_value (google.cloud.bigquery_v2.types.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue):
570578
The categorical feature value.
579+
This field is a member of `oneof`_ ``value``.
571580
"""
572581

573582
class CategoricalValue(proto.Message):
@@ -784,23 +793,36 @@ class EvaluationMetrics(proto.Message):
784793
data was used during training. These are not present for
785794
imported models.
786795
796+
This message has `oneof`_ fields (mutually exclusive fields).
797+
For each oneof, at most one member field can be set at the same time.
798+
Setting any member of the oneof automatically clears all other
799+
members.
800+
801+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
802+
787803
Attributes:
788804
regression_metrics (google.cloud.bigquery_v2.types.Model.RegressionMetrics):
789805
Populated for regression models and explicit
790806
feedback type matrix factorization models.
807+
This field is a member of `oneof`_ ``metrics``.
791808
binary_classification_metrics (google.cloud.bigquery_v2.types.Model.BinaryClassificationMetrics):
792809
Populated for binary
793810
classification/classifier models.
811+
This field is a member of `oneof`_ ``metrics``.
794812
multi_class_classification_metrics (google.cloud.bigquery_v2.types.Model.MultiClassClassificationMetrics):
795813
Populated for multi-class
796814
classification/classifier models.
815+
This field is a member of `oneof`_ ``metrics``.
797816
clustering_metrics (google.cloud.bigquery_v2.types.Model.ClusteringMetrics):
798817
Populated for clustering models.
818+
This field is a member of `oneof`_ ``metrics``.
799819
ranking_metrics (google.cloud.bigquery_v2.types.Model.RankingMetrics):
800820
Populated for implicit feedback type matrix
801821
factorization models.
822+
This field is a member of `oneof`_ ``metrics``.
802823
arima_forecasting_metrics (google.cloud.bigquery_v2.types.Model.ArimaForecastingMetrics):
803824
Populated for ARIMA models.
825+
This field is a member of `oneof`_ ``metrics``.
804826
"""
805827

806828
regression_metrics = proto.Field(

google/cloud/bigquery_v2/types/standard_sql.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,25 @@ class StandardSqlDataType(proto.Message):
3535
type={type_kind="STRING"}}, {name="y", type={type_kind="ARRAY",
3636
array_element_type="DATE"}} ]}}
3737
38+
This message has `oneof`_ fields (mutually exclusive fields).
39+
For each oneof, at most one member field can be set at the same time.
40+
Setting any member of the oneof automatically clears all other
41+
members.
42+
43+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
44+
3845
Attributes:
3946
type_kind (google.cloud.bigquery_v2.types.StandardSqlDataType.TypeKind):
4047
Required. The top level type of this field.
4148
Can be any standard SQL data type (e.g.,
4249
"INT64", "DATE", "ARRAY").
4350
array_element_type (google.cloud.bigquery_v2.types.StandardSqlDataType):
4451
The type of the array's elements, if type_kind = "ARRAY".
52+
This field is a member of `oneof`_ ``sub_type``.
4553
struct_type (google.cloud.bigquery_v2.types.StandardSqlStructType):
4654
The fields of this struct, in order, if type_kind =
4755
"STRUCT".
56+
This field is a member of `oneof`_ ``sub_type``.
4857
"""
4958

5059
class TypeKind(proto.Enum):

samples/magics/noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8787

8888
# DO NOT EDIT - automatically generated.
8989
# All versions used to test samples.
90-
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
90+
ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
9191

9292
# Any default versions that should be ignored.
9393
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

0 commit comments

Comments
 (0)