blob: 4e745b2f8b691e160ed37d9ad53480dcb5811abf [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/campaign_shared_set_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Request message for [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v1.services.CampaignSharedSetService.GetCampaignSharedSet].
type GetCampaignSharedSetRequest struct {
// The resource name of the campaign shared set to fetch.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetCampaignSharedSetRequest) Reset() { *m = GetCampaignSharedSetRequest{} }
func (m *GetCampaignSharedSetRequest) String() string { return proto.CompactTextString(m) }
func (*GetCampaignSharedSetRequest) ProtoMessage() {}
func (*GetCampaignSharedSetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4eb5d89b68dc46d0, []int{0}
}
func (m *GetCampaignSharedSetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetCampaignSharedSetRequest.Unmarshal(m, b)
}
func (m *GetCampaignSharedSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetCampaignSharedSetRequest.Marshal(b, m, deterministic)
}
func (m *GetCampaignSharedSetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCampaignSharedSetRequest.Merge(m, src)
}
func (m *GetCampaignSharedSetRequest) XXX_Size() int {
return xxx_messageInfo_GetCampaignSharedSetRequest.Size(m)
}
func (m *GetCampaignSharedSetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetCampaignSharedSetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetCampaignSharedSetRequest proto.InternalMessageInfo
func (m *GetCampaignSharedSetRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v1.services.CampaignSharedSetService.MutateCampaignSharedSets].
type MutateCampaignSharedSetsRequest struct {
// The ID of the customer whose campaign shared sets are being modified.
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// The list of operations to perform on individual campaign shared sets.
Operations []*CampaignSharedSetOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
// If true, successful operations will be carried out and invalid
// operations will return errors. If false, all operations will be carried
// out in one transaction if and only if they are all valid.
// Default is false.
PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
// If true, the request is validated but not executed. Only errors are
// returned, not results.
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCampaignSharedSetsRequest) Reset() { *m = MutateCampaignSharedSetsRequest{} }
func (m *MutateCampaignSharedSetsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignSharedSetsRequest) ProtoMessage() {}
func (*MutateCampaignSharedSetsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4eb5d89b68dc46d0, []int{1}
}
func (m *MutateCampaignSharedSetsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignSharedSetsRequest.Unmarshal(m, b)
}
func (m *MutateCampaignSharedSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignSharedSetsRequest.Marshal(b, m, deterministic)
}
func (m *MutateCampaignSharedSetsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignSharedSetsRequest.Merge(m, src)
}
func (m *MutateCampaignSharedSetsRequest) XXX_Size() int {
return xxx_messageInfo_MutateCampaignSharedSetsRequest.Size(m)
}
func (m *MutateCampaignSharedSetsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignSharedSetsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignSharedSetsRequest proto.InternalMessageInfo
func (m *MutateCampaignSharedSetsRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateCampaignSharedSetsRequest) GetOperations() []*CampaignSharedSetOperation {
if m != nil {
return m.Operations
}
return nil
}
func (m *MutateCampaignSharedSetsRequest) GetPartialFailure() bool {
if m != nil {
return m.PartialFailure
}
return false
}
func (m *MutateCampaignSharedSetsRequest) GetValidateOnly() bool {
if m != nil {
return m.ValidateOnly
}
return false
}
// A single operation (create, remove) on an campaign shared set.
type CampaignSharedSetOperation struct {
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *CampaignSharedSetOperation_Create
// *CampaignSharedSetOperation_Remove
Operation isCampaignSharedSetOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CampaignSharedSetOperation) Reset() { *m = CampaignSharedSetOperation{} }
func (m *CampaignSharedSetOperation) String() string { return proto.CompactTextString(m) }
func (*CampaignSharedSetOperation) ProtoMessage() {}
func (*CampaignSharedSetOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_4eb5d89b68dc46d0, []int{2}
}
func (m *CampaignSharedSetOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CampaignSharedSetOperation.Unmarshal(m, b)
}
func (m *CampaignSharedSetOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CampaignSharedSetOperation.Marshal(b, m, deterministic)
}
func (m *CampaignSharedSetOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CampaignSharedSetOperation.Merge(m, src)
}
func (m *CampaignSharedSetOperation) XXX_Size() int {
return xxx_messageInfo_CampaignSharedSetOperation.Size(m)
}
func (m *CampaignSharedSetOperation) XXX_DiscardUnknown() {
xxx_messageInfo_CampaignSharedSetOperation.DiscardUnknown(m)
}
var xxx_messageInfo_CampaignSharedSetOperation proto.InternalMessageInfo
type isCampaignSharedSetOperation_Operation interface {
isCampaignSharedSetOperation_Operation()
}
type CampaignSharedSetOperation_Create struct {
Create *resources.CampaignSharedSet `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type CampaignSharedSetOperation_Remove struct {
Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
}
func (*CampaignSharedSetOperation_Create) isCampaignSharedSetOperation_Operation() {}
func (*CampaignSharedSetOperation_Remove) isCampaignSharedSetOperation_Operation() {}
func (m *CampaignSharedSetOperation) GetOperation() isCampaignSharedSetOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *CampaignSharedSetOperation) GetCreate() *resources.CampaignSharedSet {
if x, ok := m.GetOperation().(*CampaignSharedSetOperation_Create); ok {
return x.Create
}
return nil
}
func (m *CampaignSharedSetOperation) GetRemove() string {
if x, ok := m.GetOperation().(*CampaignSharedSetOperation_Remove); ok {
return x.Remove
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CampaignSharedSetOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CampaignSharedSetOperation_Create)(nil),
(*CampaignSharedSetOperation_Remove)(nil),
}
}
// Response message for a campaign shared set mutate.
type MutateCampaignSharedSetsResponse struct {
// Errors that pertain to operation failures in the partial failure mode.
// Returned only when partial_failure = true and all errors occur inside the
// operations. If any errors occur outside the operations (e.g. auth errors),
// we return an RPC level error.
PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
// All results for the mutate.
Results []*MutateCampaignSharedSetResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCampaignSharedSetsResponse) Reset() { *m = MutateCampaignSharedSetsResponse{} }
func (m *MutateCampaignSharedSetsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignSharedSetsResponse) ProtoMessage() {}
func (*MutateCampaignSharedSetsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4eb5d89b68dc46d0, []int{3}
}
func (m *MutateCampaignSharedSetsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignSharedSetsResponse.Unmarshal(m, b)
}
func (m *MutateCampaignSharedSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignSharedSetsResponse.Marshal(b, m, deterministic)
}
func (m *MutateCampaignSharedSetsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignSharedSetsResponse.Merge(m, src)
}
func (m *MutateCampaignSharedSetsResponse) XXX_Size() int {
return xxx_messageInfo_MutateCampaignSharedSetsResponse.Size(m)
}
func (m *MutateCampaignSharedSetsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignSharedSetsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignSharedSetsResponse proto.InternalMessageInfo
func (m *MutateCampaignSharedSetsResponse) GetPartialFailureError() *status.Status {
if m != nil {
return m.PartialFailureError
}
return nil
}
func (m *MutateCampaignSharedSetsResponse) GetResults() []*MutateCampaignSharedSetResult {
if m != nil {
return m.Results
}
return nil
}
// The result for the campaign shared set mutate.
type MutateCampaignSharedSetResult struct {
// Returned for successful operations.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCampaignSharedSetResult) Reset() { *m = MutateCampaignSharedSetResult{} }
func (m *MutateCampaignSharedSetResult) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignSharedSetResult) ProtoMessage() {}
func (*MutateCampaignSharedSetResult) Descriptor() ([]byte, []int) {
return fileDescriptor_4eb5d89b68dc46d0, []int{4}
}
func (m *MutateCampaignSharedSetResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignSharedSetResult.Unmarshal(m, b)
}
func (m *MutateCampaignSharedSetResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignSharedSetResult.Marshal(b, m, deterministic)
}
func (m *MutateCampaignSharedSetResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignSharedSetResult.Merge(m, src)
}
func (m *MutateCampaignSharedSetResult) XXX_Size() int {
return xxx_messageInfo_MutateCampaignSharedSetResult.Size(m)
}
func (m *MutateCampaignSharedSetResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignSharedSetResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignSharedSetResult proto.InternalMessageInfo
func (m *MutateCampaignSharedSetResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetCampaignSharedSetRequest)(nil), "google.ads.googleads.v1.services.GetCampaignSharedSetRequest")
proto.RegisterType((*MutateCampaignSharedSetsRequest)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest")
proto.RegisterType((*CampaignSharedSetOperation)(nil), "google.ads.googleads.v1.services.CampaignSharedSetOperation")
proto.RegisterType((*MutateCampaignSharedSetsResponse)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse")
proto.RegisterType((*MutateCampaignSharedSetResult)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v1/services/campaign_shared_set_service.proto", fileDescriptor_4eb5d89b68dc46d0)
}
var fileDescriptor_4eb5d89b68dc46d0 = []byte{
// 672 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x41, 0x6b, 0xd4, 0x40,
0x14, 0x36, 0xbb, 0x52, 0xed, 0x6c, 0x55, 0x18, 0x15, 0xc3, 0xd6, 0xd2, 0x25, 0x16, 0x2c, 0x7b,
0x48, 0xd8, 0xb5, 0x28, 0xa4, 0x2d, 0x92, 0xa8, 0x6d, 0x3d, 0xd8, 0x96, 0x2c, 0x14, 0x94, 0x85,
0x30, 0x26, 0x63, 0x0c, 0x24, 0x99, 0x38, 0x33, 0x59, 0x28, 0xa5, 0x17, 0xf1, 0x1f, 0xf4, 0x1f,
0x78, 0xf4, 0x7f, 0x78, 0xb0, 0x57, 0xff, 0x82, 0x5e, 0x14, 0xfc, 0x0d, 0x92, 0x4c, 0x26, 0xdb,
0x76, 0x9b, 0xae, 0xd4, 0xdb, 0xcb, 0x7b, 0x6f, 0xbe, 0xef, 0x7d, 0xf3, 0xde, 0xbc, 0x00, 0x3b,
0x20, 0x24, 0x88, 0xb0, 0x81, 0x7c, 0x66, 0x08, 0x33, 0xb7, 0x46, 0x3d, 0x83, 0x61, 0x3a, 0x0a,
0x3d, 0xcc, 0x0c, 0x0f, 0xc5, 0x29, 0x0a, 0x83, 0xc4, 0x65, 0xef, 0x11, 0xc5, 0xbe, 0xcb, 0x30,
0x77, 0xcb, 0xa0, 0x9e, 0x52, 0xc2, 0x09, 0xec, 0x88, 0x83, 0x3a, 0xf2, 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, 0xba, 0x2b,
0xf2, 0xe5, 0xb6, 0xed, 0xff, 0x81, 0x10, 0x53, 0xa7, 0xd9, 0x85, 0xc2, 0x35, 0xed, 0x49, 0xae,
0x70, 0x2c, 0xe9, 0xe0, 0xc4, 0x4a, 0x58, 0xef, 0x1e, 0x9e, 0x23, 0xd0, 0x8c, 0x0b, 0x68, 0x53,
0xe9, 0xb6, 0xe7, 0x8f, 0x2d, 0x75, 0x4c, 0x5f, 0x5a, 0x69, 0xc8, 0x74, 0x8f, 0xc4, 0xf6, 0xa7,
0x06, 0x58, 0xf2, 0x48, 0x3c, 0xb5, 0x54, 0x7b, 0xa1, 0x6e, 0x26, 0x76, 0xf3, 0x75, 0xb8, 0xab,
0xbc, 0xd9, 0x2a, 0x21, 0x02, 0x12, 0xa1, 0x24, 0xd0, 0x09, 0x0d, 0x8c, 0x00, 0x27, 0xc5, 0xb2,
0x34, 0xc6, 0xa4, 0xf5, 0xbf, 0x88, 0x55, 0x69, 0x7c, 0x6e, 0x34, 0x37, 0x2d, 0xeb, 0x4b, 0xa3,
0xb3, 0x29, 0x00, 0x2d, 0x9f, 0xe9, 0xc2, 0xcc, 0xad, 0xbd, 0x9e, 0x5e, 0x12, 0xb3, 0x63, 0x99,
0x32, 0xb4, 0x7c, 0x36, 0xac, 0x52, 0x86, 0x7b, 0xbd, 0xa1, 0x4c, 0xf9, 0xd5, 0x58, 0x12, 0x7e,
0xd3, 0xb4, 0x7c, 0x66, 0x9a, 0x55, 0x92, 0x69, 0xee, 0xf5, 0x4c, 0x53, 0xa6, 0xbd, 0x9d, 0x29,
0xea, 0x7c, 0xf4, 0x37, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x19, 0x61, 0x1c, 0xc9, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// CampaignSharedSetServiceClient is the client API for CampaignSharedSetService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CampaignSharedSetServiceClient interface {
// Returns the requested campaign shared set in full detail.
GetCampaignSharedSet(ctx context.Context, in *GetCampaignSharedSetRequest, opts ...grpc.CallOption) (*resources.CampaignSharedSet, error)
// Creates or removes campaign shared sets. Operation statuses are returned.
MutateCampaignSharedSets(ctx context.Context, in *MutateCampaignSharedSetsRequest, opts ...grpc.CallOption) (*MutateCampaignSharedSetsResponse, error)
}
type campaignSharedSetServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCampaignSharedSetServiceClient(cc grpc.ClientConnInterface) CampaignSharedSetServiceClient {
return &campaignSharedSetServiceClient{cc}
}
func (c *campaignSharedSetServiceClient) GetCampaignSharedSet(ctx context.Context, in *GetCampaignSharedSetRequest, opts ...grpc.CallOption) (*resources.CampaignSharedSet, error) {
out := new(resources.CampaignSharedSet)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignSharedSetService/GetCampaignSharedSet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *campaignSharedSetServiceClient) MutateCampaignSharedSets(ctx context.Context, in *MutateCampaignSharedSetsRequest, opts ...grpc.CallOption) (*MutateCampaignSharedSetsResponse, error) {
out := new(MutateCampaignSharedSetsResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignSharedSetService/MutateCampaignSharedSets", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CampaignSharedSetServiceServer is the server API for CampaignSharedSetService service.
type CampaignSharedSetServiceServer interface {
// Returns the requested campaign shared set in full detail.
GetCampaignSharedSet(context.Context, *GetCampaignSharedSetRequest) (*resources.CampaignSharedSet, error)
// Creates or removes campaign shared sets. Operation statuses are returned.
MutateCampaignSharedSets(context.Context, *MutateCampaignSharedSetsRequest) (*MutateCampaignSharedSetsResponse, error)
}
// UnimplementedCampaignSharedSetServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCampaignSharedSetServiceServer struct {
}
func (*UnimplementedCampaignSharedSetServiceServer) GetCampaignSharedSet(ctx context.Context, req *GetCampaignSharedSetRequest) (*resources.CampaignSharedSet, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetCampaignSharedSet not implemented")
}
func (*UnimplementedCampaignSharedSetServiceServer) MutateCampaignSharedSets(ctx context.Context, req *MutateCampaignSharedSetsRequest) (*MutateCampaignSharedSetsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method MutateCampaignSharedSets not implemented")
}
func RegisterCampaignSharedSetServiceServer(s *grpc.Server, srv CampaignSharedSetServiceServer) {
s.RegisterService(&_CampaignSharedSetService_serviceDesc, srv)
}
func _CampaignSharedSetService_GetCampaignSharedSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCampaignSharedSetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CampaignSharedSetServiceServer).GetCampaignSharedSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CampaignSharedSetService/GetCampaignSharedSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CampaignSharedSetServiceServer).GetCampaignSharedSet(ctx, req.(*GetCampaignSharedSetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CampaignSharedSetService_MutateCampaignSharedSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateCampaignSharedSetsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CampaignSharedSetServiceServer).MutateCampaignSharedSets(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CampaignSharedSetService/MutateCampaignSharedSets",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CampaignSharedSetServiceServer).MutateCampaignSharedSets(ctx, req.(*MutateCampaignSharedSetsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CampaignSharedSetService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v1.services.CampaignSharedSetService",
HandlerType: (*CampaignSharedSetServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetCampaignSharedSet",
Handler: _CampaignSharedSetService_GetCampaignSharedSet_Handler,
},
{
MethodName: "MutateCampaignSharedSets",
Handler: _CampaignSharedSetService_MutateCampaignSharedSets_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v1/services/campaign_shared_set_service.proto",
}