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

package entitlement_subscription

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

// EntitlementSubscriptionUpdate triggers when a user's subscription entitlement's changes.
type EntitlementSubscriptionUpdate 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 Platform from which the entitlement came from.
	Platform Platform `protobuf:"varint,3,opt,name=platform,proto3,enum=entitlement_subscription.Platform" json:"platform,omitempty"`
	// ID for the product the user is entitled to.
	ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// Twitch User ID of the broadcaster who owns the product.
	ProductOwnerUserId string `protobuf:"bytes,5,opt,name=product_owner_user_id,json=productOwnerUserId,proto3" json:"product_owner_user_id,omitempty"`
	// Identifier for the origin object that caused this entitlement.
	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.
	EndsAt *change.TimestampChange `protobuf:"bytes,8,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
	// The subscription type of this entitlement.
	Type                 SubscriptionType `protobuf:"varint,9,opt,name=type,proto3,enum=entitlement_subscription.SubscriptionType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

var xxx_messageInfo_EntitlementSubscriptionUpdate proto.InternalMessageInfo

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

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

func (m *EntitlementSubscriptionUpdate) GetPlatform() Platform {
	if m != nil {
		return m.Platform
	}
	return Platform_PLATFORM_INVALID
}

func (m *EntitlementSubscriptionUpdate) GetProductId() string {
	if m != nil {
		return m.ProductId
	}
	return ""
}

func (m *EntitlementSubscriptionUpdate) GetProductOwnerUserId() string {
	if m != nil {
		return m.ProductOwnerUserId
	}
	return ""
}

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

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

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

func (m *EntitlementSubscriptionUpdate) GetType() SubscriptionType {
	if m != nil {
		return m.Type
	}
	return SubscriptionType_SUBSCRIPTION_TYPE_INVALID
}

func init() {
	proto.RegisterType((*EntitlementSubscriptionUpdate)(nil), "entitlement_subscription.EntitlementSubscriptionUpdate")
}

func init() {
	proto.RegisterFile("entitlement_subscription/update.proto", fileDescriptor_update_924c1aba29522519)
}

var fileDescriptor_update_924c1aba29522519 = []byte{
	// 350 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x41, 0x6b, 0xea, 0x40,
	0x18, 0x24, 0xea, 0xd3, 0x64, 0xe5, 0x79, 0x58, 0x10, 0x42, 0x1e, 0xf2, 0x82, 0x50, 0x90, 0x1e,
	0x36, 0xd4, 0x1e, 0x4a, 0x2f, 0x82, 0x2d, 0x3d, 0x78, 0x6a, 0x49, 0xf5, 0xd2, 0x4b, 0x48, 0xb2,
	0x6b, 0xba, 0x60, 0x76, 0x97, 0xdd, 0x2f, 0x2d, 0xfe, 0xb1, 0xfe, 0xbe, 0xe2, 0x26, 0xb1, 0xf6,
	0x90, 0xe3, 0xce, 0x37, 0xf3, 0xcd, 0x64, 0xbe, 0xa0, 0x2b, 0x26, 0x80, 0xc3, 0x81, 0x95, 0x4c,
	0x40, 0x62, 0xaa, 0xcc, 0xe4, 0x9a, 0x2b, 0xe0, 0x52, 0x44, 0x95, 0xa2, 0x29, 0x30, 0xa2, 0xb4,
	0x04, 0x89, 0xfd, 0x2e, 0x5a, 0xd0, 0xbd, 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