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

var fileDescriptor_update_8335204569d28bda = []byte{
	// 379 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4f, 0x4b, 0xeb, 0x40,
	0x14, 0xc5, 0x49, 0xff, 0xa4, 0xed, 0x2d, 0xaf, 0xf0, 0xe6, 0xc1, 0x33, 0x14, 0xc4, 0xd2, 0x8d,
	0xed, 0x26, 0x85, 0xaa, 0x0b, 0x71, 0x21, 0xda, 0x95, 0x0b, 0xa9, 0x44, 0x5b, 0xc1, 0xcd, 0x30,
	0xcd, 0x8c, 0x6d, 0x20, 0xc9, 0x84, 0x99, 0x89, 0x7e, 0x05, 0xbf, 0xb5, 0x92, 0x3b, 0x4d, 0xab,
	0xe0, 0x22, 0xe8, 0xf2, 0xce, 0x9c, 0xfc, 0xce, 0xbd, 0xe7, 0x66, 0xe0, 0x34, 0xdc, 0xb0, 0x34,
	0x15, 0x31, 0xcd, 0x64, 0x94, 0x1a, 0x4d, 0xc3, 0x5c, 0x1b, 0x99, 0x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