text: # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  import grpc
  
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
  from marketing.v1beta1 import MarketingService_Beta1_pb2 as marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2
  
  
  class MarketingStub(object):
    """Provides support for marketing campaign management, and outreach via arbitrary mediums (SMS, email, etc) to end-
    customers identified by Bloombox user accounts.
    -- API: Campaigns -- //
    """
  
    def __init__(self, channel):
      """Constructor.
  
      Args:
        channel: A grpc.Channel.
      """
      self.CreateCampaign = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/CreateCampaign',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignCreate.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignCreate.Response.FromString,
          )
      self.GetCampaign = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/GetCampaign',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignGet.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignGet.Response.FromString,
          )
      self.ListCampaigns = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/ListCampaigns',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignList.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignList.Response.FromString,
          )
      self.UpdateCampaign = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/UpdateCampaign',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignUpdate.Request.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.ValidateCampaign = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/ValidateCampaign',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignValidate.Request.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.SendCampaign = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/SendCampaign',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignSend.Request.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.Adgroups = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/Adgroups',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupList.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupList.Response.FromString,
          )
      self.CreateAdgroup = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/CreateAdgroup',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupCreate.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupCreate.Response.FromString,
          )
      self.Adgroup = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/Adgroup',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupGet.Request.SerializeToString,
          response_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupGet.Response.FromString,
          )
      self.UpdateAdgroup = channel.unary_unary(
          '/bloombox.schema.services.marketing.v1beta1.Marketing/UpdateAdgroup',
          request_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupUpdate.Request.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
  
  
  class MarketingServicer(object):
    """Provides support for marketing campaign management, and outreach via arbitrary mediums (SMS, email, etc) to end-
    customers identified by Bloombox user accounts.
    -- API: Campaigns -- //
    """
  
    def CreateCampaign(self, request, context):
      """Create a new marketing campaign from scratch.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def GetCampaign(self, request, context):
      """Retrieve data for a given marketing campaign, addressed by its ID.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def ListCampaigns(self, request, context):
      """Fetch a list of marketing campaigns for a given partner/location scope.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def UpdateCampaign(self, request, context):
      """Update underlying data for an existing marketing campaign.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def ValidateCampaign(self, request, context):
      """Validate a campaign's readiness before sending.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def SendCampaign(self, request, context):
      """Trigger a marketing campaign to be sent.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def Adgroups(self, request, context):
      """-- API: Ad Groups -- //
  
      List ad groups for a given campaign.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def CreateAdgroup(self, request, context):
      """Create a new marketing campaign ad group from scratch.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def Adgroup(self, request, context):
      """Retrieve a marketing campaign's ad group by its ID.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
    def UpdateAdgroup(self, request, context):
      """Update underlying data or content for a given set of campaign ad parameters.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')
  
  
  def add_MarketingServicer_to_server(servicer, server):
    rpc_method_handlers = {
        'CreateCampaign': grpc.unary_unary_rpc_method_handler(
            servicer.CreateCampaign,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignCreate.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignCreate.Response.SerializeToString,
        ),
        'GetCampaign': grpc.unary_unary_rpc_method_handler(
            servicer.GetCampaign,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignGet.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignGet.Response.SerializeToString,
        ),
        'ListCampaigns': grpc.unary_unary_rpc_method_handler(
            servicer.ListCampaigns,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignList.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignList.Response.SerializeToString,
        ),
        'UpdateCampaign': grpc.unary_unary_rpc_method_handler(
            servicer.UpdateCampaign,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignUpdate.Request.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'ValidateCampaign': grpc.unary_unary_rpc_method_handler(
            servicer.ValidateCampaign,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignValidate.Request.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'SendCampaign': grpc.unary_unary_rpc_method_handler(
            servicer.SendCampaign,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.CampaignSend.Request.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'Adgroups': grpc.unary_unary_rpc_method_handler(
            servicer.Adgroups,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupList.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupList.Response.SerializeToString,
        ),
        'CreateAdgroup': grpc.unary_unary_rpc_method_handler(
            servicer.CreateAdgroup,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupCreate.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupCreate.Response.SerializeToString,
        ),
        'Adgroup': grpc.unary_unary_rpc_method_handler(
            servicer.Adgroup,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupGet.Request.FromString,
            response_serializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupGet.Response.SerializeToString,
        ),
        'UpdateAdgroup': grpc.unary_unary_rpc_method_handler(
            servicer.UpdateAdgroup,
            request_deserializer=marketing_dot_v1beta1_dot_MarketingService__Beta1__pb2.AdGroupUpdate.Request.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        'bloombox.schema.services.marketing.v1beta1.Marketing', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
  