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

package user_multi_factor_auth

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"

// 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

// The status of 2FA registration.
type Status int32

const (
	Status_STATUS_INVALID  Status = 0
	Status_STATUS_DISABLED Status = 1
	Status_STATUS_ENABLED  Status = 2
)

var Status_name = map[int32]string{
	0: "STATUS_INVALID",
	1: "STATUS_DISABLED",
	2: "STATUS_ENABLED",
}
var Status_value = map[string]int32{
	"STATUS_INVALID":  0,
	"STATUS_DISABLED": 1,
	"STATUS_ENABLED":  2,
}

func (x Status) String() string {
	return proto.EnumName(Status_name, int32(x))
}
func (Status) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_update_3128502fb30963db, []int{0}
}

// UserMultiFactorAuthUpdate is triggered when a user adds MFA to their account.
type UserMultiFactorAuthUpdate struct {
	UserId               string             `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AnyEnabled           *change.BoolChange `protobuf:"bytes,2,opt,name=any_enabled,json=anyEnabled,proto3" json:"any_enabled,omitempty"`
	Authy                *Authy             `protobuf:"bytes,3,opt,name=authy,proto3" json:"authy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

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

var xxx_messageInfo_UserMultiFactorAuthUpdate proto.InternalMessageInfo

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

func (m *UserMultiFactorAuthUpdate) GetAnyEnabled() *change.BoolChange {
	if m != nil {
		return m.AnyEnabled
	}
	return nil
}

func (m *UserMultiFactorAuthUpdate) GetAuthy() *Authy {
	if m != nil {
		return m.Authy
	}
	return nil
}

// The Authy 2FA Platform.
type Authy struct {
	Status               *StatusChange `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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

var xxx_messageInfo_Authy proto.InternalMessageInfo

func (m *Authy) GetStatus() *StatusChange {
	if m != nil {
		return m.Status
	}
	return nil
}

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

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

var xxx_messageInfo_StatusChange proto.InternalMessageInfo

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

func (m *StatusChange) GetValue() Status {
	if m != nil {
		return m.Value
	}
	return Status_STATUS_INVALID
}

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

func (m *StatusChange) GetOldValue() Status {
	if m != nil {
		return m.OldValue
	}
	return Status_STATUS_INVALID
}

func init() {
	proto.RegisterType((*UserMultiFactorAuthUpdate)(nil), "user_multi_factor_auth.UserMultiFactorAuthUpdate")
	proto.RegisterType((*Authy)(nil), "user_multi_factor_auth.Authy")
	proto.RegisterType((*StatusChange)(nil), "user_multi_factor_auth.StatusChange")
	proto.RegisterEnum("user_multi_factor_auth.Status", Status_name, Status_value)
}

func init() {
	proto.RegisterFile("user_multi_factor_auth/update.proto", fileDescriptor_update_3128502fb30963db)
}

var fileDescriptor_update_3128502fb30963db = []byte{
	// 385 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x8f, 0xd2, 0x40,
	0x18, 0xc6, 0x2d, 0x48, 0x81, 0xb7, 0x82, 0x38, 0xfe, 0xab, 0x18, 0x0d, 0xa9, 0x1e, 0x88, 0x89,
	0x25, 0x01, 0x4f, 0xca, 0xa5, 0x48, 0x4d, 0x9a, 0x20, 0x26, 0x2d, 0x70, 0xf0, 0xd2, 0x0c, 0x74,
	0xb4, 0x4d, 0x4a, 0x87, 0xb4, 0x33, 0x6c, 0xfa, 0x55, 0xf6, 0x7b, 0xec, 0x65, 0x2f, 0xfb, 0xd5,
	0x36, 0x9d, 0x29, 0xbb, 0x1c, 0x60, 0xb3, 0xb7, 0xce, 0x33, 0xbf, 0xf7, 0x79, 0x9e, 0xb7, 0x19,
	0xf8, 0xc4, 0x33, 0x92,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