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

package hype_train

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import change "code.justin.tv/eventbus/schema/pkg/eventbus/change"
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

// HypeTrainUpdate is triggered when hype train progress is made on a channel.
type HypeTrainUpdate 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 current level.
	Level *change.Int64Change `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
	// The total points contributed.
	Total *change.Int64Change `protobuf:"bytes,4,opt,name=total,proto3" json:"total,omitempty"`
	// The number of points required to reach the next level.
	Goal *change.Int64Change `protobuf:"bytes,5,opt,name=goal,proto3" json:"goal,omitempty"`
	// The most recent contribution.
	LastContribution *ContributionChange `protobuf:"bytes,6,opt,name=last_contribution,json=lastContribution,proto3" json:"last_contribution,omitempty"`
	// The contributors with the most points contributed.
	TopContributions []*ContributionChange `protobuf:"bytes,7,rep,name=top_contributions,json=topContributions,proto3" json:"top_contributions,omitempty"`
	// The time at which the hype train started.
	StartedAt *timestamp.Timestamp `protobuf:"bytes,8,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            *change.TimestampChange `protobuf:"bytes,9,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 *HypeTrainUpdate) Reset()         { *m = HypeTrainUpdate{} }
func (m *HypeTrainUpdate) String() string { return proto.CompactTextString(m) }
func (*HypeTrainUpdate) ProtoMessage()    {}
func (*HypeTrainUpdate) Descriptor() ([]byte, []int) {
	return fileDescriptor_update_cc59c5ff31204807, []int{0}
}
func (m *HypeTrainUpdate) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HypeTrainUpdate.Unmarshal(m, b)
}
func (m *HypeTrainUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HypeTrainUpdate.Marshal(b, m, deterministic)
}
func (dst *HypeTrainUpdate) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HypeTrainUpdate.Merge(dst, src)
}
func (m *HypeTrainUpdate) XXX_Size() int {
	return xxx_messageInfo_HypeTrainUpdate.Size(m)
}
func (m *HypeTrainUpdate) XXX_DiscardUnknown() {
	xxx_messageInfo_HypeTrainUpdate.DiscardUnknown(m)
}

var xxx_messageInfo_HypeTrainUpdate proto.InternalMessageInfo

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

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

func (m *HypeTrainUpdate) GetLevel() *change.Int64Change {
	if m != nil {
		return m.Level
	}
	return nil
}

func (m *HypeTrainUpdate) GetTotal() *change.Int64Change {
	if m != nil {
		return m.Total
	}
	return nil
}

func (m *HypeTrainUpdate) GetGoal() *change.Int64Change {
	if m != nil {
		return m.Goal
	}
	return nil
}

func (m *HypeTrainUpdate) GetLastContribution() *ContributionChange {
	if m != nil {
		return m.LastContribution
	}
	return nil
}

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

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

func (m *HypeTrainUpdate) GetExpiresAt() *change.TimestampChange {
	if m != nil {
		return m.ExpiresAt
	}
	return nil
}

// ContributionChange represents a changed contribution and follows the 'change.proto' scheme.
type ContributionChange struct {
	Updated              bool          `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`
	Value                *Contribution `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	HasOldValue          bool          `protobuf:"varint,3,opt,name=has_old_value,json=hasOldValue,proto3" json:"has_old_value,omitempty"`
	OldValue             *Contribution `protobuf:"bytes,4,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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

var xxx_messageInfo_ContributionChange proto.InternalMessageInfo

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

func (m *ContributionChange) GetValue() *Contribution {
	if m != nil {
		return m.Value
	}
	return nil
}

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

func (m *ContributionChange) GetOldValue() *Contribution {
	if m != nil {
		return m.OldValue
	}
	return nil
}

func init() {
	proto.RegisterType((*HypeTrainUpdate)(nil), "hype_train.HypeTrainUpdate")
	proto.RegisterType((*ContributionChange)(nil), "hype_train.ContributionChange")
}

func init() { proto.RegisterFile("hype_train/update.proto", fileDescriptor_update_cc59c5ff31204807) }

var fileDescriptor_update_cc59c5ff31204807 = []byte{
	// 417 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcb, 0x8f, 0xd3, 0x30,
	0x10, 0xc6, 0xd5, 0xd7, 0x6e, 0x33, 0xe5, 0xb5, 0x46, 0x08, 0xab, 0x42, 0x50, 0xf5, 0xb4, 0x27,
	0x17, 0x95, 0x87, 0xc4, 0x09, 0x2d, 0x7b, 0x61, 0xc5, 0x01, 0x29, 0xda, 0xe5, 0xc0, 0x25, 0x72,
	0xea, 0xa1, 0xb5, 0xe4, 0x8d, 0x2d, 0x7b, 0x52, 0xb1, 0x47, 0xfe, 0x2c, 0xfe, 0x3b, 0x14, 0xc7,
	0xdd, 0x06, 0x55, 0x88, 0xde, 0x62, 0xcf, 0xf7, 0xfb, 0xf2, 0x65, 0x66, 0x02, 0xcf, 0x37, 0x77,
	0x0e, 0x0b, 0xf2, 0x52, 0x57, 0x8b, 0xda, 0x29, 0x49, 0x28, 0x9c, 0xb7, 0x64, 0x19, 0xec, 0x0b,
	0xd3, 0x67, 0xb8, 0xc5, 0x8a, 0xca, 0x3a, 0x2c, 0x56, 0x1b, 0x59, 0xad, 0x93, 0x64, 0xfa, 0x6a,
	0x6d, 0xed, 0xda, 0xe0, 0x22, 0x9e, 0xca, 0xfa, 0xc7, 0x82, 0xf4, 0x2d, 0x06, 0x92, 0xb7, 0x2e,
	0x09, 0xba, 0xe6, 0x2b, 0x8f, 0xf7, 0xe6, 0xf3, 0x5f,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