milvus/internal/proto/indexpb/index_node.pb.go
cai.zhang aa203acfb3
Low IndexCoord weight (#21548)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
2023-01-06 14:21:37 +08:00

1091 lines
42 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: index_node.proto
package indexpb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb"
milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb"
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type StorageConfig struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
AccessKeyID string `protobuf:"bytes,2,opt,name=access_keyID,json=accessKeyID,proto3" json:"access_keyID,omitempty"`
SecretAccessKey string `protobuf:"bytes,3,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
UseSSL bool `protobuf:"varint,4,opt,name=useSSL,proto3" json:"useSSL,omitempty"`
BucketName string `protobuf:"bytes,5,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
RootPath string `protobuf:"bytes,6,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
UseIAM bool `protobuf:"varint,7,opt,name=useIAM,proto3" json:"useIAM,omitempty"`
IAMEndpoint string `protobuf:"bytes,8,opt,name=IAMEndpoint,proto3" json:"IAMEndpoint,omitempty"`
StorageType string `protobuf:"bytes,9,opt,name=storage_type,json=storageType,proto3" json:"storage_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StorageConfig) Reset() { *m = StorageConfig{} }
func (m *StorageConfig) String() string { return proto.CompactTextString(m) }
func (*StorageConfig) ProtoMessage() {}
func (*StorageConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{0}
}
func (m *StorageConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StorageConfig.Unmarshal(m, b)
}
func (m *StorageConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StorageConfig.Marshal(b, m, deterministic)
}
func (m *StorageConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_StorageConfig.Merge(m, src)
}
func (m *StorageConfig) XXX_Size() int {
return xxx_messageInfo_StorageConfig.Size(m)
}
func (m *StorageConfig) XXX_DiscardUnknown() {
xxx_messageInfo_StorageConfig.DiscardUnknown(m)
}
var xxx_messageInfo_StorageConfig proto.InternalMessageInfo
func (m *StorageConfig) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *StorageConfig) GetAccessKeyID() string {
if m != nil {
return m.AccessKeyID
}
return ""
}
func (m *StorageConfig) GetSecretAccessKey() string {
if m != nil {
return m.SecretAccessKey
}
return ""
}
func (m *StorageConfig) GetUseSSL() bool {
if m != nil {
return m.UseSSL
}
return false
}
func (m *StorageConfig) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *StorageConfig) GetRootPath() string {
if m != nil {
return m.RootPath
}
return ""
}
func (m *StorageConfig) GetUseIAM() bool {
if m != nil {
return m.UseIAM
}
return false
}
func (m *StorageConfig) GetIAMEndpoint() string {
if m != nil {
return m.IAMEndpoint
}
return ""
}
func (m *StorageConfig) GetStorageType() string {
if m != nil {
return m.StorageType
}
return ""
}
type CreateJobRequest struct {
ClusterID string `protobuf:"bytes,1,opt,name=clusterID,proto3" json:"clusterID,omitempty"`
IndexFilePrefix string `protobuf:"bytes,2,opt,name=index_file_prefix,json=indexFilePrefix,proto3" json:"index_file_prefix,omitempty"`
BuildID int64 `protobuf:"varint,3,opt,name=buildID,proto3" json:"buildID,omitempty"`
DataPaths []string `protobuf:"bytes,4,rep,name=data_paths,json=dataPaths,proto3" json:"data_paths,omitempty"`
IndexVersion int64 `protobuf:"varint,5,opt,name=index_version,json=indexVersion,proto3" json:"index_version,omitempty"`
IndexID int64 `protobuf:"varint,6,opt,name=indexID,proto3" json:"indexID,omitempty"`
IndexName string `protobuf:"bytes,7,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
StorageConfig *StorageConfig `protobuf:"bytes,8,opt,name=storage_config,json=storageConfig,proto3" json:"storage_config,omitempty"`
IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,9,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"`
TypeParams []*commonpb.KeyValuePair `protobuf:"bytes,10,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"`
NumRows int64 `protobuf:"varint,11,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateJobRequest) Reset() { *m = CreateJobRequest{} }
func (m *CreateJobRequest) String() string { return proto.CompactTextString(m) }
func (*CreateJobRequest) ProtoMessage() {}
func (*CreateJobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{1}
}
func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateJobRequest.Unmarshal(m, b)
}
func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateJobRequest.Marshal(b, m, deterministic)
}
func (m *CreateJobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateJobRequest.Merge(m, src)
}
func (m *CreateJobRequest) XXX_Size() int {
return xxx_messageInfo_CreateJobRequest.Size(m)
}
func (m *CreateJobRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateJobRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateJobRequest proto.InternalMessageInfo
func (m *CreateJobRequest) GetClusterID() string {
if m != nil {
return m.ClusterID
}
return ""
}
func (m *CreateJobRequest) GetIndexFilePrefix() string {
if m != nil {
return m.IndexFilePrefix
}
return ""
}
func (m *CreateJobRequest) GetBuildID() int64 {
if m != nil {
return m.BuildID
}
return 0
}
func (m *CreateJobRequest) GetDataPaths() []string {
if m != nil {
return m.DataPaths
}
return nil
}
func (m *CreateJobRequest) GetIndexVersion() int64 {
if m != nil {
return m.IndexVersion
}
return 0
}
func (m *CreateJobRequest) GetIndexID() int64 {
if m != nil {
return m.IndexID
}
return 0
}
func (m *CreateJobRequest) GetIndexName() string {
if m != nil {
return m.IndexName
}
return ""
}
func (m *CreateJobRequest) GetStorageConfig() *StorageConfig {
if m != nil {
return m.StorageConfig
}
return nil
}
func (m *CreateJobRequest) GetIndexParams() []*commonpb.KeyValuePair {
if m != nil {
return m.IndexParams
}
return nil
}
func (m *CreateJobRequest) GetTypeParams() []*commonpb.KeyValuePair {
if m != nil {
return m.TypeParams
}
return nil
}
func (m *CreateJobRequest) GetNumRows() int64 {
if m != nil {
return m.NumRows
}
return 0
}
type QueryJobsRequest struct {
ClusterID string `protobuf:"bytes,1,opt,name=clusterID,proto3" json:"clusterID,omitempty"`
BuildIDs []int64 `protobuf:"varint,2,rep,packed,name=buildIDs,proto3" json:"buildIDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryJobsRequest) Reset() { *m = QueryJobsRequest{} }
func (m *QueryJobsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryJobsRequest) ProtoMessage() {}
func (*QueryJobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{2}
}
func (m *QueryJobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryJobsRequest.Unmarshal(m, b)
}
func (m *QueryJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryJobsRequest.Marshal(b, m, deterministic)
}
func (m *QueryJobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryJobsRequest.Merge(m, src)
}
func (m *QueryJobsRequest) XXX_Size() int {
return xxx_messageInfo_QueryJobsRequest.Size(m)
}
func (m *QueryJobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryJobsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryJobsRequest proto.InternalMessageInfo
func (m *QueryJobsRequest) GetClusterID() string {
if m != nil {
return m.ClusterID
}
return ""
}
func (m *QueryJobsRequest) GetBuildIDs() []int64 {
if m != nil {
return m.BuildIDs
}
return nil
}
type IndexTaskInfo struct {
BuildID int64 `protobuf:"varint,1,opt,name=buildID,proto3" json:"buildID,omitempty"`
State commonpb.IndexState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.common.IndexState" json:"state,omitempty"`
IndexFileKeys []string `protobuf:"bytes,3,rep,name=index_file_keys,json=indexFileKeys,proto3" json:"index_file_keys,omitempty"`
SerializedSize uint64 `protobuf:"varint,4,opt,name=serialized_size,json=serializedSize,proto3" json:"serialized_size,omitempty"`
FailReason string `protobuf:"bytes,5,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IndexTaskInfo) Reset() { *m = IndexTaskInfo{} }
func (m *IndexTaskInfo) String() string { return proto.CompactTextString(m) }
func (*IndexTaskInfo) ProtoMessage() {}
func (*IndexTaskInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{3}
}
func (m *IndexTaskInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IndexTaskInfo.Unmarshal(m, b)
}
func (m *IndexTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IndexTaskInfo.Marshal(b, m, deterministic)
}
func (m *IndexTaskInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_IndexTaskInfo.Merge(m, src)
}
func (m *IndexTaskInfo) XXX_Size() int {
return xxx_messageInfo_IndexTaskInfo.Size(m)
}
func (m *IndexTaskInfo) XXX_DiscardUnknown() {
xxx_messageInfo_IndexTaskInfo.DiscardUnknown(m)
}
var xxx_messageInfo_IndexTaskInfo proto.InternalMessageInfo
func (m *IndexTaskInfo) GetBuildID() int64 {
if m != nil {
return m.BuildID
}
return 0
}
func (m *IndexTaskInfo) GetState() commonpb.IndexState {
if m != nil {
return m.State
}
return commonpb.IndexState_IndexStateNone
}
func (m *IndexTaskInfo) GetIndexFileKeys() []string {
if m != nil {
return m.IndexFileKeys
}
return nil
}
func (m *IndexTaskInfo) GetSerializedSize() uint64 {
if m != nil {
return m.SerializedSize
}
return 0
}
func (m *IndexTaskInfo) GetFailReason() string {
if m != nil {
return m.FailReason
}
return ""
}
type QueryJobsResponse struct {
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
ClusterID string `protobuf:"bytes,2,opt,name=clusterID,proto3" json:"clusterID,omitempty"`
IndexInfos []*IndexTaskInfo `protobuf:"bytes,3,rep,name=index_infos,json=indexInfos,proto3" json:"index_infos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryJobsResponse) Reset() { *m = QueryJobsResponse{} }
func (m *QueryJobsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryJobsResponse) ProtoMessage() {}
func (*QueryJobsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{4}
}
func (m *QueryJobsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryJobsResponse.Unmarshal(m, b)
}
func (m *QueryJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryJobsResponse.Marshal(b, m, deterministic)
}
func (m *QueryJobsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryJobsResponse.Merge(m, src)
}
func (m *QueryJobsResponse) XXX_Size() int {
return xxx_messageInfo_QueryJobsResponse.Size(m)
}
func (m *QueryJobsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryJobsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryJobsResponse proto.InternalMessageInfo
func (m *QueryJobsResponse) GetStatus() *commonpb.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *QueryJobsResponse) GetClusterID() string {
if m != nil {
return m.ClusterID
}
return ""
}
func (m *QueryJobsResponse) GetIndexInfos() []*IndexTaskInfo {
if m != nil {
return m.IndexInfos
}
return nil
}
type DropJobsRequest struct {
ClusterID string `protobuf:"bytes,1,opt,name=clusterID,proto3" json:"clusterID,omitempty"`
BuildIDs []int64 `protobuf:"varint,2,rep,packed,name=buildIDs,proto3" json:"buildIDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DropJobsRequest) Reset() { *m = DropJobsRequest{} }
func (m *DropJobsRequest) String() string { return proto.CompactTextString(m) }
func (*DropJobsRequest) ProtoMessage() {}
func (*DropJobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{5}
}
func (m *DropJobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DropJobsRequest.Unmarshal(m, b)
}
func (m *DropJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DropJobsRequest.Marshal(b, m, deterministic)
}
func (m *DropJobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DropJobsRequest.Merge(m, src)
}
func (m *DropJobsRequest) XXX_Size() int {
return xxx_messageInfo_DropJobsRequest.Size(m)
}
func (m *DropJobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DropJobsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DropJobsRequest proto.InternalMessageInfo
func (m *DropJobsRequest) GetClusterID() string {
if m != nil {
return m.ClusterID
}
return ""
}
func (m *DropJobsRequest) GetBuildIDs() []int64 {
if m != nil {
return m.BuildIDs
}
return nil
}
type JobInfo struct {
NumRows int64 `protobuf:"varint,1,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"`
Dim int64 `protobuf:"varint,2,opt,name=dim,proto3" json:"dim,omitempty"`
StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"`
PodID int64 `protobuf:"varint,6,opt,name=podID,proto3" json:"podID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JobInfo) Reset() { *m = JobInfo{} }
func (m *JobInfo) String() string { return proto.CompactTextString(m) }
func (*JobInfo) ProtoMessage() {}
func (*JobInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{6}
}
func (m *JobInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JobInfo.Unmarshal(m, b)
}
func (m *JobInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JobInfo.Marshal(b, m, deterministic)
}
func (m *JobInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_JobInfo.Merge(m, src)
}
func (m *JobInfo) XXX_Size() int {
return xxx_messageInfo_JobInfo.Size(m)
}
func (m *JobInfo) XXX_DiscardUnknown() {
xxx_messageInfo_JobInfo.DiscardUnknown(m)
}
var xxx_messageInfo_JobInfo proto.InternalMessageInfo
func (m *JobInfo) GetNumRows() int64 {
if m != nil {
return m.NumRows
}
return 0
}
func (m *JobInfo) GetDim() int64 {
if m != nil {
return m.Dim
}
return 0
}
func (m *JobInfo) GetStartTime() int64 {
if m != nil {
return m.StartTime
}
return 0
}
func (m *JobInfo) GetEndTime() int64 {
if m != nil {
return m.EndTime
}
return 0
}
func (m *JobInfo) GetIndexParams() []*commonpb.KeyValuePair {
if m != nil {
return m.IndexParams
}
return nil
}
func (m *JobInfo) GetPodID() int64 {
if m != nil {
return m.PodID
}
return 0
}
type GetJobStatsRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetJobStatsRequest) Reset() { *m = GetJobStatsRequest{} }
func (m *GetJobStatsRequest) String() string { return proto.CompactTextString(m) }
func (*GetJobStatsRequest) ProtoMessage() {}
func (*GetJobStatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{7}
}
func (m *GetJobStatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetJobStatsRequest.Unmarshal(m, b)
}
func (m *GetJobStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetJobStatsRequest.Marshal(b, m, deterministic)
}
func (m *GetJobStatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetJobStatsRequest.Merge(m, src)
}
func (m *GetJobStatsRequest) XXX_Size() int {
return xxx_messageInfo_GetJobStatsRequest.Size(m)
}
func (m *GetJobStatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetJobStatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetJobStatsRequest proto.InternalMessageInfo
type GetJobStatsResponse struct {
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
TotalJobNum int64 `protobuf:"varint,2,opt,name=total_job_num,json=totalJobNum,proto3" json:"total_job_num,omitempty"`
InProgressJobNum int64 `protobuf:"varint,3,opt,name=in_progress_job_num,json=inProgressJobNum,proto3" json:"in_progress_job_num,omitempty"`
EnqueueJobNum int64 `protobuf:"varint,4,opt,name=enqueue_job_num,json=enqueueJobNum,proto3" json:"enqueue_job_num,omitempty"`
TaskSlots int64 `protobuf:"varint,5,opt,name=task_slots,json=taskSlots,proto3" json:"task_slots,omitempty"`
JobInfos []*JobInfo `protobuf:"bytes,6,rep,name=job_infos,json=jobInfos,proto3" json:"job_infos,omitempty"`
EnableDisk bool `protobuf:"varint,7,opt,name=enable_disk,json=enableDisk,proto3" json:"enable_disk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetJobStatsResponse) Reset() { *m = GetJobStatsResponse{} }
func (m *GetJobStatsResponse) String() string { return proto.CompactTextString(m) }
func (*GetJobStatsResponse) ProtoMessage() {}
func (*GetJobStatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7c97d3c987a256af, []int{8}
}
func (m *GetJobStatsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetJobStatsResponse.Unmarshal(m, b)
}
func (m *GetJobStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetJobStatsResponse.Marshal(b, m, deterministic)
}
func (m *GetJobStatsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetJobStatsResponse.Merge(m, src)
}
func (m *GetJobStatsResponse) XXX_Size() int {
return xxx_messageInfo_GetJobStatsResponse.Size(m)
}
func (m *GetJobStatsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetJobStatsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetJobStatsResponse proto.InternalMessageInfo
func (m *GetJobStatsResponse) GetStatus() *commonpb.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *GetJobStatsResponse) GetTotalJobNum() int64 {
if m != nil {
return m.TotalJobNum
}
return 0
}
func (m *GetJobStatsResponse) GetInProgressJobNum() int64 {
if m != nil {
return m.InProgressJobNum
}
return 0
}
func (m *GetJobStatsResponse) GetEnqueueJobNum() int64 {
if m != nil {
return m.EnqueueJobNum
}
return 0
}
func (m *GetJobStatsResponse) GetTaskSlots() int64 {
if m != nil {
return m.TaskSlots
}
return 0
}
func (m *GetJobStatsResponse) GetJobInfos() []*JobInfo {
if m != nil {
return m.JobInfos
}
return nil
}
func (m *GetJobStatsResponse) GetEnableDisk() bool {
if m != nil {
return m.EnableDisk
}
return false
}
func init() {
proto.RegisterType((*StorageConfig)(nil), "milvus.proto.index.StorageConfig")
proto.RegisterType((*CreateJobRequest)(nil), "milvus.proto.index.CreateJobRequest")
proto.RegisterType((*QueryJobsRequest)(nil), "milvus.proto.index.QueryJobsRequest")
proto.RegisterType((*IndexTaskInfo)(nil), "milvus.proto.index.IndexTaskInfo")
proto.RegisterType((*QueryJobsResponse)(nil), "milvus.proto.index.QueryJobsResponse")
proto.RegisterType((*DropJobsRequest)(nil), "milvus.proto.index.DropJobsRequest")
proto.RegisterType((*JobInfo)(nil), "milvus.proto.index.JobInfo")
proto.RegisterType((*GetJobStatsRequest)(nil), "milvus.proto.index.GetJobStatsRequest")
proto.RegisterType((*GetJobStatsResponse)(nil), "milvus.proto.index.GetJobStatsResponse")
}
func init() { proto.RegisterFile("index_node.proto", fileDescriptor_7c97d3c987a256af) }
var fileDescriptor_7c97d3c987a256af = []byte{
// 1125 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdb, 0x72, 0x13, 0x47,
0x13, 0x46, 0x5e, 0x1f, 0xb4, 0x2d, 0xcb, 0x36, 0x03, 0xf5, 0xd7, 0xfe, 0x22, 0x14, 0x66, 0x21,
0x40, 0xa5, 0x0a, 0x3b, 0x31, 0x49, 0x55, 0x6e, 0x8d, 0x95, 0x10, 0xd9, 0x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24, 0x77, 0x17, 0x69, 0x38, 0xfb, 0xd5, 0xec, 0xfc, 0x95,
0x77, 0xc2, 0x2b, 0xe4, 0x05, 0xf8, 0xe3, 0x07, 0x66, 0x71, 0xc6, 0xd9, 0x37, 0xba, 0xf3, 0xf9,
0x47, 0x58, 0xe3, 0xdb, 0x9e, 0x40, 0xb3, 0x7e, 0x10, 0xc8, 0x9d, 0x45, 0x9b, 0x66, 0x9e, 0x8b,
0x8f, 0xdd, 0xf5, 0x27, 0x68, 0x4d, 0x4c, 0x0b, 0xb9, 0xb7, 0x28, 0xe5, 0xfc, 0x94, 0x75, 0xee,
0x7f, 0x94, 0x37, 0xbe, 0xf1, 0xcf, 0x40, 0xfa, 0x17, 0xe2, 0x8d, 0xfd, 0x8a, 0x56, 0x25, 0x55,
0x4c, 0x70, 0x49, 0xbe, 0xfc, 0x40, 0x43, 0xe7, 0xa9, 0xf5, 0x91, 0x5f, 0xfd, 0x8d, 0x1d, 0xe3,
0xc3, 0x63, 0x80, 0x27, 0xa8, 0x8e, 0x51, 0x95, 0x6c, 0x30, 0x57, 0xdd, 0xa5, 0x6b, 0x1d, 0xe1,
0x03, 0xd5, 0x2d, 0xe0, 0xd5, 0x07, 0x3c, 0xfe, 0xfa, 0xc5, 0xde, 0x39, 0x53, 0x17, 0x55, 0xa2,
0x95, 0xdd, 0xb5, 0xcc, 0x87, 0x4c, 0xb8, 0x5f, 0xbb, 0xf5, 0x2d, 0x77, 0x4d, 0xa6, 0x5d, 0xa3,
0x53, 0x91, 0x24, 0xab, 0x26, 0x7c, 0xf4, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x7b, 0x7f,
0x79, 0x14, 0x0b, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// IndexNodeClient is the client API for IndexNode service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type IndexNodeClient interface {
GetComponentStates(ctx context.Context, in *milvuspb.GetComponentStatesRequest, opts ...grpc.CallOption) (*milvuspb.ComponentStates, error)
GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
QueryJobs(ctx context.Context, in *QueryJobsRequest, opts ...grpc.CallOption) (*QueryJobsResponse, error)
DropJobs(ctx context.Context, in *DropJobsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
GetJobStats(ctx context.Context, in *GetJobStatsRequest, opts ...grpc.CallOption) (*GetJobStatsResponse, error)
ShowConfigurations(ctx context.Context, in *internalpb.ShowConfigurationsRequest, opts ...grpc.CallOption) (*internalpb.ShowConfigurationsResponse, error)
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
GetMetrics(ctx context.Context, in *milvuspb.GetMetricsRequest, opts ...grpc.CallOption) (*milvuspb.GetMetricsResponse, error)
}
type indexNodeClient struct {
cc *grpc.ClientConn
}
func NewIndexNodeClient(cc *grpc.ClientConn) IndexNodeClient {
return &indexNodeClient{cc}
}
func (c *indexNodeClient) GetComponentStates(ctx context.Context, in *milvuspb.GetComponentStatesRequest, opts ...grpc.CallOption) (*milvuspb.ComponentStates, error) {
out := new(milvuspb.ComponentStates)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/GetComponentStates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
out := new(milvuspb.StringResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/GetStatisticsChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
out := new(commonpb.Status)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/CreateJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) QueryJobs(ctx context.Context, in *QueryJobsRequest, opts ...grpc.CallOption) (*QueryJobsResponse, error) {
out := new(QueryJobsResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/QueryJobs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) DropJobs(ctx context.Context, in *DropJobsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
out := new(commonpb.Status)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/DropJobs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) GetJobStats(ctx context.Context, in *GetJobStatsRequest, opts ...grpc.CallOption) (*GetJobStatsResponse, error) {
out := new(GetJobStatsResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/GetJobStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) ShowConfigurations(ctx context.Context, in *internalpb.ShowConfigurationsRequest, opts ...grpc.CallOption) (*internalpb.ShowConfigurationsResponse, error) {
out := new(internalpb.ShowConfigurationsResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/ShowConfigurations", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *indexNodeClient) GetMetrics(ctx context.Context, in *milvuspb.GetMetricsRequest, opts ...grpc.CallOption) (*milvuspb.GetMetricsResponse, error) {
out := new(milvuspb.GetMetricsResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.index.IndexNode/GetMetrics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// IndexNodeServer is the server API for IndexNode service.
type IndexNodeServer interface {
GetComponentStates(context.Context, *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error)
GetStatisticsChannel(context.Context, *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error)
CreateJob(context.Context, *CreateJobRequest) (*commonpb.Status, error)
QueryJobs(context.Context, *QueryJobsRequest) (*QueryJobsResponse, error)
DropJobs(context.Context, *DropJobsRequest) (*commonpb.Status, error)
GetJobStats(context.Context, *GetJobStatsRequest) (*GetJobStatsResponse, error)
ShowConfigurations(context.Context, *internalpb.ShowConfigurationsRequest) (*internalpb.ShowConfigurationsResponse, error)
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
GetMetrics(context.Context, *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)
}
// UnimplementedIndexNodeServer can be embedded to have forward compatible implementations.
type UnimplementedIndexNodeServer struct {
}
func (*UnimplementedIndexNodeServer) GetComponentStates(ctx context.Context, req *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented")
}
func (*UnimplementedIndexNodeServer) GetStatisticsChannel(ctx context.Context, req *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStatisticsChannel not implemented")
}
func (*UnimplementedIndexNodeServer) CreateJob(ctx context.Context, req *CreateJobRequest) (*commonpb.Status, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateJob not implemented")
}
func (*UnimplementedIndexNodeServer) QueryJobs(ctx context.Context, req *QueryJobsRequest) (*QueryJobsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryJobs not implemented")
}
func (*UnimplementedIndexNodeServer) DropJobs(ctx context.Context, req *DropJobsRequest) (*commonpb.Status, error) {
return nil, status.Errorf(codes.Unimplemented, "method DropJobs not implemented")
}
func (*UnimplementedIndexNodeServer) GetJobStats(ctx context.Context, req *GetJobStatsRequest) (*GetJobStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetJobStats not implemented")
}
func (*UnimplementedIndexNodeServer) ShowConfigurations(ctx context.Context, req *internalpb.ShowConfigurationsRequest) (*internalpb.ShowConfigurationsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShowConfigurations not implemented")
}
func (*UnimplementedIndexNodeServer) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented")
}
func RegisterIndexNodeServer(s *grpc.Server, srv IndexNodeServer) {
s.RegisterService(&_IndexNode_serviceDesc, srv)
}
func _IndexNode_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(milvuspb.GetComponentStatesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).GetComponentStates(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/GetComponentStates",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).GetComponentStates(ctx, req.(*milvuspb.GetComponentStatesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_GetStatisticsChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(internalpb.GetStatisticsChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).GetStatisticsChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/GetStatisticsChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).GetStatisticsChannel(ctx, req.(*internalpb.GetStatisticsChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_CreateJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).CreateJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/CreateJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).CreateJob(ctx, req.(*CreateJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_QueryJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryJobsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).QueryJobs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/QueryJobs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).QueryJobs(ctx, req.(*QueryJobsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_DropJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DropJobsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).DropJobs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/DropJobs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).DropJobs(ctx, req.(*DropJobsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_GetJobStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetJobStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).GetJobStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/GetJobStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).GetJobStats(ctx, req.(*GetJobStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_ShowConfigurations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(internalpb.ShowConfigurationsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).ShowConfigurations(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/ShowConfigurations",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).ShowConfigurations(ctx, req.(*internalpb.ShowConfigurationsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _IndexNode_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(milvuspb.GetMetricsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IndexNodeServer).GetMetrics(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milvus.proto.index.IndexNode/GetMetrics",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IndexNodeServer).GetMetrics(ctx, req.(*milvuspb.GetMetricsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _IndexNode_serviceDesc = grpc.ServiceDesc{
ServiceName: "milvus.proto.index.IndexNode",
HandlerType: (*IndexNodeServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetComponentStates",
Handler: _IndexNode_GetComponentStates_Handler,
},
{
MethodName: "GetStatisticsChannel",
Handler: _IndexNode_GetStatisticsChannel_Handler,
},
{
MethodName: "CreateJob",
Handler: _IndexNode_CreateJob_Handler,
},
{
MethodName: "QueryJobs",
Handler: _IndexNode_QueryJobs_Handler,
},
{
MethodName: "DropJobs",
Handler: _IndexNode_DropJobs_Handler,
},
{
MethodName: "GetJobStats",
Handler: _IndexNode_GetJobStats_Handler,
},
{
MethodName: "ShowConfigurations",
Handler: _IndexNode_ShowConfigurations_Handler,
},
{
MethodName: "GetMetrics",
Handler: _IndexNode_GetMetrics_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "index_node.proto",
}