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

package channel_points_custom_reward_redemption

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

// ChannelPointsCustomRewardRedemptionUpdate is triggered when a custom reward redemption is updated.
type ChannelPointsCustomRewardRedemptionUpdate struct {
	// The redemption's unique ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The ID of the user who redeemed the reward.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The ID of the channel the reward was redeemed on.
	BroadcasterUserId string `protobuf:"bytes,3,opt,name=broadcaster_user_id,json=broadcasterUserId,proto3" json:"broadcaster_user_id,omitempty"`
	// The reward that was redeemed.
	Reward *CustomReward `protobuf:"bytes,4,opt,name=reward,proto3" json:"reward,omitempty"`
	// The user-supplied input, if any.
	UserInput string `protobuf:"bytes,5,opt,name=user_input,json=userInput,proto3" json:"user_input,omitempty"`
	// The status of the redemption (UNFULFILLED, FULFILLED etc).
	Status *RedemptionStatusChange `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// The time the redemption was redeemed.
	RedeemedAt           *timestamp.Timestamp `protobuf:"bytes,7,opt,name=redeemed_at,json=redeemedAt,proto3" json:"redeemed_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

var xxx_messageInfo_ChannelPointsCustomRewardRedemptionUpdate proto.InternalMessageInfo

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

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

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

func (m *ChannelPointsCustomRewardRedemptionUpdate) GetReward() *CustomReward {
	if m != nil {
		return m.Reward
	}
	return nil
}

func (m *ChannelPointsCustomRewardRedemptionUpdate) GetUserInput() string {
	if m != nil {
		return m.UserInput
	}
	return ""
}

func (m *ChannelPointsCustomRewardRedemptionUpdate) GetStatus() *RedemptionStatusChange {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *ChannelPointsCustomRewardRedemptionUpdate) GetRedeemedAt() *timestamp.Timestamp {
	if m != nil {
		return m.RedeemedAt
	}
	return nil
}

// An object representing the state change for RedemptionStatus.
type RedemptionStatusChange struct {
	Updated              bool             `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`
	Value                RedemptionStatus `protobuf:"varint,2,opt,name=value,proto3,enum=channel_points_custom_reward_redemption.RedemptionStatus" json:"value,omitempty"`
	HasOldValue          bool             `protobuf:"varint,3,opt,name=has_old_value,json=hasOldValue,proto3" json:"has_old_value,omitempty"`
	OldValue             RedemptionStatus `protobuf:"varint,4,opt,name=old_value,json=oldValue,proto3,enum=channel_points_custom_reward_redemption.RedemptionStatus" json:"old_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

var xxx_messageInfo_RedemptionStatusChange proto.InternalMessageInfo

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

func (m *RedemptionStatusChange) GetValue() RedemptionStatus {
	if m != nil {
		return m.Value
	}
	return RedemptionStatus_REDEMPTION_STATUS_INVALID
}

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

func (m *RedemptionStatusChange) GetOldValue() RedemptionStatus {
	if m != nil {
		return m.OldValue
	}
	return RedemptionStatus_REDEMPTION_STATUS_INVALID
}

func init() {
	proto.RegisterType((*ChannelPointsCustomRewardRedemptionUpdate)(nil), "channel_points_custom_reward_redemption.ChannelPointsCustomRewardRedemptionUpdate")
	proto.RegisterType((*RedemptionStatusChange)(nil), "channel_points_custom_reward_redemption.RedemptionStatusChange")
}

func init() {
	proto.RegisterFile("channel_points_custom_reward_redemption/update.proto", fileDescriptor_update_717dfbb16ce99d31)
}

var fileDescriptor_update_717dfbb16ce99d31 = []byte{
	// 416 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcf, 0x6e, 0xd4, 0x30,
	0x10, 0xc6, 0xb5, 0xbb, 0x6d, 0xb6, 0x3b, 0x2b, 0x2a, 0xe1, 0x22, 0x6a, 0xad, 0x84, 0xa8, 0xf6,
	0x42, 0x7b, 0x20, 0x2b, 0x15, 0x38, 0x00, 0x07, 0x04, 0x3d, 0x71, 0x40, 0x45, 0x81, 0x16, 0x89,
	0x8b, 0xe5, 0x8d, 0x87, 0xdd, 0x48, 0xb1, 0x1d, 0xf9, 0x4f, 0xfb, 0x2e, 0xdc, 0x78, 0x08, 0x9e,
	0x0f, 0x94, 0x71, 0xd2, 0x82, 0xc4, 0x21, 0xa2, 0xc7, 0x19, 0x7f, 0xf9, 0x7e, 0x9e, 0xf9, 0x62,
	0x78, 0x5e, 0x6e,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