// Code generated by protoc-gen-go. DO NOT EDIT.
// source: promo_campaign/update.proto

package promo_campaign

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import change "code.justin.tv/eventbus/schema/pkg/eventbus/change"
import _ "code.justin.tv/eventbus/schema/pkg/eventbus/owner"

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

// PromotionType has the different types of promotional campaigns that can be run.
type PromotionType int32

const (
	PromotionType_PROMOTION_TYPE_INVALID         PromotionType = 0
	PromotionType_PROMOTION_TYPE_GAMEPLAY_PLUS   PromotionType = 1
	PromotionType_PROMOTION_TYPE_COMMUNITY_BOOST PromotionType = 2
	PromotionType_PROMOTION_TYPE_NEW_PARTNER     PromotionType = 3
	PromotionType_PROMOTION_TYPE_HIGH_AD_DENSITY PromotionType = 4
)

var PromotionType_name = map[int32]string{
	0: "PROMOTION_TYPE_INVALID",
	1: "PROMOTION_TYPE_GAMEPLAY_PLUS",
	2: "PROMOTION_TYPE_COMMUNITY_BOOST",
	3: "PROMOTION_TYPE_NEW_PARTNER",
	4: "PROMOTION_TYPE_HIGH_AD_DENSITY",
}
var PromotionType_value = map[string]int32{
	"PROMOTION_TYPE_INVALID":         0,
	"PROMOTION_TYPE_GAMEPLAY_PLUS":   1,
	"PROMOTION_TYPE_COMMUNITY_BOOST": 2,
	"PROMOTION_TYPE_NEW_PARTNER":     3,
	"PROMOTION_TYPE_HIGH_AD_DENSITY": 4,
}

func (x PromotionType) String() string {
	return proto.EnumName(PromotionType_name, int32(x))
}
func (PromotionType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_update_ec5adefe4c68ed82, []int{0}
}

// PromoCampaignUpdate triggers when new progress is attributed to a campaign.
type PromoCampaignUpdate struct {
	// The promotion campaign id (Format as Version 4 UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The progress of the metric the campaign is targeting. It increases as the campaign delivers.
	GoalProgress *change.Int64Change `protobuf:"bytes,2,opt,name=goal_progress,json=goalProgress,proto3" json:"goal_progress,omitempty"`
	// The number of units to deliver for this campaign
	GoalTarget *change.Int64Change `protobuf:"bytes,3,opt,name=goal_target,json=goalTarget,proto3" json:"goal_target,omitempty"`
	// The type of promotional campaign
	PromotionType        PromotionType `protobuf:"varint,4,opt,name=promotion_type,json=promotionType,proto3,enum=promo_campaign.PromotionType" json:"promotion_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (m *PromoCampaignUpdate) Reset()         { *m = PromoCampaignUpdate{} }
func (m *PromoCampaignUpdate) String() string { return proto.CompactTextString(m) }
func (*PromoCampaignUpdate) ProtoMessage()    {}
func (*PromoCampaignUpdate) Descriptor() ([]byte, []int) {
	return fileDescriptor_update_ec5adefe4c68ed82, []int{0}
}
func (m *PromoCampaignUpdate) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_PromoCampaignUpdate.Unmarshal(m, b)
}
func (m *PromoCampaignUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_PromoCampaignUpdate.Marshal(b, m, deterministic)
}
func (dst *PromoCampaignUpdate) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PromoCampaignUpdate.Merge(dst, src)
}
func (m *PromoCampaignUpdate) XXX_Size() int {
	return xxx_messageInfo_PromoCampaignUpdate.Size(m)
}
func (m *PromoCampaignUpdate) XXX_DiscardUnknown() {
	xxx_messageInfo_PromoCampaignUpdate.DiscardUnknown(m)
}

var xxx_messageInfo_PromoCampaignUpdate proto.InternalMessageInfo

func (m *PromoCampaignUpdate) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

func (m *PromoCampaignUpdate) GetGoalProgress() *change.Int64Change {
	if m != nil {
		return m.GoalProgress
	}
	return nil
}

func (m *PromoCampaignUpdate) GetGoalTarget() *change.Int64Change {
	if m != nil {
		return m.GoalTarget
	}
	return nil
}

func (m *PromoCampaignUpdate) GetPromotionType() PromotionType {
	if m != nil {
		return m.PromotionType
	}
	return PromotionType_PROMOTION_TYPE_INVALID
}

func init() {
	proto.RegisterType((*PromoCampaignUpdate)(nil), "promo_campaign.PromoCampaignUpdate")
	proto.RegisterEnum("promo_campaign.PromotionType", PromotionType_name, PromotionType_value)
}

func init() { proto.RegisterFile("promo_campaign/update.proto", fileDescriptor_update_ec5adefe4c68ed82) }

var fileDescriptor_update_ec5adefe4c68ed82 = []byte{
	// 361 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcd, 0xaa, 0xda, 0x40,
	0x14, 0xc7, 0x9b, 0x28, 0xa5, 0x1d, 0x3f, 0x08, 0xd3, 0x0f, 0x42, 0x6a, 0x25, 0xb8, 0x92, 0x42,
	0x23, 0xd8, 0xd2, 0x45, 0xa1, 0x8b, 0x68, 0x82, 0x06, 0x4c, 0x32, 0xc4, 0xb1, 0x25, 0xdd, 0x0c,
	0xa3, 0x19, 0xd2, 0x40, 0xcd, 0x0c, 0xc9, 0xd8, 0xe2, 0xab, 0xf4, 0x3d, 0x7c, 0xba, 0x6e, 0x2e,
	0xc6, 0x78, 0xb9, 0x86, 0xbb, 0xb8, 0xbb, 0x99, 0x73, 0x7e, 0xff, 0xdf, 0xe1, 0x70, 0xc0, 0x3b,
	0x51, 0xf0, 0x3d, 0x27, 0x3b, 0xba, 0x17, 0x34, 0x4b, 0xf3, 0xc9, 0x41, 0x24, 0x54, 0x32, 0x4b,
	0x14, 0x5c, 0x72, 0xd8, 0xbf, 0x6d, 0x1a, 0x6f, 0xd8, 0x1f, 0x96, 0xcb, 0xed, 0xa1, 0x9c, 0xec,
	0x7e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