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

package channel_points_community_goal

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

// Type is the type of community goal for the event.
type Type int32

const (
	Type_TYPE_INVALID Type = 0
	Type_TYPE_CREATOR Type = 1
	Type_TYPE_BOOST   Type = 2
)

var Type_name = map[int32]string{
	0: "TYPE_INVALID",
	1: "TYPE_CREATOR",
	2: "TYPE_BOOST",
}
var Type_value = map[string]int32{
	"TYPE_INVALID": 0,
	"TYPE_CREATOR": 1,
	"TYPE_BOOST":   2,
}

func (x Type) String() string {
	return proto.EnumName(Type_name, int32(x))
}
func (Type) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_update_b091b32dda7bcf12, []int{0}
}

// Status is the status of the community goal.
type Status int32

const (
	Status_STATUS_INVALID   Status = 0
	Status_STATUS_UNSTARTED Status = 1
	Status_STATUS_STARTED   Status = 2
	Status_STATUS_ENDED     Status = 3
	Status_STATUS_FULFILLED Status = 4
	Status_STATUS_ARCHIVED  Status = 5
)

var Status_name = map[int32]string{
	0: "STATUS_INVALID",
	1: "STATUS_UNSTARTED",
	2: "STATUS_STARTED",
	3: "STATUS_ENDED",
	4: "STATUS_FULFILLED",
	5: "STATUS_ARCHIVED",
}
var Status_value = map[string]int32{
	"STATUS_INVALID":   0,
	"STATUS_UNSTARTED": 1,
	"STATUS_STARTED":   2,
	"STATUS_ENDED":     3,
	"STATUS_FULFILLED": 4,
	"STATUS_ARCHIVED":  5,
}

func (x Status) String() string {
	return proto.EnumName(Status_name, int32(x))
}
func (Status) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_update_b091b32dda7bcf12, []int{1}
}

// ChannelPointsCommunityGoalUpdate triggers when a community goal has been updated.
type ChannelPointsCommunityGoalUpdate struct {
	// The community goal's unique ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The ID of the channel the reward belongs to.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The community goal's type.
	Type Type `protobuf:"varint,3,opt,name=type,proto3,enum=channel_points_community_goal.Type" json:"type,omitempty"`
	// The community goal's status.
	Status *StatusChange `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// The total amount the goal is attempting to reach.
	GoalAmount *change.Int64Change `protobuf:"bytes,5,opt,name=goal_amount,json=goalAmount,proto3" json:"goal_amount,omitempty"`
	// The number of points contributed to the goal so far.
	PointsContributed *change.Int64Change `protobuf:"bytes,6,opt,name=points_contributed,json=pointsContributed,proto3" json:"points_contributed,omitempty"`
	// The title of the goal.
	Title                *change.StringChange `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

var xxx_messageInfo_ChannelPointsCommunityGoalUpdate proto.InternalMessageInfo

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

func (m *ChannelPointsCommunityGoalUpdate) GetUserId() string {
	if m != nil {
		return m.UserId
	}
	return ""
}

func (m *ChannelPointsCommunityGoalUpdate) GetType() Type {
	if m != nil {
		return m.Type
	}
	return Type_TYPE_INVALID
}

func (m *ChannelPointsCommunityGoalUpdate) GetStatus() *StatusChange {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *ChannelPointsCommunityGoalUpdate) GetGoalAmount() *change.Int64Change {
	if m != nil {
		return m.GoalAmount
	}
	return nil
}

func (m *ChannelPointsCommunityGoalUpdate) GetPointsContributed() *change.Int64Change {
	if m != nil {
		return m.PointsContributed
	}
	return nil
}

func (m *ChannelPointsCommunityGoalUpdate) GetTitle() *change.StringChange {
	if m != nil {
		return m.Title
	}
	return nil
}

// An object representing the state change for Status.
type StatusChange struct {
	Updated              bool     `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`
	Value                Status   `protobuf:"varint,2,opt,name=value,proto3,enum=channel_points_community_goal.Status" json:"value,omitempty"`
	HasOldValue          bool     `protobuf:"varint,3,opt,name=has_old_value,json=hasOldValue,proto3" json:"has_old_value,omitempty"`
	OldValue             Status   `protobuf:"varint,4,opt,name=old_value,json=oldValue,proto3,enum=channel_points_community_goal.Status" json:"old_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

var xxx_messageInfo_StatusChange proto.InternalMessageInfo

func (m *StatusChange) GetUpdated() bool {
	if m != nil {
		return m.Updated
	}
	return false
}

func (m *StatusChange) GetValue() Status {
	if m != nil {
		return m.Value
	}
	return Status_STATUS_INVALID
}

func (m *StatusChange) GetHasOldValue() bool {
	if m != nil {
		return m.HasOldValue
	}
	return false
}

func (m *StatusChange) GetOldValue() Status {
	if m != nil {
		return m.OldValue
	}
	return Status_STATUS_INVALID
}

func init() {
	proto.RegisterType((*ChannelPointsCommunityGoalUpdate)(nil), "channel_points_community_goal.ChannelPointsCommunityGoalUpdate")
	proto.RegisterType((*StatusChange)(nil), "channel_points_community_goal.StatusChange")
	proto.RegisterEnum("channel_points_community_goal.Type", Type_name, Type_value)
	proto.RegisterEnum("channel_points_community_goal.Status", Status_name, Status_value)
}

func init() {
	proto.RegisterFile("channel_points_community_goal/update.proto", fileDescriptor_update_b091b32dda7bcf12)
}

var fileDescriptor_update_b091b32dda7bcf12 = []byte{
	// 513 bytes of a gzipped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