diff --git a/packages/google-cloud-videointelligence/docs/gapic/v1beta1/api.rst b/packages/google-cloud-videointelligence/docs/gapic/v1beta1/api.rst
deleted file mode 100644
index 2ec043d68788..000000000000
--- a/packages/google-cloud-videointelligence/docs/gapic/v1beta1/api.rst
+++ /dev/null
@@ -1,6 +0,0 @@
-Client for Google Cloud Video Intelligence API
-==============================================
-
-.. automodule:: google.cloud.videointelligence_v1beta1
- :members:
- :inherited-members:
\ No newline at end of file
diff --git a/packages/google-cloud-videointelligence/docs/gapic/v1beta1/types.rst b/packages/google-cloud-videointelligence/docs/gapic/v1beta1/types.rst
deleted file mode 100644
index 00374b5af4d5..000000000000
--- a/packages/google-cloud-videointelligence/docs/gapic/v1beta1/types.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-Types for Google Cloud Video Intelligence API Client
-====================================================
-
-.. automodule:: google.cloud.videointelligence_v1beta1.types
- :members:
\ No newline at end of file
diff --git a/packages/google-cloud-videointelligence/docs/index.rst b/packages/google-cloud-videointelligence/docs/index.rst
index 868afa75297c..5a888812a870 100644
--- a/packages/google-cloud-videointelligence/docs/index.rst
+++ b/packages/google-cloud-videointelligence/docs/index.rst
@@ -26,7 +26,7 @@ An API and type reference is provided for this beta:
gapic/v1p3beta1/api
gapic/v1p3beta1/types
-The previous beta releases, spelled ``v1p2beta1``, ``v1p1beta1``, ``v1beta1``, and
+The previous beta releases, spelled ``v1p2beta1``, ``v1p1beta1``, and
``v1beta2``, are provided to continue to support code previously written
against them. In order to use ththem, you will want to import from e.g.
``google.cloud.videointelligence_v1beta2`` in lieu of
@@ -41,8 +41,6 @@ An API and type reference is provided the these betas also:
gapic/v1p2beta1/types
gapic/v1p1beta1/api
gapic/v1p1beta1/types
- gapic/v1beta1/api
- gapic/v1beta1/types
gapic/v1beta2/api
gapic/v1beta2/types
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/__init__.py
deleted file mode 100644
index d71748798c3c..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/__init__.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from __future__ import absolute_import
-
-from google.cloud.videointelligence_v1beta1 import types
-from google.cloud.videointelligence_v1beta1.gapic import enums
-from google.cloud.videointelligence_v1beta1.gapic import (
- video_intelligence_service_client,
-)
-
-
-class VideoIntelligenceServiceClient(
- video_intelligence_service_client.VideoIntelligenceServiceClient
-):
- __doc__ = video_intelligence_service_client.VideoIntelligenceServiceClient.__doc__
- enums = enums
-
-
-__all__ = ("enums", "types", "VideoIntelligenceServiceClient")
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/__init__.py
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/enums.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/enums.py
deleted file mode 100644
index 7a13aca21272..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/enums.py
+++ /dev/null
@@ -1,96 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Wrappers for protocol buffer enum types."""
-
-import enum
-
-
-class Feature(enum.IntEnum):
- """
- Video annotation feature.
-
- Attributes:
- FEATURE_UNSPECIFIED (int): Unspecified.
- LABEL_DETECTION (int): Label detection. Detect objects, such as dog or flower.
- FACE_DETECTION (int): Human face detection and tracking.
- SHOT_CHANGE_DETECTION (int): Shot change detection.
- SAFE_SEARCH_DETECTION (int): Safe search detection.
- """
-
- FEATURE_UNSPECIFIED = 0
- LABEL_DETECTION = 1
- FACE_DETECTION = 2
- SHOT_CHANGE_DETECTION = 3
- SAFE_SEARCH_DETECTION = 4
-
-
-class LabelDetectionMode(enum.IntEnum):
- """
- Label detection mode.
-
- Attributes:
- LABEL_DETECTION_MODE_UNSPECIFIED (int): Unspecified.
- SHOT_MODE (int): Detect shot-level labels.
- FRAME_MODE (int): Detect frame-level labels.
- SHOT_AND_FRAME_MODE (int): Detect both shot-level and frame-level labels.
- """
-
- LABEL_DETECTION_MODE_UNSPECIFIED = 0
- SHOT_MODE = 1
- FRAME_MODE = 2
- SHOT_AND_FRAME_MODE = 3
-
-
-class LabelLevel(enum.IntEnum):
- """
- Label level (scope).
-
- Attributes:
- LABEL_LEVEL_UNSPECIFIED (int): Unspecified.
- VIDEO_LEVEL (int): Video-level. Corresponds to the whole video.
- SEGMENT_LEVEL (int): Segment-level. Corresponds to one of ``AnnotateSpec.segments``.
- SHOT_LEVEL (int): Shot-level. Corresponds to a single shot (i.e. a series of frames
- without a major camera position or background change).
- FRAME_LEVEL (int): Frame-level. Corresponds to a single video frame.
- """
-
- LABEL_LEVEL_UNSPECIFIED = 0
- VIDEO_LEVEL = 1
- SEGMENT_LEVEL = 2
- SHOT_LEVEL = 3
- FRAME_LEVEL = 4
-
-
-class Likelihood(enum.IntEnum):
- """
- Bucketized representation of likelihood.
-
- Attributes:
- UNKNOWN (int): Unknown likelihood.
- VERY_UNLIKELY (int): Very unlikely.
- UNLIKELY (int): Unlikely.
- POSSIBLE (int): Possible.
- LIKELY (int): Likely.
- VERY_LIKELY (int): Very likely.
- """
-
- UNKNOWN = 0
- VERY_UNLIKELY = 1
- UNLIKELY = 2
- POSSIBLE = 3
- LIKELY = 4
- VERY_LIKELY = 5
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/transports/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/transports/__init__.py
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/transports/video_intelligence_service_grpc_transport.py
deleted file mode 100644
index 9eaba1a970b3..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/transports/video_intelligence_service_grpc_transport.py
+++ /dev/null
@@ -1,137 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-import google.api_core.grpc_helpers
-import google.api_core.operations_v1
-
-from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2_grpc
-
-
-class VideoIntelligenceServiceGrpcTransport(object):
- """gRPC transport class providing stubs for
- google.cloud.videointelligence.v1beta1 VideoIntelligenceService API.
-
- The transport provides access to the raw gRPC stubs,
- which can be used to take advantage of advanced
- features of gRPC.
- """
-
- # The scopes needed to make gRPC calls to all of the methods defined
- # in this service.
- _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",)
-
- def __init__(
- self,
- channel=None,
- credentials=None,
- address="videointelligence.googleapis.com:443",
- ):
- """Instantiate the transport class.
-
- Args:
- channel (grpc.Channel): A ``Channel`` instance through
- which to make calls. This argument is mutually exclusive
- with ``credentials``; providing both will raise an exception.
- credentials (google.auth.credentials.Credentials): The
- authorization credentials to attach to requests. These
- credentials identify this application to the service. If none
- are specified, the client will attempt to ascertain the
- credentials from the environment.
- address (str): The address where the service is hosted.
- """
- # If both `channel` and `credentials` are specified, raise an
- # exception (channels come with credentials baked in already).
- if channel is not None and credentials is not None:
- raise ValueError(
- "The `channel` and `credentials` arguments are mutually " "exclusive."
- )
-
- # Create the channel.
- if channel is None:
- channel = self.create_channel(
- address=address,
- credentials=credentials,
- options={
- "grpc.max_send_message_length": -1,
- "grpc.max_receive_message_length": -1,
- }.items(),
- )
-
- self._channel = channel
-
- # gRPC uses objects called "stubs" that are bound to the
- # channel and provide a basic method for each RPC.
- self._stubs = {
- "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub(
- channel
- )
- }
-
- # Because this API includes a method that returns a
- # long-running operation (proto: google.longrunning.Operation),
- # instantiate an LRO client.
- self._operations_client = google.api_core.operations_v1.OperationsClient(
- channel
- )
-
- @classmethod
- def create_channel(
- cls, address="videointelligence.googleapis.com:443", credentials=None, **kwargs
- ):
- """Create and return a gRPC channel object.
-
- Args:
- address (str): The host for the channel to use.
- credentials (~.Credentials): The
- authorization credentials to attach to requests. These
- credentials identify this application to the service. If
- none are specified, the client will attempt to ascertain
- the credentials from the environment.
- kwargs (dict): Keyword arguments, which are passed to the
- channel creation.
-
- Returns:
- grpc.Channel: A gRPC channel object.
- """
- return google.api_core.grpc_helpers.create_channel(
- address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
- )
-
- @property
- def channel(self):
- """The gRPC channel used by the transport.
-
- Returns:
- grpc.Channel: A gRPC channel object.
- """
- return self._channel
-
- @property
- def annotate_video(self):
- """Return the gRPC stub for :meth:`VideoIntelligenceServiceClient.annotate_video`.
-
- Performs asynchronous video annotation. Progress and results can be
- retrieved through the ``google.longrunning.Operations`` interface.
- ``Operation.metadata`` contains ``AnnotateVideoProgress`` (progress).
- ``Operation.response`` contains ``AnnotateVideoResponse`` (results).
-
- Returns:
- Callable: A callable which accepts the appropriate
- deserialized request object and returns a
- deserialized response object.
- """
- return self._stubs["video_intelligence_service_stub"].AnnotateVideo
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client.py
deleted file mode 100644
index 6a22632a434a..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client.py
+++ /dev/null
@@ -1,307 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Accesses the google.cloud.videointelligence.v1beta1 VideoIntelligenceService API."""
-
-import pkg_resources
-import warnings
-
-from google.oauth2 import service_account
-import google.api_core.client_options
-import google.api_core.gapic_v1.client_info
-import google.api_core.gapic_v1.config
-import google.api_core.gapic_v1.method
-import google.api_core.grpc_helpers
-import google.api_core.operation
-import google.api_core.operations_v1
-import grpc
-
-from google.cloud.videointelligence_v1beta1.gapic import enums
-from google.cloud.videointelligence_v1beta1.gapic import (
- video_intelligence_service_client_config,
-)
-from google.cloud.videointelligence_v1beta1.gapic.transports import (
- video_intelligence_service_grpc_transport,
-)
-from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2
-from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2_grpc
-from google.longrunning import operations_pb2
-
-
-_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
- "google-cloud-videointelligence"
-).version
-
-
-class VideoIntelligenceServiceClient(object):
- """Service that implements Google Cloud Video Intelligence API."""
-
- SERVICE_ADDRESS = "videointelligence.googleapis.com:443"
- """The default address of the service."""
-
- # The name of the interface for this client. This is the key used to
- # find the method configuration in the client_config dictionary.
- _INTERFACE_NAME = "google.cloud.videointelligence.v1beta1.VideoIntelligenceService"
-
- @classmethod
- def from_service_account_file(cls, filename, *args, **kwargs):
- """Creates an instance of this client using the provided credentials
- file.
-
- Args:
- filename (str): The path to the service account private key json
- file.
- args: Additional arguments to pass to the constructor.
- kwargs: Additional arguments to pass to the constructor.
-
- Returns:
- VideoIntelligenceServiceClient: The constructed client.
- """
- credentials = service_account.Credentials.from_service_account_file(filename)
- kwargs["credentials"] = credentials
- return cls(*args, **kwargs)
-
- from_service_account_json = from_service_account_file
-
- def __init__(
- self,
- transport=None,
- channel=None,
- credentials=None,
- client_config=None,
- client_info=None,
- client_options=None,
- ):
- """Constructor.
-
- Args:
- transport (Union[~.VideoIntelligenceServiceGrpcTransport,
- Callable[[~.Credentials, type], ~.VideoIntelligenceServiceGrpcTransport]): A transport
- instance, responsible for actually making the API calls.
- The default transport uses the gRPC protocol.
- This argument may also be a callable which returns a
- transport instance. Callables will be sent the credentials
- as the first argument and the default transport class as
- the second argument.
- channel (grpc.Channel): DEPRECATED. A ``Channel`` instance
- through which to make calls. This argument is mutually exclusive
- with ``credentials``; providing both will raise an exception.
- credentials (google.auth.credentials.Credentials): The
- authorization credentials to attach to requests. These
- credentials identify this application to the service. If none
- are specified, the client will attempt to ascertain the
- credentials from the environment.
- This argument is mutually exclusive with providing a
- transport instance to ``transport``; doing so will raise
- an exception.
- client_config (dict): DEPRECATED. A dictionary of call options for
- each method. If not specified, the default configuration is used.
- client_info (google.api_core.gapic_v1.client_info.ClientInfo):
- The client info used to send a user-agent string along with
- API requests. If ``None``, then default info will be used.
- Generally, you only need to set this if you're developing
- your own client library.
- client_options (Union[dict, google.api_core.client_options.ClientOptions]):
- Client options used to set user options on the client. API Endpoint
- should be set through client_options.
- """
- # Raise deprecation warnings for things we want to go away.
- if client_config is not None:
- warnings.warn(
- "The `client_config` argument is deprecated.",
- PendingDeprecationWarning,
- stacklevel=2,
- )
- else:
- client_config = video_intelligence_service_client_config.config
-
- if channel:
- warnings.warn(
- "The `channel` argument is deprecated; use " "`transport` instead.",
- PendingDeprecationWarning,
- stacklevel=2,
- )
-
- api_endpoint = self.SERVICE_ADDRESS
- if client_options:
- if type(client_options) == dict:
- client_options = google.api_core.client_options.from_dict(
- client_options
- )
- if client_options.api_endpoint:
- api_endpoint = client_options.api_endpoint
-
- # Instantiate the transport.
- # The transport is responsible for handling serialization and
- # deserialization and actually sending data to the service.
- if transport:
- if callable(transport):
- self.transport = transport(
- credentials=credentials,
- default_class=video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport,
- address=api_endpoint,
- )
- else:
- if credentials:
- raise ValueError(
- "Received both a transport instance and "
- "credentials; these are mutually exclusive."
- )
- self.transport = transport
- else:
- self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport(
- address=api_endpoint, channel=channel, credentials=credentials
- )
-
- if client_info is None:
- client_info = google.api_core.gapic_v1.client_info.ClientInfo(
- gapic_version=_GAPIC_LIBRARY_VERSION
- )
- else:
- client_info.gapic_version = _GAPIC_LIBRARY_VERSION
- self._client_info = client_info
-
- # Parse out the default settings for retry and timeout for each RPC
- # from the client configuration.
- # (Ordinarily, these are the defaults specified in the `*_config.py`
- # file next to this one.)
- self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
- client_config["interfaces"][self._INTERFACE_NAME]
- )
-
- # Save a dictionary of cached API call functions.
- # These are the actual callables which invoke the proper
- # transport methods, wrapped with `wrap_method` to add retry,
- # timeout, and the like.
- self._inner_api_calls = {}
-
- # Service calls
- def annotate_video(
- self,
- input_uri,
- features,
- input_content=None,
- video_context=None,
- output_uri=None,
- location_id=None,
- retry=google.api_core.gapic_v1.method.DEFAULT,
- timeout=google.api_core.gapic_v1.method.DEFAULT,
- metadata=None,
- ):
- """
- Performs asynchronous video annotation. Progress and results can be
- retrieved through the ``google.longrunning.Operations`` interface.
- ``Operation.metadata`` contains ``AnnotateVideoProgress`` (progress).
- ``Operation.response`` contains ``AnnotateVideoResponse`` (results).
-
- Example:
- >>> from google.cloud import videointelligence_v1beta1
- >>> from google.cloud.videointelligence_v1beta1 import enums
- >>>
- >>> client = videointelligence_v1beta1.VideoIntelligenceServiceClient()
- >>>
- >>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
- >>> features_element = enums.Feature.LABEL_DETECTION
- >>> features = [features_element]
- >>>
- >>> response = client.annotate_video(input_uri, features)
- >>>
- >>> def callback(operation_future):
- ... # Handle result.
- ... result = operation_future.result()
- >>>
- >>> response.add_done_callback(callback)
- >>>
- >>> # Handle metadata.
- >>> metadata = response.metadata()
-
- Args:
- input_uri (str): Input video location. Currently, only `Google Cloud
- Storage `__ URIs are supported, which
- must be specified in the following format: ``gs://bucket-id/object-id``
- (other URI formats return ``google.rpc.Code.INVALID_ARGUMENT``). For
- more information, see `Request
- URIs `__. A video
- URI may include wildcards in ``object-id``, and thus identify multiple
- videos. Supported wildcards: '\*' to match 0 or more characters; '?' to
- match 1 character. If unset, the input video should be embedded in the
- request as ``input_content``. If set, ``input_content`` should be unset.
- features (list[~google.cloud.videointelligence_v1beta1.types.Feature]): Requested video annotation features.
- input_content (str): The video data bytes. Encoding: base64. If unset, the input video(s)
- should be specified via ``input_uri``. If set, ``input_uri`` should be
- unset.
- video_context (Union[dict, ~google.cloud.videointelligence_v1beta1.types.VideoContext]): Additional video context and/or feature-specific parameters.
-
- If a dict is provided, it must be of the same form as the protobuf
- message :class:`~google.cloud.videointelligence_v1beta1.types.VideoContext`
- output_uri (str): Optional location where the output (in JSON format) should be stored.
- Currently, only `Google Cloud
- Storage `__ URIs are supported, which
- must be specified in the following format: ``gs://bucket-id/object-id``
- (other URI formats return ``google.rpc.Code.INVALID_ARGUMENT``). For
- more information, see `Request
- URIs `__.
- location_id (str): Optional cloud region where annotation should take place. Supported
- cloud regions: ``us-east1``, ``us-west1``, ``europe-west1``,
- ``asia-east1``. If no region is specified, a region will be determined
- based on video file location.
- retry (Optional[google.api_core.retry.Retry]): A retry object used
- to retry requests. If ``None`` is specified, requests will
- be retried using a default configuration.
- timeout (Optional[float]): The amount of time, in seconds, to wait
- for the request to complete. Note that if ``retry`` is
- specified, the timeout applies to each individual attempt.
- metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata
- that is provided to the method.
-
- Returns:
- A :class:`~google.cloud.videointelligence_v1beta1.types._OperationFuture` instance.
-
- Raises:
- google.api_core.exceptions.GoogleAPICallError: If the request
- failed for any reason.
- google.api_core.exceptions.RetryError: If the request failed due
- to a retryable error and retry attempts failed.
- ValueError: If the parameters are invalid.
- """
- # Wrap the transport method to add retry and timeout logic.
- if "annotate_video" not in self._inner_api_calls:
- self._inner_api_calls[
- "annotate_video"
- ] = google.api_core.gapic_v1.method.wrap_method(
- self.transport.annotate_video,
- default_retry=self._method_configs["AnnotateVideo"].retry,
- default_timeout=self._method_configs["AnnotateVideo"].timeout,
- client_info=self._client_info,
- )
-
- request = video_intelligence_pb2.AnnotateVideoRequest(
- input_uri=input_uri,
- features=features,
- input_content=input_content,
- video_context=video_context,
- output_uri=output_uri,
- location_id=location_id,
- )
- operation = self._inner_api_calls["annotate_video"](
- request, retry=retry, timeout=timeout, metadata=metadata
- )
- return google.api_core.operation.from_gapic(
- operation,
- self.transport._operations_client,
- video_intelligence_pb2.AnnotateVideoResponse,
- metadata_type=video_intelligence_pb2.AnnotateVideoProgress,
- )
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client_config.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client_config.py
deleted file mode 100644
index fdf442f5c941..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/gapic/video_intelligence_service_client_config.py
+++ /dev/null
@@ -1,28 +0,0 @@
-config = {
- "interfaces": {
- "google.cloud.videointelligence.v1beta1.VideoIntelligenceService": {
- "retry_codes": {
- "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
- "non_idempotent": [],
- },
- "retry_params": {
- "default": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 2.5,
- "max_retry_delay_millis": 120000,
- "initial_rpc_timeout_millis": 120000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 120000,
- "total_timeout_millis": 600000,
- }
- },
- "methods": {
- "AnnotateVideo": {
- "timeout_millis": 60000,
- "retry_codes_name": "idempotent",
- "retry_params_name": "default",
- }
- },
- }
- }
-}
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/__init__.py
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto
deleted file mode 100644
index 430776bf0031..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto
+++ /dev/null
@@ -1,345 +0,0 @@
-// Copyright 2017 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-syntax = "proto3";
-
-package google.cloud.videointelligence.v1beta1;
-
-import "google/api/annotations.proto";
-import "google/longrunning/operations.proto";
-import "google/protobuf/timestamp.proto";
-import "google/rpc/status.proto";
-
-option csharp_namespace = "Google.Cloud.VideoIntelligence.V1Beta1";
-option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence";
-option java_multiple_files = true;
-option java_outer_classname = "VideoIntelligenceServiceProto";
-option java_package = "com.google.cloud.videointelligence.v1beta1";
-option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1beta1";
-option ruby_package = "Google::Cloud::VideoIntelligence::V1beta1";
-
-// Service that implements Google Cloud Video Intelligence API.
-service VideoIntelligenceService {
- // Performs asynchronous video annotation. Progress and results can be
- // retrieved through the `google.longrunning.Operations` interface.
- // `Operation.metadata` contains `AnnotateVideoProgress` (progress).
- // `Operation.response` contains `AnnotateVideoResponse` (results).
- rpc AnnotateVideo(AnnotateVideoRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1beta1/videos:annotate"
- body: "*"
- };
- }
-}
-
-// Video annotation request.
-message AnnotateVideoRequest {
- // Input video location. Currently, only
- // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
- // supported, which must be specified in the following format:
- // `gs://bucket-id/object-id` (other URI formats return
- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
- // more information, see [Request URIs](/storage/docs/reference-uris). A video
- // URI may include wildcards in `object-id`, and thus identify multiple
- // videos. Supported wildcards: '*' to match 0 or more characters;
- // '?' to match 1 character. If unset, the input video should be embedded
- // in the request as `input_content`. If set, `input_content` should be unset.
- string input_uri = 1;
-
- // The video data bytes. Encoding: base64. If unset, the input video(s)
- // should be specified via `input_uri`. If set, `input_uri` should be unset.
- string input_content = 6;
-
- // Requested video annotation features.
- repeated Feature features = 2;
-
- // Additional video context and/or feature-specific parameters.
- VideoContext video_context = 3;
-
- // Optional location where the output (in JSON format) should be stored.
- // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
- // URIs are supported, which must be specified in the following format:
- // `gs://bucket-id/object-id` (other URI formats return
- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
- // more information, see [Request URIs](/storage/docs/reference-uris).
- string output_uri = 4;
-
- // Optional cloud region where annotation should take place. Supported cloud
- // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
- // is specified, a region will be determined based on video file location.
- string location_id = 5;
-}
-
-// Video context and/or feature-specific parameters.
-message VideoContext {
- // Video segments to annotate. The segments may overlap and are not required
- // to be contiguous or span the whole video. If unspecified, each video
- // is treated as a single segment.
- repeated VideoSegment segments = 1;
-
- // If label detection has been requested, what labels should be detected
- // in addition to video-level labels or segment-level labels. If unspecified,
- // defaults to `SHOT_MODE`.
- LabelDetectionMode label_detection_mode = 2;
-
- // Whether the video has been shot from a stationary (i.e. non-moving) camera.
- // When set to true, might improve detection accuracy for moving objects.
- bool stationary_camera = 3;
-
- // Model to use for label detection.
- // Supported values: "latest" and "stable" (the default).
- string label_detection_model = 4;
-
- // Model to use for face detection.
- // Supported values: "latest" and "stable" (the default).
- string face_detection_model = 5;
-
- // Model to use for shot change detection.
- // Supported values: "latest" and "stable" (the default).
- string shot_change_detection_model = 6;
-
- // Model to use for safe search detection.
- // Supported values: "latest" and "stable" (the default).
- string safe_search_detection_model = 7;
-}
-
-// Video segment.
-message VideoSegment {
- // Start offset in microseconds (inclusive). Unset means 0.
- int64 start_time_offset = 1;
-
- // End offset in microseconds (inclusive). Unset means 0.
- int64 end_time_offset = 2;
-}
-
-// Label location.
-message LabelLocation {
- // Video segment. Set to [-1, -1] for video-level labels.
- // Set to [timestamp, timestamp] for frame-level labels.
- // Otherwise, corresponds to one of `AnnotateSpec.segments`
- // (if specified) or to shot boundaries (if requested).
- VideoSegment segment = 1;
-
- // Confidence that the label is accurate. Range: [0, 1].
- float confidence = 2;
-
- // Label level.
- LabelLevel level = 3;
-}
-
-// Label annotation.
-message LabelAnnotation {
- // Textual description, e.g. `Fixed-gear bicycle`.
- string description = 1;
-
- // Language code for `description` in BCP-47 format.
- string language_code = 2;
-
- // Where the label was detected and with what confidence.
- repeated LabelLocation locations = 3;
-}
-
-// Safe search annotation (based on per-frame visual signals only).
-// If no unsafe content has been detected in a frame, no annotations
-// are present for that frame. If only some types of unsafe content
-// have been detected in a frame, the likelihood is set to `UNKNOWN`
-// for all other types of unsafe content.
-message SafeSearchAnnotation {
- // Likelihood of adult content.
- Likelihood adult = 1;
-
- // Likelihood that an obvious modification was made to the original
- // version to make it appear funny or offensive.
- Likelihood spoof = 2;
-
- // Likelihood of medical content.
- Likelihood medical = 3;
-
- // Likelihood of violent content.
- Likelihood violent = 4;
-
- // Likelihood of racy content.
- Likelihood racy = 5;
-
- // Video time offset in microseconds.
- int64 time_offset = 6;
-}
-
-// Bounding box.
-message BoundingBox {
- // Left X coordinate.
- int32 left = 1;
-
- // Right X coordinate.
- int32 right = 2;
-
- // Bottom Y coordinate.
- int32 bottom = 3;
-
- // Top Y coordinate.
- int32 top = 4;
-}
-
-// Face location.
-message FaceLocation {
- // Bounding box in a frame.
- BoundingBox bounding_box = 1;
-
- // Video time offset in microseconds.
- int64 time_offset = 2;
-}
-
-// Face annotation.
-message FaceAnnotation {
- // Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- string thumbnail = 1;
-
- // All locations where a face was detected.
- // Faces are detected and tracked on a per-video basis
- // (as opposed to across multiple videos).
- repeated VideoSegment segments = 2;
-
- // Face locations at one frame per second.
- repeated FaceLocation locations = 3;
-}
-
-// Annotation results for a single video.
-message VideoAnnotationResults {
- // Video file location in
- // [Google Cloud Storage](https://cloud.google.com/storage/).
- string input_uri = 1;
-
- // Label annotations. There is exactly one element for each unique label.
- repeated LabelAnnotation label_annotations = 2;
-
- // Face annotations. There is exactly one element for each unique face.
- repeated FaceAnnotation face_annotations = 3;
-
- // Shot annotations. Each shot is represented as a video segment.
- repeated VideoSegment shot_annotations = 4;
-
- // Safe search annotations.
- repeated SafeSearchAnnotation safe_search_annotations = 6;
-
- // If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- // some videos may succeed and some may fail.
- google.rpc.Status error = 5;
-}
-
-// Video annotation response. Included in the `response`
-// field of the `Operation` returned by the `GetOperation`
-// call of the `google::longrunning::Operations` service.
-message AnnotateVideoResponse {
- // Annotation results for all videos specified in `AnnotateVideoRequest`.
- repeated VideoAnnotationResults annotation_results = 1;
-}
-
-// Annotation progress for a single video.
-message VideoAnnotationProgress {
- // Video file location in
- // [Google Cloud Storage](https://cloud.google.com/storage/).
- string input_uri = 1;
-
- // Approximate percentage processed thus far.
- // Guaranteed to be 100 when fully processed.
- int32 progress_percent = 2;
-
- // Time when the request was received.
- google.protobuf.Timestamp start_time = 3;
-
- // Time of the most recent update.
- google.protobuf.Timestamp update_time = 4;
-}
-
-// Video annotation progress. Included in the `metadata`
-// field of the `Operation` returned by the `GetOperation`
-// call of the `google::longrunning::Operations` service.
-message AnnotateVideoProgress {
- // Progress metadata for all videos specified in `AnnotateVideoRequest`.
- repeated VideoAnnotationProgress annotation_progress = 1;
-}
-
-// Video annotation feature.
-enum Feature {
- // Unspecified.
- FEATURE_UNSPECIFIED = 0;
-
- // Label detection. Detect objects, such as dog or flower.
- LABEL_DETECTION = 1;
-
- // Human face detection and tracking.
- FACE_DETECTION = 2;
-
- // Shot change detection.
- SHOT_CHANGE_DETECTION = 3;
-
- // Safe search detection.
- SAFE_SEARCH_DETECTION = 4;
-}
-
-// Label level (scope).
-enum LabelLevel {
- // Unspecified.
- LABEL_LEVEL_UNSPECIFIED = 0;
-
- // Video-level. Corresponds to the whole video.
- VIDEO_LEVEL = 1;
-
- // Segment-level. Corresponds to one of `AnnotateSpec.segments`.
- SEGMENT_LEVEL = 2;
-
- // Shot-level. Corresponds to a single shot (i.e. a series of frames
- // without a major camera position or background change).
- SHOT_LEVEL = 3;
-
- // Frame-level. Corresponds to a single video frame.
- FRAME_LEVEL = 4;
-}
-
-// Label detection mode.
-enum LabelDetectionMode {
- // Unspecified.
- LABEL_DETECTION_MODE_UNSPECIFIED = 0;
-
- // Detect shot-level labels.
- SHOT_MODE = 1;
-
- // Detect frame-level labels.
- FRAME_MODE = 2;
-
- // Detect both shot-level and frame-level labels.
- SHOT_AND_FRAME_MODE = 3;
-}
-
-// Bucketized representation of likelihood.
-enum Likelihood {
- // Unknown likelihood.
- UNKNOWN = 0;
-
- // Very unlikely.
- VERY_UNLIKELY = 1;
-
- // Unlikely.
- UNLIKELY = 2;
-
- // Possible.
- POSSIBLE = 3;
-
- // Likely.
- LIKELY = 4;
-
- // Very likely.
- VERY_LIKELY = 5;
-}
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py
deleted file mode 100644
index df9be878c05e..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py
+++ /dev/null
@@ -1,1800 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto
-
-import sys
-
-_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
-from google.protobuf.internal import enum_type_wrapper
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
-from google.longrunning import (
- operations_pb2 as google_dot_longrunning_dot_operations__pb2,
-)
-from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
-from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name="google/cloud/videointelligence_v1beta1/proto/video_intelligence.proto",
- package="google.cloud.videointelligence.v1beta1",
- syntax="proto3",
- serialized_options=_b(
- "\n*com.google.cloud.videointelligence.v1beta1B\035VideoIntelligenceServiceProtoP\001ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\252\002&Google.Cloud.VideoIntelligence.V1Beta1\312\002&Google\\Cloud\\VideoIntelligence\\V1beta1\352\002)Google::Cloud::VideoIntelligence::V1beta1"
- ),
- serialized_pb=_b(
- '\nEgoogle/cloud/videointelligence_v1beta1/proto/video_intelligence.proto\x12&google.cloud.videointelligence.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xf9\x01\n\x14\x41nnotateVideoRequest\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x15\n\rinput_content\x18\x06 \x01(\t\x12\x41\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0e\x32/.google.cloud.videointelligence.v1beta1.Feature\x12K\n\rvideo_context\x18\x03 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoContext\x12\x12\n\noutput_uri\x18\x04 \x01(\t\x12\x13\n\x0blocation_id\x18\x05 \x01(\t"\xd2\x02\n\x0cVideoContext\x12\x46\n\x08segments\x18\x01 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12X\n\x14label_detection_mode\x18\x02 \x01(\x0e\x32:.google.cloud.videointelligence.v1beta1.LabelDetectionMode\x12\x19\n\x11stationary_camera\x18\x03 \x01(\x08\x12\x1d\n\x15label_detection_model\x18\x04 \x01(\t\x12\x1c\n\x14\x66\x61\x63\x65_detection_model\x18\x05 \x01(\t\x12#\n\x1bshot_change_detection_model\x18\x06 \x01(\t\x12#\n\x1bsafe_search_detection_model\x18\x07 \x01(\t"B\n\x0cVideoSegment\x12\x19\n\x11start_time_offset\x18\x01 \x01(\x03\x12\x17\n\x0f\x65nd_time_offset\x18\x02 \x01(\x03"\xad\x01\n\rLabelLocation\x12\x45\n\x07segment\x18\x01 \x01(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x41\n\x05level\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.LabelLevel"\x87\x01\n\x0fLabelAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12H\n\tlocations\x18\x03 \x03(\x0b\x32\x35.google.cloud.videointelligence.v1beta1.LabelLocation"\xfd\x02\n\x14SafeSearchAnnotation\x12\x41\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x41\n\x05spoof\x18\x02 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07medical\x18\x03 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x43\n\x07violent\x18\x04 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12@\n\x04racy\x18\x05 \x01(\x0e\x32\x32.google.cloud.videointelligence.v1beta1.Likelihood\x12\x13\n\x0btime_offset\x18\x06 \x01(\x03"G\n\x0b\x42oundingBox\x12\x0c\n\x04left\x18\x01 \x01(\x05\x12\r\n\x05right\x18\x02 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x03 \x01(\x05\x12\x0b\n\x03top\x18\x04 \x01(\x05"n\n\x0c\x46\x61\x63\x65Location\x12I\n\x0c\x62ounding_box\x18\x01 \x01(\x0b\x32\x33.google.cloud.videointelligence.v1beta1.BoundingBox\x12\x13\n\x0btime_offset\x18\x02 \x01(\x03"\xb4\x01\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x11\n\tthumbnail\x18\x01 \x01(\t\x12\x46\n\x08segments\x18\x02 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12G\n\tlocations\x18\x03 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.FaceLocation"\xa3\x03\n\x16VideoAnnotationResults\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12R\n\x11label_annotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.videointelligence.v1beta1.LabelAnnotation\x12P\n\x10\x66\x61\x63\x65_annotations\x18\x03 \x03(\x0b\x32\x36.google.cloud.videointelligence.v1beta1.FaceAnnotation\x12N\n\x10shot_annotations\x18\x04 \x03(\x0b\x32\x34.google.cloud.videointelligence.v1beta1.VideoSegment\x12]\n\x17safe_search_annotations\x18\x06 \x03(\x0b\x32<.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation\x12!\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x12.google.rpc.Status"s\n\x15\x41nnotateVideoResponse\x12Z\n\x12\x61nnotation_results\x18\x01 \x03(\x0b\x32>.google.cloud.videointelligence.v1beta1.VideoAnnotationResults"\xa7\x01\n\x17VideoAnnotationProgress\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x18\n\x10progress_percent\x18\x02 \x01(\x05\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"u\n\x15\x41nnotateVideoProgress\x12\\\n\x13\x61nnotation_progress\x18\x01 \x03(\x0b\x32?.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress*\x81\x01\n\x07\x46\x65\x61ture\x12\x17\n\x13\x46\x45\x41TURE_UNSPECIFIED\x10\x00\x12\x13\n\x0fLABEL_DETECTION\x10\x01\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x02\x12\x19\n\x15SHOT_CHANGE_DETECTION\x10\x03\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x04*n\n\nLabelLevel\x12\x1b\n\x17LABEL_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bVIDEO_LEVEL\x10\x01\x12\x11\n\rSEGMENT_LEVEL\x10\x02\x12\x0e\n\nSHOT_LEVEL\x10\x03\x12\x0f\n\x0b\x46RAME_LEVEL\x10\x04*r\n\x12LabelDetectionMode\x12$\n LABEL_DETECTION_MODE_UNSPECIFIED\x10\x00\x12\r\n\tSHOT_MODE\x10\x01\x12\x0e\n\nFRAME_MODE\x10\x02\x12\x17\n\x13SHOT_AND_FRAME_MODE\x10\x03*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xae\x01\n\x18VideoIntelligenceService\x12\x91\x01\n\rAnnotateVideo\x12<.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest\x1a\x1d.google.longrunning.Operation"#\x82\xd3\xe4\x93\x02\x1d"\x18/v1beta1/videos:annotate:\x01*B\xa4\x02\n*com.google.cloud.videointelligence.v1beta1B\x1dVideoIntelligenceServiceProtoP\x01ZWgoogle.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence\xaa\x02&Google.Cloud.VideoIntelligence.V1Beta1\xca\x02&Google\\Cloud\\VideoIntelligence\\V1beta1\xea\x02)Google::Cloud::VideoIntelligence::V1beta1b\x06proto3'
- ),
- dependencies=[
- google_dot_api_dot_annotations__pb2.DESCRIPTOR,
- google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,
- google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,
- google_dot_rpc_dot_status__pb2.DESCRIPTOR,
- ],
-)
-
-_FEATURE = _descriptor.EnumDescriptor(
- name="Feature",
- full_name="google.cloud.videointelligence.v1beta1.Feature",
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name="FEATURE_UNSPECIFIED",
- index=0,
- number=0,
- serialized_options=None,
- type=None,
- ),
- _descriptor.EnumValueDescriptor(
- name="LABEL_DETECTION",
- index=1,
- number=1,
- serialized_options=None,
- type=None,
- ),
- _descriptor.EnumValueDescriptor(
- name="FACE_DETECTION", index=2, number=2, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="SHOT_CHANGE_DETECTION",
- index=3,
- number=3,
- serialized_options=None,
- type=None,
- ),
- _descriptor.EnumValueDescriptor(
- name="SAFE_SEARCH_DETECTION",
- index=4,
- number=4,
- serialized_options=None,
- type=None,
- ),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=2794,
- serialized_end=2923,
-)
-_sym_db.RegisterEnumDescriptor(_FEATURE)
-
-Feature = enum_type_wrapper.EnumTypeWrapper(_FEATURE)
-_LABELLEVEL = _descriptor.EnumDescriptor(
- name="LabelLevel",
- full_name="google.cloud.videointelligence.v1beta1.LabelLevel",
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name="LABEL_LEVEL_UNSPECIFIED",
- index=0,
- number=0,
- serialized_options=None,
- type=None,
- ),
- _descriptor.EnumValueDescriptor(
- name="VIDEO_LEVEL", index=1, number=1, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="SEGMENT_LEVEL", index=2, number=2, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="SHOT_LEVEL", index=3, number=3, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="FRAME_LEVEL", index=4, number=4, serialized_options=None, type=None
- ),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=2925,
- serialized_end=3035,
-)
-_sym_db.RegisterEnumDescriptor(_LABELLEVEL)
-
-LabelLevel = enum_type_wrapper.EnumTypeWrapper(_LABELLEVEL)
-_LABELDETECTIONMODE = _descriptor.EnumDescriptor(
- name="LabelDetectionMode",
- full_name="google.cloud.videointelligence.v1beta1.LabelDetectionMode",
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name="LABEL_DETECTION_MODE_UNSPECIFIED",
- index=0,
- number=0,
- serialized_options=None,
- type=None,
- ),
- _descriptor.EnumValueDescriptor(
- name="SHOT_MODE", index=1, number=1, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="FRAME_MODE", index=2, number=2, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="SHOT_AND_FRAME_MODE",
- index=3,
- number=3,
- serialized_options=None,
- type=None,
- ),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=3037,
- serialized_end=3151,
-)
-_sym_db.RegisterEnumDescriptor(_LABELDETECTIONMODE)
-
-LabelDetectionMode = enum_type_wrapper.EnumTypeWrapper(_LABELDETECTIONMODE)
-_LIKELIHOOD = _descriptor.EnumDescriptor(
- name="Likelihood",
- full_name="google.cloud.videointelligence.v1beta1.Likelihood",
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name="UNKNOWN", index=0, number=0, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="VERY_UNLIKELY", index=1, number=1, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="UNLIKELY", index=2, number=2, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="POSSIBLE", index=3, number=3, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="LIKELY", index=4, number=4, serialized_options=None, type=None
- ),
- _descriptor.EnumValueDescriptor(
- name="VERY_LIKELY", index=5, number=5, serialized_options=None, type=None
- ),
- ],
- containing_type=None,
- serialized_options=None,
- serialized_start=3153,
- serialized_end=3254,
-)
-_sym_db.RegisterEnumDescriptor(_LIKELIHOOD)
-
-Likelihood = enum_type_wrapper.EnumTypeWrapper(_LIKELIHOOD)
-FEATURE_UNSPECIFIED = 0
-LABEL_DETECTION = 1
-FACE_DETECTION = 2
-SHOT_CHANGE_DETECTION = 3
-SAFE_SEARCH_DETECTION = 4
-LABEL_LEVEL_UNSPECIFIED = 0
-VIDEO_LEVEL = 1
-SEGMENT_LEVEL = 2
-SHOT_LEVEL = 3
-FRAME_LEVEL = 4
-LABEL_DETECTION_MODE_UNSPECIFIED = 0
-SHOT_MODE = 1
-FRAME_MODE = 2
-SHOT_AND_FRAME_MODE = 3
-UNKNOWN = 0
-VERY_UNLIKELY = 1
-UNLIKELY = 2
-POSSIBLE = 3
-LIKELY = 4
-VERY_LIKELY = 5
-
-
-_ANNOTATEVIDEOREQUEST = _descriptor.Descriptor(
- name="AnnotateVideoRequest",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="input_uri",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_uri",
- index=0,
- number=1,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="input_content",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.input_content",
- index=1,
- number=6,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="features",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.features",
- index=2,
- number=2,
- type=14,
- cpp_type=8,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="video_context",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.video_context",
- index=3,
- number=3,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="output_uri",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.output_uri",
- index=4,
- number=4,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="location_id",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.location_id",
- index=5,
- number=5,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=239,
- serialized_end=488,
-)
-
-
-_VIDEOCONTEXT = _descriptor.Descriptor(
- name="VideoContext",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="segments",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.segments",
- index=0,
- number=1,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="label_detection_mode",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.label_detection_mode",
- index=1,
- number=2,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="stationary_camera",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.stationary_camera",
- index=2,
- number=3,
- type=8,
- cpp_type=7,
- label=1,
- has_default_value=False,
- default_value=False,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="label_detection_model",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.label_detection_model",
- index=3,
- number=4,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="face_detection_model",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.face_detection_model",
- index=4,
- number=5,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="shot_change_detection_model",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.shot_change_detection_model",
- index=5,
- number=6,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="safe_search_detection_model",
- full_name="google.cloud.videointelligence.v1beta1.VideoContext.safe_search_detection_model",
- index=6,
- number=7,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=491,
- serialized_end=829,
-)
-
-
-_VIDEOSEGMENT = _descriptor.Descriptor(
- name="VideoSegment",
- full_name="google.cloud.videointelligence.v1beta1.VideoSegment",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="start_time_offset",
- full_name="google.cloud.videointelligence.v1beta1.VideoSegment.start_time_offset",
- index=0,
- number=1,
- type=3,
- cpp_type=2,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="end_time_offset",
- full_name="google.cloud.videointelligence.v1beta1.VideoSegment.end_time_offset",
- index=1,
- number=2,
- type=3,
- cpp_type=2,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=831,
- serialized_end=897,
-)
-
-
-_LABELLOCATION = _descriptor.Descriptor(
- name="LabelLocation",
- full_name="google.cloud.videointelligence.v1beta1.LabelLocation",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="segment",
- full_name="google.cloud.videointelligence.v1beta1.LabelLocation.segment",
- index=0,
- number=1,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="confidence",
- full_name="google.cloud.videointelligence.v1beta1.LabelLocation.confidence",
- index=1,
- number=2,
- type=2,
- cpp_type=6,
- label=1,
- has_default_value=False,
- default_value=float(0),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="level",
- full_name="google.cloud.videointelligence.v1beta1.LabelLocation.level",
- index=2,
- number=3,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=900,
- serialized_end=1073,
-)
-
-
-_LABELANNOTATION = _descriptor.Descriptor(
- name="LabelAnnotation",
- full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="description",
- full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.description",
- index=0,
- number=1,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="language_code",
- full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.language_code",
- index=1,
- number=2,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="locations",
- full_name="google.cloud.videointelligence.v1beta1.LabelAnnotation.locations",
- index=2,
- number=3,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1076,
- serialized_end=1211,
-)
-
-
-_SAFESEARCHANNOTATION = _descriptor.Descriptor(
- name="SafeSearchAnnotation",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="adult",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.adult",
- index=0,
- number=1,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="spoof",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.spoof",
- index=1,
- number=2,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="medical",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.medical",
- index=2,
- number=3,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="violent",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.violent",
- index=3,
- number=4,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="racy",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.racy",
- index=4,
- number=5,
- type=14,
- cpp_type=8,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="time_offset",
- full_name="google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.time_offset",
- index=5,
- number=6,
- type=3,
- cpp_type=2,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1214,
- serialized_end=1595,
-)
-
-
-_BOUNDINGBOX = _descriptor.Descriptor(
- name="BoundingBox",
- full_name="google.cloud.videointelligence.v1beta1.BoundingBox",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="left",
- full_name="google.cloud.videointelligence.v1beta1.BoundingBox.left",
- index=0,
- number=1,
- type=5,
- cpp_type=1,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="right",
- full_name="google.cloud.videointelligence.v1beta1.BoundingBox.right",
- index=1,
- number=2,
- type=5,
- cpp_type=1,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="bottom",
- full_name="google.cloud.videointelligence.v1beta1.BoundingBox.bottom",
- index=2,
- number=3,
- type=5,
- cpp_type=1,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="top",
- full_name="google.cloud.videointelligence.v1beta1.BoundingBox.top",
- index=3,
- number=4,
- type=5,
- cpp_type=1,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1597,
- serialized_end=1668,
-)
-
-
-_FACELOCATION = _descriptor.Descriptor(
- name="FaceLocation",
- full_name="google.cloud.videointelligence.v1beta1.FaceLocation",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="bounding_box",
- full_name="google.cloud.videointelligence.v1beta1.FaceLocation.bounding_box",
- index=0,
- number=1,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="time_offset",
- full_name="google.cloud.videointelligence.v1beta1.FaceLocation.time_offset",
- index=1,
- number=2,
- type=3,
- cpp_type=2,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1670,
- serialized_end=1780,
-)
-
-
-_FACEANNOTATION = _descriptor.Descriptor(
- name="FaceAnnotation",
- full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="thumbnail",
- full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.thumbnail",
- index=0,
- number=1,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="segments",
- full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.segments",
- index=1,
- number=2,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="locations",
- full_name="google.cloud.videointelligence.v1beta1.FaceAnnotation.locations",
- index=2,
- number=3,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1783,
- serialized_end=1963,
-)
-
-
-_VIDEOANNOTATIONRESULTS = _descriptor.Descriptor(
- name="VideoAnnotationResults",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="input_uri",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.input_uri",
- index=0,
- number=1,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="label_annotations",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.label_annotations",
- index=1,
- number=2,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="face_annotations",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.face_annotations",
- index=2,
- number=3,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="shot_annotations",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.shot_annotations",
- index=3,
- number=4,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="safe_search_annotations",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.safe_search_annotations",
- index=4,
- number=6,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="error",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationResults.error",
- index=5,
- number=5,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=1966,
- serialized_end=2385,
-)
-
-
-_ANNOTATEVIDEORESPONSE = _descriptor.Descriptor(
- name="AnnotateVideoResponse",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoResponse",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="annotation_results",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.annotation_results",
- index=0,
- number=1,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- )
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=2387,
- serialized_end=2502,
-)
-
-
-_VIDEOANNOTATIONPROGRESS = _descriptor.Descriptor(
- name="VideoAnnotationProgress",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="input_uri",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.input_uri",
- index=0,
- number=1,
- type=9,
- cpp_type=9,
- label=1,
- has_default_value=False,
- default_value=_b("").decode("utf-8"),
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="progress_percent",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.progress_percent",
- index=1,
- number=2,
- type=5,
- cpp_type=1,
- label=1,
- has_default_value=False,
- default_value=0,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="start_time",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.start_time",
- index=2,
- number=3,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- _descriptor.FieldDescriptor(
- name="update_time",
- full_name="google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.update_time",
- index=3,
- number=4,
- type=11,
- cpp_type=10,
- label=1,
- has_default_value=False,
- default_value=None,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- ),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=2505,
- serialized_end=2672,
-)
-
-
-_ANNOTATEVIDEOPROGRESS = _descriptor.Descriptor(
- name="AnnotateVideoProgress",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoProgress",
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name="annotation_progress",
- full_name="google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.annotation_progress",
- index=0,
- number=1,
- type=11,
- cpp_type=10,
- label=3,
- has_default_value=False,
- default_value=[],
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- serialized_options=None,
- file=DESCRIPTOR,
- )
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- serialized_options=None,
- is_extendable=False,
- syntax="proto3",
- extension_ranges=[],
- oneofs=[],
- serialized_start=2674,
- serialized_end=2791,
-)
-
-_ANNOTATEVIDEOREQUEST.fields_by_name["features"].enum_type = _FEATURE
-_ANNOTATEVIDEOREQUEST.fields_by_name["video_context"].message_type = _VIDEOCONTEXT
-_VIDEOCONTEXT.fields_by_name["segments"].message_type = _VIDEOSEGMENT
-_VIDEOCONTEXT.fields_by_name["label_detection_mode"].enum_type = _LABELDETECTIONMODE
-_LABELLOCATION.fields_by_name["segment"].message_type = _VIDEOSEGMENT
-_LABELLOCATION.fields_by_name["level"].enum_type = _LABELLEVEL
-_LABELANNOTATION.fields_by_name["locations"].message_type = _LABELLOCATION
-_SAFESEARCHANNOTATION.fields_by_name["adult"].enum_type = _LIKELIHOOD
-_SAFESEARCHANNOTATION.fields_by_name["spoof"].enum_type = _LIKELIHOOD
-_SAFESEARCHANNOTATION.fields_by_name["medical"].enum_type = _LIKELIHOOD
-_SAFESEARCHANNOTATION.fields_by_name["violent"].enum_type = _LIKELIHOOD
-_SAFESEARCHANNOTATION.fields_by_name["racy"].enum_type = _LIKELIHOOD
-_FACELOCATION.fields_by_name["bounding_box"].message_type = _BOUNDINGBOX
-_FACEANNOTATION.fields_by_name["segments"].message_type = _VIDEOSEGMENT
-_FACEANNOTATION.fields_by_name["locations"].message_type = _FACELOCATION
-_VIDEOANNOTATIONRESULTS.fields_by_name[
- "label_annotations"
-].message_type = _LABELANNOTATION
-_VIDEOANNOTATIONRESULTS.fields_by_name[
- "face_annotations"
-].message_type = _FACEANNOTATION
-_VIDEOANNOTATIONRESULTS.fields_by_name["shot_annotations"].message_type = _VIDEOSEGMENT
-_VIDEOANNOTATIONRESULTS.fields_by_name[
- "safe_search_annotations"
-].message_type = _SAFESEARCHANNOTATION
-_VIDEOANNOTATIONRESULTS.fields_by_name[
- "error"
-].message_type = google_dot_rpc_dot_status__pb2._STATUS
-_ANNOTATEVIDEORESPONSE.fields_by_name[
- "annotation_results"
-].message_type = _VIDEOANNOTATIONRESULTS
-_VIDEOANNOTATIONPROGRESS.fields_by_name[
- "start_time"
-].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_VIDEOANNOTATIONPROGRESS.fields_by_name[
- "update_time"
-].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
-_ANNOTATEVIDEOPROGRESS.fields_by_name[
- "annotation_progress"
-].message_type = _VIDEOANNOTATIONPROGRESS
-DESCRIPTOR.message_types_by_name["AnnotateVideoRequest"] = _ANNOTATEVIDEOREQUEST
-DESCRIPTOR.message_types_by_name["VideoContext"] = _VIDEOCONTEXT
-DESCRIPTOR.message_types_by_name["VideoSegment"] = _VIDEOSEGMENT
-DESCRIPTOR.message_types_by_name["LabelLocation"] = _LABELLOCATION
-DESCRIPTOR.message_types_by_name["LabelAnnotation"] = _LABELANNOTATION
-DESCRIPTOR.message_types_by_name["SafeSearchAnnotation"] = _SAFESEARCHANNOTATION
-DESCRIPTOR.message_types_by_name["BoundingBox"] = _BOUNDINGBOX
-DESCRIPTOR.message_types_by_name["FaceLocation"] = _FACELOCATION
-DESCRIPTOR.message_types_by_name["FaceAnnotation"] = _FACEANNOTATION
-DESCRIPTOR.message_types_by_name["VideoAnnotationResults"] = _VIDEOANNOTATIONRESULTS
-DESCRIPTOR.message_types_by_name["AnnotateVideoResponse"] = _ANNOTATEVIDEORESPONSE
-DESCRIPTOR.message_types_by_name["VideoAnnotationProgress"] = _VIDEOANNOTATIONPROGRESS
-DESCRIPTOR.message_types_by_name["AnnotateVideoProgress"] = _ANNOTATEVIDEOPROGRESS
-DESCRIPTOR.enum_types_by_name["Feature"] = _FEATURE
-DESCRIPTOR.enum_types_by_name["LabelLevel"] = _LABELLEVEL
-DESCRIPTOR.enum_types_by_name["LabelDetectionMode"] = _LABELDETECTIONMODE
-DESCRIPTOR.enum_types_by_name["Likelihood"] = _LIKELIHOOD
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-AnnotateVideoRequest = _reflection.GeneratedProtocolMessageType(
- "AnnotateVideoRequest",
- (_message.Message,),
- dict(
- DESCRIPTOR=_ANNOTATEVIDEOREQUEST,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Video annotation request.
-
-
- Attributes:
- input_uri:
- Input video location. Currently, only `Google Cloud Storage
- `__ URIs are supported,
- which must be specified in the following format:
- ``gs://bucket-id/object-id`` (other URI formats return [google
- .rpc.Code.INVALID\_ARGUMENT][google.rpc.Code.INVALID\_ARGUMENT
- ]). For more information, see `Request URIs
- `__. A video URI may include
- wildcards in ``object-id``, and thus identify multiple videos.
- Supported wildcards: '\*' to match 0 or more characters; '?'
- to match 1 character. If unset, the input video should be
- embedded in the request as ``input_content``. If set,
- ``input_content`` should be unset.
- input_content:
- The video data bytes. Encoding: base64. If unset, the input
- video(s) should be specified via ``input_uri``. If set,
- ``input_uri`` should be unset.
- features:
- Requested video annotation features.
- video_context:
- Additional video context and/or feature-specific parameters.
- output_uri:
- Optional location where the output (in JSON format) should be
- stored. Currently, only `Google Cloud Storage
- `__ URIs are supported,
- which must be specified in the following format:
- ``gs://bucket-id/object-id`` (other URI formats return [google
- .rpc.Code.INVALID\_ARGUMENT][google.rpc.Code.INVALID\_ARGUMENT
- ]). For more information, see `Request URIs
- `__.
- location_id:
- Optional cloud region where annotation should take place.
- Supported cloud regions: ``us-east1``, ``us-west1``, ``europe-
- west1``, ``asia-east1``. If no region is specified, a region
- will be determined based on video file location.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest)
- ),
-)
-_sym_db.RegisterMessage(AnnotateVideoRequest)
-
-VideoContext = _reflection.GeneratedProtocolMessageType(
- "VideoContext",
- (_message.Message,),
- dict(
- DESCRIPTOR=_VIDEOCONTEXT,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Video context and/or feature-specific parameters.
-
-
- Attributes:
- segments:
- Video segments to annotate. The segments may overlap and are
- not required to be contiguous or span the whole video. If
- unspecified, each video is treated as a single segment.
- label_detection_mode:
- If label detection has been requested, what labels should be
- detected in addition to video-level labels or segment-level
- labels. If unspecified, defaults to ``SHOT_MODE``.
- stationary_camera:
- Whether the video has been shot from a stationary (i.e. non-
- moving) camera. When set to true, might improve detection
- accuracy for moving objects.
- label_detection_model:
- Model to use for label detection. Supported values: "latest"
- and "stable" (the default).
- face_detection_model:
- Model to use for face detection. Supported values: "latest"
- and "stable" (the default).
- shot_change_detection_model:
- Model to use for shot change detection. Supported values:
- "latest" and "stable" (the default).
- safe_search_detection_model:
- Model to use for safe search detection. Supported values:
- "latest" and "stable" (the default).
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoContext)
- ),
-)
-_sym_db.RegisterMessage(VideoContext)
-
-VideoSegment = _reflection.GeneratedProtocolMessageType(
- "VideoSegment",
- (_message.Message,),
- dict(
- DESCRIPTOR=_VIDEOSEGMENT,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Video segment.
-
-
- Attributes:
- start_time_offset:
- Start offset in microseconds (inclusive). Unset means 0.
- end_time_offset:
- End offset in microseconds (inclusive). Unset means 0.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoSegment)
- ),
-)
-_sym_db.RegisterMessage(VideoSegment)
-
-LabelLocation = _reflection.GeneratedProtocolMessageType(
- "LabelLocation",
- (_message.Message,),
- dict(
- DESCRIPTOR=_LABELLOCATION,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Label location.
-
-
- Attributes:
- segment:
- Video segment. Set to [-1, -1] for video-level labels. Set to
- [timestamp, timestamp] for frame-level labels. Otherwise,
- corresponds to one of ``AnnotateSpec.segments`` (if specified)
- or to shot boundaries (if requested).
- confidence:
- Confidence that the label is accurate. Range: [0, 1].
- level:
- Label level.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelLocation)
- ),
-)
-_sym_db.RegisterMessage(LabelLocation)
-
-LabelAnnotation = _reflection.GeneratedProtocolMessageType(
- "LabelAnnotation",
- (_message.Message,),
- dict(
- DESCRIPTOR=_LABELANNOTATION,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Label annotation.
-
-
- Attributes:
- description:
- Textual description, e.g. ``Fixed-gear bicycle``.
- language_code:
- Language code for ``description`` in BCP-47 format.
- locations:
- Where the label was detected and with what confidence.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelAnnotation)
- ),
-)
-_sym_db.RegisterMessage(LabelAnnotation)
-
-SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType(
- "SafeSearchAnnotation",
- (_message.Message,),
- dict(
- DESCRIPTOR=_SAFESEARCHANNOTATION,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Safe search annotation (based on per-frame visual signals only). If no
- unsafe content has been detected in a frame, no annotations are present
- for that frame. If only some types of unsafe content have been detected
- in a frame, the likelihood is set to ``UNKNOWN`` for all other types of
- unsafe content.
-
-
- Attributes:
- adult:
- Likelihood of adult content.
- spoof:
- Likelihood that an obvious modification was made to the
- original version to make it appear funny or offensive.
- medical:
- Likelihood of medical content.
- violent:
- Likelihood of violent content.
- racy:
- Likelihood of racy content.
- time_offset:
- Video time offset in microseconds.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation)
- ),
-)
-_sym_db.RegisterMessage(SafeSearchAnnotation)
-
-BoundingBox = _reflection.GeneratedProtocolMessageType(
- "BoundingBox",
- (_message.Message,),
- dict(
- DESCRIPTOR=_BOUNDINGBOX,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Bounding box.
-
-
- Attributes:
- left:
- Left X coordinate.
- right:
- Right X coordinate.
- bottom:
- Bottom Y coordinate.
- top:
- Top Y coordinate.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.BoundingBox)
- ),
-)
-_sym_db.RegisterMessage(BoundingBox)
-
-FaceLocation = _reflection.GeneratedProtocolMessageType(
- "FaceLocation",
- (_message.Message,),
- dict(
- DESCRIPTOR=_FACELOCATION,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Face location.
-
-
- Attributes:
- bounding_box:
- Bounding box in a frame.
- time_offset:
- Video time offset in microseconds.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceLocation)
- ),
-)
-_sym_db.RegisterMessage(FaceLocation)
-
-FaceAnnotation = _reflection.GeneratedProtocolMessageType(
- "FaceAnnotation",
- (_message.Message,),
- dict(
- DESCRIPTOR=_FACEANNOTATION,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Face annotation.
-
-
- Attributes:
- thumbnail:
- Thumbnail of a representative face view (in JPEG format).
- Encoding: base64.
- segments:
- All locations where a face was detected. Faces are detected
- and tracked on a per-video basis (as opposed to across
- multiple videos).
- locations:
- Face locations at one frame per second.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceAnnotation)
- ),
-)
-_sym_db.RegisterMessage(FaceAnnotation)
-
-VideoAnnotationResults = _reflection.GeneratedProtocolMessageType(
- "VideoAnnotationResults",
- (_message.Message,),
- dict(
- DESCRIPTOR=_VIDEOANNOTATIONRESULTS,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Annotation results for a single video.
-
-
- Attributes:
- input_uri:
- Video file location in `Google Cloud Storage
- `__.
- label_annotations:
- Label annotations. There is exactly one element for each
- unique label.
- face_annotations:
- Face annotations. There is exactly one element for each unique
- face.
- shot_annotations:
- Shot annotations. Each shot is represented as a video segment.
- safe_search_annotations:
- Safe search annotations.
- error:
- If set, indicates an error. Note that for a single
- ``AnnotateVideoRequest`` some videos may succeed and some may
- fail.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationResults)
- ),
-)
-_sym_db.RegisterMessage(VideoAnnotationResults)
-
-AnnotateVideoResponse = _reflection.GeneratedProtocolMessageType(
- "AnnotateVideoResponse",
- (_message.Message,),
- dict(
- DESCRIPTOR=_ANNOTATEVIDEORESPONSE,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Video annotation response. Included in the ``response`` field of the
- ``Operation`` returned by the ``GetOperation`` call of the
- ``google::longrunning::Operations`` service.
-
-
- Attributes:
- annotation_results:
- Annotation results for all videos specified in
- ``AnnotateVideoRequest``.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse)
- ),
-)
-_sym_db.RegisterMessage(AnnotateVideoResponse)
-
-VideoAnnotationProgress = _reflection.GeneratedProtocolMessageType(
- "VideoAnnotationProgress",
- (_message.Message,),
- dict(
- DESCRIPTOR=_VIDEOANNOTATIONPROGRESS,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Annotation progress for a single video.
-
-
- Attributes:
- input_uri:
- Video file location in `Google Cloud Storage
- `__.
- progress_percent:
- Approximate percentage processed thus far. Guaranteed to be
- 100 when fully processed.
- start_time:
- Time when the request was received.
- update_time:
- Time of the most recent update.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)
- ),
-)
-_sym_db.RegisterMessage(VideoAnnotationProgress)
-
-AnnotateVideoProgress = _reflection.GeneratedProtocolMessageType(
- "AnnotateVideoProgress",
- (_message.Message,),
- dict(
- DESCRIPTOR=_ANNOTATEVIDEOPROGRESS,
- __module__="google.cloud.videointelligence_v1beta1.proto.video_intelligence_pb2",
- __doc__="""Video annotation progress. Included in the ``metadata`` field of the
- ``Operation`` returned by the ``GetOperation`` call of the
- ``google::longrunning::Operations`` service.
-
-
- Attributes:
- annotation_progress:
- Progress metadata for all videos specified in
- ``AnnotateVideoRequest``.
- """,
- # @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress)
- ),
-)
-_sym_db.RegisterMessage(AnnotateVideoProgress)
-
-
-DESCRIPTOR._options = None
-
-_VIDEOINTELLIGENCESERVICE = _descriptor.ServiceDescriptor(
- name="VideoIntelligenceService",
- full_name="google.cloud.videointelligence.v1beta1.VideoIntelligenceService",
- file=DESCRIPTOR,
- index=0,
- serialized_options=None,
- serialized_start=3257,
- serialized_end=3431,
- methods=[
- _descriptor.MethodDescriptor(
- name="AnnotateVideo",
- full_name="google.cloud.videointelligence.v1beta1.VideoIntelligenceService.AnnotateVideo",
- index=0,
- containing_service=None,
- input_type=_ANNOTATEVIDEOREQUEST,
- output_type=google_dot_longrunning_dot_operations__pb2._OPERATION,
- serialized_options=_b(
- '\202\323\344\223\002\035"\030/v1beta1/videos:annotate:\001*'
- ),
- )
- ],
-)
-_sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE)
-
-DESCRIPTOR.services_by_name["VideoIntelligenceService"] = _VIDEOINTELLIGENCESERVICE
-
-# @@protoc_insertion_point(module_scope)
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py
deleted file mode 100644
index a8a8f1125e20..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
-import grpc
-
-from google.cloud.videointelligence_v1beta1.proto import (
- video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2,
-)
-from google.longrunning import (
- operations_pb2 as google_dot_longrunning_dot_operations__pb2,
-)
-
-
-class VideoIntelligenceServiceStub(object):
- """Service that implements Google Cloud Video Intelligence API.
- """
-
- def __init__(self, channel):
- """Constructor.
-
- Args:
- channel: A grpc.Channel.
- """
- self.AnnotateVideo = channel.unary_unary(
- "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo",
- request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
- response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
- )
-
-
-class VideoIntelligenceServiceServicer(object):
- """Service that implements Google Cloud Video Intelligence API.
- """
-
- def AnnotateVideo(self, request, context):
- """Performs asynchronous video annotation. Progress and results can be
- retrieved through the `google.longrunning.Operations` interface.
- `Operation.metadata` contains `AnnotateVideoProgress` (progress).
- `Operation.response` contains `AnnotateVideoResponse` (results).
- """
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
- context.set_details("Method not implemented!")
- raise NotImplementedError("Method not implemented!")
-
-
-def add_VideoIntelligenceServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- "AnnotateVideo": grpc.unary_unary_rpc_method_handler(
- servicer.AnnotateVideo,
- request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
- response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
- )
- }
- generic_handler = grpc.method_handlers_generic_handler(
- "google.cloud.videointelligence.v1beta1.VideoIntelligenceService",
- rpc_method_handlers,
- )
- server.add_generic_rpc_handlers((generic_handler,))
diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/types.py
deleted file mode 100644
index f4b0fd1b0bde..000000000000
--- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/types.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from __future__ import absolute_import
-import sys
-
-from google.api_core.protobuf_helpers import get_messages
-
-from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2
-from google.longrunning import operations_pb2
-from google.protobuf import any_pb2
-from google.protobuf import timestamp_pb2
-from google.rpc import status_pb2
-
-
-_shared_modules = [operations_pb2, any_pb2, timestamp_pb2, status_pb2]
-
-_local_modules = [video_intelligence_pb2]
-
-names = []
-
-for module in _shared_modules: # pragma: NO COVER
- for name, message in get_messages(module).items():
- setattr(sys.modules[__name__], name, message)
- names.append(name)
-for module in _local_modules:
- for name, message in get_messages(module).items():
- message.__module__ = "google.cloud.videointelligence_v1beta1.types"
- setattr(sys.modules[__name__], name, message)
- names.append(name)
-
-
-__all__ = tuple(sorted(names))
diff --git a/packages/google-cloud-videointelligence/synth.metadata b/packages/google-cloud-videointelligence/synth.metadata
index fa344a8762b6..36eb59e39aec 100644
--- a/packages/google-cloud-videointelligence/synth.metadata
+++ b/packages/google-cloud-videointelligence/synth.metadata
@@ -1,5 +1,5 @@
{
- "updateTime": "2019-10-05T12:44:32.424805Z",
+ "updateTime": "2019-10-08T16:21:52.884418Z",
"sources": [
{
"generator": {
@@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "ceb8e2fb12f048cc94caae532ef0b4cf026a78f3",
- "internalRef": "272971705"
+ "sha": "8fca1cdaf063d914042a678848331d7d6211ee13",
+ "internalRef": "273514424"
}
},
{
@@ -25,16 +25,6 @@
}
],
"destinations": [
- {
- "client": {
- "source": "googleapis",
- "apiName": "videointelligence",
- "apiVersion": "v1beta1",
- "language": "python",
- "generator": "gapic",
- "config": "google/cloud/videointelligence/artman_videointelligence_v1beta1.yaml"
- }
- },
{
"client": {
"source": "googleapis",
diff --git a/packages/google-cloud-videointelligence/synth.py b/packages/google-cloud-videointelligence/synth.py
index 3e5d8389829c..8cb0ac1d98cb 100644
--- a/packages/google-cloud-videointelligence/synth.py
+++ b/packages/google-cloud-videointelligence/synth.py
@@ -20,7 +20,7 @@
gapic = gcp.GAPICGenerator()
common = gcp.CommonTemplates()
-versions = ["v1beta1", "v1beta2", "v1p1beta1", "v1p2beta1", "v1p3beta1", "v1"]
+versions = ["v1beta2", "v1p1beta1", "v1p2beta1", "v1p3beta1", "v1"]
# ----------------------------------------------------------------------------
diff --git a/packages/google-cloud-videointelligence/tests/unit/gapic/v1beta1/test_video_intelligence_service_client_v1beta1.py b/packages/google-cloud-videointelligence/tests/unit/gapic/v1beta1/test_video_intelligence_service_client_v1beta1.py
deleted file mode 100644
index 27926f1cf767..000000000000
--- a/packages/google-cloud-videointelligence/tests/unit/gapic/v1beta1/test_video_intelligence_service_client_v1beta1.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2019 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Unit tests."""
-
-import mock
-import pytest
-
-from google.rpc import status_pb2
-
-from google.cloud import videointelligence_v1beta1
-from google.cloud.videointelligence_v1beta1 import enums
-from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2
-from google.longrunning import operations_pb2
-
-
-class MultiCallableStub(object):
- """Stub for the grpc.UnaryUnaryMultiCallable interface."""
-
- def __init__(self, method, channel_stub):
- self.method = method
- self.channel_stub = channel_stub
-
- def __call__(self, request, timeout=None, metadata=None, credentials=None):
- self.channel_stub.requests.append((self.method, request))
-
- response = None
- if self.channel_stub.responses:
- response = self.channel_stub.responses.pop()
-
- if isinstance(response, Exception):
- raise response
-
- if response:
- return response
-
-
-class ChannelStub(object):
- """Stub for the grpc.Channel interface."""
-
- def __init__(self, responses=[]):
- self.responses = responses
- self.requests = []
-
- def unary_unary(self, method, request_serializer=None, response_deserializer=None):
- return MultiCallableStub(method, self)
-
-
-class CustomException(Exception):
- pass
-
-
-class TestVideoIntelligenceServiceClient(object):
- def test_annotate_video(self):
- # Setup Expected Response
- expected_response = {}
- expected_response = video_intelligence_pb2.AnnotateVideoResponse(
- **expected_response
- )
- operation = operations_pb2.Operation(
- name="operations/test_annotate_video", done=True
- )
- operation.response.Pack(expected_response)
-
- # Mock the API response
- channel = ChannelStub(responses=[operation])
- patch = mock.patch("google.api_core.grpc_helpers.create_channel")
- with patch as create_channel:
- create_channel.return_value = channel
- client = videointelligence_v1beta1.VideoIntelligenceServiceClient()
-
- # Setup Request
- input_uri = "gs://cloud-samples-data/video/cat.mp4"
- features_element = enums.Feature.LABEL_DETECTION
- features = [features_element]
-
- response = client.annotate_video(input_uri, features)
- result = response.result()
- assert expected_response == result
-
- assert len(channel.requests) == 1
- expected_request = video_intelligence_pb2.AnnotateVideoRequest(
- input_uri=input_uri, features=features
- )
- actual_request = channel.requests[0][1]
- assert expected_request == actual_request
-
- def test_annotate_video_exception(self):
- # Setup Response
- error = status_pb2.Status()
- operation = operations_pb2.Operation(
- name="operations/test_annotate_video_exception", done=True
- )
- operation.error.CopyFrom(error)
-
- # Mock the API response
- channel = ChannelStub(responses=[operation])
- patch = mock.patch("google.api_core.grpc_helpers.create_channel")
- with patch as create_channel:
- create_channel.return_value = channel
- client = videointelligence_v1beta1.VideoIntelligenceServiceClient()
-
- # Setup Request
- input_uri = "gs://cloud-samples-data/video/cat.mp4"
- features_element = enums.Feature.LABEL_DETECTION
- features = [features_element]
-
- response = client.annotate_video(input_uri, features)
- exception = response.exception()
- assert exception.errors[0] == error