Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.53.4 (#1037)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@2ff001f
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 1, 2021
1 parent 61141ee commit 4ecd64b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
22 changes: 22 additions & 0 deletions google/cloud/bigquery_v2/types/model.py
Expand Up @@ -560,14 +560,23 @@ class Cluster(proto.Message):
class FeatureValue(proto.Message):
r"""Representative value of a single feature within the cluster.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
feature_column (str):
The feature column name.
numerical_value (google.protobuf.wrappers_pb2.DoubleValue):
The numerical feature value. This is the
centroid value for this feature.
This field is a member of `oneof`_ ``value``.
categorical_value (google.cloud.bigquery_v2.types.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue):
The categorical feature value.
This field is a member of `oneof`_ ``value``.
"""

class CategoricalValue(proto.Message):
Expand Down Expand Up @@ -784,23 +793,36 @@ class EvaluationMetrics(proto.Message):
data was used during training. These are not present for
imported models.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
regression_metrics (google.cloud.bigquery_v2.types.Model.RegressionMetrics):
Populated for regression models and explicit
feedback type matrix factorization models.
This field is a member of `oneof`_ ``metrics``.
binary_classification_metrics (google.cloud.bigquery_v2.types.Model.BinaryClassificationMetrics):
Populated for binary
classification/classifier models.
This field is a member of `oneof`_ ``metrics``.
multi_class_classification_metrics (google.cloud.bigquery_v2.types.Model.MultiClassClassificationMetrics):
Populated for multi-class
classification/classifier models.
This field is a member of `oneof`_ ``metrics``.
clustering_metrics (google.cloud.bigquery_v2.types.Model.ClusteringMetrics):
Populated for clustering models.
This field is a member of `oneof`_ ``metrics``.
ranking_metrics (google.cloud.bigquery_v2.types.Model.RankingMetrics):
Populated for implicit feedback type matrix
factorization models.
This field is a member of `oneof`_ ``metrics``.
arima_forecasting_metrics (google.cloud.bigquery_v2.types.Model.ArimaForecastingMetrics):
Populated for ARIMA models.
This field is a member of `oneof`_ ``metrics``.
"""

regression_metrics = proto.Field(
Expand Down
9 changes: 9 additions & 0 deletions google/cloud/bigquery_v2/types/standard_sql.py
Expand Up @@ -35,16 +35,25 @@ class StandardSqlDataType(proto.Message):
type={type_kind="STRING"}}, {name="y", type={type_kind="ARRAY",
array_element_type="DATE"}} ]}}
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
type_kind (google.cloud.bigquery_v2.types.StandardSqlDataType.TypeKind):
Required. The top level type of this field.
Can be any standard SQL data type (e.g.,
"INT64", "DATE", "ARRAY").
array_element_type (google.cloud.bigquery_v2.types.StandardSqlDataType):
The type of the array's elements, if type_kind = "ARRAY".
This field is a member of `oneof`_ ``sub_type``.
struct_type (google.cloud.bigquery_v2.types.StandardSqlStructType):
The fields of this struct, in order, if type_kind =
"STRUCT".
This field is a member of `oneof`_ ``sub_type``.
"""

class TypeKind(proto.Enum):
Expand Down
6 changes: 5 additions & 1 deletion samples/magics/noxfile.py
Expand Up @@ -87,7 +87,7 @@ def get_pytest_env_vars() -> Dict[str, str]:

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

# Any default versions that should be ignored.
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
Expand All @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down

0 comments on commit 4ecd64b

Please sign in to comment.