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

package entitlement_badge

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

// EntitlementBadgeUpdate triggers when a user's badge entitlement's ends_at value changes.
// ends_at is the only possible value that can change.
type EntitlementBadgeUpdate struct {
	// Entitlement ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Twitch User ID of the user who owns this entitlement.
	OwnerUserId string `protobuf:"bytes,2,opt,name=owner_user_id,json=ownerUserId,proto3" json:"owner_user_id,omitempty"`
	// The feature the entitlement came from.
	Source Source `protobuf:"varint,3,opt,name=source,proto3,enum=entitlement_badge.Source" json:"source,omitempty"`
	// ID for the badge the user is entitled for.
	ItemId string `protobuf:"bytes,4,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	// Twitch User ID of the broadcaster who created and owns this badge.
	BadgeOwnerUserId string `protobuf:"bytes,5,opt,name=badge_owner_user_id,json=badgeOwnerUserId,proto3" json:"badge_owner_user_id,omitempty"`
	// Identifier for the origin object that caused this entitlement.
	// It is a reference to the broader context mostly used for deletion/modifications of entitlements that came from the same context.
	OriginId string `protobuf:"bytes,6,opt,name=origin_id,json=originId,proto3" json:"origin_id,omitempty"`
	// When the entitlement starts.
	StartsAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
	// When the entitlement expires. This value can be updated.
	EndsAt *change.TimestampChange `protobuf:"bytes,8,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
	// Entitlement type is an additional logical grouping of badges.
	Type                 string   `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

var xxx_messageInfo_EntitlementBadgeUpdate proto.InternalMessageInfo

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

func (m *EntitlementBadgeUpdate) GetOwnerUserId() string {
	if m != nil {
		return m.OwnerUserId
	}
	return ""
}

func (m *EntitlementBadgeUpdate) GetSource() Source {
	if m != nil {
		return m.Source
	}
	return Source_SOURCE_INVALID
}

func (m *EntitlementBadgeUpdate) GetItemId() string {
	if m != nil {
		return m.ItemId
	}
	return ""
}

func (m *EntitlementBadgeUpdate) GetBadgeOwnerUserId() string {
	if m != nil {
		return m.BadgeOwnerUserId
	}
	return ""
}

func (m *EntitlementBadgeUpdate) GetOriginId() string {
	if m != nil {
		return m.OriginId
	}
	return ""
}

func (m *EntitlementBadgeUpdate) GetStartsAt() *timestamp.Timestamp {
	if m != nil {
		return m.StartsAt
	}
	return nil
}

func (m *EntitlementBadgeUpdate) GetEndsAt() *change.TimestampChange {
	if m != nil {
		return m.EndsAt
	}
	return nil
}

func (m *EntitlementBadgeUpdate) GetType() string {
	if m != nil {
		return m.Type
	}
	return ""
}

func init() {
	proto.RegisterType((*EntitlementBadgeUpdate)(nil), "entitlement_badge.EntitlementBadgeUpdate")
}

func init() {
	proto.RegisterFile("entitlement_badge/update.proto", fileDescriptor_update_d2120e08163028d3)
}

var fileDescriptor_update_d2120e08163028d3 = []byte{
	// 356 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0x6e, 0x9b, 0x40,
	0x10, 0xc6, 0x05, 0x75, 0xb1, 0x59, 0xcb, 0x56, 0xbd, 0xee, 0x1f, 0xea, 0x4a, 0x2d, 0xf2, 0xc9,
	0x17, 0x2f, 0xaa, 0x7b, 0xa8, 0xda, 0x9b, 0x5d, 0xf5, 0xe0, 0x53, 0x24, 0x12, 0x5f, 0x72, 0x41,
	0xc0, 0x4e, 0xc8, 0x4a, 0x86, 0x45, 0xcb, 0x90, 0x28, 0xaf, 0x92, 0xf7, 0xc8, 0xf3, 0x25, 0x62,
	0x30, 0x4e, 0x22, 0xe7, 0xc6, 0x7c, 0xf3, 0xfd, 0x66, 0x86, 0x4f, 0xcb, 0xbe, 0x43, 0x81, 0x0a,
	0xf7, 0x90, 0x43, 0x81, 0x51, 0x12, 0xcb, 0x0c, 0x82, 0xba, 0x94, 0x31, 0x82, 0x28, 0x8d, 0x46,
	0xcd, 0x27, 0x27, 0xfd, 0xd9, 0x1b, 0x48, 0x6a, 0xe0, 0x88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