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