/
feed_mapping_service.pb.go
486 lines (430 loc) · 20.7 KB
/
feed_mapping_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/services/feed_mapping_service.proto
package services
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/wrappers"
resources "github.com/kritzware/google-ads-go/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Request message for [FeedMappingService.GetFeedMapping][google.ads.googleads.v0.services.FeedMappingService.GetFeedMapping].
type GetFeedMappingRequest struct {
// The resource name of the feed mapping to fetch.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFeedMappingRequest) Reset() { *m = GetFeedMappingRequest{} }
func (m *GetFeedMappingRequest) String() string { return proto.CompactTextString(m) }
func (*GetFeedMappingRequest) ProtoMessage() {}
func (*GetFeedMappingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c84dba701fbea6, []int{0}
}
func (m *GetFeedMappingRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFeedMappingRequest.Unmarshal(m, b)
}
func (m *GetFeedMappingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFeedMappingRequest.Marshal(b, m, deterministic)
}
func (m *GetFeedMappingRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFeedMappingRequest.Merge(m, src)
}
func (m *GetFeedMappingRequest) XXX_Size() int {
return xxx_messageInfo_GetFeedMappingRequest.Size(m)
}
func (m *GetFeedMappingRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFeedMappingRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFeedMappingRequest proto.InternalMessageInfo
func (m *GetFeedMappingRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v0.services.FeedMappingService.MutateFeedMappings].
type MutateFeedMappingsRequest struct {
// The ID of the customer whose feed mappings are being modified.
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// The list of operations to perform on individual feed mappings.
Operations []*FeedMappingOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
// If true, successful operations will be carried out and invalid
// operations will return errors. If false, all operations will be carried
// out in one transaction if and only if they are all valid.
// Default is false.
PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
// If true, the request is validated but not executed. Only errors are
// returned, not results.
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateFeedMappingsRequest) Reset() { *m = MutateFeedMappingsRequest{} }
func (m *MutateFeedMappingsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingsRequest) ProtoMessage() {}
func (*MutateFeedMappingsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c84dba701fbea6, []int{1}
}
func (m *MutateFeedMappingsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingsRequest.Unmarshal(m, b)
}
func (m *MutateFeedMappingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingsRequest.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingsRequest.Merge(m, src)
}
func (m *MutateFeedMappingsRequest) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingsRequest.Size(m)
}
func (m *MutateFeedMappingsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingsRequest proto.InternalMessageInfo
func (m *MutateFeedMappingsRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateFeedMappingsRequest) GetOperations() []*FeedMappingOperation {
if m != nil {
return m.Operations
}
return nil
}
func (m *MutateFeedMappingsRequest) GetPartialFailure() bool {
if m != nil {
return m.PartialFailure
}
return false
}
func (m *MutateFeedMappingsRequest) GetValidateOnly() bool {
if m != nil {
return m.ValidateOnly
}
return false
}
// A single operation (create, remove) on a feed mapping.
type FeedMappingOperation struct {
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *FeedMappingOperation_Create
// *FeedMappingOperation_Remove
Operation isFeedMappingOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FeedMappingOperation) Reset() { *m = FeedMappingOperation{} }
func (m *FeedMappingOperation) String() string { return proto.CompactTextString(m) }
func (*FeedMappingOperation) ProtoMessage() {}
func (*FeedMappingOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c84dba701fbea6, []int{2}
}
func (m *FeedMappingOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FeedMappingOperation.Unmarshal(m, b)
}
func (m *FeedMappingOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FeedMappingOperation.Marshal(b, m, deterministic)
}
func (m *FeedMappingOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FeedMappingOperation.Merge(m, src)
}
func (m *FeedMappingOperation) XXX_Size() int {
return xxx_messageInfo_FeedMappingOperation.Size(m)
}
func (m *FeedMappingOperation) XXX_DiscardUnknown() {
xxx_messageInfo_FeedMappingOperation.DiscardUnknown(m)
}
var xxx_messageInfo_FeedMappingOperation proto.InternalMessageInfo
type isFeedMappingOperation_Operation interface {
isFeedMappingOperation_Operation()
}
type FeedMappingOperation_Create struct {
Create *resources.FeedMapping `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type FeedMappingOperation_Remove struct {
Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
}
func (*FeedMappingOperation_Create) isFeedMappingOperation_Operation() {}
func (*FeedMappingOperation_Remove) isFeedMappingOperation_Operation() {}
func (m *FeedMappingOperation) GetOperation() isFeedMappingOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *FeedMappingOperation) GetCreate() *resources.FeedMapping {
if x, ok := m.GetOperation().(*FeedMappingOperation_Create); ok {
return x.Create
}
return nil
}
func (m *FeedMappingOperation) GetRemove() string {
if x, ok := m.GetOperation().(*FeedMappingOperation_Remove); ok {
return x.Remove
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*FeedMappingOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FeedMappingOperation_Create)(nil),
(*FeedMappingOperation_Remove)(nil),
}
}
// Response message for a feed mapping mutate.
type MutateFeedMappingsResponse struct {
// Errors that pertain to operation failures in the partial failure mode.
// Returned only when partial_failure = true and all errors occur inside the
// operations. If any errors occur outside the operations (e.g. auth errors),
// we return an RPC level error.
PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
// All results for the mutate.
Results []*MutateFeedMappingResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateFeedMappingsResponse) Reset() { *m = MutateFeedMappingsResponse{} }
func (m *MutateFeedMappingsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingsResponse) ProtoMessage() {}
func (*MutateFeedMappingsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c84dba701fbea6, []int{3}
}
func (m *MutateFeedMappingsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingsResponse.Unmarshal(m, b)
}
func (m *MutateFeedMappingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingsResponse.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingsResponse.Merge(m, src)
}
func (m *MutateFeedMappingsResponse) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingsResponse.Size(m)
}
func (m *MutateFeedMappingsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingsResponse proto.InternalMessageInfo
func (m *MutateFeedMappingsResponse) GetPartialFailureError() *status.Status {
if m != nil {
return m.PartialFailureError
}
return nil
}
func (m *MutateFeedMappingsResponse) GetResults() []*MutateFeedMappingResult {
if m != nil {
return m.Results
}
return nil
}
// The result for the feed mapping mutate.
type MutateFeedMappingResult struct {
// Returned for successful operations.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateFeedMappingResult) Reset() { *m = MutateFeedMappingResult{} }
func (m *MutateFeedMappingResult) String() string { return proto.CompactTextString(m) }
func (*MutateFeedMappingResult) ProtoMessage() {}
func (*MutateFeedMappingResult) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c84dba701fbea6, []int{4}
}
func (m *MutateFeedMappingResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateFeedMappingResult.Unmarshal(m, b)
}
func (m *MutateFeedMappingResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateFeedMappingResult.Marshal(b, m, deterministic)
}
func (m *MutateFeedMappingResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateFeedMappingResult.Merge(m, src)
}
func (m *MutateFeedMappingResult) XXX_Size() int {
return xxx_messageInfo_MutateFeedMappingResult.Size(m)
}
func (m *MutateFeedMappingResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateFeedMappingResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateFeedMappingResult proto.InternalMessageInfo
func (m *MutateFeedMappingResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetFeedMappingRequest)(nil), "google.ads.googleads.v0.services.GetFeedMappingRequest")
proto.RegisterType((*MutateFeedMappingsRequest)(nil), "google.ads.googleads.v0.services.MutateFeedMappingsRequest")
proto.RegisterType((*FeedMappingOperation)(nil), "google.ads.googleads.v0.services.FeedMappingOperation")
proto.RegisterType((*MutateFeedMappingsResponse)(nil), "google.ads.googleads.v0.services.MutateFeedMappingsResponse")
proto.RegisterType((*MutateFeedMappingResult)(nil), "google.ads.googleads.v0.services.MutateFeedMappingResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v0/services/feed_mapping_service.proto", fileDescriptor_d7c84dba701fbea6)
}
var fileDescriptor_d7c84dba701fbea6 = []byte{
// 663 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6b, 0x13, 0x4f,
0x18, 0xfe, 0x6d, 0xf2, 0xa3, 0xda, 0x49, 0xad, 0x30, 0x5a, 0x1a, 0x83, 0x68, 0x58, 0x0b, 0x96,
0x1c, 0x66, 0x63, 0x94, 0x8a, 0xdb, 0x56, 0x48, 0xc1, 0xb6, 0x1e, 0x6a, 0xcb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51, 0x84, 0x5d, 0x4f, 0x10, 0x75, 0xcc, 0x4e, 0xbd,
0x36, 0x29, 0x12, 0x8b, 0x2f, 0x3a, 0xa4, 0xdf, 0xf5, 0x44, 0x7f, 0x14, 0xd2, 0xef, 0xb5, 0xfb,
0x3a, 0xe4, 0x67, 0x65, 0x45, 0xd9, 0x6d, 0xbb, 0xeb, 0x09, 0xdb, 0x1e, 0x05, 0xd9, 0x76, 0xaf,
0x6d, 0xdb, 0x3a, 0xec, 0x68, 0x2e, 0xd7, 0xf9, 0xf0, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c,
0x40, 0x3b, 0xda, 0x39, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// FeedMappingServiceClient is the client API for FeedMappingService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FeedMappingServiceClient interface {
// Returns the requested feed mapping in full detail.
GetFeedMapping(ctx context.Context, in *GetFeedMappingRequest, opts ...grpc.CallOption) (*resources.FeedMapping, error)
// Creates or removes feed mappings. Operation statuses are
// returned.
MutateFeedMappings(ctx context.Context, in *MutateFeedMappingsRequest, opts ...grpc.CallOption) (*MutateFeedMappingsResponse, error)
}
type feedMappingServiceClient struct {
cc *grpc.ClientConn
}
func NewFeedMappingServiceClient(cc *grpc.ClientConn) FeedMappingServiceClient {
return &feedMappingServiceClient{cc}
}
func (c *feedMappingServiceClient) GetFeedMapping(ctx context.Context, in *GetFeedMappingRequest, opts ...grpc.CallOption) (*resources.FeedMapping, error) {
out := new(resources.FeedMapping)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.FeedMappingService/GetFeedMapping", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *feedMappingServiceClient) MutateFeedMappings(ctx context.Context, in *MutateFeedMappingsRequest, opts ...grpc.CallOption) (*MutateFeedMappingsResponse, error) {
out := new(MutateFeedMappingsResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.FeedMappingService/MutateFeedMappings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FeedMappingServiceServer is the server API for FeedMappingService service.
type FeedMappingServiceServer interface {
// Returns the requested feed mapping in full detail.
GetFeedMapping(context.Context, *GetFeedMappingRequest) (*resources.FeedMapping, error)
// Creates or removes feed mappings. Operation statuses are
// returned.
MutateFeedMappings(context.Context, *MutateFeedMappingsRequest) (*MutateFeedMappingsResponse, error)
}
func RegisterFeedMappingServiceServer(s *grpc.Server, srv FeedMappingServiceServer) {
s.RegisterService(&_FeedMappingService_serviceDesc, srv)
}
func _FeedMappingService_GetFeedMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFeedMappingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FeedMappingServiceServer).GetFeedMapping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v0.services.FeedMappingService/GetFeedMapping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FeedMappingServiceServer).GetFeedMapping(ctx, req.(*GetFeedMappingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FeedMappingService_MutateFeedMappings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateFeedMappingsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FeedMappingServiceServer).MutateFeedMappings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v0.services.FeedMappingService/MutateFeedMappings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FeedMappingServiceServer).MutateFeedMappings(ctx, req.(*MutateFeedMappingsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _FeedMappingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v0.services.FeedMappingService",
HandlerType: (*FeedMappingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFeedMapping",
Handler: _FeedMappingService_GetFeedMapping_Handler,
},
{
MethodName: "MutateFeedMappings",
Handler: _FeedMappingService_MutateFeedMappings_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v0/services/feed_mapping_service.proto",
}