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