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