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