// Code generated by protoc-gen-go. DO NOT EDIT.

package protocol

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type TenantActivityStatus int32

const (
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_UNSPECIFIED TenantActivityStatus = 0
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_HOT         TenantActivityStatus = 1
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_COLD        TenantActivityStatus = 2
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_FROZEN      TenantActivityStatus = 4
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_UNFREEZING  TenantActivityStatus = 5
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_FREEZING    TenantActivityStatus = 6
	// not used yet - added to let the clients already add code to handle this in the future
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_ACTIVE     TenantActivityStatus = 7
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_INACTIVE   TenantActivityStatus = 8
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_OFFLOADED  TenantActivityStatus = 9
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_OFFLOADING TenantActivityStatus = 10
	TenantActivityStatus_TENANT_ACTIVITY_STATUS_ONLOADING  TenantActivityStatus = 11
)

// Enum value maps for TenantActivityStatus.
var (
	TenantActivityStatus_name = map[int32]string{
		0:  "TENANT_ACTIVITY_STATUS_UNSPECIFIED",
		1:  "TENANT_ACTIVITY_STATUS_HOT",
		2:  "TENANT_ACTIVITY_STATUS_COLD",
		4:  "TENANT_ACTIVITY_STATUS_FROZEN",
		5:  "TENANT_ACTIVITY_STATUS_UNFREEZING",
		6:  "TENANT_ACTIVITY_STATUS_FREEZING",
		7:  "TENANT_ACTIVITY_STATUS_ACTIVE",
		8:  "TENANT_ACTIVITY_STATUS_INACTIVE",
		9:  "TENANT_ACTIVITY_STATUS_OFFLOADED",
		10: "TENANT_ACTIVITY_STATUS_OFFLOADING",
		11: "TENANT_ACTIVITY_STATUS_ONLOADING",
	}
	TenantActivityStatus_value = map[string]int32{
		"TENANT_ACTIVITY_STATUS_UNSPECIFIED": 0,
		"TENANT_ACTIVITY_STATUS_HOT":         1,
		"TENANT_ACTIVITY_STATUS_COLD":        2,
		"TENANT_ACTIVITY_STATUS_FROZEN":      4,
		"TENANT_ACTIVITY_STATUS_UNFREEZING":  5,
		"TENANT_ACTIVITY_STATUS_FREEZING":    6,
		"TENANT_ACTIVITY_STATUS_ACTIVE":      7,
		"TENANT_ACTIVITY_STATUS_INACTIVE":    8,
		"TENANT_ACTIVITY_STATUS_OFFLOADED":   9,
		"TENANT_ACTIVITY_STATUS_OFFLOADING":  10,
		"TENANT_ACTIVITY_STATUS_ONLOADING":   11,
	}
)

func (x TenantActivityStatus) Enum() *TenantActivityStatus {
	p := new(TenantActivityStatus)
	*p = x
	return p
}

func (x TenantActivityStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (TenantActivityStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_v1_tenants_proto_enumTypes[0].Descriptor()
}

func (TenantActivityStatus) Type() protoreflect.EnumType {
	return &file_v1_tenants_proto_enumTypes[0]
}

func (x TenantActivityStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use TenantActivityStatus.Descriptor instead.
func (TenantActivityStatus) EnumDescriptor() ([]byte, []int) {
	return file_v1_tenants_proto_rawDescGZIP(), []int{0}
}

type TenantsGetRequest struct {
	state      protoimpl.MessageState `protogen:"open.v1"`
	Collection string                 `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// we might need to add a tenant-cursor api at some point, make this easily extendable
	//
	// Types that are valid to be assigned to Params:
	//
	//	*TenantsGetRequest_Names
	Params        isTenantsGetRequest_Params `protobuf_oneof:"params"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TenantsGetRequest) Reset() {
	*x = TenantsGetRequest{}
	mi := &file_v1_tenants_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TenantsGetRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TenantsGetRequest) ProtoMessage() {}

func (x *TenantsGetRequest) ProtoReflect() protoreflect.Message {
	mi := &file_v1_tenants_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TenantsGetRequest.ProtoReflect.Descriptor instead.
func (*TenantsGetRequest) Descriptor() ([]byte, []int) {
	return file_v1_tenants_proto_rawDescGZIP(), []int{0}
}

func (x *TenantsGetRequest) GetCollection() string {
	if x != nil {
		return x.Collection
	}
	return ""
}

func (x *TenantsGetRequest) GetParams() isTenantsGetRequest_Params {
	if x != nil {
		return x.Params
	}
	return nil
}

func (x *TenantsGetRequest) GetNames() *TenantNames {
	if x != nil {
		if x, ok := x.Params.(*TenantsGetRequest_Names); ok {
			return x.Names
		}
	}
	return nil
}

type isTenantsGetRequest_Params interface {
	isTenantsGetRequest_Params()
}

type TenantsGetRequest_Names struct {
	Names *TenantNames `protobuf:"bytes,2,opt,name=names,proto3,oneof"`
}

func (*TenantsGetRequest_Names) isTenantsGetRequest_Params() {}

type TenantNames struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Values        []string               `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TenantNames) Reset() {
	*x = TenantNames{}
	mi := &file_v1_tenants_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TenantNames) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TenantNames) ProtoMessage() {}

func (x *TenantNames) ProtoReflect() protoreflect.Message {
	mi := &file_v1_tenants_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TenantNames.ProtoReflect.Descriptor instead.
func (*TenantNames) Descriptor() ([]byte, []int) {
	return file_v1_tenants_proto_rawDescGZIP(), []int{1}
}

func (x *TenantNames) GetValues() []string {
	if x != nil {
		return x.Values
	}
	return nil
}

type TenantsGetReply struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Took          float32                `protobuf:"fixed32,1,opt,name=took,proto3" json:"took,omitempty"`
	Tenants       []*Tenant              `protobuf:"bytes,2,rep,name=tenants,proto3" json:"tenants,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TenantsGetReply) Reset() {
	*x = TenantsGetReply{}
	mi := &file_v1_tenants_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TenantsGetReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TenantsGetReply) ProtoMessage() {}

func (x *TenantsGetReply) ProtoReflect() protoreflect.Message {
	mi := &file_v1_tenants_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TenantsGetReply.ProtoReflect.Descriptor instead.
func (*TenantsGetReply) Descriptor() ([]byte, []int) {
	return file_v1_tenants_proto_rawDescGZIP(), []int{2}
}

func (x *TenantsGetReply) GetTook() float32 {
	if x != nil {
		return x.Took
	}
	return 0
}

func (x *TenantsGetReply) GetTenants() []*Tenant {
	if x != nil {
		return x.Tenants
	}
	return nil
}

type Tenant struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	Name           string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ActivityStatus TenantActivityStatus   `protobuf:"varint,2,opt,name=activity_status,json=activityStatus,proto3,enum=weaviate.v1.TenantActivityStatus" json:"activity_status,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *Tenant) Reset() {
	*x = Tenant{}
	mi := &file_v1_tenants_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Tenant) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Tenant) ProtoMessage() {}

func (x *Tenant) ProtoReflect() protoreflect.Message {
	mi := &file_v1_tenants_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Tenant.ProtoReflect.Descriptor instead.
func (*Tenant) Descriptor() ([]byte, []int) {
	return file_v1_tenants_proto_rawDescGZIP(), []int{3}
}

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

func (x *Tenant) GetActivityStatus() TenantActivityStatus {
	if x != nil {
		return x.ActivityStatus
	}
	return TenantActivityStatus_TENANT_ACTIVITY_STATUS_UNSPECIFIED
}

var File_v1_tenants_proto protoreflect.FileDescriptor

const file_v1_tenants_proto_rawDesc = "" +
	"\n" +
	"\x10v1/tenants.proto\x12\vweaviate.v1\"o\n" +
	"\x11TenantsGetRequest\x12\x1e\n" +
	"\n" +
	"collection\x18\x01 \x01(\tR\n" +
	"collection\x120\n" +
	"\x05names\x18\x02 \x01(\v2\x18.weaviate.v1.TenantNamesH\x00R\x05namesB\b\n" +
	"\x06params\"%\n" +
	"\vTenantNames\x12\x16\n" +
	"\x06values\x18\x01 \x03(\tR\x06values\"T\n" +
	"\x0fTenantsGetReply\x12\x12\n" +
	"\x04took\x18\x01 \x01(\x02R\x04took\x12-\n" +
	"\atenants\x18\x02 \x03(\v2\x13.weaviate.v1.TenantR\atenants\"h\n" +
	"\x06Tenant\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12J\n" +
	"\x0factivity_status\x18\x02 \x01(\x0e2!.weaviate.v1.TenantActivityStatusR\x0eactivityStatus*\xaf\x03\n" +
	"\x14TenantActivityStatus\x12&\n" +
	"\"TENANT_ACTIVITY_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aTENANT_ACTIVITY_STATUS_HOT\x10\x01\x12\x1f\n" +
	"\x1bTENANT_ACTIVITY_STATUS_COLD\x10\x02\x12!\n" +
	"\x1dTENANT_ACTIVITY_STATUS_FROZEN\x10\x04\x12%\n" +
	"!TENANT_ACTIVITY_STATUS_UNFREEZING\x10\x05\x12#\n" +
	"\x1fTENANT_ACTIVITY_STATUS_FREEZING\x10\x06\x12!\n" +
	"\x1dTENANT_ACTIVITY_STATUS_ACTIVE\x10\a\x12#\n" +
	"\x1fTENANT_ACTIVITY_STATUS_INACTIVE\x10\b\x12$\n" +
	" TENANT_ACTIVITY_STATUS_OFFLOADED\x10\t\x12%\n" +
	"!TENANT_ACTIVITY_STATUS_OFFLOADING\x10\n" +
	"\x12$\n" +
	" TENANT_ACTIVITY_STATUS_ONLOADING\x10\v\"\x04\b\x03\x10\x03Bq\n" +
	"#io.weaviate.client.grpc.protocol.v1B\x14WeaviateProtoTenantsZ4github.com/weaviate/weaviate/grpc/generated;protocolb\x06proto3"

var (
	file_v1_tenants_proto_rawDescOnce sync.Once
	file_v1_tenants_proto_rawDescData []byte
)

func file_v1_tenants_proto_rawDescGZIP() []byte {
	file_v1_tenants_proto_rawDescOnce.Do(func() {
		file_v1_tenants_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_tenants_proto_rawDesc), len(file_v1_tenants_proto_rawDesc)))
	})
	return file_v1_tenants_proto_rawDescData
}

var file_v1_tenants_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_v1_tenants_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_v1_tenants_proto_goTypes = []any{
	(TenantActivityStatus)(0), // 0: weaviate.v1.TenantActivityStatus
	(*TenantsGetRequest)(nil), // 1: weaviate.v1.TenantsGetRequest
	(*TenantNames)(nil),       // 2: weaviate.v1.TenantNames
	(*TenantsGetReply)(nil),   // 3: weaviate.v1.TenantsGetReply
	(*Tenant)(nil),            // 4: weaviate.v1.Tenant
}
var file_v1_tenants_proto_depIdxs = []int32{
	2, // 0: weaviate.v1.TenantsGetRequest.names:type_name -> weaviate.v1.TenantNames
	4, // 1: weaviate.v1.TenantsGetReply.tenants:type_name -> weaviate.v1.Tenant
	0, // 2: weaviate.v1.Tenant.activity_status:type_name -> weaviate.v1.TenantActivityStatus
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_v1_tenants_proto_init() }
func file_v1_tenants_proto_init() {
	if File_v1_tenants_proto != nil {
		return
	}
	file_v1_tenants_proto_msgTypes[0].OneofWrappers = []any{
		(*TenantsGetRequest_Names)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_tenants_proto_rawDesc), len(file_v1_tenants_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_v1_tenants_proto_goTypes,
		DependencyIndexes: file_v1_tenants_proto_depIdxs,
		EnumInfos:         file_v1_tenants_proto_enumTypes,
		MessageInfos:      file_v1_tenants_proto_msgTypes,
	}.Build()
	File_v1_tenants_proto = out.File
	file_v1_tenants_proto_goTypes = nil
	file_v1_tenants_proto_depIdxs = nil
}
