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

// 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_60301f6c1905ebe5, []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_60301f6c1905ebe5, []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_60301f6c1905ebe5) }

var fileDescriptor_update_60301f6c1905ebe5 = []byte{
	// 332 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x6b, 0xf2, 0x30,
	0x1c, 0xc6, 0xdf, 0x54, 0x79, 0x61, 0x71, 0x4a, 0xc9, 0xd8, 0x28, 0xce, 0x49, 0xf1, 0x24, 0x3b,
	0x54, 0x70, 0x63, 0xb7, 0x1d, 0xaa, 0x2d, 0x1a, 0xb0, 0x6d, 0xa8, 0x71, 0xa3, 0xbb, 0x84, 0xaa,
	0xa1, 0x2b, 0xcc, 0x26, 0xd4, 0x38, 0xf0, 0x83, 0xed, 0x63, 0xed, 0x3b, 0x0c, 0xbb, 0x0a, 0xb3,
	0xec, 0xb0, 0x5b, 0xc2, 0xff, 0xf7, 0xfc, 0xe0, 0xe1, 0x81, 0xd7, 0x32, 0x17, 0x1b, 0xc1, 0x56,
	0xf1, 0x46, 0xc6, 0x69, 0x92, 0x0d, 0x76, 0x72, 0x1d, 0x2b, 0x6e, 0xc9, 0x5c, 0x28, 0x81, 0x5a,
	0xa7, 0xc7, 0xf6, 0x25, 0x7f, 0xe7, 0x99, 0x5a, 0xee, 0xb6, 0x83, 0xd5, 0x6b, 0x9c, 0x25, 0x25,
	0xd6, 0xfb, 0x04, 0xf0, 0x82, 0x1c, 0xc8, 0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