Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use gapic-generator-python 0.53.4 #1037

Merged
merged 2 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions google/cloud/bigquery_v2/types/model.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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