// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/appcelerator/amp/data/accounts/accounts.proto

/*
Package accounts is a generated protocol buffer package.

It is generated from these files:
	github.com/appcelerator/amp/data/accounts/accounts.proto

It has these top-level messages:
	User
	TeamResource
	Team
	OrganizationMember
	Organization
	Account
*/
package accounts

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

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

type TeamPermissionLevel int32

const (
	TeamPermissionLevel_TEAM_READ  TeamPermissionLevel = 0
	TeamPermissionLevel_TEAM_WRITE TeamPermissionLevel = 1
	TeamPermissionLevel_TEAM_ADMIN TeamPermissionLevel = 2
)

var TeamPermissionLevel_name = map[int32]string{
	0: "TEAM_READ",
	1: "TEAM_WRITE",
	2: "TEAM_ADMIN",
}
var TeamPermissionLevel_value = map[string]int32{
	"TEAM_READ":  0,
	"TEAM_WRITE": 1,
	"TEAM_ADMIN": 2,
}

func (x TeamPermissionLevel) String() string {
	return proto.EnumName(TeamPermissionLevel_name, int32(x))
}
func (TeamPermissionLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

type OrganizationRole int32

const (
	OrganizationRole_ORGANIZATION_MEMBER OrganizationRole = 0
	OrganizationRole_ORGANIZATION_OWNER  OrganizationRole = 1
)

var OrganizationRole_name = map[int32]string{
	0: "ORGANIZATION_MEMBER",
	1: "ORGANIZATION_OWNER",
}
var OrganizationRole_value = map[string]int32{
	"ORGANIZATION_MEMBER": 0,
	"ORGANIZATION_OWNER":  1,
}

func (x OrganizationRole) String() string {
	return proto.EnumName(OrganizationRole_name, int32(x))
}
func (OrganizationRole) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

type User struct {
	Name         string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email        string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	PasswordHash []byte `protobuf:"bytes,3,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
	IsVerified   bool   `protobuf:"varint,4,opt,name=is_verified,json=isVerified" json:"is_verified,omitempty"`
	CreateDt     int64  `protobuf:"varint,5,opt,name=create_dt,json=createDt" json:"create_dt,omitempty"`
	TokenUsed    bool   `protobuf:"varint,6,opt,name=token_used,json=tokenUsed" json:"token_used,omitempty"`
}

func (m *User) Reset()                    { *m = User{} }
func (m *User) String() string            { return proto.CompactTextString(m) }
func (*User) ProtoMessage()               {}
func (*User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *User) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *User) GetEmail() string {
	if m != nil {
		return m.Email
	}
	return ""
}

func (m *User) GetPasswordHash() []byte {
	if m != nil {
		return m.PasswordHash
	}
	return nil
}

func (m *User) GetIsVerified() bool {
	if m != nil {
		return m.IsVerified
	}
	return false
}

func (m *User) GetCreateDt() int64 {
	if m != nil {
		return m.CreateDt
	}
	return 0
}

func (m *User) GetTokenUsed() bool {
	if m != nil {
		return m.TokenUsed
	}
	return false
}

type TeamResource struct {
	Id              string              `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	PermissionLevel TeamPermissionLevel `protobuf:"varint,2,opt,name=permission_level,json=permissionLevel,enum=accounts.TeamPermissionLevel" json:"permission_level,omitempty"`
}

func (m *TeamResource) Reset()                    { *m = TeamResource{} }
func (m *TeamResource) String() string            { return proto.CompactTextString(m) }
func (*TeamResource) ProtoMessage()               {}
func (*TeamResource) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

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

func (m *TeamResource) GetPermissionLevel() TeamPermissionLevel {
	if m != nil {
		return m.PermissionLevel
	}
	return TeamPermissionLevel_TEAM_READ
}

type Team struct {
	Name      string          `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	CreateDt  int64           `protobuf:"varint,2,opt,name=create_dt,json=createDt" json:"create_dt,omitempty"`
	Owner     *Account        `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"`
	Members   []string        `protobuf:"bytes,4,rep,name=members" json:"members,omitempty"`
	Resources []*TeamResource `protobuf:"bytes,5,rep,name=resources" json:"resources,omitempty"`
}

func (m *Team) Reset()                    { *m = Team{} }
func (m *Team) String() string            { return proto.CompactTextString(m) }
func (*Team) ProtoMessage()               {}
func (*Team) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

func (m *Team) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *Team) GetCreateDt() int64 {
	if m != nil {
		return m.CreateDt
	}
	return 0
}

func (m *Team) GetOwner() *Account {
	if m != nil {
		return m.Owner
	}
	return nil
}

func (m *Team) GetMembers() []string {
	if m != nil {
		return m.Members
	}
	return nil
}

func (m *Team) GetResources() []*TeamResource {
	if m != nil {
		return m.Resources
	}
	return nil
}

type OrganizationMember struct {
	Name string           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Role OrganizationRole `protobuf:"varint,2,opt,name=role,enum=accounts.OrganizationRole" json:"role,omitempty"`
}

func (m *OrganizationMember) Reset()                    { *m = OrganizationMember{} }
func (m *OrganizationMember) String() string            { return proto.CompactTextString(m) }
func (*OrganizationMember) ProtoMessage()               {}
func (*OrganizationMember) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }

func (m *OrganizationMember) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *OrganizationMember) GetRole() OrganizationRole {
	if m != nil {
		return m.Role
	}
	return OrganizationRole_ORGANIZATION_MEMBER
}

type Organization struct {
	Name     string                `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email    string                `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	CreateDt int64                 `protobuf:"varint,3,opt,name=create_dt,json=createDt" json:"create_dt,omitempty"`
	Members  []*OrganizationMember `protobuf:"bytes,4,rep,name=members" json:"members,omitempty"`
	Teams    []*Team               `protobuf:"bytes,5,rep,name=teams" json:"teams,omitempty"`
}

func (m *Organization) Reset()                    { *m = Organization{} }
func (m *Organization) String() string            { return proto.CompactTextString(m) }
func (*Organization) ProtoMessage()               {}
func (*Organization) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }

func (m *Organization) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *Organization) GetEmail() string {
	if m != nil {
		return m.Email
	}
	return ""
}

func (m *Organization) GetCreateDt() int64 {
	if m != nil {
		return m.CreateDt
	}
	return 0
}

func (m *Organization) GetMembers() []*OrganizationMember {
	if m != nil {
		return m.Members
	}
	return nil
}

func (m *Organization) GetTeams() []*Team {
	if m != nil {
		return m.Teams
	}
	return nil
}

type Account struct {
	User         string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	Organization string `protobuf:"bytes,2,opt,name=organization" json:"organization,omitempty"`
}

func (m *Account) Reset()                    { *m = Account{} }
func (m *Account) String() string            { return proto.CompactTextString(m) }
func (*Account) ProtoMessage()               {}
func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }

func (m *Account) GetUser() string {
	if m != nil {
		return m.User
	}
	return ""
}

func (m *Account) GetOrganization() string {
	if m != nil {
		return m.Organization
	}
	return ""
}

func init() {
	proto.RegisterType((*User)(nil), "accounts.User")
	proto.RegisterType((*TeamResource)(nil), "accounts.TeamResource")
	proto.RegisterType((*Team)(nil), "accounts.Team")
	proto.RegisterType((*OrganizationMember)(nil), "accounts.OrganizationMember")
	proto.RegisterType((*Organization)(nil), "accounts.Organization")
	proto.RegisterType((*Account)(nil), "accounts.Account")
	proto.RegisterEnum("accounts.TeamPermissionLevel", TeamPermissionLevel_name, TeamPermissionLevel_value)
	proto.RegisterEnum("accounts.OrganizationRole", OrganizationRole_name, OrganizationRole_value)
}

func init() {
	proto.RegisterFile("github.com/appcelerator/amp/data/accounts/accounts.proto", fileDescriptor0)
}

var fileDescriptor0 = []byte{
	// 532 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6f, 0xd3, 0x4c,
	0x10, 0xc6, 0xeb, 0xc4, 0x69, 0xeb, 0x49, 0x9a, 0xd7, 0xef, 0x16, 0x15, 0x0b, 0xa8, 0xb0, 0x0c,
	0x12, 0x56, 0x0f, 0x89, 0x14, 0x10, 0xe2, 0x6a, 0x88, 0x45, 0x23, 0x91, 0x04, 0xad, 0x52, 0x8a,
	0xb8, 0x58, 0x1b, 0x7b, 0x68, 0x56, 0xc4, 0x5e, 0x6b, 0xd7, 0x69, 0x25, 0x3e, 0x15, 0x82, 0x2f,
	0x88, 0xe2, 0x3f, 0x49, 0x1c, 0xe5, 0xc2, 0x6d, 0xe6, 0x99, 0xd9, 0xd9, 0x67, 0x7e, 0xda, 0x85,
	0x77, 0x77, 0x3c, 0x5b, 0xac, 0xe6, 0xbd, 0x50, 0xc4, 0x7d, 0x96, 0xa6, 0x21, 0x2e, 0x51, 0xb2,
	0x4c, 0xc8, 0x3e, 0x8b, 0xd3, 0x7e, 0xc4, 0x32, 0xd6, 0x67, 0x61, 0x28, 0x56, 0x49, 0xa6, 0x36,
	0x41, 0x2f, 0x95, 0x22, 0x13, 0xe4, 0xb4, 0xca, 0x9d, 0xdf, 0x1a, 0xe8, 0x37, 0x0a, 0x25, 0x21,
	0xa0, 0x27, 0x2c, 0x46, 0x4b, 0xb3, 0x35, 0xd7, 0xa0, 0x79, 0x4c, 0x1e, 0x41, 0x0b, 0x63, 0xc6,
	0x97, 0x56, 0x23, 0x17, 0x8b, 0x84, 0xbc, 0x80, 0xb3, 0x94, 0x29, 0xf5, 0x20, 0x64, 0x14, 0x2c,
	0x98, 0x5a, 0x58, 0x4d, 0x5b, 0x73, 0x3b, 0x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