Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jul 10, 2023
1 parent 4c05c41 commit e0cd533
Show file tree
Hide file tree
Showing 1,648 changed files with 112 additions and 675,151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ImageClassificationPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/gif
- image/png
- image/webp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ImageObjectDetectionPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/gif
- image/png
- image/webp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class ImageSegmentationPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/png
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class VideoClassificationPredictionResult(proto.Message):
type_ (str):
The type of the prediction. The requested
types can be configured via parameters. This
will be one of - segment-classification
will be one of
- segment-classification
- shot-classification
- one-sec-interval-classification
time_segment_start (google.protobuf.duration_pb2.Duration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ImageClassificationPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/gif
- image/png
- image/webp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ImageObjectDetectionPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/gif
- image/png
- image/webp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class ImageSegmentationPredictionInstance(proto.Message):
mime_type (str):
The MIME type of the content of the image.
Only the images in below listed MIME types are
supported. - image/jpeg
supported.
- image/jpeg
- image/png
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class VideoClassificationPredictionResult(proto.Message):
type_ (str):
The type of the prediction. The requested
types can be configured via parameters. This
will be one of - segment-classification
will be one of
- segment-classification
- shot-classification
- one-sec-interval-classification
time_segment_start (google.protobuf.duration_pb2.Duration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2355,12 +2355,13 @@ async def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2623,12 +2623,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,12 +728,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
Returns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,12 +746,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
Returns:
Expand Down
11 changes: 6 additions & 5 deletions google/cloud/aiplatform_v1/types/explanation_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class InputMetadata(proto.Message):
input tensor. Defaults to IDENTITY.
modality (str):
Modality of the feature. Valid values are:
numeric, image. Defaults to numeric.
numeric, image. Defaults to
numeric.
feature_value_domain (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.FeatureValueDomain):
The domain details of the input feature
value. Like min/max, original mean or standard
Expand Down Expand Up @@ -381,10 +382,10 @@ class ColorMap(proto.Enum):
Positive: green. Negative: pink.
VIRIDIS (2):
Viridis color map: A perceptually uniform
color mapping which is easier to see by those
with colorblindness and progresses from yellow
to green to blue. Positive: yellow. Negative:
blue.
color mapping which is
easier to see by those with colorblindness and
progresses from yellow to green to blue.
Positive: yellow. Negative: blue.
RED (3):
Positive: red. Negative: red.
GREEN (4):
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/aiplatform_v1/types/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ class IndexUpdateMethod(proto.Enum):
Should not be used.
BATCH_UPDATE (1):
BatchUpdate: user can call UpdateIndex with
files on Cloud Storage of datapoints to update.
files on Cloud Storage of
datapoints to update.
STREAM_UPDATE (2):
StreamUpdate: user can call
UpsertDatapoints/DeleteDatapoints to update the
Index and the updates will be applied in
UpsertDatapoints/DeleteDatapoints to update
the Index and the updates will be applied in
corresponding DeployedIndexes in nearly
real-time.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2356,12 +2356,13 @@ async def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2624,12 +2624,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,12 +728,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
Returns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,12 +746,13 @@ def import_feature_values(
There are also scenarios where the caller can cause
inconsistency.
- Source data for import contains multiple distinct
Feature values for the same entity ID and timestamp.
Feature values for the same entity ID and
timestamp.
- Source is modified during an import. This includes
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but are
not limited to changing storage location, storage class,
or retention policy.
adding, updating, or removing source data and/or
metadata. Examples of updating metadata include but
are not limited to changing storage location, storage
class, or retention policy.
- Online serving cluster is under-provisioned.
Returns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,23 +208,18 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
return m.groupdict() if m else {}

@staticmethod
Expand Down Expand Up @@ -252,18 +247,23 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
Expand Down
11 changes: 6 additions & 5 deletions google/cloud/aiplatform_v1beta1/types/explanation_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class InputMetadata(proto.Message):
input tensor. Defaults to IDENTITY.
modality (str):
Modality of the feature. Valid values are:
numeric, image. Defaults to numeric.
numeric, image. Defaults to
numeric.
feature_value_domain (google.cloud.aiplatform_v1beta1.types.ExplanationMetadata.InputMetadata.FeatureValueDomain):
The domain details of the input feature
value. Like min/max, original mean or standard
Expand Down Expand Up @@ -381,10 +382,10 @@ class ColorMap(proto.Enum):
Positive: green. Negative: pink.
VIRIDIS (2):
Viridis color map: A perceptually uniform
color mapping which is easier to see by those
with colorblindness and progresses from yellow
to green to blue. Positive: yellow. Negative:
blue.
color mapping which is
easier to see by those with colorblindness and
progresses from yellow to green to blue.
Positive: yellow. Negative: blue.
RED (3):
Positive: red. Negative: red.
GREEN (4):
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/aiplatform_v1beta1/types/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ class IndexUpdateMethod(proto.Enum):
Should not be used.
BATCH_UPDATE (1):
BatchUpdate: user can call UpdateIndex with
files on Cloud Storage of datapoints to update.
files on Cloud Storage of
datapoints to update.
STREAM_UPDATE (2):
StreamUpdate: user can call
UpsertDatapoints/DeleteDatapoints to update the
Index and the updates will be applied in
UpsertDatapoints/DeleteDatapoints to update
the Index and the updates will be applied in
corresponding DeployedIndexes in nearly
real-time.
"""
Expand Down
13 changes: 0 additions & 13 deletions owl-bot-staging/v1/.coveragerc

This file was deleted.

Loading

0 comments on commit e0cd533

Please sign in to comment.