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

package boost_order

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

// BoostOrderUpdate triggers when a Boost Order is updated.
type BoostOrderUpdate struct {
	// The unique identifier of the Boost Order
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of Boost Order (whether paid or earned)
	Type OrderType `protobuf:"varint,2,opt,name=type,proto3,enum=boost_order.OrderType" json:"type,omitempty"`
	// The state of the Boost Order
	State OrderState `protobuf:"varint,3,opt,name=state,proto3,enum=boost_order.OrderState" json:"state,omitempty"`
	// The current progress of the Boost Order being fulfilled
	GoalProgress *change.Int64Change `protobuf:"bytes,4,opt,name=goal_progress,json=goalProgress,proto3" json:"goal_progress,omitempty"`
	// The the total progress required for a Boost Order to be fulfilled
	GoalTarget *change.Int64Change `protobuf:"bytes,5,opt,name=goal_target,json=goalTarget,proto3" json:"goal_target,omitempty"`
	// Twitch User ID of who the Boost Order is for
	BoostOwnerId string `protobuf:"bytes,6,opt,name=boost_owner_id,json=boostOwnerId,proto3" json:"boost_owner_id,omitempty"`
	// Twitch User ID Identifier of who made the Boost Order (only applicable for paid)
	PurchaserId string `protobuf:"bytes,7,opt,name=purchaser_id,json=purchaserId,proto3" json:"purchaser_id,omitempty"`
	// The total quantity of Boosts within the Boost Order
	Quantity int64 `protobuf:"varint,8,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// The time at which the Boost Order was created
	OpenedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=opened_at,json=openedAt,proto3" json:"opened_at,omitempty"`
	// The time at which the Boost Order was fulfilled
	FulfilledAt          *timestamp.Timestamp `protobuf:"bytes,10,opt,name=fulfilled_at,json=fulfilledAt,proto3" json:"fulfilled_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

var xxx_messageInfo_BoostOrderUpdate proto.InternalMessageInfo

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

func (m *BoostOrderUpdate) GetType() OrderType {
	if m != nil {
		return m.Type
	}
	return OrderType_ORDER_TYPE_INVALID
}

func (m *BoostOrderUpdate) GetState() OrderState {
	if m != nil {
		return m.State
	}
	return OrderState_ORDER_STATE_INVALID
}

func (m *BoostOrderUpdate) GetGoalProgress() *change.Int64Change {
	if m != nil {
		return m.GoalProgress
	}
	return nil
}

func (m *BoostOrderUpdate) GetGoalTarget() *change.Int64Change {
	if m != nil {
		return m.GoalTarget
	}
	return nil
}

func (m *BoostOrderUpdate) GetBoostOwnerId() string {
	if m != nil {
		return m.BoostOwnerId
	}
	return ""
}

func (m *BoostOrderUpdate) GetPurchaserId() string {
	if m != nil {
		return m.PurchaserId
	}
	return ""
}

func (m *BoostOrderUpdate) GetQuantity() int64 {
	if m != nil {
		return m.Quantity
	}
	return 0
}

func (m *BoostOrderUpdate) GetOpenedAt() *timestamp.Timestamp {
	if m != nil {
		return m.OpenedAt
	}
	return nil
}

func (m *BoostOrderUpdate) GetFulfilledAt() *timestamp.Timestamp {
	if m != nil {
		return m.FulfilledAt
	}
	return nil
}

func init() {
	proto.RegisterType((*BoostOrderUpdate)(nil), "boost_order.BoostOrderUpdate")
}

func init() { proto.RegisterFile("boost_order/update.proto", fileDescriptor_update_d175f546158bb168) }

var fileDescriptor_update_d175f546158bb168 = []byte{
	// 367 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6b, 0xe3, 0x30,
	0x10, 0xc5, 0x71, 0xfe, 0x6d, 0x22, 0x3b, 0x61, 0x11, 0xec, 0xae, 0x30, 0x0b, 0xeb, 0x2d, 0x3d,
	0x98, 0x42, 0x65, 0x48, 0x4b, 0x7b, 0xca, 0x21, 0xe9, 0x29, 0xa7, 0x14, 0x37, 0xbd, 0xf4, 0x62,
	0xe4, 0x48, 0x71, 0x0c, 0x8e, 0xa5, 0xca, 0xe3, 0x96, 0x7c, 0xd7, 0x7e, 0x98, 0x62, 0x39, 0x36,
	0x29, 0x3d, 0xb4, 0x37, 0xcf, 0x9b, 0xdf, 0x7b, 0x9e, 0x61, 0x84, 0x48, 0x2c, 0x65, 0x01, 0x91,
	0xd4, 0x5c, 0xe8, 0xa0, 0x54, 0x9c, 0x81, 0xa0, 0x4a, 0x4b, 0x90, 0xd8, 0x3e, 0xe9, 0xb8, 0x1f,
	0xb0, 0x8d, 0x16, 0x2d, 0x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