blob: 89823f1c82327ef0667cddd22cf8b6426e3a86d7 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/campaign_label_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
)
// 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 [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v1.services.CampaignLabelService.GetCampaignLabel].
type GetCampaignLabelRequest struct {
// The resource name of the campaign-label relationship 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 *GetCampaignLabelRequest) Reset() { *m = GetCampaignLabelRequest{} }
func (m *GetCampaignLabelRequest) String() string { return proto.CompactTextString(m) }
func (*GetCampaignLabelRequest) ProtoMessage() {}
func (*GetCampaignLabelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_27173f6ba18f2b11, []int{0}
}
func (m *GetCampaignLabelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetCampaignLabelRequest.Unmarshal(m, b)
}
func (m *GetCampaignLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetCampaignLabelRequest.Marshal(b, m, deterministic)
}
func (m *GetCampaignLabelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCampaignLabelRequest.Merge(m, src)
}
func (m *GetCampaignLabelRequest) XXX_Size() int {
return xxx_messageInfo_GetCampaignLabelRequest.Size(m)
}
func (m *GetCampaignLabelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetCampaignLabelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetCampaignLabelRequest proto.InternalMessageInfo
func (m *GetCampaignLabelRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v1.services.CampaignLabelService.MutateCampaignLabels].
type MutateCampaignLabelsRequest struct {
// ID of the customer whose campaign-label relationships 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 campaign-label relationships.
Operations []*CampaignLabelOperation `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 *MutateCampaignLabelsRequest) Reset() { *m = MutateCampaignLabelsRequest{} }
func (m *MutateCampaignLabelsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignLabelsRequest) ProtoMessage() {}
func (*MutateCampaignLabelsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_27173f6ba18f2b11, []int{1}
}
func (m *MutateCampaignLabelsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignLabelsRequest.Unmarshal(m, b)
}
func (m *MutateCampaignLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignLabelsRequest.Marshal(b, m, deterministic)
}
func (m *MutateCampaignLabelsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignLabelsRequest.Merge(m, src)
}
func (m *MutateCampaignLabelsRequest) XXX_Size() int {
return xxx_messageInfo_MutateCampaignLabelsRequest.Size(m)
}
func (m *MutateCampaignLabelsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignLabelsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignLabelsRequest proto.InternalMessageInfo
func (m *MutateCampaignLabelsRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateCampaignLabelsRequest) GetOperations() []*CampaignLabelOperation {
if m != nil {
return m.Operations
}
return nil
}
func (m *MutateCampaignLabelsRequest) GetPartialFailure() bool {
if m != nil {
return m.PartialFailure
}
return false
}
func (m *MutateCampaignLabelsRequest) GetValidateOnly() bool {
if m != nil {
return m.ValidateOnly
}
return false
}
// A single operation (create, remove) on a campaign-label relationship.
type CampaignLabelOperation struct {
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *CampaignLabelOperation_Create
// *CampaignLabelOperation_Remove
Operation isCampaignLabelOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CampaignLabelOperation) Reset() { *m = CampaignLabelOperation{} }
func (m *CampaignLabelOperation) String() string { return proto.CompactTextString(m) }
func (*CampaignLabelOperation) ProtoMessage() {}
func (*CampaignLabelOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_27173f6ba18f2b11, []int{2}
}
func (m *CampaignLabelOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CampaignLabelOperation.Unmarshal(m, b)
}
func (m *CampaignLabelOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CampaignLabelOperation.Marshal(b, m, deterministic)
}
func (m *CampaignLabelOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CampaignLabelOperation.Merge(m, src)
}
func (m *CampaignLabelOperation) XXX_Size() int {
return xxx_messageInfo_CampaignLabelOperation.Size(m)
}
func (m *CampaignLabelOperation) XXX_DiscardUnknown() {
xxx_messageInfo_CampaignLabelOperation.DiscardUnknown(m)
}
var xxx_messageInfo_CampaignLabelOperation proto.InternalMessageInfo
type isCampaignLabelOperation_Operation interface {
isCampaignLabelOperation_Operation()
}
type CampaignLabelOperation_Create struct {
Create *resources.CampaignLabel `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type CampaignLabelOperation_Remove struct {
Remove string `protobuf:"bytes,2,opt,name=remove,proto3,oneof"`
}
func (*CampaignLabelOperation_Create) isCampaignLabelOperation_Operation() {}
func (*CampaignLabelOperation_Remove) isCampaignLabelOperation_Operation() {}
func (m *CampaignLabelOperation) GetOperation() isCampaignLabelOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *CampaignLabelOperation) GetCreate() *resources.CampaignLabel {
if x, ok := m.GetOperation().(*CampaignLabelOperation_Create); ok {
return x.Create
}
return nil
}
func (m *CampaignLabelOperation) GetRemove() string {
if x, ok := m.GetOperation().(*CampaignLabelOperation_Remove); ok {
return x.Remove
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CampaignLabelOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CampaignLabelOperation_Create)(nil),
(*CampaignLabelOperation_Remove)(nil),
}
}
// Response message for a campaign labels mutate.
type MutateCampaignLabelsResponse 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 []*MutateCampaignLabelResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCampaignLabelsResponse) Reset() { *m = MutateCampaignLabelsResponse{} }
func (m *MutateCampaignLabelsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignLabelsResponse) ProtoMessage() {}
func (*MutateCampaignLabelsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_27173f6ba18f2b11, []int{3}
}
func (m *MutateCampaignLabelsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignLabelsResponse.Unmarshal(m, b)
}
func (m *MutateCampaignLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignLabelsResponse.Marshal(b, m, deterministic)
}
func (m *MutateCampaignLabelsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignLabelsResponse.Merge(m, src)
}
func (m *MutateCampaignLabelsResponse) XXX_Size() int {
return xxx_messageInfo_MutateCampaignLabelsResponse.Size(m)
}
func (m *MutateCampaignLabelsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignLabelsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignLabelsResponse proto.InternalMessageInfo
func (m *MutateCampaignLabelsResponse) GetPartialFailureError() *status.Status {
if m != nil {
return m.PartialFailureError
}
return nil
}
func (m *MutateCampaignLabelsResponse) GetResults() []*MutateCampaignLabelResult {
if m != nil {
return m.Results
}
return nil
}
// The result for a campaign label mutate.
type MutateCampaignLabelResult 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 *MutateCampaignLabelResult) Reset() { *m = MutateCampaignLabelResult{} }
func (m *MutateCampaignLabelResult) String() string { return proto.CompactTextString(m) }
func (*MutateCampaignLabelResult) ProtoMessage() {}
func (*MutateCampaignLabelResult) Descriptor() ([]byte, []int) {
return fileDescriptor_27173f6ba18f2b11, []int{4}
}
func (m *MutateCampaignLabelResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCampaignLabelResult.Unmarshal(m, b)
}
func (m *MutateCampaignLabelResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCampaignLabelResult.Marshal(b, m, deterministic)
}
func (m *MutateCampaignLabelResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCampaignLabelResult.Merge(m, src)
}
func (m *MutateCampaignLabelResult) XXX_Size() int {
return xxx_messageInfo_MutateCampaignLabelResult.Size(m)
}
func (m *MutateCampaignLabelResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCampaignLabelResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCampaignLabelResult proto.InternalMessageInfo
func (m *MutateCampaignLabelResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetCampaignLabelRequest)(nil), "google.ads.googleads.v1.services.GetCampaignLabelRequest")
proto.RegisterType((*MutateCampaignLabelsRequest)(nil), "google.ads.googleads.v1.services.MutateCampaignLabelsRequest")
proto.RegisterType((*CampaignLabelOperation)(nil), "google.ads.googleads.v1.services.CampaignLabelOperation")
proto.RegisterType((*MutateCampaignLabelsResponse)(nil), "google.ads.googleads.v1.services.MutateCampaignLabelsResponse")
proto.RegisterType((*MutateCampaignLabelResult)(nil), "google.ads.googleads.v1.services.MutateCampaignLabelResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v1/services/campaign_label_service.proto", fileDescriptor_27173f6ba18f2b11)
}
var fileDescriptor_27173f6ba18f2b11 = []byte{
// 674 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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x25, 0x8f, 0xc6, 0x13, 0x4b, 0xdc, 0x9c, 0x1f, 0x35, 0xef, 0xbd, 0xfc, 0x37, 0xb6,
0xa7, 0xbd, 0xda, 0x29, 0xd3, 0x03, 0x1a, 0xe1, 0x24, 0x40, 0x94, 0x05, 0x56, 0x40, 0x92, 0xe2,
0x27, 0x67, 0x9d, 0x11, 0x8e, 0xff, 0xa1, 0xaf, 0x2b, 0xe3, 0xa3, 0x5e, 0xd9, 0xee, 0x74, 0x3e,
0xe9, 0xf5, 0x6d, 0x09, 0xd8, 0xf1, 0x39, 0x92, 0x66, 0x6e, 0x1d, 0x34, 0x51, 0x49, 0xcc, 0x4f,
0x55, 0x48, 0xb7, 0xe3, 0xf3, 0x6e, 0x3f, 0xa4, 0x7b, 0xd0, 0xec, 0xaa, 0x90, 0x5f, 0xfa, 0x92,
0xf4, 0xdb, 0x76, 0xc7, 0xe7, 0xb6, 0xdd, 0x0f, 0xb2, 0xed, 0x83, 0xa6, 0x6d, 0xab, 0xb0, 0xc3,
0xa9, 0xa2, 0xce, 0xd5, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x74, 0xd8, 0x14, 0xf0, 0x77, 0x06,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// CampaignLabelServiceClient is the client API for CampaignLabelService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CampaignLabelServiceClient interface {
// Returns the requested campaign-label relationship in full detail.
GetCampaignLabel(ctx context.Context, in *GetCampaignLabelRequest, opts ...grpc.CallOption) (*resources.CampaignLabel, error)
// Creates and removes campaign-label relationships.
// Operation statuses are returned.
MutateCampaignLabels(ctx context.Context, in *MutateCampaignLabelsRequest, opts ...grpc.CallOption) (*MutateCampaignLabelsResponse, error)
}
type campaignLabelServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCampaignLabelServiceClient(cc grpc.ClientConnInterface) CampaignLabelServiceClient {
return &campaignLabelServiceClient{cc}
}
func (c *campaignLabelServiceClient) GetCampaignLabel(ctx context.Context, in *GetCampaignLabelRequest, opts ...grpc.CallOption) (*resources.CampaignLabel, error) {
out := new(resources.CampaignLabel)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignLabelService/GetCampaignLabel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *campaignLabelServiceClient) MutateCampaignLabels(ctx context.Context, in *MutateCampaignLabelsRequest, opts ...grpc.CallOption) (*MutateCampaignLabelsResponse, error) {
out := new(MutateCampaignLabelsResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CampaignLabelService/MutateCampaignLabels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CampaignLabelServiceServer is the server API for CampaignLabelService service.
type CampaignLabelServiceServer interface {
// Returns the requested campaign-label relationship in full detail.
GetCampaignLabel(context.Context, *GetCampaignLabelRequest) (*resources.CampaignLabel, error)
// Creates and removes campaign-label relationships.
// Operation statuses are returned.
MutateCampaignLabels(context.Context, *MutateCampaignLabelsRequest) (*MutateCampaignLabelsResponse, error)
}
// UnimplementedCampaignLabelServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCampaignLabelServiceServer struct {
}
func (*UnimplementedCampaignLabelServiceServer) GetCampaignLabel(ctx context.Context, req *GetCampaignLabelRequest) (*resources.CampaignLabel, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetCampaignLabel not implemented")
}
func (*UnimplementedCampaignLabelServiceServer) MutateCampaignLabels(ctx context.Context, req *MutateCampaignLabelsRequest) (*MutateCampaignLabelsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method MutateCampaignLabels not implemented")
}
func RegisterCampaignLabelServiceServer(s *grpc.Server, srv CampaignLabelServiceServer) {
s.RegisterService(&_CampaignLabelService_serviceDesc, srv)
}
func _CampaignLabelService_GetCampaignLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCampaignLabelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CampaignLabelServiceServer).GetCampaignLabel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CampaignLabelService/GetCampaignLabel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CampaignLabelServiceServer).GetCampaignLabel(ctx, req.(*GetCampaignLabelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CampaignLabelService_MutateCampaignLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateCampaignLabelsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CampaignLabelServiceServer).MutateCampaignLabels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CampaignLabelService/MutateCampaignLabels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CampaignLabelServiceServer).MutateCampaignLabels(ctx, req.(*MutateCampaignLabelsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CampaignLabelService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v1.services.CampaignLabelService",
HandlerType: (*CampaignLabelServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetCampaignLabel",
Handler: _CampaignLabelService_GetCampaignLabel_Handler,
},
{
MethodName: "MutateCampaignLabels",
Handler: _CampaignLabelService_MutateCampaignLabels_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v1/services/campaign_label_service.proto",
}