// 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 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_f867ea877b9d38fe, []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"`
	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_f867ea877b9d38fe, []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
}

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

var fileDescriptor_create_f867ea877b9d38fe = []byte{
	// 389 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcd, 0x6f, 0xd3, 0x30,
	0x14, 0x27, 0x69, 0xd7, 0xb1, 0xc7, 0x34, 0x32, 0x83, 0x98, 0xa9, 0xf8, 0x88, 0x7a, 0xaa, 0x38,
	0xa4, 0x68, 0x9c, 0x38, 0x36, 0x61, 0x12, 0x91, 0x50, 0x37, 0xa5, 0x29, 0x12, 0x5c, 0x22, 0xa7,
	0x31, 0xc5, 0x52, 0x5a, 0x1b, 0xfb, 0x45, 0x22, 0x7f, 0x3d, 0x28, 0x4e, 0xab, 0xa6, 0x14, 0xd8,
	0xcd, 0xfe, 0x7d, 0xc9, 0xef, 0xf7, 0x0c, 0x57, 0xdf, 0x6b, 0xc5, 0x33, 0xd4, 0x4c, 0x6c, 0x26,
	0x4b, 0xcd, 0x19, 0xf2, 0x40, 0x69, 0x89, 0x92, 0xc0, 0x9e, 0x18, 0xbe, 0x5e, 0x49, 0xb9, 0x2a,
	0xf9, 0xc4, 0x32, 0x79, 0xf5, 0x6d, 0x82, 0x62, 0xcd, 0x0d, 0xb2, 0xb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