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

from google.ads.googleads.v1.resources import geographic_view_pb2 as google_dot_ads_dot_googleads_dot_v1_dot_resources_dot_geographic__view__pb2
from google.ads.googleads.v1.services import geographic_view_service_pb2 as google_dot_ads_dot_googleads_dot_v1_dot_services_dot_geographic__view__service__pb2


class GeographicViewServiceStub(object):
  """Proto file describing the GeographicViewService.

  Service to manage geographic views.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetGeographicView = channel.unary_unary(
        '/google.ads.googleads.v1.services.GeographicViewService/GetGeographicView',
        request_serializer=google_dot_ads_dot_googleads_dot_v1_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads_dot_v1_dot_resources_dot_geographic__view__pb2.GeographicView.FromString,
        )


class GeographicViewServiceServicer(object):
  """Proto file describing the GeographicViewService.

  Service to manage geographic views.
  """

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


def add_GeographicViewServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetGeographicView': grpc.unary_unary_rpc_method_handler(
          servicer.GetGeographicView,
          request_deserializer=google_dot_ads_dot_googleads_dot_v1_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads_dot_v1_dot_resources_dot_geographic__view__pb2.GeographicView.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.ads.googleads.v1.services.GeographicViewService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
