// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/errors/campaign_draft_error.proto

package errors

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// 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

// Enum describing possible campaign draft errors.
type CampaignDraftErrorEnum_CampaignDraftError int32

const (
	// Enum unspecified.
	CampaignDraftErrorEnum_UNSPECIFIED CampaignDraftErrorEnum_CampaignDraftError = 0
	// The received error code is not known in this version.
	CampaignDraftErrorEnum_UNKNOWN CampaignDraftErrorEnum_CampaignDraftError = 1
	// A draft with this name already exists for this campaign.
	CampaignDraftErrorEnum_DUPLICATE_DRAFT_NAME CampaignDraftErrorEnum_CampaignDraftError = 2
	// The draft is removed and cannot be transitioned to another status.
	CampaignDraftErrorEnum_INVALID_STATUS_TRANSITION_FROM_REMOVED CampaignDraftErrorEnum_CampaignDraftError = 3
	// The draft has been promoted and cannot be transitioned to the specified
	// status.
	CampaignDraftErrorEnum_INVALID_STATUS_TRANSITION_FROM_PROMOTED CampaignDraftErrorEnum_CampaignDraftError = 4
	// The draft has failed to be promoted and cannot be transitioned to the
	// specified status.
	CampaignDraftErrorEnum_INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED CampaignDraftErrorEnum_CampaignDraftError = 5
	// This customer is not allowed to create drafts.
	CampaignDraftErrorEnum_CUSTOMER_CANNOT_CREATE_DRAFT CampaignDraftErrorEnum_CampaignDraftError = 6
	// This campaign is not allowed to create drafts.
	CampaignDraftErrorEnum_CAMPAIGN_CANNOT_CREATE_DRAFT CampaignDraftErrorEnum_CampaignDraftError = 7
	// This modification cannot be made on a draft.
	CampaignDraftErrorEnum_INVALID_DRAFT_CHANGE CampaignDraftErrorEnum_CampaignDraftError = 8
	// The draft cannot be transitioned to the specified status from its
	// current status.
	CampaignDraftErrorEnum_INVALID_STATUS_TRANSITION CampaignDraftErrorEnum_CampaignDraftError = 9
	// The campaign has reached the maximum number of drafts that can be created
	// for a campaign throughout its lifetime. No additional drafts can be
	// created for this campaign. Removed drafts also count towards this limit.
	CampaignDraftErrorEnum_MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED CampaignDraftErrorEnum_CampaignDraftError = 10
	// ListAsyncErrors was called without first promoting the draft.
	CampaignDraftErrorEnum_LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY CampaignDraftErrorEnum_CampaignDraftError = 11
)

var CampaignDraftErrorEnum_CampaignDraftError_name = map[int32]string{
	0:  "UNSPECIFIED",
	1:  "UNKNOWN",
	2:  "DUPLICATE_DRAFT_NAME",
	3:  "INVALID_STATUS_TRANSITION_FROM_REMOVED",
	4:  "INVALID_STATUS_TRANSITION_FROM_PROMOTED",
	5:  "INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED",
	6:  "CUSTOMER_CANNOT_CREATE_DRAFT",
	7:  "CAMPAIGN_CANNOT_CREATE_DRAFT",
	8:  "INVALID_DRAFT_CHANGE",
	9:  "INVALID_STATUS_TRANSITION",
	10: "MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED",
	11: "LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY",
}

var CampaignDraftErrorEnum_CampaignDraftError_value = map[string]int32{
	"UNSPECIFIED":                                   0,
	"UNKNOWN":                                       1,
	"DUPLICATE_DRAFT_NAME":                          2,
	"INVALID_STATUS_TRANSITION_FROM_REMOVED":        3,
	"INVALID_STATUS_TRANSITION_FROM_PROMOTED":       4,
	"INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED": 5,
	"CUSTOMER_CANNOT_CREATE_DRAFT":                  6,
	"CAMPAIGN_CANNOT_CREATE_DRAFT":                  7,
	"INVALID_DRAFT_CHANGE":                          8,
	"INVALID_STATUS_TRANSITION":                     9,
	"MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED":     10,
	"LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY":           11,
}

func (x CampaignDraftErrorEnum_CampaignDraftError) String() string {
	return proto.EnumName(CampaignDraftErrorEnum_CampaignDraftError_name, int32(x))
}

func (CampaignDraftErrorEnum_CampaignDraftError) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_8970d69daf509448, []int{0, 0}
}

// Container for enum describing possible campaign draft errors.
type CampaignDraftErrorEnum struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *CampaignDraftErrorEnum) Reset()         { *m = CampaignDraftErrorEnum{} }
func (m *CampaignDraftErrorEnum) String() string { return proto.CompactTextString(m) }
func (*CampaignDraftErrorEnum) ProtoMessage()    {}
func (*CampaignDraftErrorEnum) Descriptor() ([]byte, []int) {
	return fileDescriptor_8970d69daf509448, []int{0}
}

func (m *CampaignDraftErrorEnum) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CampaignDraftErrorEnum.Unmarshal(m, b)
}
func (m *CampaignDraftErrorEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CampaignDraftErrorEnum.Marshal(b, m, deterministic)
}
func (m *CampaignDraftErrorEnum) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CampaignDraftErrorEnum.Merge(m, src)
}
func (m *CampaignDraftErrorEnum) XXX_Size() int {
	return xxx_messageInfo_CampaignDraftErrorEnum.Size(m)
}
func (m *CampaignDraftErrorEnum) XXX_DiscardUnknown() {
	xxx_messageInfo_CampaignDraftErrorEnum.DiscardUnknown(m)
}

var xxx_messageInfo_CampaignDraftErrorEnum proto.InternalMessageInfo

func init() {
	proto.RegisterEnum("google.ads.googleads.v2.errors.CampaignDraftErrorEnum_CampaignDraftError", CampaignDraftErrorEnum_CampaignDraftError_name, CampaignDraftErrorEnum_CampaignDraftError_value)
	proto.RegisterType((*CampaignDraftErrorEnum)(nil), "google.ads.googleads.v2.errors.CampaignDraftErrorEnum")
}

func init() {
	proto.RegisterFile("google/ads/googleads/v2/errors/campaign_draft_error.proto", fileDescriptor_8970d69daf509448)
}

var fileDescriptor_8970d69daf509448 = []byte{
	// 483 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdf, 0x6e, 0xd3, 0x30,
	0x14, 0xc6, 0x69, 0x0b, 0x1b, 0xb8, 0x17, 0x58, 0x16, 0xe2, 0x9f, 0xc6, 0x84, 0x8a, 0xc4, 0x04,
	0x68, 0x89, 0x28, 0x57, 0x84, 0x2b, 0x37, 0x76, 0x3a, 0x8b, 0xc6, 0x8e, 0x1c, 0x27, 0xfc, 0x51,
	0x25, 0x2b, 0x2c, 0x25, 0xaa, 0xb4, 0xc6, 0x55, 0x52, 0xf6, 0x40, 0x5c, 0x22, 0xf1, 0x1e, 0x88,
	0x47, 0xe1, 0x92, 0x27, 0x40, 0x89, 0xdb, 0xdc, 0x8c, 0xc1, 0xae, 0x72, 0x74, 0xf2, 0xfb, 0xce,
	0xf9, 0x8e, 0xfc, 0x81, 0xd7, 0x85, 0x31, 0xc5, 0xd9, 0xc2, 0xcd, 0xf2, 0xda, 0xb5, 0x65, 0x53,
	0x9d, 0x8f, 0xdd, 0x45, 0x55, 0x99, 0xaa, 0x76, 0x4f, 0xb3, 0xd5, 0x3a, 0x5b, 0x16, 0xa5, 0xce,
	0xab, 0xec, 0xf3, 0x46, 0xb7, 0x5d, 0x67, 0x5d, 0x99, 0x8d, 0x41, 0x87, 0x96, 0x77, 0xb2, 0xbc,
	0x76, 0x3a, 0xa9, 0x73, 0x3e, 0x76, 0xac, 0xf4, 0xe1, 0xc1, 0x6e, 0xf4, 0x7a, 0xe9, 0x66, 0x65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