1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.25.0 18// protoc v3.13.0 19// source: google/ads/googleads/v2/services/ad_group_ad_label_service.proto 20 21package services 22 23import ( 24 context "context" 25 reflect "reflect" 26 sync "sync" 27 28 proto "github.com/golang/protobuf/proto" 29 resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources" 30 _ "google.golang.org/genproto/googleapis/api/annotations" 31 status "google.golang.org/genproto/googleapis/rpc/status" 32 grpc "google.golang.org/grpc" 33 codes "google.golang.org/grpc/codes" 34 status1 "google.golang.org/grpc/status" 35 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 36 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 37) 38 39const ( 40 // Verify that this generated code is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 42 // Verify that runtime/protoimpl is sufficiently up-to-date. 43 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 44) 45 46// This is a compile-time assertion that a sufficiently up-to-date version 47// of the legacy proto package is being used. 48const _ = proto.ProtoPackageIsVersion4 49 50// Request message for [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v2.services.AdGroupAdLabelService.GetAdGroupAdLabel]. 51type GetAdGroupAdLabelRequest struct { 52 state protoimpl.MessageState 53 sizeCache protoimpl.SizeCache 54 unknownFields protoimpl.UnknownFields 55 56 // Required. The resource name of the ad group ad label to fetch. 57 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 58} 59 60func (x *GetAdGroupAdLabelRequest) Reset() { 61 *x = GetAdGroupAdLabelRequest{} 62 if protoimpl.UnsafeEnabled { 63 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67} 68 69func (x *GetAdGroupAdLabelRequest) String() string { 70 return protoimpl.X.MessageStringOf(x) 71} 72 73func (*GetAdGroupAdLabelRequest) ProtoMessage() {} 74 75func (x *GetAdGroupAdLabelRequest) ProtoReflect() protoreflect.Message { 76 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[0] 77 if protoimpl.UnsafeEnabled && x != nil { 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 if ms.LoadMessageInfo() == nil { 80 ms.StoreMessageInfo(mi) 81 } 82 return ms 83 } 84 return mi.MessageOf(x) 85} 86 87// Deprecated: Use GetAdGroupAdLabelRequest.ProtoReflect.Descriptor instead. 88func (*GetAdGroupAdLabelRequest) Descriptor() ([]byte, []int) { 89 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP(), []int{0} 90} 91 92func (x *GetAdGroupAdLabelRequest) GetResourceName() string { 93 if x != nil { 94 return x.ResourceName 95 } 96 return "" 97} 98 99// Request message for [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v2.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. 100type MutateAdGroupAdLabelsRequest struct { 101 state protoimpl.MessageState 102 sizeCache protoimpl.SizeCache 103 unknownFields protoimpl.UnknownFields 104 105 // Required. ID of the customer whose ad group ad labels are being modified. 106 CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` 107 // Required. The list of operations to perform on ad group ad labels. 108 Operations []*AdGroupAdLabelOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"` 109 // If true, successful operations will be carried out and invalid 110 // operations will return errors. If false, all operations will be carried 111 // out in one transaction if and only if they are all valid. 112 // Default is false. 113 PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"` 114 // If true, the request is validated but not executed. Only errors are 115 // returned, not results. 116 ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` 117} 118 119func (x *MutateAdGroupAdLabelsRequest) Reset() { 120 *x = MutateAdGroupAdLabelsRequest{} 121 if protoimpl.UnsafeEnabled { 122 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[1] 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 ms.StoreMessageInfo(mi) 125 } 126} 127 128func (x *MutateAdGroupAdLabelsRequest) String() string { 129 return protoimpl.X.MessageStringOf(x) 130} 131 132func (*MutateAdGroupAdLabelsRequest) ProtoMessage() {} 133 134func (x *MutateAdGroupAdLabelsRequest) ProtoReflect() protoreflect.Message { 135 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[1] 136 if protoimpl.UnsafeEnabled && x != nil { 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 if ms.LoadMessageInfo() == nil { 139 ms.StoreMessageInfo(mi) 140 } 141 return ms 142 } 143 return mi.MessageOf(x) 144} 145 146// Deprecated: Use MutateAdGroupAdLabelsRequest.ProtoReflect.Descriptor instead. 147func (*MutateAdGroupAdLabelsRequest) Descriptor() ([]byte, []int) { 148 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP(), []int{1} 149} 150 151func (x *MutateAdGroupAdLabelsRequest) GetCustomerId() string { 152 if x != nil { 153 return x.CustomerId 154 } 155 return "" 156} 157 158func (x *MutateAdGroupAdLabelsRequest) GetOperations() []*AdGroupAdLabelOperation { 159 if x != nil { 160 return x.Operations 161 } 162 return nil 163} 164 165func (x *MutateAdGroupAdLabelsRequest) GetPartialFailure() bool { 166 if x != nil { 167 return x.PartialFailure 168 } 169 return false 170} 171 172func (x *MutateAdGroupAdLabelsRequest) GetValidateOnly() bool { 173 if x != nil { 174 return x.ValidateOnly 175 } 176 return false 177} 178 179// A single operation (create, remove) on an ad group ad label. 180type AdGroupAdLabelOperation struct { 181 state protoimpl.MessageState 182 sizeCache protoimpl.SizeCache 183 unknownFields protoimpl.UnknownFields 184 185 // The mutate operation. 186 // 187 // Types that are assignable to Operation: 188 // *AdGroupAdLabelOperation_Create 189 // *AdGroupAdLabelOperation_Remove 190 Operation isAdGroupAdLabelOperation_Operation `protobuf_oneof:"operation"` 191} 192 193func (x *AdGroupAdLabelOperation) Reset() { 194 *x = AdGroupAdLabelOperation{} 195 if protoimpl.UnsafeEnabled { 196 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[2] 197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 198 ms.StoreMessageInfo(mi) 199 } 200} 201 202func (x *AdGroupAdLabelOperation) String() string { 203 return protoimpl.X.MessageStringOf(x) 204} 205 206func (*AdGroupAdLabelOperation) ProtoMessage() {} 207 208func (x *AdGroupAdLabelOperation) ProtoReflect() protoreflect.Message { 209 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[2] 210 if protoimpl.UnsafeEnabled && x != nil { 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 if ms.LoadMessageInfo() == nil { 213 ms.StoreMessageInfo(mi) 214 } 215 return ms 216 } 217 return mi.MessageOf(x) 218} 219 220// Deprecated: Use AdGroupAdLabelOperation.ProtoReflect.Descriptor instead. 221func (*AdGroupAdLabelOperation) Descriptor() ([]byte, []int) { 222 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP(), []int{2} 223} 224 225func (m *AdGroupAdLabelOperation) GetOperation() isAdGroupAdLabelOperation_Operation { 226 if m != nil { 227 return m.Operation 228 } 229 return nil 230} 231 232func (x *AdGroupAdLabelOperation) GetCreate() *resources.AdGroupAdLabel { 233 if x, ok := x.GetOperation().(*AdGroupAdLabelOperation_Create); ok { 234 return x.Create 235 } 236 return nil 237} 238 239func (x *AdGroupAdLabelOperation) GetRemove() string { 240 if x, ok := x.GetOperation().(*AdGroupAdLabelOperation_Remove); ok { 241 return x.Remove 242 } 243 return "" 244} 245 246type isAdGroupAdLabelOperation_Operation interface { 247 isAdGroupAdLabelOperation_Operation() 248} 249 250type AdGroupAdLabelOperation_Create struct { 251 // Create operation: No resource name is expected for the new ad group ad 252 // label. 253 Create *resources.AdGroupAdLabel `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 254} 255 256type AdGroupAdLabelOperation_Remove struct { 257 // Remove operation: A resource name for the ad group ad label 258 // being removed, in this format: 259 // 260 // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id} 261 // _{label_id}` 262 Remove string `protobuf:"bytes,2,opt,name=remove,proto3,oneof"` 263} 264 265func (*AdGroupAdLabelOperation_Create) isAdGroupAdLabelOperation_Operation() {} 266 267func (*AdGroupAdLabelOperation_Remove) isAdGroupAdLabelOperation_Operation() {} 268 269// Response message for an ad group ad labels mutate. 270type MutateAdGroupAdLabelsResponse struct { 271 state protoimpl.MessageState 272 sizeCache protoimpl.SizeCache 273 unknownFields protoimpl.UnknownFields 274 275 // Errors that pertain to operation failures in the partial failure mode. 276 // Returned only when partial_failure = true and all errors occur inside the 277 // operations. If any errors occur outside the operations (e.g. auth errors), 278 // we return an RPC level error. 279 PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"` 280 // All results for the mutate. 281 Results []*MutateAdGroupAdLabelResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` 282} 283 284func (x *MutateAdGroupAdLabelsResponse) Reset() { 285 *x = MutateAdGroupAdLabelsResponse{} 286 if protoimpl.UnsafeEnabled { 287 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[3] 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 ms.StoreMessageInfo(mi) 290 } 291} 292 293func (x *MutateAdGroupAdLabelsResponse) String() string { 294 return protoimpl.X.MessageStringOf(x) 295} 296 297func (*MutateAdGroupAdLabelsResponse) ProtoMessage() {} 298 299func (x *MutateAdGroupAdLabelsResponse) ProtoReflect() protoreflect.Message { 300 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[3] 301 if protoimpl.UnsafeEnabled && x != nil { 302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 303 if ms.LoadMessageInfo() == nil { 304 ms.StoreMessageInfo(mi) 305 } 306 return ms 307 } 308 return mi.MessageOf(x) 309} 310 311// Deprecated: Use MutateAdGroupAdLabelsResponse.ProtoReflect.Descriptor instead. 312func (*MutateAdGroupAdLabelsResponse) Descriptor() ([]byte, []int) { 313 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP(), []int{3} 314} 315 316func (x *MutateAdGroupAdLabelsResponse) GetPartialFailureError() *status.Status { 317 if x != nil { 318 return x.PartialFailureError 319 } 320 return nil 321} 322 323func (x *MutateAdGroupAdLabelsResponse) GetResults() []*MutateAdGroupAdLabelResult { 324 if x != nil { 325 return x.Results 326 } 327 return nil 328} 329 330// The result for an ad group ad label mutate. 331type MutateAdGroupAdLabelResult struct { 332 state protoimpl.MessageState 333 sizeCache protoimpl.SizeCache 334 unknownFields protoimpl.UnknownFields 335 336 // Returned for successful operations. 337 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 338} 339 340func (x *MutateAdGroupAdLabelResult) Reset() { 341 *x = MutateAdGroupAdLabelResult{} 342 if protoimpl.UnsafeEnabled { 343 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[4] 344 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 345 ms.StoreMessageInfo(mi) 346 } 347} 348 349func (x *MutateAdGroupAdLabelResult) String() string { 350 return protoimpl.X.MessageStringOf(x) 351} 352 353func (*MutateAdGroupAdLabelResult) ProtoMessage() {} 354 355func (x *MutateAdGroupAdLabelResult) ProtoReflect() protoreflect.Message { 356 mi := &file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[4] 357 if protoimpl.UnsafeEnabled && x != nil { 358 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 359 if ms.LoadMessageInfo() == nil { 360 ms.StoreMessageInfo(mi) 361 } 362 return ms 363 } 364 return mi.MessageOf(x) 365} 366 367// Deprecated: Use MutateAdGroupAdLabelResult.ProtoReflect.Descriptor instead. 368func (*MutateAdGroupAdLabelResult) Descriptor() ([]byte, []int) { 369 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP(), []int{4} 370} 371 372func (x *MutateAdGroupAdLabelResult) GetResourceName() string { 373 if x != nil { 374 return x.ResourceName 375 } 376 return "" 377} 378 379var File_google_ads_googleads_v2_services_ad_group_ad_label_service_proto protoreflect.FileDescriptor 380 381var file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDesc = []byte{ 382 0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 383 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 384 0x65, 0x73, 0x2f, 0x61, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64, 0x5f, 0x6c, 385 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 386 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 387 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 388 0x69, 0x63, 0x65, 0x73, 0x1a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 389 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 390 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 391 0x5f, 0x61, 0x64, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 392 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 393 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 394 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 395 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 396 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 397 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 398 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 399 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 400 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x18, 0x47, 401 0x65, 0x74, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 402 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 403 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 404 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 405 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 406 0x2f, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 407 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf2, 0x01, 408 0x0a, 0x1c, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 409 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 410 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 411 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 412 0x65, 0x72, 0x49, 0x64, 0x12, 0x5e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 413 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 414 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 415 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x41, 0x64, 0x47, 0x72, 416 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 417 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 418 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 419 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 420 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 421 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 422 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 423 0x6c, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x17, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 424 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 425 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 426 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 427 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 428 0x65, 0x73, 0x2e, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 429 0x6c, 0x48, 0x00, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x72, 430 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x72, 431 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 432 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x1d, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 433 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 434 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 435 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 436 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 437 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 438 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x56, 0x0a, 0x07, 439 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 440 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 441 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 442 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 443 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 444 0x75, 0x6c, 0x74, 0x73, 0x22, 0x41, 0x0a, 0x1a, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 445 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x75, 446 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 447 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 448 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xf9, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x47, 0x72, 449 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 450 0x65, 0x12, 0xcd, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 451 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 452 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 453 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 454 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 455 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 456 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 457 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 458 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 459 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 460 0x6d, 0x65, 0x3d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x61, 461 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 462 0x7d, 0xda, 0x41, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 463 0x65, 0x12, 0xf2, 0x01, 0x0a, 0x15, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 0x72, 464 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 465 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 466 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 467 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 468 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x67, 0x6f, 469 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 470 0x64, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 471 0x75, 0x74, 0x61, 0x74, 0x65, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 472 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x82, 0xd3, 473 0xe4, 0x93, 0x02, 0x39, 0x22, 0x34, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 474 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 475 0x3d, 0x2a, 0x7d, 0x2f, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 476 0x65, 0x6c, 0x73, 0x3a, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x16, 477 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2c, 0x6f, 0x70, 0x65, 0x72, 478 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1b, 0xca, 0x41, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 479 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 480 0x63, 0x6f, 0x6d, 0x42, 0x81, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 481 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 482 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x1a, 0x41, 0x64, 483 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 484 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 485 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 486 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 487 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 488 0x76, 0x32, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 489 0x69, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x41, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 490 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 491 0x73, 0x2e, 0x56, 0x32, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xca, 0x02, 0x20, 492 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 493 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 494 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 495 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x3a, 0x3a, 0x53, 496 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 497} 498 499var ( 500 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescOnce sync.Once 501 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescData = file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDesc 502) 503 504func file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescGZIP() []byte { 505 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescOnce.Do(func() { 506 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescData) 507 }) 508 return file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDescData 509} 510 511var file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 512var file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_goTypes = []interface{}{ 513 (*GetAdGroupAdLabelRequest)(nil), // 0: google.ads.googleads.v2.services.GetAdGroupAdLabelRequest 514 (*MutateAdGroupAdLabelsRequest)(nil), // 1: google.ads.googleads.v2.services.MutateAdGroupAdLabelsRequest 515 (*AdGroupAdLabelOperation)(nil), // 2: google.ads.googleads.v2.services.AdGroupAdLabelOperation 516 (*MutateAdGroupAdLabelsResponse)(nil), // 3: google.ads.googleads.v2.services.MutateAdGroupAdLabelsResponse 517 (*MutateAdGroupAdLabelResult)(nil), // 4: google.ads.googleads.v2.services.MutateAdGroupAdLabelResult 518 (*resources.AdGroupAdLabel)(nil), // 5: google.ads.googleads.v2.resources.AdGroupAdLabel 519 (*status.Status)(nil), // 6: google.rpc.Status 520} 521var file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_depIdxs = []int32{ 522 2, // 0: google.ads.googleads.v2.services.MutateAdGroupAdLabelsRequest.operations:type_name -> google.ads.googleads.v2.services.AdGroupAdLabelOperation 523 5, // 1: google.ads.googleads.v2.services.AdGroupAdLabelOperation.create:type_name -> google.ads.googleads.v2.resources.AdGroupAdLabel 524 6, // 2: google.ads.googleads.v2.services.MutateAdGroupAdLabelsResponse.partial_failure_error:type_name -> google.rpc.Status 525 4, // 3: google.ads.googleads.v2.services.MutateAdGroupAdLabelsResponse.results:type_name -> google.ads.googleads.v2.services.MutateAdGroupAdLabelResult 526 0, // 4: google.ads.googleads.v2.services.AdGroupAdLabelService.GetAdGroupAdLabel:input_type -> google.ads.googleads.v2.services.GetAdGroupAdLabelRequest 527 1, // 5: google.ads.googleads.v2.services.AdGroupAdLabelService.MutateAdGroupAdLabels:input_type -> google.ads.googleads.v2.services.MutateAdGroupAdLabelsRequest 528 5, // 6: google.ads.googleads.v2.services.AdGroupAdLabelService.GetAdGroupAdLabel:output_type -> google.ads.googleads.v2.resources.AdGroupAdLabel 529 3, // 7: google.ads.googleads.v2.services.AdGroupAdLabelService.MutateAdGroupAdLabels:output_type -> google.ads.googleads.v2.services.MutateAdGroupAdLabelsResponse 530 6, // [6:8] is the sub-list for method output_type 531 4, // [4:6] is the sub-list for method input_type 532 4, // [4:4] is the sub-list for extension type_name 533 4, // [4:4] is the sub-list for extension extendee 534 0, // [0:4] is the sub-list for field type_name 535} 536 537func init() { file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_init() } 538func file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_init() { 539 if File_google_ads_googleads_v2_services_ad_group_ad_label_service_proto != nil { 540 return 541 } 542 if !protoimpl.UnsafeEnabled { 543 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 544 switch v := v.(*GetAdGroupAdLabelRequest); i { 545 case 0: 546 return &v.state 547 case 1: 548 return &v.sizeCache 549 case 2: 550 return &v.unknownFields 551 default: 552 return nil 553 } 554 } 555 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 556 switch v := v.(*MutateAdGroupAdLabelsRequest); i { 557 case 0: 558 return &v.state 559 case 1: 560 return &v.sizeCache 561 case 2: 562 return &v.unknownFields 563 default: 564 return nil 565 } 566 } 567 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 568 switch v := v.(*AdGroupAdLabelOperation); i { 569 case 0: 570 return &v.state 571 case 1: 572 return &v.sizeCache 573 case 2: 574 return &v.unknownFields 575 default: 576 return nil 577 } 578 } 579 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 580 switch v := v.(*MutateAdGroupAdLabelsResponse); i { 581 case 0: 582 return &v.state 583 case 1: 584 return &v.sizeCache 585 case 2: 586 return &v.unknownFields 587 default: 588 return nil 589 } 590 } 591 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 592 switch v := v.(*MutateAdGroupAdLabelResult); i { 593 case 0: 594 return &v.state 595 case 1: 596 return &v.sizeCache 597 case 2: 598 return &v.unknownFields 599 default: 600 return nil 601 } 602 } 603 } 604 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes[2].OneofWrappers = []interface{}{ 605 (*AdGroupAdLabelOperation_Create)(nil), 606 (*AdGroupAdLabelOperation_Remove)(nil), 607 } 608 type x struct{} 609 out := protoimpl.TypeBuilder{ 610 File: protoimpl.DescBuilder{ 611 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 612 RawDescriptor: file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDesc, 613 NumEnums: 0, 614 NumMessages: 5, 615 NumExtensions: 0, 616 NumServices: 1, 617 }, 618 GoTypes: file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_goTypes, 619 DependencyIndexes: file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_depIdxs, 620 MessageInfos: file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_msgTypes, 621 }.Build() 622 File_google_ads_googleads_v2_services_ad_group_ad_label_service_proto = out.File 623 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_rawDesc = nil 624 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_goTypes = nil 625 file_google_ads_googleads_v2_services_ad_group_ad_label_service_proto_depIdxs = nil 626} 627 628// Reference imports to suppress errors if they are not otherwise used. 629var _ context.Context 630var _ grpc.ClientConnInterface 631 632// This is a compile-time assertion to ensure that this generated file 633// is compatible with the grpc package it is being compiled against. 634const _ = grpc.SupportPackageIsVersion6 635 636// AdGroupAdLabelServiceClient is the client API for AdGroupAdLabelService service. 637// 638// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 639type AdGroupAdLabelServiceClient interface { 640 // Returns the requested ad group ad label in full detail. 641 GetAdGroupAdLabel(ctx context.Context, in *GetAdGroupAdLabelRequest, opts ...grpc.CallOption) (*resources.AdGroupAdLabel, error) 642 // Creates and removes ad group ad labels. 643 // Operation statuses are returned. 644 MutateAdGroupAdLabels(ctx context.Context, in *MutateAdGroupAdLabelsRequest, opts ...grpc.CallOption) (*MutateAdGroupAdLabelsResponse, error) 645} 646 647type adGroupAdLabelServiceClient struct { 648 cc grpc.ClientConnInterface 649} 650 651func NewAdGroupAdLabelServiceClient(cc grpc.ClientConnInterface) AdGroupAdLabelServiceClient { 652 return &adGroupAdLabelServiceClient{cc} 653} 654 655func (c *adGroupAdLabelServiceClient) GetAdGroupAdLabel(ctx context.Context, in *GetAdGroupAdLabelRequest, opts ...grpc.CallOption) (*resources.AdGroupAdLabel, error) { 656 out := new(resources.AdGroupAdLabel) 657 err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.AdGroupAdLabelService/GetAdGroupAdLabel", in, out, opts...) 658 if err != nil { 659 return nil, err 660 } 661 return out, nil 662} 663 664func (c *adGroupAdLabelServiceClient) MutateAdGroupAdLabels(ctx context.Context, in *MutateAdGroupAdLabelsRequest, opts ...grpc.CallOption) (*MutateAdGroupAdLabelsResponse, error) { 665 out := new(MutateAdGroupAdLabelsResponse) 666 err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.AdGroupAdLabelService/MutateAdGroupAdLabels", in, out, opts...) 667 if err != nil { 668 return nil, err 669 } 670 return out, nil 671} 672 673// AdGroupAdLabelServiceServer is the server API for AdGroupAdLabelService service. 674type AdGroupAdLabelServiceServer interface { 675 // Returns the requested ad group ad label in full detail. 676 GetAdGroupAdLabel(context.Context, *GetAdGroupAdLabelRequest) (*resources.AdGroupAdLabel, error) 677 // Creates and removes ad group ad labels. 678 // Operation statuses are returned. 679 MutateAdGroupAdLabels(context.Context, *MutateAdGroupAdLabelsRequest) (*MutateAdGroupAdLabelsResponse, error) 680} 681 682// UnimplementedAdGroupAdLabelServiceServer can be embedded to have forward compatible implementations. 683type UnimplementedAdGroupAdLabelServiceServer struct { 684} 685 686func (*UnimplementedAdGroupAdLabelServiceServer) GetAdGroupAdLabel(context.Context, *GetAdGroupAdLabelRequest) (*resources.AdGroupAdLabel, error) { 687 return nil, status1.Errorf(codes.Unimplemented, "method GetAdGroupAdLabel not implemented") 688} 689func (*UnimplementedAdGroupAdLabelServiceServer) MutateAdGroupAdLabels(context.Context, *MutateAdGroupAdLabelsRequest) (*MutateAdGroupAdLabelsResponse, error) { 690 return nil, status1.Errorf(codes.Unimplemented, "method MutateAdGroupAdLabels not implemented") 691} 692 693func RegisterAdGroupAdLabelServiceServer(s *grpc.Server, srv AdGroupAdLabelServiceServer) { 694 s.RegisterService(&_AdGroupAdLabelService_serviceDesc, srv) 695} 696 697func _AdGroupAdLabelService_GetAdGroupAdLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 698 in := new(GetAdGroupAdLabelRequest) 699 if err := dec(in); err != nil { 700 return nil, err 701 } 702 if interceptor == nil { 703 return srv.(AdGroupAdLabelServiceServer).GetAdGroupAdLabel(ctx, in) 704 } 705 info := &grpc.UnaryServerInfo{ 706 Server: srv, 707 FullMethod: "/google.ads.googleads.v2.services.AdGroupAdLabelService/GetAdGroupAdLabel", 708 } 709 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 710 return srv.(AdGroupAdLabelServiceServer).GetAdGroupAdLabel(ctx, req.(*GetAdGroupAdLabelRequest)) 711 } 712 return interceptor(ctx, in, info, handler) 713} 714 715func _AdGroupAdLabelService_MutateAdGroupAdLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 716 in := new(MutateAdGroupAdLabelsRequest) 717 if err := dec(in); err != nil { 718 return nil, err 719 } 720 if interceptor == nil { 721 return srv.(AdGroupAdLabelServiceServer).MutateAdGroupAdLabels(ctx, in) 722 } 723 info := &grpc.UnaryServerInfo{ 724 Server: srv, 725 FullMethod: "/google.ads.googleads.v2.services.AdGroupAdLabelService/MutateAdGroupAdLabels", 726 } 727 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 728 return srv.(AdGroupAdLabelServiceServer).MutateAdGroupAdLabels(ctx, req.(*MutateAdGroupAdLabelsRequest)) 729 } 730 return interceptor(ctx, in, info, handler) 731} 732 733var _AdGroupAdLabelService_serviceDesc = grpc.ServiceDesc{ 734 ServiceName: "google.ads.googleads.v2.services.AdGroupAdLabelService", 735 HandlerType: (*AdGroupAdLabelServiceServer)(nil), 736 Methods: []grpc.MethodDesc{ 737 { 738 MethodName: "GetAdGroupAdLabel", 739 Handler: _AdGroupAdLabelService_GetAdGroupAdLabel_Handler, 740 }, 741 { 742 MethodName: "MutateAdGroupAdLabels", 743 Handler: _AdGroupAdLabelService_MutateAdGroupAdLabels_Handler, 744 }, 745 }, 746 Streams: []grpc.StreamDesc{}, 747 Metadata: "google/ads/googleads/v2/services/ad_group_ad_label_service.proto", 748} 749