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

package entitlement_subscription

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

// EntitlementSubscriptionDelete triggers when a user's subscription entitlement's expires or is canceled.
// Note that this might represent a canceled future subscription, i.e., a subscription that never started.
type EntitlementSubscriptionDelete 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 *timestamp.Timestamp `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 *EntitlementSubscriptionDelete) Reset()         { *m = EntitlementSubscriptionDelete{} }
func (m *EntitlementSubscriptionDelete) String() string { return proto.CompactTextString(m) }
func (*EntitlementSubscriptionDelete) ProtoMessage()    {}
func (*EntitlementSubscriptionDelete) Descriptor() ([]byte, []int) {
	return fileDescriptor_delete_45d5302bce26a369, []int{0}
}
func (m *EntitlementSubscriptionDelete) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_EntitlementSubscriptionDelete.Unmarshal(m, b)
}
func (m *EntitlementSubscriptionDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_EntitlementSubscriptionDelete.Marshal(b, m, deterministic)
}
func (dst *EntitlementSubscriptionDelete) XXX_Merge(src proto.Message) {
	xxx_messageInfo_EntitlementSubscriptionDelete.Merge(dst, src)
}
func (m *EntitlementSubscriptionDelete) XXX_Size() int {
	return xxx_messageInfo_EntitlementSubscriptionDelete.Size(m)
}
func (m *EntitlementSubscriptionDelete) XXX_DiscardUnknown() {
	xxx_messageInfo_EntitlementSubscriptionDelete.DiscardUnknown(m)
}

var xxx_messageInfo_EntitlementSubscriptionDelete proto.InternalMessageInfo

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

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

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

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

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

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

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

func (m *EntitlementSubscriptionDelete) GetEndsAt() *timestamp.Timestamp {
	if m != nil {
		return m.EndsAt
	}
	return nil
}

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

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

func init() {
	proto.RegisterFile("entitlement_subscription/delete.proto", fileDescriptor_delete_45d5302bce26a369)
}

var fileDescriptor_delete_45d5302bce26a369 = []byte{
	// 324 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x6b, 0xc2, 0x40,
	0x10, 0x85, 0x89, 0x5a, 0x4d, 0x46, 0xea, 0x61, 0xa1, 0x10, 0x52, 0xa4, 0x22, 0x14, 0xa4, 0x87,
	0x48, 0xf5, 0xd0, 0x9b, 0x60, 0x69, 0x0f, 0x9e, 0x5a, 0x52, 0x7b, 0xe9, 0x25, 0x44, 0x77, 0x94,
	0x85, 0x64, 0x77, 0xd9, 0x9d, 0x50, 0xfc, 0x57, 0xfd, 0x89, 0xc5, 0x8d, 0x69, 0xed, 0x21, 0xf4,
	0x98, 0x99, 0xef, 0xbd, 0x79, 0xbc, 0x2c, 0xdc, 0xa2, 0x24, 0x41, 0x39, 0x16, 0x28, 0x29, 0xb5,
	0xe5, 0xc6, 0x6e, 0x8d, 0xd0, 0x24, 0x94, 0x9c, 0x72, 0xcc, 0x91, 0x30, 0xd6, 0x46, 0x91, 0x62,
	0x61, 0x13, 0x16, 0x35, 0x1b, 0x6c, 0x0d, 0x66, 0xb5, 0x41, 0x74, 0xb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