1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v2/services/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 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 [LabelService.GetLabel][google.ads.googleads.v2.services.LabelService.GetLabel]. 33type GetLabelRequest struct { 34 // Required. The resource name of the label 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 *GetLabelRequest) Reset() { *m = GetLabelRequest{} } 42func (m *GetLabelRequest) String() string { return proto.CompactTextString(m) } 43func (*GetLabelRequest) ProtoMessage() {} 44func (*GetLabelRequest) Descriptor() ([]byte, []int) { 45 return fileDescriptor_fa07dafc79d19310, []int{0} 46} 47 48func (m *GetLabelRequest) XXX_Unmarshal(b []byte) error { 49 return xxx_messageInfo_GetLabelRequest.Unmarshal(m, b) 50} 51func (m *GetLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 return xxx_messageInfo_GetLabelRequest.Marshal(b, m, deterministic) 53} 54func (m *GetLabelRequest) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_GetLabelRequest.Merge(m, src) 56} 57func (m *GetLabelRequest) XXX_Size() int { 58 return xxx_messageInfo_GetLabelRequest.Size(m) 59} 60func (m *GetLabelRequest) XXX_DiscardUnknown() { 61 xxx_messageInfo_GetLabelRequest.DiscardUnknown(m) 62} 63 64var xxx_messageInfo_GetLabelRequest proto.InternalMessageInfo 65 66func (m *GetLabelRequest) GetResourceName() string { 67 if m != nil { 68 return m.ResourceName 69 } 70 return "" 71} 72 73// Request message for [LabelService.MutateLabels][google.ads.googleads.v2.services.LabelService.MutateLabels]. 74type MutateLabelsRequest struct { 75 // Required. ID of the customer whose labels 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 labels. 78 Operations []*LabelOperation `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 *MutateLabelsRequest) Reset() { *m = MutateLabelsRequest{} } 93func (m *MutateLabelsRequest) String() string { return proto.CompactTextString(m) } 94func (*MutateLabelsRequest) ProtoMessage() {} 95func (*MutateLabelsRequest) Descriptor() ([]byte, []int) { 96 return fileDescriptor_fa07dafc79d19310, []int{1} 97} 98 99func (m *MutateLabelsRequest) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_MutateLabelsRequest.Unmarshal(m, b) 101} 102func (m *MutateLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_MutateLabelsRequest.Marshal(b, m, deterministic) 104} 105func (m *MutateLabelsRequest) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_MutateLabelsRequest.Merge(m, src) 107} 108func (m *MutateLabelsRequest) XXX_Size() int { 109 return xxx_messageInfo_MutateLabelsRequest.Size(m) 110} 111func (m *MutateLabelsRequest) XXX_DiscardUnknown() { 112 xxx_messageInfo_MutateLabelsRequest.DiscardUnknown(m) 113} 114 115var xxx_messageInfo_MutateLabelsRequest proto.InternalMessageInfo 116 117func (m *MutateLabelsRequest) GetCustomerId() string { 118 if m != nil { 119 return m.CustomerId 120 } 121 return "" 122} 123 124func (m *MutateLabelsRequest) GetOperations() []*LabelOperation { 125 if m != nil { 126 return m.Operations 127 } 128 return nil 129} 130 131func (m *MutateLabelsRequest) GetPartialFailure() bool { 132 if m != nil { 133 return m.PartialFailure 134 } 135 return false 136} 137 138func (m *MutateLabelsRequest) GetValidateOnly() bool { 139 if m != nil { 140 return m.ValidateOnly 141 } 142 return false 143} 144 145// A single operation (create, remove, update) on a label. 146type LabelOperation 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 // *LabelOperation_Create 153 // *LabelOperation_Update 154 // *LabelOperation_Remove 155 Operation isLabelOperation_Operation `protobuf_oneof:"operation"` 156 XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 XXX_unrecognized []byte `json:"-"` 158 XXX_sizecache int32 `json:"-"` 159} 160 161func (m *LabelOperation) Reset() { *m = LabelOperation{} } 162func (m *LabelOperation) String() string { return proto.CompactTextString(m) } 163func (*LabelOperation) ProtoMessage() {} 164func (*LabelOperation) Descriptor() ([]byte, []int) { 165 return fileDescriptor_fa07dafc79d19310, []int{2} 166} 167 168func (m *LabelOperation) XXX_Unmarshal(b []byte) error { 169 return xxx_messageInfo_LabelOperation.Unmarshal(m, b) 170} 171func (m *LabelOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 return xxx_messageInfo_LabelOperation.Marshal(b, m, deterministic) 173} 174func (m *LabelOperation) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_LabelOperation.Merge(m, src) 176} 177func (m *LabelOperation) XXX_Size() int { 178 return xxx_messageInfo_LabelOperation.Size(m) 179} 180func (m *LabelOperation) XXX_DiscardUnknown() { 181 xxx_messageInfo_LabelOperation.DiscardUnknown(m) 182} 183 184var xxx_messageInfo_LabelOperation proto.InternalMessageInfo 185 186func (m *LabelOperation) GetUpdateMask() *field_mask.FieldMask { 187 if m != nil { 188 return m.UpdateMask 189 } 190 return nil 191} 192 193type isLabelOperation_Operation interface { 194 isLabelOperation_Operation() 195} 196 197type LabelOperation_Create struct { 198 Create *resources.Label `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 199} 200 201type LabelOperation_Update struct { 202 Update *resources.Label `protobuf:"bytes,2,opt,name=update,proto3,oneof"` 203} 204 205type LabelOperation_Remove struct { 206 Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` 207} 208 209func (*LabelOperation_Create) isLabelOperation_Operation() {} 210 211func (*LabelOperation_Update) isLabelOperation_Operation() {} 212 213func (*LabelOperation_Remove) isLabelOperation_Operation() {} 214 215func (m *LabelOperation) GetOperation() isLabelOperation_Operation { 216 if m != nil { 217 return m.Operation 218 } 219 return nil 220} 221 222func (m *LabelOperation) GetCreate() *resources.Label { 223 if x, ok := m.GetOperation().(*LabelOperation_Create); ok { 224 return x.Create 225 } 226 return nil 227} 228 229func (m *LabelOperation) GetUpdate() *resources.Label { 230 if x, ok := m.GetOperation().(*LabelOperation_Update); ok { 231 return x.Update 232 } 233 return nil 234} 235 236func (m *LabelOperation) GetRemove() string { 237 if x, ok := m.GetOperation().(*LabelOperation_Remove); ok { 238 return x.Remove 239 } 240 return "" 241} 242 243// XXX_OneofWrappers is for the internal use of the proto package. 244func (*LabelOperation) XXX_OneofWrappers() []interface{} { 245 return []interface{}{ 246 (*LabelOperation_Create)(nil), 247 (*LabelOperation_Update)(nil), 248 (*LabelOperation_Remove)(nil), 249 } 250} 251 252// Response message for a labels mutate. 253type MutateLabelsResponse 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 []*MutateLabelResult `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 *MutateLabelsResponse) Reset() { *m = MutateLabelsResponse{} } 267func (m *MutateLabelsResponse) String() string { return proto.CompactTextString(m) } 268func (*MutateLabelsResponse) ProtoMessage() {} 269func (*MutateLabelsResponse) Descriptor() ([]byte, []int) { 270 return fileDescriptor_fa07dafc79d19310, []int{3} 271} 272 273func (m *MutateLabelsResponse) XXX_Unmarshal(b []byte) error { 274 return xxx_messageInfo_MutateLabelsResponse.Unmarshal(m, b) 275} 276func (m *MutateLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 277 return xxx_messageInfo_MutateLabelsResponse.Marshal(b, m, deterministic) 278} 279func (m *MutateLabelsResponse) XXX_Merge(src proto.Message) { 280 xxx_messageInfo_MutateLabelsResponse.Merge(m, src) 281} 282func (m *MutateLabelsResponse) XXX_Size() int { 283 return xxx_messageInfo_MutateLabelsResponse.Size(m) 284} 285func (m *MutateLabelsResponse) XXX_DiscardUnknown() { 286 xxx_messageInfo_MutateLabelsResponse.DiscardUnknown(m) 287} 288 289var xxx_messageInfo_MutateLabelsResponse proto.InternalMessageInfo 290 291func (m *MutateLabelsResponse) GetPartialFailureError() *status.Status { 292 if m != nil { 293 return m.PartialFailureError 294 } 295 return nil 296} 297 298func (m *MutateLabelsResponse) GetResults() []*MutateLabelResult { 299 if m != nil { 300 return m.Results 301 } 302 return nil 303} 304 305// The result for a label mutate. 306type MutateLabelResult 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 *MutateLabelResult) Reset() { *m = MutateLabelResult{} } 315func (m *MutateLabelResult) String() string { return proto.CompactTextString(m) } 316func (*MutateLabelResult) ProtoMessage() {} 317func (*MutateLabelResult) Descriptor() ([]byte, []int) { 318 return fileDescriptor_fa07dafc79d19310, []int{4} 319} 320 321func (m *MutateLabelResult) XXX_Unmarshal(b []byte) error { 322 return xxx_messageInfo_MutateLabelResult.Unmarshal(m, b) 323} 324func (m *MutateLabelResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 return xxx_messageInfo_MutateLabelResult.Marshal(b, m, deterministic) 326} 327func (m *MutateLabelResult) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_MutateLabelResult.Merge(m, src) 329} 330func (m *MutateLabelResult) XXX_Size() int { 331 return xxx_messageInfo_MutateLabelResult.Size(m) 332} 333func (m *MutateLabelResult) XXX_DiscardUnknown() { 334 xxx_messageInfo_MutateLabelResult.DiscardUnknown(m) 335} 336 337var xxx_messageInfo_MutateLabelResult proto.InternalMessageInfo 338 339func (m *MutateLabelResult) GetResourceName() string { 340 if m != nil { 341 return m.ResourceName 342 } 343 return "" 344} 345 346func init() { 347 proto.RegisterType((*GetLabelRequest)(nil), "google.ads.googleads.v2.services.GetLabelRequest") 348 proto.RegisterType((*MutateLabelsRequest)(nil), "google.ads.googleads.v2.services.MutateLabelsRequest") 349 proto.RegisterType((*LabelOperation)(nil), "google.ads.googleads.v2.services.LabelOperation") 350 proto.RegisterType((*MutateLabelsResponse)(nil), "google.ads.googleads.v2.services.MutateLabelsResponse") 351 proto.RegisterType((*MutateLabelResult)(nil), "google.ads.googleads.v2.services.MutateLabelResult") 352} 353 354func init() { 355 proto.RegisterFile("google/ads/googleads/v2/services/label_service.proto", fileDescriptor_fa07dafc79d19310) 356} 357 358var fileDescriptor_fa07dafc79d19310 = []byte{ 359 // 772 bytes of a gzipped FileDescriptorProto 360 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x6f, 0xd3, 0x48, 361 0x14, 0x5f, 0x3b, 0xab, 0x6e, 0x3b, 0x49, 0x5b, 0x75, 0xba, 0x7f, 0xb2, 0xd9, 0xd5, 0x6e, 0x64, 362 0x2a, 0x88, 0x02, 0xd8, 0xc5, 0x05, 0x84, 0x5c, 0x55, 0xc2, 0x91, 0x68, 0x8b, 0xa0, 0xb4, 0x72, 363 0x45, 0x0f, 0x28, 0x22, 0x9a, 0xd8, 0xd3, 0x60, 0xd5, 0xf6, 0x98, 0x19, 0x3b, 0x52, 0x55, 0xf5, 364 0xc2, 0x57, 0xe0, 0x1b, 0x70, 0x02, 0x24, 0xbe, 0x48, 0x0f, 0x5c, 0xb8, 0xf5, 0xd4, 0x03, 0x27, 365 0x3e, 0x01, 0x42, 0x1c, 0x90, 0x3d, 0x33, 0x89, 0x53, 0x88, 0x42, 0x6f, 0xcf, 0xf3, 0x7e, 0xbf, 366 0xdf, 0x7b, 0xf3, 0xfe, 0x8c, 0xc1, 0xcd, 0x1e, 0x21, 0xbd, 0x00, 0x1b, 0xc8, 0x63, 0x06, 0x37, 367 0x33, 0xab, 0x6f, 0x1a, 0x0c, 0xd3, 0xbe, 0xef, 0x62, 0x66, 0x04, 0xa8, 0x8b, 0x83, 0x8e, 0xf8, 368 0xd4, 0x63, 0x4a, 0x12, 0x02, 0xeb, 0x1c, 0xaa, 0x23, 0x8f, 0xe9, 0x03, 0x96, 0xde, 0x37, 0x75, 369 0xc9, 0xaa, 0x5d, 0x1f, 0xa7, 0x4b, 0x31, 0x23, 0x29, 0x1d, 0x08, 0x73, 0xc1, 0xda, 0xbf, 0x12, 370 0x1e, 0xfb, 0x06, 0x8a, 0x22, 0x92, 0xa0, 0xc4, 0x27, 0x11, 0x13, 0xde, 0xbf, 0x0a, 0x5e, 0x37, 371 0xf0, 0x71, 0x94, 0x08, 0xc7, 0xff, 0x05, 0xc7, 0xbe, 0x8f, 0x03, 0xaf, 0xd3, 0xc5, 0xcf, 0x50, 372 0xdf, 0x27, 0x54, 0x00, 0xfe, 0x2e, 0x00, 0x64, 0x64, 0xe1, 0x12, 0x77, 0x30, 0xf2, 0xaf, 0x6e, 373 0xba, 0x2f, 0x04, 0x42, 0xc4, 0x0e, 0xce, 0x85, 0xa5, 0xb1, 0x6b, 0xb0, 0x04, 0x25, 0xa9, 0xc8, 374 0x47, 0x7b, 0x0a, 0xe6, 0x37, 0x70, 0xf2, 0x30, 0xcb, 0xdf, 0xc1, 0xcf, 0x53, 0xcc, 0x12, 0xf8, 375 0x00, 0xcc, 0x4a, 0xfd, 0x4e, 0x84, 0x42, 0x5c, 0x55, 0xea, 0x4a, 0x63, 0xa6, 0x75, 0xf9, 0xcc, 376 0x56, 0xbf, 0xd8, 0x75, 0xf0, 0xdf, 0xb0, 0x4a, 0xc2, 0x8a, 0x7d, 0xa6, 0xbb, 0x24, 0x34, 0xb8, 377 0x4a, 0x45, 0x92, 0x1f, 0xa1, 0x10, 0x6b, 0x67, 0x0a, 0x58, 0xdc, 0x4a, 0x13, 0x94, 0xe0, 0xdc, 378 0xcb, 0x64, 0x90, 0x25, 0x50, 0x76, 0x53, 0x96, 0x90, 0x10, 0xd3, 0x8e, 0xef, 0x89, 0x10, 0xa5, 379 0x33, 0x5b, 0x75, 0x80, 0x3c, 0xbf, 0xef, 0xc1, 0xc7, 0x00, 0x90, 0x18, 0x53, 0x5e, 0xc1, 0xaa, 380 0x5a, 0x2f, 0x35, 0xca, 0xe6, 0xb2, 0x3e, 0xa9, 0x63, 0x7a, 0x1e, 0x6a, 0x5b, 0x12, 0x85, 0xec, 381 0x50, 0x08, 0x5e, 0x01, 0xf3, 0x31, 0xa2, 0x89, 0x8f, 0x82, 0xce, 0x3e, 0xf2, 0x83, 0x94, 0xe2, 382 0x6a, 0xa9, 0xae, 0x34, 0xa6, 0x9d, 0x39, 0x71, 0xbc, 0xce, 0x4f, 0xe1, 0x25, 0x30, 0xdb, 0x47, 383 0x81, 0xef, 0xa1, 0x04, 0x77, 0x48, 0x14, 0x1c, 0x56, 0x7f, 0xcd, 0x61, 0x15, 0x79, 0xb8, 0x1d, 384 0x05, 0x87, 0xda, 0x57, 0x05, 0xcc, 0x8d, 0x46, 0x84, 0xab, 0xa0, 0x9c, 0xc6, 0x39, 0x2b, 0xeb, 385 0x41, 0xce, 0x2a, 0x9b, 0x35, 0x99, 0xb8, 0x6c, 0x93, 0xbe, 0x9e, 0xb5, 0x69, 0x0b, 0xb1, 0x03, 386 0x07, 0x70, 0x78, 0x66, 0xc3, 0x16, 0x98, 0x72, 0x29, 0x46, 0x09, 0x2f, 0x7c, 0xd9, 0x6c, 0x8c, 387 0xbd, 0xf0, 0x60, 0x00, 0xf9, 0x8d, 0x37, 0x7f, 0x71, 0x04, 0x33, 0xd3, 0xe0, 0x8a, 0x55, 0xf5, 388 0xe2, 0x1a, 0x9c, 0x09, 0xab, 0x60, 0x8a, 0xe2, 0x90, 0xf4, 0x79, 0x71, 0x66, 0x32, 0x0f, 0xff, 389 0x6e, 0x95, 0xc1, 0xcc, 0xa0, 0x9a, 0xda, 0x3b, 0x05, 0xfc, 0x3e, 0xda, 0x61, 0x16, 0x93, 0x88, 390 0x61, 0xb8, 0x0e, 0xfe, 0x38, 0x57, 0xe5, 0x0e, 0xa6, 0x94, 0xd0, 0x5c, 0xae, 0x6c, 0x42, 0x99, 391 0x12, 0x8d, 0x5d, 0x7d, 0x37, 0x9f, 0x49, 0x67, 0x71, 0xb4, 0xfe, 0xf7, 0x32, 0x38, 0xdc, 0x02, 392 0xbf, 0x51, 0xcc, 0xd2, 0x20, 0x91, 0x13, 0xb0, 0x32, 0x79, 0x02, 0x0a, 0x09, 0x39, 0x39, 0xd7, 393 0x91, 0x1a, 0xda, 0x1d, 0xb0, 0xf0, 0x9d, 0x37, 0x6b, 0xf4, 0x0f, 0x66, 0x7e, 0x74, 0x96, 0xcd, 394 0xd7, 0x25, 0x50, 0xc9, 0x49, 0xbb, 0x3c, 0x0c, 0x7c, 0xa3, 0x80, 0x69, 0xb9, 0x3d, 0xf0, 0xc6, 395 0xe4, 0xac, 0xce, 0x6d, 0x5a, 0xed, 0xa7, 0xbb, 0xa2, 0xdd, 0x3d, 0xb5, 0x47, 0x13, 0x7c, 0xf1, 396 0xe1, 0xe3, 0x4b, 0xb5, 0x09, 0x1b, 0xd9, 0x3b, 0x74, 0x34, 0xe2, 0x59, 0x93, 0xfb, 0xc3, 0x8c, 397 0x26, 0x7f, 0x98, 0x98, 0xd1, 0x3c, 0x86, 0xef, 0x15, 0x50, 0x29, 0xb6, 0x09, 0xde, 0xba, 0x50, 398 0x15, 0xe5, 0xe2, 0xd6, 0x6e, 0x5f, 0x94, 0xc6, 0xa7, 0x41, 0xdb, 0x3e, 0xb5, 0xff, 0x2c, 0x6c, 399 0xfc, 0xb5, 0xe1, 0x3a, 0xe6, 0x57, 0x59, 0xd6, 0xae, 0x66, 0x57, 0x19, 0xe6, 0x7e, 0x54, 0x00, 400 0xaf, 0x35, 0x8f, 0xc5, 0x4d, 0xac, 0x30, 0xd7, 0xb6, 0x94, 0x66, 0xed, 0x9f, 0x13, 0xbb, 0x3a, 401 0xee, 0x29, 0x6a, 0x7d, 0x56, 0xc0, 0x92, 0x4b, 0xc2, 0x89, 0xb9, 0xb6, 0x16, 0x8a, 0x0d, 0xdd, 402 0xc9, 0x16, 0x73, 0x47, 0x79, 0xb2, 0x29, 0x68, 0x3d, 0x12, 0xa0, 0xa8, 0xa7, 0x13, 0xda, 0x33, 403 0x7a, 0x38, 0xca, 0xd7, 0xd6, 0x18, 0x06, 0x1a, 0xff, 0xa3, 0x59, 0x95, 0xc6, 0x2b, 0xb5, 0xb4, 404 0x61, 0xdb, 0x6f, 0xd5, 0xfa, 0x06, 0x17, 0xb4, 0x3d, 0xa6, 0x73, 0x33, 0xb3, 0xf6, 0x4c, 0x5d, 405 0x04, 0x66, 0x27, 0x12, 0xd2, 0xb6, 0x3d, 0xd6, 0x1e, 0x40, 0xda, 0x7b, 0x66, 0x5b, 0x42, 0x3e, 406 0xa9, 0x4b, 0xfc, 0xdc, 0xb2, 0x6c, 0x8f, 0x59, 0xd6, 0x00, 0x64, 0x59, 0x7b, 0xa6, 0x65, 0x49, 407 0x58, 0x77, 0x2a, 0xcf, 0x73, 0xe5, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0xbd, 0xf6, 0x9f, 408 0x0f, 0x07, 0x00, 0x00, 409} 410 411// Reference imports to suppress errors if they are not otherwise used. 412var _ context.Context 413var _ grpc.ClientConnInterface 414 415// This is a compile-time assertion to ensure that this generated file 416// is compatible with the grpc package it is being compiled against. 417const _ = grpc.SupportPackageIsVersion6 418 419// LabelServiceClient is the client API for LabelService service. 420// 421// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 422type LabelServiceClient interface { 423 // Returns the requested label in full detail. 424 GetLabel(ctx context.Context, in *GetLabelRequest, opts ...grpc.CallOption) (*resources.Label, error) 425 // Creates, updates, or removes labels. Operation statuses are returned. 426 MutateLabels(ctx context.Context, in *MutateLabelsRequest, opts ...grpc.CallOption) (*MutateLabelsResponse, error) 427} 428 429type labelServiceClient struct { 430 cc grpc.ClientConnInterface 431} 432 433func NewLabelServiceClient(cc grpc.ClientConnInterface) LabelServiceClient { 434 return &labelServiceClient{cc} 435} 436 437func (c *labelServiceClient) GetLabel(ctx context.Context, in *GetLabelRequest, opts ...grpc.CallOption) (*resources.Label, error) { 438 out := new(resources.Label) 439 err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.LabelService/GetLabel", in, out, opts...) 440 if err != nil { 441 return nil, err 442 } 443 return out, nil 444} 445 446func (c *labelServiceClient) MutateLabels(ctx context.Context, in *MutateLabelsRequest, opts ...grpc.CallOption) (*MutateLabelsResponse, error) { 447 out := new(MutateLabelsResponse) 448 err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.LabelService/MutateLabels", in, out, opts...) 449 if err != nil { 450 return nil, err 451 } 452 return out, nil 453} 454 455// LabelServiceServer is the server API for LabelService service. 456type LabelServiceServer interface { 457 // Returns the requested label in full detail. 458 GetLabel(context.Context, *GetLabelRequest) (*resources.Label, error) 459 // Creates, updates, or removes labels. Operation statuses are returned. 460 MutateLabels(context.Context, *MutateLabelsRequest) (*MutateLabelsResponse, error) 461} 462 463// UnimplementedLabelServiceServer can be embedded to have forward compatible implementations. 464type UnimplementedLabelServiceServer struct { 465} 466 467func (*UnimplementedLabelServiceServer) GetLabel(ctx context.Context, req *GetLabelRequest) (*resources.Label, error) { 468 return nil, status1.Errorf(codes.Unimplemented, "method GetLabel not implemented") 469} 470func (*UnimplementedLabelServiceServer) MutateLabels(ctx context.Context, req *MutateLabelsRequest) (*MutateLabelsResponse, error) { 471 return nil, status1.Errorf(codes.Unimplemented, "method MutateLabels not implemented") 472} 473 474func RegisterLabelServiceServer(s *grpc.Server, srv LabelServiceServer) { 475 s.RegisterService(&_LabelService_serviceDesc, srv) 476} 477 478func _LabelService_GetLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 479 in := new(GetLabelRequest) 480 if err := dec(in); err != nil { 481 return nil, err 482 } 483 if interceptor == nil { 484 return srv.(LabelServiceServer).GetLabel(ctx, in) 485 } 486 info := &grpc.UnaryServerInfo{ 487 Server: srv, 488 FullMethod: "/google.ads.googleads.v2.services.LabelService/GetLabel", 489 } 490 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 491 return srv.(LabelServiceServer).GetLabel(ctx, req.(*GetLabelRequest)) 492 } 493 return interceptor(ctx, in, info, handler) 494} 495 496func _LabelService_MutateLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 497 in := new(MutateLabelsRequest) 498 if err := dec(in); err != nil { 499 return nil, err 500 } 501 if interceptor == nil { 502 return srv.(LabelServiceServer).MutateLabels(ctx, in) 503 } 504 info := &grpc.UnaryServerInfo{ 505 Server: srv, 506 FullMethod: "/google.ads.googleads.v2.services.LabelService/MutateLabels", 507 } 508 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 509 return srv.(LabelServiceServer).MutateLabels(ctx, req.(*MutateLabelsRequest)) 510 } 511 return interceptor(ctx, in, info, handler) 512} 513 514var _LabelService_serviceDesc = grpc.ServiceDesc{ 515 ServiceName: "google.ads.googleads.v2.services.LabelService", 516 HandlerType: (*LabelServiceServer)(nil), 517 Methods: []grpc.MethodDesc{ 518 { 519 MethodName: "GetLabel", 520 Handler: _LabelService_GetLabel_Handler, 521 }, 522 { 523 MethodName: "MutateLabels", 524 Handler: _LabelService_MutateLabels_Handler, 525 }, 526 }, 527 Streams: []grpc.StreamDesc{}, 528 Metadata: "google/ads/googleads/v2/services/label_service.proto", 529} 530