Skip to content

Commit

Permalink
Merge branch 'main' into update-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr authored Sep 3, 2024
2 parents 8b0f281 + 0321915 commit 99c4cec
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
AnnotationValue,
Asset,
AssetSource,
BatchOperationStatus,
BoolValue,
CircleArea,
ClipAssetRequest,
Expand Down Expand Up @@ -640,6 +641,7 @@
"AnnotationValue",
"Asset",
"AssetSource",
"BatchOperationStatus",
"BoolValue",
"CircleArea",
"ClipAssetRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
AnnotationValue,
Asset,
AssetSource,
BatchOperationStatus,
BoolValue,
CircleArea,
ClipAssetRequest,
Expand Down Expand Up @@ -432,6 +433,7 @@
"AssetSource",
"AttributeValue",
"AutoscalingMetricSpec",
"BatchOperationStatus",
"BatchRunProcessRequest",
"BatchRunProcessResponse",
"BigQueryConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4057,11 +4057,12 @@ async def clip_asset(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> warehouse.ClipAssetResponse:
r"""Generates clips for downloading. The api takes in a time range,
and generates a clip of the first content available after
start_time and before end_time, which may overflow beyond these
bounds. Returned clips are truncated if the total size of the
clips are larger than 100MB.
r"""Supported by STREAM_VIDEO corpus type. Generates clips for
downloading. The api takes in a time range, and generates a clip
of the first content available after start_time and before
end_time, which may overflow beyond these bounds. Returned clips
are truncated if the total size of the clips are larger than
100MB.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4562,11 +4562,12 @@ def clip_asset(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> warehouse.ClipAssetResponse:
r"""Generates clips for downloading. The api takes in a time range,
and generates a clip of the first content available after
start_time and before end_time, which may overflow beyond these
bounds. Returned clips are truncated if the total size of the
clips are larger than 100MB.
r"""Supported by STREAM_VIDEO corpus type. Generates clips for
downloading. The api takes in a time range, and generates a clip
of the first content available after start_time and before
end_time, which may overflow beyond these bounds. Returned clips
are truncated if the total size of the clips are larger than
100MB.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1142,11 +1142,12 @@ def clip_asset(
) -> Callable[[warehouse.ClipAssetRequest], warehouse.ClipAssetResponse]:
r"""Return a callable for the clip asset method over gRPC.
Generates clips for downloading. The api takes in a time range,
and generates a clip of the first content available after
start_time and before end_time, which may overflow beyond these
bounds. Returned clips are truncated if the total size of the
clips are larger than 100MB.
Supported by STREAM_VIDEO corpus type. Generates clips for
downloading. The api takes in a time range, and generates a clip
of the first content available after start_time and before
end_time, which may overflow beyond these bounds. Returned clips
are truncated if the total size of the clips are larger than
100MB.
Returns:
Callable[[~.ClipAssetRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,11 +1172,12 @@ def clip_asset(
) -> Callable[[warehouse.ClipAssetRequest], Awaitable[warehouse.ClipAssetResponse]]:
r"""Return a callable for the clip asset method over gRPC.
Generates clips for downloading. The api takes in a time range,
and generates a clip of the first content available after
start_time and before end_time, which may overflow beyond these
bounds. Returned clips are truncated if the total size of the
clips are larger than 100MB.
Supported by STREAM_VIDEO corpus type. Generates clips for
downloading. The api takes in a time range, and generates a clip
of the first content available after start_time and before
end_time, which may overflow beyond these bounds. Returned clips
are truncated if the total size of the clips are larger than
100MB.
Returns:
Callable[[~.ClipAssetRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
AnnotationValue,
Asset,
AssetSource,
BatchOperationStatus,
BoolValue,
CircleArea,
ClipAssetRequest,
Expand Down Expand Up @@ -582,6 +583,7 @@
"AnnotationValue",
"Asset",
"AssetSource",
"BatchOperationStatus",
"BoolValue",
"CircleArea",
"ClipAssetRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"DeleteAnnotationRequest",
"ImportAssetsRequest",
"ImportAssetsMetadata",
"BatchOperationStatus",
"ImportAssetsResponse",
"CreateSearchConfigRequest",
"UpdateSearchConfigRequest",
Expand Down Expand Up @@ -607,11 +608,11 @@ class State(proto.Enum):
The default process state should never
happen.
IN_PROGRESS (1):
The feature is in progress.
The ml model analysis is in progress.
SUCCEEDED (2):
The process is successfully done.
The ml model analysis is successfully done.
FAILED (3):
The process failed.
The ml model analysis failed.
"""
STATE_UNSPECIFIED = 0
IN_PROGRESS = 1
Expand Down Expand Up @@ -1629,6 +1630,22 @@ class Index(proto.Message):
Index of VIDEO_ON_DEMAND corpus can have at most one
deployed index. Index of IMAGE corpus can have multiple
deployed indexes.
satisfies_pzs (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Separation
enabled via an Org Policy constraint. It is set
to true when the index is a valid zone separated
index and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzs``.
satisfies_pzi (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Isolation
enabled via an Org Policy constraint. It is set
to true when the index is a valid zone isolated
index and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzi``.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -1687,6 +1704,16 @@ class State(proto.Enum):
number=8,
message="DeployedIndexReference",
)
satisfies_pzs: bool = proto.Field(
proto.BOOL,
number=11,
optional=True,
)
satisfies_pzi: bool = proto.Field(
proto.BOOL,
number=12,
optional=True,
)


class DeployedIndexReference(proto.Message):
Expand All @@ -1709,6 +1736,9 @@ class Corpus(proto.Message):
Within a corpus, media shares the same data schema. Search is
also restricted within a single corpus.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
name (str):
Resource name of the corpus. Format:
Expand All @@ -1729,6 +1759,22 @@ class Corpus(proto.Message):
search_capability_setting (google.cloud.visionai_v1.types.SearchCapabilitySetting):
Default search capability setting on corpus
level.
satisfies_pzs (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Separation
enabled via an Org Policy constraint. It is set
to true when the corpus is a valid zone
separated corpus and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzs``.
satisfies_pzi (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Isolation
enabled via an Org Policy constraint. It is set
to true when the corpus is a valid zone isolated
corpus and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzi``.
"""

class Type(proto.Enum):
Expand Down Expand Up @@ -1778,6 +1824,16 @@ class Type(proto.Enum):
number=8,
message="SearchCapabilitySetting",
)
satisfies_pzs: bool = proto.Field(
proto.BOOL,
number=11,
optional=True,
)
satisfies_pzi: bool = proto.Field(
proto.BOOL,
number=12,
optional=True,
)


class GetCorpusRequest(proto.Message):
Expand Down Expand Up @@ -2874,13 +2930,45 @@ class ImportAssetsMetadata(proto.Message):
Attributes:
metadata (google.cloud.visionai_v1.types.OperationMetadata):
The metadata of the operation.
status (google.cloud.visionai_v1.types.BatchOperationStatus):
The importing status including partial
failures, if the implementation can provide such
information during the progress of the
ImportAssets.
"""

metadata: common.OperationMetadata = proto.Field(
proto.MESSAGE,
number=1,
message=common.OperationMetadata,
)
status: "BatchOperationStatus" = proto.Field(
proto.MESSAGE,
number=2,
message="BatchOperationStatus",
)


class BatchOperationStatus(proto.Message):
r"""The batch operation status.
Attributes:
success_count (int):
The count of assets (together with their
annotations if any) successfully ingested.
failure_count (int):
The count of assets failed to ingested; it
might be due to the annotation ingestion error.
"""

success_count: int = proto.Field(
proto.INT32,
number=1,
)
failure_count: int = proto.Field(
proto.INT32,
number=2,
)


class ImportAssetsResponse(proto.Message):
Expand Down Expand Up @@ -3084,6 +3172,9 @@ class IndexEndpoint(proto.Message):
r"""Message representing IndexEndpoint resource. Indexes are
deployed into it.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
name (str):
Output only. Resource name of the IndexEndpoint. Format:
Expand Down Expand Up @@ -3125,6 +3216,22 @@ class IndexEndpoint(proto.Message):
Output only. Create timestamp.
update_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. Update timestamp.
satisfies_pzs (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Separation
enabled via an Org Policy constraint. It is set
to true when the index endpoint is a valid zone
separated index endpoint and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzs``.
satisfies_pzi (bool):
Output only. This boolean field is only set
for projects that have Physical Zone Isolation
enabled via an Org Policy constraint. It is set
to true when the index endpoint is a valid zone
isolated index endpoint and false if it isn't.
This field is a member of `oneof`_ ``_satisfies_pzi``.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -3185,6 +3292,16 @@ class State(proto.Enum):
number=8,
message=timestamp_pb2.Timestamp,
)
satisfies_pzs: bool = proto.Field(
proto.BOOL,
number=10,
optional=True,
)
satisfies_pzi: bool = proto.Field(
proto.BOOL,
number=11,
optional=True,
)


class CreateIndexEndpointRequest(proto.Message):
Expand Down Expand Up @@ -4639,11 +4756,13 @@ class SearchResultItem(proto.Message):
segment (google.cloud.visionai_v1.types.Partition.TemporalPartition):
The matched asset segment.
relevance (float):
Relevance of this ``SearchResultItem`` to user search
request. Currently available only in Image Warehouse, and by
default represents cosine similarity. In the future can be
other measures such as "dot product" or "topicality"
requested in the search request.
Available to IMAGE corpus types. Relevance of this
``SearchResultItem`` to user search query (text query or
image query). By default this represents cosine similarity
between the query and the retrieved media content. The value
is in the range of [-1, 1]. Note that search ranking is not
only decided by this relevance score, but also other factors
such as the match of annotations.
requested_annotations (MutableSequence[google.cloud.visionai_v1.types.Annotation]):
Search result annotations specified by
result_annotation_keys in search request.
Expand Down
Loading

0 comments on commit 99c4cec

Please sign in to comment.