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