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

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

var fileDescriptor_update_4b66afab7816c42c = []byte{
	// 391 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdf, 0x8a, 0xd4, 0x30,
	0x14, 0xc6, 0xe9, 0xcc, 0xee, 0xda, 0x49, 0xbb, 0x83, 0x04, 0xff, 0x84, 0x22, 0x58, 0xc5, 0x8b,
	0x22, 0x6c, 0x0a, 0xab, 0x28, 0x08, 0x7b, 0x31, 0xeb, 0xd5, 0x5c, 0xad, 0xd4, 0xf1, 0xc6, 0x9b,
	0x92, 0x4e, 0xce, 0x74, 0x0a, 0x9d, 0x26, 0x26, 0xa7, 0xca, 0xbc, 0x8a, 0xef, 0xe1, 0x4b, 0xf9,
	0x14, 0xd2, 0xf4, 0x0f, 0x23, 0x5e, 0xb8, 0x77, 0xcd, 0x97, 0xdf, 0x77, 0xce, 0x77, 0x7a, 0x42,
	0x58, 0xa1, 0x94, 0xc5, 0x5c, 0x19, 0x09, 0x26, 0x6d, 0xb5, 0x14, 0x08, 0x5c, 0x1b, 0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