1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/services/campaign_shared_set_service.proto 3 4package services 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 _ "github.com/golang/protobuf/ptypes/wrappers" 13 resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 status "google.golang.org/genproto/googleapis/rpc/status" 16 grpc "google.golang.org/grpc" 17) 18 19// Reference imports to suppress errors if they are not otherwise used. 20var _ = proto.Marshal 21var _ = fmt.Errorf 22var _ = math.Inf 23 24// This is a compile-time assertion to ensure that this generated file 25// is compatible with the proto package it is being compiled against. 26// A compilation error at this line likely means your copy of the 27// proto package needs to be updated. 28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30// Request message for 31// [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v1.services.CampaignSharedSetService.GetCampaignSharedSet]. 32type GetCampaignSharedSetRequest struct { 33 // The resource name of the campaign shared set to fetch. 34 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 35 XXX_NoUnkeyedLiteral struct{} `json:"-"` 36 XXX_unrecognized []byte `json:"-"` 37 XXX_sizecache int32 `json:"-"` 38} 39 40func (m *GetCampaignSharedSetRequest) Reset() { *m = GetCampaignSharedSetRequest{} } 41func (m *GetCampaignSharedSetRequest) String() string { return proto.CompactTextString(m) } 42func (*GetCampaignSharedSetRequest) ProtoMessage() {} 43func (*GetCampaignSharedSetRequest) Descriptor() ([]byte, []int) { 44 return fileDescriptor_4eb5d89b68dc46d0, []int{0} 45} 46 47func (m *GetCampaignSharedSetRequest) XXX_Unmarshal(b []byte) error { 48 return xxx_messageInfo_GetCampaignSharedSetRequest.Unmarshal(m, b) 49} 50func (m *GetCampaignSharedSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 51 return xxx_messageInfo_GetCampaignSharedSetRequest.Marshal(b, m, deterministic) 52} 53func (m *GetCampaignSharedSetRequest) XXX_Merge(src proto.Message) { 54 xxx_messageInfo_GetCampaignSharedSetRequest.Merge(m, src) 55} 56func (m *GetCampaignSharedSetRequest) XXX_Size() int { 57 return xxx_messageInfo_GetCampaignSharedSetRequest.Size(m) 58} 59func (m *GetCampaignSharedSetRequest) XXX_DiscardUnknown() { 60 xxx_messageInfo_GetCampaignSharedSetRequest.DiscardUnknown(m) 61} 62 63var xxx_messageInfo_GetCampaignSharedSetRequest proto.InternalMessageInfo 64 65func (m *GetCampaignSharedSetRequest) GetResourceName() string { 66 if m != nil { 67 return m.ResourceName 68 } 69 return "" 70} 71 72// Request message for 73// [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v1.services.CampaignSharedSetService.MutateCampaignSharedSets]. 74type MutateCampaignSharedSetsRequest struct { 75 // The ID of the customer whose campaign shared sets are being modified. 76 CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` 77 // The list of operations to perform on individual campaign shared sets. 78 Operations []*CampaignSharedSetOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"` 79 // If true, successful operations will be carried out and invalid 80 // operations will return errors. If false, all operations will be carried 81 // out in one transaction if and only if they are all valid. 82 // Default is false. 83 PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"` 84 // If true, the request is validated but not executed. Only errors are 85 // returned, not results. 86 ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` 87 XXX_NoUnkeyedLiteral struct{} `json:"-"` 88 XXX_unrecognized []byte `json:"-"` 89 XXX_sizecache int32 `json:"-"` 90} 91 92func (m *MutateCampaignSharedSetsRequest) Reset() { *m = MutateCampaignSharedSetsRequest{} } 93func (m *MutateCampaignSharedSetsRequest) String() string { return proto.CompactTextString(m) } 94func (*MutateCampaignSharedSetsRequest) ProtoMessage() {} 95func (*MutateCampaignSharedSetsRequest) Descriptor() ([]byte, []int) { 96 return fileDescriptor_4eb5d89b68dc46d0, []int{1} 97} 98 99func (m *MutateCampaignSharedSetsRequest) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_MutateCampaignSharedSetsRequest.Unmarshal(m, b) 101} 102func (m *MutateCampaignSharedSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_MutateCampaignSharedSetsRequest.Marshal(b, m, deterministic) 104} 105func (m *MutateCampaignSharedSetsRequest) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_MutateCampaignSharedSetsRequest.Merge(m, src) 107} 108func (m *MutateCampaignSharedSetsRequest) XXX_Size() int { 109 return xxx_messageInfo_MutateCampaignSharedSetsRequest.Size(m) 110} 111func (m *MutateCampaignSharedSetsRequest) XXX_DiscardUnknown() { 112 xxx_messageInfo_MutateCampaignSharedSetsRequest.DiscardUnknown(m) 113} 114 115var xxx_messageInfo_MutateCampaignSharedSetsRequest proto.InternalMessageInfo 116 117func (m *MutateCampaignSharedSetsRequest) GetCustomerId() string { 118 if m != nil { 119 return m.CustomerId 120 } 121 return "" 122} 123 124func (m *MutateCampaignSharedSetsRequest) GetOperations() []*CampaignSharedSetOperation { 125 if m != nil { 126 return m.Operations 127 } 128 return nil 129} 130 131func (m *MutateCampaignSharedSetsRequest) GetPartialFailure() bool { 132 if m != nil { 133 return m.PartialFailure 134 } 135 return false 136} 137 138func (m *MutateCampaignSharedSetsRequest) GetValidateOnly() bool { 139 if m != nil { 140 return m.ValidateOnly 141 } 142 return false 143} 144 145// A single operation (create, remove) on an campaign shared set. 146type CampaignSharedSetOperation struct { 147 // The mutate operation. 148 // 149 // Types that are valid to be assigned to Operation: 150 // *CampaignSharedSetOperation_Create 151 // *CampaignSharedSetOperation_Remove 152 Operation isCampaignSharedSetOperation_Operation `protobuf_oneof:"operation"` 153 XXX_NoUnkeyedLiteral struct{} `json:"-"` 154 XXX_unrecognized []byte `json:"-"` 155 XXX_sizecache int32 `json:"-"` 156} 157 158func (m *CampaignSharedSetOperation) Reset() { *m = CampaignSharedSetOperation{} } 159func (m *CampaignSharedSetOperation) String() string { return proto.CompactTextString(m) } 160func (*CampaignSharedSetOperation) ProtoMessage() {} 161func (*CampaignSharedSetOperation) Descriptor() ([]byte, []int) { 162 return fileDescriptor_4eb5d89b68dc46d0, []int{2} 163} 164 165func (m *CampaignSharedSetOperation) XXX_Unmarshal(b []byte) error { 166 return xxx_messageInfo_CampaignSharedSetOperation.Unmarshal(m, b) 167} 168func (m *CampaignSharedSetOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 169 return xxx_messageInfo_CampaignSharedSetOperation.Marshal(b, m, deterministic) 170} 171func (m *CampaignSharedSetOperation) XXX_Merge(src proto.Message) { 172 xxx_messageInfo_CampaignSharedSetOperation.Merge(m, src) 173} 174func (m *CampaignSharedSetOperation) XXX_Size() int { 175 return xxx_messageInfo_CampaignSharedSetOperation.Size(m) 176} 177func (m *CampaignSharedSetOperation) XXX_DiscardUnknown() { 178 xxx_messageInfo_CampaignSharedSetOperation.DiscardUnknown(m) 179} 180 181var xxx_messageInfo_CampaignSharedSetOperation proto.InternalMessageInfo 182 183type isCampaignSharedSetOperation_Operation interface { 184 isCampaignSharedSetOperation_Operation() 185} 186 187type CampaignSharedSetOperation_Create struct { 188 Create *resources.CampaignSharedSet `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 189} 190 191type CampaignSharedSetOperation_Remove struct { 192 Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` 193} 194 195func (*CampaignSharedSetOperation_Create) isCampaignSharedSetOperation_Operation() {} 196 197func (*CampaignSharedSetOperation_Remove) isCampaignSharedSetOperation_Operation() {} 198 199func (m *CampaignSharedSetOperation) GetOperation() isCampaignSharedSetOperation_Operation { 200 if m != nil { 201 return m.Operation 202 } 203 return nil 204} 205 206func (m *CampaignSharedSetOperation) GetCreate() *resources.CampaignSharedSet { 207 if x, ok := m.GetOperation().(*CampaignSharedSetOperation_Create); ok { 208 return x.Create 209 } 210 return nil 211} 212 213func (m *CampaignSharedSetOperation) GetRemove() string { 214 if x, ok := m.GetOperation().(*CampaignSharedSetOperation_Remove); ok { 215 return x.Remove 216 } 217 return "" 218} 219 220// XXX_OneofWrappers is for the internal use of the proto package. 221func (*CampaignSharedSetOperation) XXX_OneofWrappers() []interface{} { 222 return []interface{}{ 223 (*CampaignSharedSetOperation_Create)(nil), 224 (*CampaignSharedSetOperation_Remove)(nil), 225 } 226} 227 228// Response message for a campaign shared set mutate. 229type MutateCampaignSharedSetsResponse struct { 230 // Errors that pertain to operation failures in the partial failure mode. 231 // Returned only when partial_failure = true and all errors occur inside the 232 // operations. If any errors occur outside the operations (e.g. auth errors), 233 // we return an RPC level error. 234 PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"` 235 // All results for the mutate. 236 Results []*MutateCampaignSharedSetResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` 237 XXX_NoUnkeyedLiteral struct{} `json:"-"` 238 XXX_unrecognized []byte `json:"-"` 239 XXX_sizecache int32 `json:"-"` 240} 241 242func (m *MutateCampaignSharedSetsResponse) Reset() { *m = MutateCampaignSharedSetsResponse{} } 243func (m *MutateCampaignSharedSetsResponse) String() string { return proto.CompactTextString(m) } 244func (*MutateCampaignSharedSetsResponse) ProtoMessage() {} 245func (*MutateCampaignSharedSetsResponse) Descriptor() ([]byte, []int) { 246 return fileDescriptor_4eb5d89b68dc46d0, []int{3} 247} 248 249func (m *MutateCampaignSharedSetsResponse) XXX_Unmarshal(b []byte) error { 250 return xxx_messageInfo_MutateCampaignSharedSetsResponse.Unmarshal(m, b) 251} 252func (m *MutateCampaignSharedSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 253 return xxx_messageInfo_MutateCampaignSharedSetsResponse.Marshal(b, m, deterministic) 254} 255func (m *MutateCampaignSharedSetsResponse) XXX_Merge(src proto.Message) { 256 xxx_messageInfo_MutateCampaignSharedSetsResponse.Merge(m, src) 257} 258func (m *MutateCampaignSharedSetsResponse) XXX_Size() int { 259 return xxx_messageInfo_MutateCampaignSharedSetsResponse.Size(m) 260} 261func (m *MutateCampaignSharedSetsResponse) XXX_DiscardUnknown() { 262 xxx_messageInfo_MutateCampaignSharedSetsResponse.DiscardUnknown(m) 263} 264 265var xxx_messageInfo_MutateCampaignSharedSetsResponse proto.InternalMessageInfo 266 267func (m *MutateCampaignSharedSetsResponse) GetPartialFailureError() *status.Status { 268 if m != nil { 269 return m.PartialFailureError 270 } 271 return nil 272} 273 274func (m *MutateCampaignSharedSetsResponse) GetResults() []*MutateCampaignSharedSetResult { 275 if m != nil { 276 return m.Results 277 } 278 return nil 279} 280 281// The result for the campaign shared set mutate. 282type MutateCampaignSharedSetResult struct { 283 // Returned for successful operations. 284 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 285 XXX_NoUnkeyedLiteral struct{} `json:"-"` 286 XXX_unrecognized []byte `json:"-"` 287 XXX_sizecache int32 `json:"-"` 288} 289 290func (m *MutateCampaignSharedSetResult) Reset() { *m = MutateCampaignSharedSetResult{} } 291func (m *MutateCampaignSharedSetResult) String() string { return proto.CompactTextString(m) } 292func (*MutateCampaignSharedSetResult) ProtoMessage() {} 293func (*MutateCampaignSharedSetResult) Descriptor() ([]byte, []int) { 294 return fileDescriptor_4eb5d89b68dc46d0, []int{4} 295} 296 297func (m *MutateCampaignSharedSetResult) XXX_Unmarshal(b []byte) error { 298 return xxx_messageInfo_MutateCampaignSharedSetResult.Unmarshal(m, b) 299} 300func (m *MutateCampaignSharedSetResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 301 return xxx_messageInfo_MutateCampaignSharedSetResult.Marshal(b, m, deterministic) 302} 303func (m *MutateCampaignSharedSetResult) XXX_Merge(src proto.Message) { 304 xxx_messageInfo_MutateCampaignSharedSetResult.Merge(m, src) 305} 306func (m *MutateCampaignSharedSetResult) XXX_Size() int { 307 return xxx_messageInfo_MutateCampaignSharedSetResult.Size(m) 308} 309func (m *MutateCampaignSharedSetResult) XXX_DiscardUnknown() { 310 xxx_messageInfo_MutateCampaignSharedSetResult.DiscardUnknown(m) 311} 312 313var xxx_messageInfo_MutateCampaignSharedSetResult proto.InternalMessageInfo 314 315func (m *MutateCampaignSharedSetResult) GetResourceName() string { 316 if m != nil { 317 return m.ResourceName 318 } 319 return "" 320} 321 322func init() { 323 proto.RegisterType((*GetCampaignSharedSetRequest)(nil), "google.ads.googleads.v1.services.GetCampaignSharedSetRequest") 324 proto.RegisterType((*MutateCampaignSharedSetsRequest)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest") 325 proto.RegisterType((*CampaignSharedSetOperation)(nil), "google.ads.googleads.v1.services.CampaignSharedSetOperation") 326 proto.RegisterType((*MutateCampaignSharedSetsResponse)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse") 327 proto.RegisterType((*MutateCampaignSharedSetResult)(nil), "google.ads.googleads.v1.services.MutateCampaignSharedSetResult") 328} 329 330func init() { 331 proto.RegisterFile("google/ads/googleads/v1/services/campaign_shared_set_service.proto", fileDescriptor_4eb5d89b68dc46d0) 332} 333 334var fileDescriptor_4eb5d89b68dc46d0 = []byte{ 335 // 671 bytes of a gzipped FileDescriptorProto 336 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x41, 0x6b, 0xd4, 0x4e, 337 0x14, 0xff, 0x67, 0xf7, 0x4f, 0xb5, 0xb3, 0x55, 0x61, 0x54, 0x0c, 0xab, 0xb5, 0x4b, 0x2c, 0x58, 338 0xf6, 0x90, 0xb0, 0x6b, 0x51, 0x48, 0x5b, 0x24, 0x51, 0xdb, 0x7a, 0xb0, 0x2d, 0x59, 0x58, 0x50, 339 0x16, 0xc2, 0x34, 0x99, 0xc6, 0x40, 0x92, 0x89, 0x33, 0x93, 0x95, 0x52, 0x7a, 0x11, 0xbf, 0x41, 340 0xbf, 0x81, 0x47, 0xbf, 0x87, 0x07, 0x3d, 0x78, 0xf1, 0x2b, 0xe8, 0xc5, 0x83, 0x9f, 0x41, 0x92, 341 0xc9, 0xa4, 0xad, 0xdb, 0x74, 0xa5, 0xde, 0x5e, 0xde, 0x7b, 0xf3, 0x7b, 0xef, 0x37, 0xbf, 0x37, 342 0x2f, 0xc0, 0x0e, 0x08, 0x09, 0x22, 0x6c, 0x20, 0x9f, 0x19, 0xc2, 0xcc, 0xad, 0x71, 0xcf, 0x60, 343 0x98, 0x8e, 0x43, 0x0f, 0x33, 0xc3, 0x43, 0x71, 0x8a, 0xc2, 0x20, 0x71, 0xd9, 0x6b, 0x44, 0xb1, 344 0xef, 0x32, 0xcc, 0xdd, 0x32, 0xa8, 0xa7, 0x94, 0x70, 0x02, 0x3b, 0xe2, 0xa0, 0x8e, 0x7c, 0xa6, 345 0x57, 0x18, 0xfa, 0xb8, 0xa7, 0x4b, 0x8c, 0xf6, 0x4a, 0x5d, 0x15, 0x8a, 0x19, 0xc9, 0x68, 0x4d, 346 0x19, 0x01, 0xdf, 0xbe, 0x23, 0x0f, 0xa7, 0xa1, 0x81, 0x92, 0x84, 0x70, 0xc4, 0x43, 0x92, 0xb0, 347 0x32, 0x7a, 0xb7, 0x8c, 0x16, 0x5f, 0xbb, 0xd9, 0x9e, 0xf1, 0x96, 0xa2, 0x34, 0xc5, 0x54, 0xc6, 348 0x6f, 0x95, 0x71, 0x9a, 0x7a, 0x06, 0xe3, 0x88, 0x67, 0x65, 0x40, 0xb3, 0xc1, 0xed, 0x0d, 0xcc, 349 0x9f, 0x94, 0x65, 0x07, 0x45, 0xd5, 0x01, 0xe6, 0x0e, 0x7e, 0x93, 0x61, 0xc6, 0xe1, 0x3d, 0x70, 350 0x45, 0x36, 0xe7, 0x26, 0x28, 0xc6, 0xaa, 0xd2, 0x51, 0x96, 0x66, 0x9d, 0x39, 0xe9, 0xdc, 0x42, 351 0x31, 0xd6, 0x7e, 0x29, 0x60, 0xe1, 0x45, 0xc6, 0x11, 0xc7, 0x13, 0x38, 0x4c, 0x02, 0x2d, 0x80, 352 0x96, 0x97, 0x31, 0x4e, 0x62, 0x4c, 0xdd, 0xd0, 0x2f, 0x61, 0x80, 0x74, 0x3d, 0xf7, 0xe1, 0x08, 353 0x00, 0x92, 0x62, 0x2a, 0x58, 0xa9, 0x8d, 0x4e, 0x73, 0xa9, 0xd5, 0x5f, 0xd5, 0xa7, 0xdd, 0xa9, 354 0x3e, 0x51, 0x71, 0x5b, 0x82, 0x38, 0x27, 0xf0, 0xe0, 0x7d, 0x70, 0x2d, 0x45, 0x94, 0x87, 0x28, 355 0x72, 0xf7, 0x50, 0x18, 0x65, 0x14, 0xab, 0xcd, 0x8e, 0xb2, 0x74, 0xd9, 0xb9, 0x5a, 0xba, 0xd7, 356 0x85, 0x37, 0x27, 0x3c, 0x46, 0x51, 0xe8, 0x23, 0x8e, 0x5d, 0x92, 0x44, 0xfb, 0xea, 0xff, 0x45, 357 0xda, 0x9c, 0x74, 0x6e, 0x27, 0xd1, 0xbe, 0x76, 0xa4, 0x80, 0x76, 0x7d, 0x61, 0xb8, 0x05, 0x66, 358 0x3c, 0x8a, 0x11, 0x17, 0xb7, 0xd5, 0xea, 0x2f, 0xd7, 0xd2, 0xa8, 0x84, 0x9f, 0xe4, 0xb1, 0xf9, 359 0x9f, 0x53, 0xa2, 0x40, 0x15, 0xcc, 0x50, 0x1c, 0x93, 0xb1, 0xe8, 0x79, 0x36, 0x8f, 0x88, 0x6f, 360 0xbb, 0x05, 0x66, 0x2b, 0x92, 0xda, 0x27, 0x05, 0x74, 0xea, 0x65, 0x60, 0x29, 0x49, 0x18, 0x86, 361 0xeb, 0xe0, 0xe6, 0x1f, 0x17, 0xe1, 0x62, 0x4a, 0x09, 0x2d, 0xa0, 0x5b, 0x7d, 0x28, 0x5b, 0xa5, 362 0xa9, 0xa7, 0x0f, 0x8a, 0x41, 0x71, 0xae, 0x9f, 0xbe, 0xa2, 0x67, 0x79, 0x3a, 0x7c, 0x09, 0x2e, 363 0x51, 0xcc, 0xb2, 0x88, 0x4b, 0xad, 0x1e, 0x4f, 0xd7, 0xaa, 0xa6, 0x39, 0xa7, 0xc0, 0x71, 0x24, 364 0x9e, 0xf6, 0x14, 0xcc, 0x9f, 0x9b, 0xf9, 0x57, 0x43, 0xd9, 0xff, 0xda, 0x04, 0xea, 0x04, 0xc0, 365 0x40, 0xb4, 0x02, 0x3f, 0x2b, 0xe0, 0xc6, 0x59, 0x63, 0x0f, 0xd7, 0xa6, 0xb3, 0x38, 0xe7, 0xb9, 366 0xb4, 0x2f, 0xa4, 0xb4, 0xb6, 0xfa, 0xee, 0xdb, 0xf7, 0xa3, 0xc6, 0x43, 0xb8, 0x9c, 0xef, 0x82, 367 0x83, 0x53, 0xd4, 0xd6, 0xe4, 0x0b, 0x61, 0x46, 0xb7, 0x5a, 0x0e, 0xc7, 0xb2, 0x1a, 0xdd, 0x43, 368 0xf8, 0x43, 0x01, 0x6a, 0x9d, 0xec, 0xd0, 0xba, 0xb0, 0x2a, 0xf2, 0xe5, 0xb6, 0xed, 0x7f, 0x81, 369 0x10, 0x53, 0xa7, 0xd9, 0x05, 0xc3, 0x55, 0xed, 0x51, 0xce, 0xf0, 0x98, 0xd2, 0xc1, 0x89, 0x95, 370 0xb0, 0xd6, 0x3d, 0x3c, 0x83, 0xa0, 0x19, 0x17, 0xd0, 0xa6, 0xd2, 0xb5, 0xdf, 0x37, 0xc0, 0xa2, 371 0x47, 0xe2, 0xa9, 0xdd, 0xd8, 0xf3, 0x75, 0xb2, 0xef, 0xe4, 0x1b, 0x6f, 0x47, 0x79, 0xb5, 0x59, 372 0x42, 0x04, 0x24, 0x42, 0x49, 0xa0, 0x13, 0x1a, 0x18, 0x01, 0x4e, 0x8a, 0x7d, 0x28, 0xf7, 0x72, 373 0x1a, 0xb2, 0xfa, 0x9f, 0xc1, 0x8a, 0x34, 0x3e, 0x34, 0x9a, 0x1b, 0x96, 0xf5, 0xb1, 0xd1, 0xd9, 374 0x10, 0x80, 0x96, 0xcf, 0x74, 0x61, 0xe6, 0xd6, 0xb0, 0xa7, 0x97, 0x85, 0xd9, 0x17, 0x99, 0x32, 375 0xb2, 0x7c, 0x36, 0xaa, 0x52, 0x46, 0xc3, 0xde, 0x48, 0xa6, 0xfc, 0x6c, 0x2c, 0x0a, 0xbf, 0x69, 376 0x5a, 0x3e, 0x33, 0xcd, 0x2a, 0xc9, 0x34, 0x87, 0x3d, 0xd3, 0x94, 0x69, 0xbb, 0x33, 0x45, 0x9f, 377 0x0f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x69, 0x26, 0xa6, 0xb3, 0x06, 0x00, 0x00, 378} 379 380// Reference imports to suppress errors if they are not otherwise used. 381var _ context.Context 382var _ grpc.ClientConn 383 384// This is a compile-time assertion to ensure that this generated file 385// is compatible with the grpc package it is being compiled against. 386const _ = grpc.SupportPackageIsVersion4 387 388// CampaignSharedSetServiceClient is the client API for CampaignSharedSetService service. 389// 390// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 391type CampaignSharedSetServiceClient interface { 392 // Returns the requested campaign shared set in full detail. 393 GetCampaignSharedSet(ctx context.Context, in *GetCampaignSharedSetRequest, opts ...grpc.CallOption) (*resources.CampaignSharedSet, error) 394 // Creates or removes campaign shared sets. Operation statuses are returned. 395 MutateCampaignSharedSets(ctx context.Context, in *MutateCampaignSharedSetsRequest, opts ...grpc.CallOption) (*MutateCampaignSharedSetsResponse, error) 396} 397 398type campaignSharedSetServiceClient struct { 399 cc *grpc.ClientConn 400} 401 402func NewCampaignSharedSetServiceClient(cc *grpc.ClientConn) CampaignSharedSetServiceClient { 403 return &campaignSharedSetServiceClient{cc} 404} 405 406func (c *campaignSharedSetServiceClient) GetCampaignSharedSet(ctx context.Context, in *GetCampaignSharedSetRequest, opts ...grpc.CallOption) (*resources.CampaignSharedSet, error) { 407 out := new(resources.CampaignSharedSet) 408 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignSharedSetService/GetCampaignSharedSet", in, out, opts...) 409 if err != nil { 410 return nil, err 411 } 412 return out, nil 413} 414 415func (c *campaignSharedSetServiceClient) MutateCampaignSharedSets(ctx context.Context, in *MutateCampaignSharedSetsRequest, opts ...grpc.CallOption) (*MutateCampaignSharedSetsResponse, error) { 416 out := new(MutateCampaignSharedSetsResponse) 417 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignSharedSetService/MutateCampaignSharedSets", in, out, opts...) 418 if err != nil { 419 return nil, err 420 } 421 return out, nil 422} 423 424// CampaignSharedSetServiceServer is the server API for CampaignSharedSetService service. 425type CampaignSharedSetServiceServer interface { 426 // Returns the requested campaign shared set in full detail. 427 GetCampaignSharedSet(context.Context, *GetCampaignSharedSetRequest) (*resources.CampaignSharedSet, error) 428 // Creates or removes campaign shared sets. Operation statuses are returned. 429 MutateCampaignSharedSets(context.Context, *MutateCampaignSharedSetsRequest) (*MutateCampaignSharedSetsResponse, error) 430} 431 432func RegisterCampaignSharedSetServiceServer(s *grpc.Server, srv CampaignSharedSetServiceServer) { 433 s.RegisterService(&_CampaignSharedSetService_serviceDesc, srv) 434} 435 436func _CampaignSharedSetService_GetCampaignSharedSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 437 in := new(GetCampaignSharedSetRequest) 438 if err := dec(in); err != nil { 439 return nil, err 440 } 441 if interceptor == nil { 442 return srv.(CampaignSharedSetServiceServer).GetCampaignSharedSet(ctx, in) 443 } 444 info := &grpc.UnaryServerInfo{ 445 Server: srv, 446 FullMethod: "/google.ads.googleads.v1.services.CampaignSharedSetService/GetCampaignSharedSet", 447 } 448 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 449 return srv.(CampaignSharedSetServiceServer).GetCampaignSharedSet(ctx, req.(*GetCampaignSharedSetRequest)) 450 } 451 return interceptor(ctx, in, info, handler) 452} 453 454func _CampaignSharedSetService_MutateCampaignSharedSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 455 in := new(MutateCampaignSharedSetsRequest) 456 if err := dec(in); err != nil { 457 return nil, err 458 } 459 if interceptor == nil { 460 return srv.(CampaignSharedSetServiceServer).MutateCampaignSharedSets(ctx, in) 461 } 462 info := &grpc.UnaryServerInfo{ 463 Server: srv, 464 FullMethod: "/google.ads.googleads.v1.services.CampaignSharedSetService/MutateCampaignSharedSets", 465 } 466 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 467 return srv.(CampaignSharedSetServiceServer).MutateCampaignSharedSets(ctx, req.(*MutateCampaignSharedSetsRequest)) 468 } 469 return interceptor(ctx, in, info, handler) 470} 471 472var _CampaignSharedSetService_serviceDesc = grpc.ServiceDesc{ 473 ServiceName: "google.ads.googleads.v1.services.CampaignSharedSetService", 474 HandlerType: (*CampaignSharedSetServiceServer)(nil), 475 Methods: []grpc.MethodDesc{ 476 { 477 MethodName: "GetCampaignSharedSet", 478 Handler: _CampaignSharedSetService_GetCampaignSharedSet_Handler, 479 }, 480 { 481 MethodName: "MutateCampaignSharedSets", 482 Handler: _CampaignSharedSetService_MutateCampaignSharedSets_Handler, 483 }, 484 }, 485 Streams: []grpc.StreamDesc{}, 486 Metadata: "google/ads/googleads/v1/services/campaign_shared_set_service.proto", 487} 488