text: # 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,))
  