// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hype_train/create.proto

package hype_train

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

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

// ContributionType is the type of contribution made to a hype train.
type ContributionType int32

const (
	ContributionType_CONTRIBUTION_TYPE_INVALID      ContributionType = 0
	ContributionType_CONTRIBUTION_TYPE_BITS         ContributionType = 1
	ContributionType_CONTRIBUTION_TYPE_SUBSCRIPTION ContributionType = 2
)

var ContributionType_name = map[int32]string{
	0: "CONTRIBUTION_TYPE_INVALID",
	1: "CONTRIBUTION_TYPE_BITS",
	2: "CONTRIBUTION_TYPE_SUBSCRIPTION",
}
var ContributionType_value = map[string]int32{
	"CONTRIBUTION_TYPE_INVALID":      0,
	"CONTRIBUTION_TYPE_BITS":         1,
	"CONTRIBUTION_TYPE_SUBSCRIPTION": 2,
}

func (x ContributionType) String() string {
	return proto.EnumName(ContributionType_name, int32(x))
}
func (ContributionType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_create_b8de259a4374bcd5, []int{0}
}

// HypeTrainCreate is triggered when a hype train starts on a channel.
type HypeTrainCreate struct {
	// The id of the hype train.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The user id of the broadcaster.
	BroadcasterUserId string `protobuf:"bytes,2,opt,name=broadcaster_user_id,json=broadcasterUserId,proto3" json:"broadcaster_user_id,omitempty"`
	// The total points contributed.
	Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// The number of points required to reach the next level.
	Goal int64 `protobuf:"varint,4,opt,name=goal,proto3" json:"goal,omitempty"`
	// The most recent contribution.
	LastContribution *Contribution `protobuf:"bytes,5,opt,name=last_contribution,json=lastContribution,proto3" json:"last_contribution,omitempty"`
	// The contributors with the most points contributed.
	TopContributions []*Contribution `protobuf:"bytes,6,rep,name=top_contributions,json=topContributions,proto3" json:"top_contributions,omitempty"`
	// The time at which the hype train started.
	StartedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// The time at which the hype train expires. The expiration is extended when
	// the hype train reaches a new level.
	ExpiresAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// The number of points accumulated for the current level only.
	Progress             int64    `protobuf:"varint,9,opt,name=progress,proto3" json:"progress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

var xxx_messageInfo_HypeTrainCreate proto.InternalMessageInfo

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

func (m *HypeTrainCreate) GetBroadcasterUserId() string {
	if m != nil {
		return m.BroadcasterUserId
	}
	return ""
}

func (m *HypeTrainCreate) GetTotal() int64 {
	if m != nil {
		return m.Total
	}
	return 0
}

func (m *HypeTrainCreate) GetGoal() int64 {
	if m != nil {
		return m.Goal
	}
	return 0
}

func (m *HypeTrainCreate) GetLastContribution() *Contribution {
	if m != nil {
		return m.LastContribution
	}
	return nil
}

func (m *HypeTrainCreate) GetTopContributions() []*Contribution {
	if m != nil {
		return m.TopContributions
	}
	return nil
}

func (m *HypeTrainCreate) GetStartedAt() *timestamp.Timestamp {
	if m != nil {
		return m.StartedAt
	}
	return nil
}

func (m *HypeTrainCreate) GetExpiresAt() *timestamp.Timestamp {
	if m != nil {
		return m.ExpiresAt
	}
	return nil
}

func (m *HypeTrainCreate) GetProgress() int64 {
	if m != nil {
		return m.Progress
	}
	return 0
}

// Contribution by a viewer to the hype train.
type Contribution struct {
	// The id of the user.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The type of contribution.
	Type ContributionType `protobuf:"varint,2,opt,name=type,proto3,enum=hype_train.ContributionType" json:"type,omitempty"`
	// The total contributed.
	Total                int64    `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

var xxx_messageInfo_Contribution proto.InternalMessageInfo

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

func (m *Contribution) GetType() ContributionType {
	if m != nil {
		return m.Type
	}
	return ContributionType_CONTRIBUTION_TYPE_INVALID
}

func (m *Contribution) GetTotal() int64 {
	if m != nil {
		return m.Total
	}
	return 0
}

func init() {
	proto.RegisterType((*HypeTrainCreate)(nil), "hype_train.HypeTrainCreate")
	proto.RegisterType((*Contribution)(nil), "hype_train.Contribution")
	proto.RegisterEnum("hype_train.ContributionType", ContributionType_name, ContributionType_value)
}

func init() { proto.RegisterFile("hype_train/create.proto", fileDescriptor_create_b8de259a4374bcd5) }

var fileDescriptor_create_b8de259a4374bcd5 = []byte{
	// 440 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcb, 0x6e, 0xd3, 0x4c,
	0x14, 0xfe, 0x73, 0x69, 0xda, 0x9c, 0xbf, 0x14, 0x67, 0xa8, 0xe8, 0x60, 0x71, 0x89, 0xb2, 0x8a,
	0x90, 0x70, 0x50, 0x59, 0xc1, 0x2e, 0x09, 0x95, 0xb0, 0x84, 0xd2, 0xca, 0x71, 0x90, 0x60, 0x63,
	0x8d, 0xed, 0x43, 0xb0, 0x14, 0x7b, 0x86, 0x99, 0x63, 0x20, 0xaf, 0xc2, 0x43, 0xb0, 0xe3, 0xfd,
	0x90, 0xc7, 0x0d, 0x75, 0x29, 0x97, 0x9d, 0xcf, 0xf9, 0x2e, 0xf2, 0xf9, 0xbe, 0x81, 0x93, 0x0f,
	0x5b, 0x85, 0x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