<filename>google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2
from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2


class CampaignBidModifierServiceStub(object):
  """Proto file describing the Campaign Bid Modifier service.

  Service to manage campaign bid modifiers.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetCampaignBidModifier = channel.unary_unary(
        '/google.ads.googleads.v4.services.CampaignBidModifierService/GetCampaignBidModifier',
        request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.FromString,
        )
    self.MutateCampaignBidModifiers = channel.unary_unary(
        '/google.ads.googleads.v4.services.CampaignBidModifierService/MutateCampaignBidModifiers',
        request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.FromString,
        )


class CampaignBidModifierServiceServicer(object):
  """Proto file describing the Campaign Bid Modifier service.

  Service to manage campaign bid modifiers.
  """

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

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


def add_CampaignBidModifierServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetCampaignBidModifier': grpc.unary_unary_rpc_method_handler(
          servicer.GetCampaignBidModifier,
          request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.SerializeToString,
      ),
      'MutateCampaignBidModifiers': grpc.unary_unary_rpc_method_handler(
          servicer.MutateCampaignBidModifiers,
          request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.ads.googleads.v4.services.CampaignBidModifierService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

<filename>google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2
from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2


class CampaignBidModifierServiceStub(object):
  """Proto file describing the Campaign Bid Modifier service.

  Service to manage campaign bid modifiers.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetCampaignBidModifier = channel.unary_unary(
        '/google.ads.googleads.v4.services.CampaignBidModifierService/GetCampaignBidModifier',
        request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.FromString,
        )
    self.MutateCampaignBidModifiers = channel.unary_unary(
        '/google.ads.googleads.v4.services.CampaignBidModifierService/MutateCampaignBidModifiers',
        request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.SerializeToString,
        response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.FromString,
        )


class CampaignBidModifierServiceServicer(object):
  """Proto file describing the Campaign Bid Modifier service.

  Service to manage campaign bid modifiers.
  """

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

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


def add_CampaignBidModifierServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetCampaignBidModifier': grpc.unary_unary_rpc_method_handler(
          servicer.GetCampaignBidModifier,
          request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.SerializeToString,
      ),
      'MutateCampaignBidModifiers': grpc.unary_unary_rpc_method_handler(
          servicer.MutateCampaignBidModifiers,
          request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.FromString,
          response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.ads.googleads.v4.services.CampaignBidModifierService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! Proto file describing the Campaign Bid Modifier service.    Service to manage campaign bid modifiers. Constructor.      Args:       channel: A grpc.Channel. Proto file describing the Campaign Bid Modifier service.    Service to manage campaign bid modifiers. Returns the requested campaign bid modifier in full detail. Creates, updates, or removes campaign bid modifiers.     Operation statuses are returned.