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

from google.ads.google_ads.v2.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_campaign__extension__setting__pb2
from google.ads.google_ads.v2.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2


class CampaignExtensionSettingServiceStub(object):
  """Proto file describing the CampaignExtensionSetting service.

  Service to manage campaign extension settings.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetCampaignExtensionSetting = channel.unary_unary(
        '/google.ads.googleads.v2.services.CampaignExtensionSettingService/GetCampaignExtensionSetting',
        request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.FromString,
        )
    self.MutateCampaignExtensionSettings = channel.unary_unary(
        '/google.ads.googleads.v2.services.CampaignExtensionSettingService/MutateCampaignExtensionSettings',
        request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.FromString,
        )


class CampaignExtensionSettingServiceServicer(object):
  """Proto file describing the CampaignExtensionSetting service.

  Service to manage campaign extension settings.
  """

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

  def MutateCampaignExtensionSettings(self, request, context):
    """Creates, updates, or removes campaign extension settings. Operation
    statuses are returned.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_CampaignExtensionSettingServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetCampaignExtensionSetting': grpc.unary_unary_rpc_method_handler(
          servicer.GetCampaignExtensionSetting,
          request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.SerializeToString,
      ),
      'MutateCampaignExtensionSettings': grpc.unary_unary_rpc_method_handler(
          servicer.MutateCampaignExtensionSettings,
          request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.ads.googleads.v2.services.CampaignExtensionSettingService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
