# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from google.ads.google_ads.v0.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2
from google.ads.google_ads.v0.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2


class MediaFileServiceStub(object):
  """Service to manage media files.
  """

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.GetMediaFile = channel.unary_unary(
        '/google.ads.googleads.v0.services.MediaFileService/GetMediaFile',
        request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.FromString,
        )
    self.MutateMediaFiles = channel.unary_unary(
        '/google.ads.googleads.v0.services.MediaFileService/MutateMediaFiles',
        request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.FromString,
        )


class MediaFileServiceServicer(object):
  """Service to manage media files.
  """

  def GetMediaFile(self, request, context):
    """Returns the requested media file in full detail.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def MutateMediaFiles(self, request, context):
    """Creates media files. Operation statuses are returned.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_MediaFileServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetMediaFile': grpc.unary_unary_rpc_method_handler(
          servicer.GetMediaFile,
          request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.SerializeToString,
      ),
      'MutateMediaFiles': grpc.unary_unary_rpc_method_handler(
          servicer.MutateMediaFiles,
          request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.ads.googleads.v0.services.MediaFileService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

[(62, 'grpc.method_handlers_generic_handler', 'grpc.method_handlers_generic_handler', False, 'import grpc\n'), (51, 'grpc.unary_unary_rpc_method_handler', 'grpc.unary_unary_rpc_method_handler', False, 'import grpc\n'), (56, 'grpc.unary_unary_rpc_method_handler', 'grpc.unary_unary_rpc_method_handler', False, 'import grpc\n')]