diff --git a/Makefile.d/proto.mk b/Makefile.d/proto.mk index dd0ff92f1a3..a4905069f0b 100644 --- a/Makefile.d/proto.mk +++ b/Makefile.d/proto.mk @@ -59,4 +59,5 @@ proto/gen: \ find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%google.golang.org/grpc/status%github.com/vdaas/vald/internal/net/grpc/status%g" find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%\"io\"%\"github.com/vdaas/vald/internal/io\"%g" find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%\"sync\"%\"github.com/vdaas/vald/internal/sync\"%g" - find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%any%any%g" + find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%interface{}%any%g" + find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs -P$(CORES) sed -i -E "s%For_%For%g" diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index 8bbcfa7f476..927c0c5e68f 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -25,6 +25,9 @@ - [Info.Index.Count](#payload-v1-Info-Index-Count) - [Info.Index.Detail](#payload-v1-Info-Index-Detail) - [Info.Index.Detail.CountsEntry](#payload-v1-Info-Index-Detail-CountsEntry) + - [Info.Index.Statistics](#payload-v1-Info-Index-Statistics) + - [Info.Index.StatisticsDetail](#payload-v1-Info-Index-StatisticsDetail) + - [Info.Index.StatisticsDetail.CountsEntry](#payload-v1-Info-Index-StatisticsDetail-CountsEntry) - [Info.Index.UUID](#payload-v1-Info-Index-UUID) - [Info.Index.UUID.Committed](#payload-v1-Info-Index-UUID-Committed) - [Info.Index.UUID.Uncommitted](#payload-v1-Info-Index-UUID-Uncommitted) @@ -317,6 +320,67 @@ Represent the index count for each Agents message. | key | [string](#string) | | | | value | [Info.Index.Count](#payload-v1-Info-Index-Count) | | | + + +### Info.Index.Statistics + +Represents index Statistics + +| Field | Type | Label | Description | +| ------------------------------------ | ----------------- | -------- | ----------- | +| valid | [bool](#bool) | | | +| median_indegree | [int32](#int32) | | | +| median_outdegree | [int32](#int32) | | | +| max_number_of_indegree | [uint64](#uint64) | | | +| max_number_of_outdegree | [uint64](#uint64) | | | +| min_number_of_indegree | [uint64](#uint64) | | | +| min_number_of_outdegree | [uint64](#uint64) | | | +| mode_indegree | [uint64](#uint64) | | | +| mode_outdegree | [uint64](#uint64) | | | +| nodes_skipped_for_10_edges | [uint64](#uint64) | | | +| nodes_skipped_for_indegree_distance | [uint64](#uint64) | | | +| number_of_edges | [uint64](#uint64) | | | +| number_of_indexed_objects | [uint64](#uint64) | | | +| number_of_nodes | [uint64](#uint64) | | | +| number_of_nodes_without_edges | [uint64](#uint64) | | | +| number_of_nodes_without_indegree | [uint64](#uint64) | | | +| number_of_objects | [uint64](#uint64) | | | +| number_of_removed_objects | [uint64](#uint64) | | | +| size_of_object_repository | [uint64](#uint64) | | | +| size_of_refinement_object_repository | [uint64](#uint64) | | | +| variance_of_indegree | [double](#double) | | | +| variance_of_outdegree | [double](#double) | | | +| mean_edge_length | [double](#double) | | | +| mean_edge_length_for_10_edges | [double](#double) | | | +| mean_indegree_distance_for_10_edges | [double](#double) | | | +| mean_number_of_edges_per_node | [double](#double) | | | +| c1_indegree | [double](#double) | | | +| c5_indegree | [double](#double) | | | +| c95_outdegree | [double](#double) | | | +| c99_outdegree | [double](#double) | | | +| indegree_count | [int64](#int64) | repeated | | +| outdegree_histogram | [uint64](#uint64) | repeated | | +| indegree_histogram | [uint64](#uint64) | repeated | | + + + +### Info.Index.StatisticsDetail + +Represents index Statistics for each Agents + +| Field | Type | Label | Description | +| ------ | ---------------------------------------------------------------------------------------------- | -------- | --------------------------- | +| counts | [Info.Index.StatisticsDetail.CountsEntry](#payload-v1-Info-Index-StatisticsDetail-CountsEntry) | repeated | count infos for each agents | + + + +### Info.Index.StatisticsDetail.CountsEntry + +| Field | Type | Label | Description | +| ----- | ---------------------------------------------------------- | ----- | ----------- | +| key | [string](#string) | | | +| value | [Info.Index.Statistics](#payload-v1-Info-Index-Statistics) | | | + ### Info.Index.UUID @@ -1497,10 +1561,12 @@ Flush service provides ways to flush all indexed vectors. Represent the index manager service. -| Method Name | Request Type | Response Type | Description | -| ----------- | -------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------- | -| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the index information. | -| IndexDetail | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Detail](#payload-v1-Info-Index-Detail) | Represent the RPC to get the index information for each agents. | +| Method Name | Request Type | Response Type | Description | +| --------------------- | -------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------- | +| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the index information. | +| IndexDetail | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Detail](#payload-v1-Info-Index-Detail) | Represent the RPC to get the index information for each agents. | +| IndexStatistics | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Statistics](#payload-v1-Info-Index-Statistics) | Represent the RPC to get the index statistics. | +| IndexStatisticsDetail | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.StatisticsDetail](#payload-v1-Info-Index-StatisticsDetail) | Represent the RPC to get the index statistics for each agents. | diff --git a/apis/grpc/v1/agent/core/agent_vtproto.pb.go b/apis/grpc/v1/agent/core/agent_vtproto.pb.go index 42c060279e7..9c2a729b4fa 100644 --- a/apis/grpc/v1/agent/core/agent_vtproto.pb.go +++ b/apis/grpc/v1/agent/core/agent_vtproto.pb.go @@ -135,10 +135,7 @@ func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer) { } func _Agent_CreateIndex_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Control_CreateIndexRequest) if err := dec(in); err != nil { @@ -158,10 +155,7 @@ func _Agent_CreateIndex_Handler( } func _Agent_SaveIndex_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Empty) if err := dec(in); err != nil { @@ -181,10 +175,7 @@ func _Agent_SaveIndex_Handler( } func _Agent_CreateAndSaveIndex_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Control_CreateIndexRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go b/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go index 0f401fb0cc5..6fc5d237ef8 100644 --- a/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go +++ b/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go @@ -137,10 +137,7 @@ func RegisterDiscovererServer(s grpc.ServiceRegistrar, srv DiscovererServer) { } func _Discoverer_Pods_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Discoverer_Request) if err := dec(in); err != nil { @@ -160,10 +157,7 @@ func _Discoverer_Pods_Handler( } func _Discoverer_Nodes_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Discoverer_Request) if err := dec(in); err != nil { @@ -183,10 +177,7 @@ func _Discoverer_Nodes_Handler( } func _Discoverer_Services_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Discoverer_Request) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index 6912789d95d..ffe26943c88 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -117,10 +117,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { } func _Filter_FilterDistance_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_Distance) if err := dec(in); err != nil { @@ -140,10 +137,7 @@ func _Filter_FilterDistance_Handler( } func _Filter_FilterVector_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_Vector) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go index 7c015bc1990..8b138215059 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go @@ -117,10 +117,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { } func _Filter_GenVector_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_Blob) if err := dec(in); err != nil { @@ -140,10 +137,7 @@ func _Filter_GenVector_Handler( } func _Filter_FilterVector_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_Vector) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/mirror/mirror_vtproto.pb.go b/apis/grpc/v1/mirror/mirror_vtproto.pb.go index a6a0d6b6b06..4fd44fcf1b0 100644 --- a/apis/grpc/v1/mirror/mirror_vtproto.pb.go +++ b/apis/grpc/v1/mirror/mirror_vtproto.pb.go @@ -97,10 +97,7 @@ func RegisterMirrorServer(s grpc.ServiceRegistrar, srv MirrorServer) { } func _Mirror_Register_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Mirror_Targets) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 5925f81550b..090a2e4b992 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -104,11 +104,13 @@ const ( Remove_Timestamp_Eq Remove_Timestamp_Operator = 0 // The timestamp is not equal to the specified value in the request. Remove_Timestamp_Ne Remove_Timestamp_Operator = 1 - // The timestamp is greater than or equal to the specified value in the request. + // The timestamp is greater than or equal to the specified value in the + // request. Remove_Timestamp_Ge Remove_Timestamp_Operator = 2 // The timestamp is greater than the specified value in the request. Remove_Timestamp_Gt Remove_Timestamp_Operator = 3 - // The timestamp is less than or equal to the specified value in the request. + // The timestamp is less than or equal to the specified value in the + // request. Remove_Timestamp_Le Remove_Timestamp_Operator = 4 // The timestamp is less than the specified value in the request. Remove_Timestamp_Lt Remove_Timestamp_Operator = 5 @@ -2429,7 +2431,8 @@ type Remove_TimestampRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The timestamp comparison list. If more than one is specified, the `AND` search is applied. + // The timestamp comparison list. If more than one is specified, the `AND` + // search is applied. Timestamps []*Remove_Timestamp `protobuf:"bytes,1,rep,name=timestamps,proto3" json:"timestamps,omitempty"` } @@ -4898,6 +4901,359 @@ func (*Info_Index_UUID) Descriptor() ([]byte, []int) { return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 2} } +// Represents index Statistics +type Info_Index_Statistics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` + MedianIndegree int32 `protobuf:"varint,2,opt,name=median_indegree,json=medianIndegree,proto3" json:"median_indegree,omitempty"` + MedianOutdegree int32 `protobuf:"varint,3,opt,name=median_outdegree,json=medianOutdegree,proto3" json:"median_outdegree,omitempty"` + MaxNumberOfIndegree uint64 `protobuf:"varint,4,opt,name=max_number_of_indegree,json=maxNumberOfIndegree,proto3" json:"max_number_of_indegree,omitempty"` + MaxNumberOfOutdegree uint64 `protobuf:"varint,5,opt,name=max_number_of_outdegree,json=maxNumberOfOutdegree,proto3" json:"max_number_of_outdegree,omitempty"` + MinNumberOfIndegree uint64 `protobuf:"varint,6,opt,name=min_number_of_indegree,json=minNumberOfIndegree,proto3" json:"min_number_of_indegree,omitempty"` + MinNumberOfOutdegree uint64 `protobuf:"varint,7,opt,name=min_number_of_outdegree,json=minNumberOfOutdegree,proto3" json:"min_number_of_outdegree,omitempty"` + ModeIndegree uint64 `protobuf:"varint,8,opt,name=mode_indegree,json=modeIndegree,proto3" json:"mode_indegree,omitempty"` + ModeOutdegree uint64 `protobuf:"varint,9,opt,name=mode_outdegree,json=modeOutdegree,proto3" json:"mode_outdegree,omitempty"` + NodesSkippedFor_10Edges uint64 `protobuf:"varint,10,opt,name=nodes_skipped_for_10_edges,json=nodesSkippedFor10Edges,proto3" json:"nodes_skipped_for_10_edges,omitempty"` + NodesSkippedForIndegreeDistance uint64 `protobuf:"varint,11,opt,name=nodes_skipped_for_indegree_distance,json=nodesSkippedForIndegreeDistance,proto3" json:"nodes_skipped_for_indegree_distance,omitempty"` + NumberOfEdges uint64 `protobuf:"varint,12,opt,name=number_of_edges,json=numberOfEdges,proto3" json:"number_of_edges,omitempty"` + NumberOfIndexedObjects uint64 `protobuf:"varint,13,opt,name=number_of_indexed_objects,json=numberOfIndexedObjects,proto3" json:"number_of_indexed_objects,omitempty"` + NumberOfNodes uint64 `protobuf:"varint,14,opt,name=number_of_nodes,json=numberOfNodes,proto3" json:"number_of_nodes,omitempty"` + NumberOfNodesWithoutEdges uint64 `protobuf:"varint,15,opt,name=number_of_nodes_without_edges,json=numberOfNodesWithoutEdges,proto3" json:"number_of_nodes_without_edges,omitempty"` + NumberOfNodesWithoutIndegree uint64 `protobuf:"varint,16,opt,name=number_of_nodes_without_indegree,json=numberOfNodesWithoutIndegree,proto3" json:"number_of_nodes_without_indegree,omitempty"` + NumberOfObjects uint64 `protobuf:"varint,17,opt,name=number_of_objects,json=numberOfObjects,proto3" json:"number_of_objects,omitempty"` + NumberOfRemovedObjects uint64 `protobuf:"varint,18,opt,name=number_of_removed_objects,json=numberOfRemovedObjects,proto3" json:"number_of_removed_objects,omitempty"` + SizeOfObjectRepository uint64 `protobuf:"varint,19,opt,name=size_of_object_repository,json=sizeOfObjectRepository,proto3" json:"size_of_object_repository,omitempty"` + SizeOfRefinementObjectRepository uint64 `protobuf:"varint,20,opt,name=size_of_refinement_object_repository,json=sizeOfRefinementObjectRepository,proto3" json:"size_of_refinement_object_repository,omitempty"` + VarianceOfIndegree float64 `protobuf:"fixed64,21,opt,name=variance_of_indegree,json=varianceOfIndegree,proto3" json:"variance_of_indegree,omitempty"` + VarianceOfOutdegree float64 `protobuf:"fixed64,22,opt,name=variance_of_outdegree,json=varianceOfOutdegree,proto3" json:"variance_of_outdegree,omitempty"` + MeanEdgeLength float64 `protobuf:"fixed64,23,opt,name=mean_edge_length,json=meanEdgeLength,proto3" json:"mean_edge_length,omitempty"` + MeanEdgeLengthFor_10Edges float64 `protobuf:"fixed64,24,opt,name=mean_edge_length_for_10_edges,json=meanEdgeLengthFor10Edges,proto3" json:"mean_edge_length_for_10_edges,omitempty"` + MeanIndegreeDistanceFor_10Edges float64 `protobuf:"fixed64,25,opt,name=mean_indegree_distance_for_10_edges,json=meanIndegreeDistanceFor10Edges,proto3" json:"mean_indegree_distance_for_10_edges,omitempty"` + MeanNumberOfEdgesPerNode float64 `protobuf:"fixed64,26,opt,name=mean_number_of_edges_per_node,json=meanNumberOfEdgesPerNode,proto3" json:"mean_number_of_edges_per_node,omitempty"` + C1Indegree float64 `protobuf:"fixed64,27,opt,name=c1_indegree,json=c1Indegree,proto3" json:"c1_indegree,omitempty"` + C5Indegree float64 `protobuf:"fixed64,28,opt,name=c5_indegree,json=c5Indegree,proto3" json:"c5_indegree,omitempty"` + C95Outdegree float64 `protobuf:"fixed64,29,opt,name=c95_outdegree,json=c95Outdegree,proto3" json:"c95_outdegree,omitempty"` + C99Outdegree float64 `protobuf:"fixed64,30,opt,name=c99_outdegree,json=c99Outdegree,proto3" json:"c99_outdegree,omitempty"` + IndegreeCount []int64 `protobuf:"varint,31,rep,packed,name=indegree_count,json=indegreeCount,proto3" json:"indegree_count,omitempty"` + OutdegreeHistogram []uint64 `protobuf:"varint,32,rep,packed,name=outdegree_histogram,json=outdegreeHistogram,proto3" json:"outdegree_histogram,omitempty"` + IndegreeHistogram []uint64 `protobuf:"varint,33,rep,packed,name=indegree_histogram,json=indegreeHistogram,proto3" json:"indegree_histogram,omitempty"` +} + +func (x *Info_Index_Statistics) Reset() { + *x = Info_Index_Statistics{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Info_Index_Statistics) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Info_Index_Statistics) ProtoMessage() {} + +func (x *Info_Index_Statistics) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[83] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Info_Index_Statistics.ProtoReflect.Descriptor instead. +func (*Info_Index_Statistics) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 3} +} + +func (x *Info_Index_Statistics) GetValid() bool { + if x != nil { + return x.Valid + } + return false +} + +func (x *Info_Index_Statistics) GetMedianIndegree() int32 { + if x != nil { + return x.MedianIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMedianOutdegree() int32 { + if x != nil { + return x.MedianOutdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMaxNumberOfIndegree() uint64 { + if x != nil { + return x.MaxNumberOfIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMaxNumberOfOutdegree() uint64 { + if x != nil { + return x.MaxNumberOfOutdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMinNumberOfIndegree() uint64 { + if x != nil { + return x.MinNumberOfIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMinNumberOfOutdegree() uint64 { + if x != nil { + return x.MinNumberOfOutdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetModeIndegree() uint64 { + if x != nil { + return x.ModeIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetModeOutdegree() uint64 { + if x != nil { + return x.ModeOutdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetNodesSkippedFor_10Edges() uint64 { + if x != nil { + return x.NodesSkippedFor_10Edges + } + return 0 +} + +func (x *Info_Index_Statistics) GetNodesSkippedForIndegreeDistance() uint64 { + if x != nil { + return x.NodesSkippedForIndegreeDistance + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfEdges() uint64 { + if x != nil { + return x.NumberOfEdges + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfIndexedObjects() uint64 { + if x != nil { + return x.NumberOfIndexedObjects + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfNodes() uint64 { + if x != nil { + return x.NumberOfNodes + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfNodesWithoutEdges() uint64 { + if x != nil { + return x.NumberOfNodesWithoutEdges + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfNodesWithoutIndegree() uint64 { + if x != nil { + return x.NumberOfNodesWithoutIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfObjects() uint64 { + if x != nil { + return x.NumberOfObjects + } + return 0 +} + +func (x *Info_Index_Statistics) GetNumberOfRemovedObjects() uint64 { + if x != nil { + return x.NumberOfRemovedObjects + } + return 0 +} + +func (x *Info_Index_Statistics) GetSizeOfObjectRepository() uint64 { + if x != nil { + return x.SizeOfObjectRepository + } + return 0 +} + +func (x *Info_Index_Statistics) GetSizeOfRefinementObjectRepository() uint64 { + if x != nil { + return x.SizeOfRefinementObjectRepository + } + return 0 +} + +func (x *Info_Index_Statistics) GetVarianceOfIndegree() float64 { + if x != nil { + return x.VarianceOfIndegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetVarianceOfOutdegree() float64 { + if x != nil { + return x.VarianceOfOutdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetMeanEdgeLength() float64 { + if x != nil { + return x.MeanEdgeLength + } + return 0 +} + +func (x *Info_Index_Statistics) GetMeanEdgeLengthFor_10Edges() float64 { + if x != nil { + return x.MeanEdgeLengthFor_10Edges + } + return 0 +} + +func (x *Info_Index_Statistics) GetMeanIndegreeDistanceFor_10Edges() float64 { + if x != nil { + return x.MeanIndegreeDistanceFor_10Edges + } + return 0 +} + +func (x *Info_Index_Statistics) GetMeanNumberOfEdgesPerNode() float64 { + if x != nil { + return x.MeanNumberOfEdgesPerNode + } + return 0 +} + +func (x *Info_Index_Statistics) GetC1Indegree() float64 { + if x != nil { + return x.C1Indegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetC5Indegree() float64 { + if x != nil { + return x.C5Indegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetC95Outdegree() float64 { + if x != nil { + return x.C95Outdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetC99Outdegree() float64 { + if x != nil { + return x.C99Outdegree + } + return 0 +} + +func (x *Info_Index_Statistics) GetIndegreeCount() []int64 { + if x != nil { + return x.IndegreeCount + } + return nil +} + +func (x *Info_Index_Statistics) GetOutdegreeHistogram() []uint64 { + if x != nil { + return x.OutdegreeHistogram + } + return nil +} + +func (x *Info_Index_Statistics) GetIndegreeHistogram() []uint64 { + if x != nil { + return x.IndegreeHistogram + } + return nil +} + +// Represents index Statistics for each Agents +type Info_Index_StatisticsDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // count infos for each agents + Counts map[string]*Info_Index_Statistics `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Info_Index_StatisticsDetail) Reset() { + *x = Info_Index_StatisticsDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Info_Index_StatisticsDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Info_Index_StatisticsDetail) ProtoMessage() {} + +func (x *Info_Index_StatisticsDetail) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[84] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Info_Index_StatisticsDetail.ProtoReflect.Descriptor instead. +func (*Info_Index_StatisticsDetail) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 4} +} + +func (x *Info_Index_StatisticsDetail) GetCounts() map[string]*Info_Index_Statistics { + if x != nil { + return x.Counts + } + return nil +} + // The committed UUID. type Info_Index_UUID_Committed struct { state protoimpl.MessageState @@ -4910,7 +5266,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4923,7 +5279,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4958,7 +5314,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4971,7 +5327,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5009,7 +5365,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[88] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5022,7 +5378,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[88] + mi := &file_v1_payload_payload_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5065,7 +5421,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[89] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5078,7 +5434,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[89] + mi := &file_v1_payload_payload_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5468,8 +5824,8 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x64, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0xee, 0x0e, - 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0xac, 0x03, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0xce, 0x1d, + 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x8c, 0x12, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0x75, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, @@ -5496,7 +5852,125 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x1a, 0x21, 0x0a, 0x0b, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x75, 0x69, 0x64, 0x1a, 0xef, 0x01, 0x0a, 0x03, 0x50, 0x6f, 0x64, 0x12, 0x19, 0x0a, + 0x04, 0x75, 0x75, 0x69, 0x64, 0x1a, 0x9d, 0x0d, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x65, + 0x64, 0x69, 0x61, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x67, + 0x72, 0x65, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x6e, 0x5f, 0x6f, 0x75, + 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x6e, 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x33, + 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, + 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x67, + 0x72, 0x65, 0x65, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, + 0x66, 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x69, + 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, + 0x67, 0x72, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x6d, 0x69, 0x6e, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, + 0x35, 0x0a, 0x17, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, + 0x5f, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x14, 0x6d, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4f, 0x75, 0x74, + 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x5f, 0x69, + 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6d, + 0x6f, 0x64, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, + 0x65, 0x65, 0x12, 0x3a, 0x0a, 0x1a, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, + 0x70, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x31, 0x30, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x53, 0x6b, 0x69, + 0x70, 0x70, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x31, 0x30, 0x45, 0x64, 0x67, 0x65, 0x73, 0x12, 0x4c, + 0x0a, 0x23, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, + 0x66, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x5f, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1f, 0x6e, 0x6f, 0x64, + 0x65, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, + 0x67, 0x72, 0x65, 0x65, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x45, + 0x64, 0x67, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, + 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, + 0x66, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, + 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x4f, 0x66, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1d, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x6f, + 0x75, 0x74, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x6f, 0x75, 0x74, 0x45, 0x64, 0x67, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x20, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x77, 0x69, 0x74, + 0x68, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x1c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4e, 0x6f, 0x64, + 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, + 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x39, 0x0a, + 0x19, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x16, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x73, 0x69, 0x7a, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x73, 0x69, 0x7a, + 0x65, 0x4f, 0x66, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x24, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x72, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x4f, 0x66, 0x52, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x14, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x12, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x49, 0x6e, 0x64, + 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x63, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x16, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x13, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x66, + 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x65, 0x61, + 0x6e, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x17, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x0e, 0x6d, 0x65, 0x61, 0x6e, 0x45, 0x64, 0x67, 0x65, 0x4c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x12, 0x3f, 0x0a, 0x1d, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x65, 0x64, 0x67, 0x65, + 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x31, 0x30, 0x5f, 0x65, + 0x64, 0x67, 0x65, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x01, 0x52, 0x18, 0x6d, 0x65, 0x61, 0x6e, + 0x45, 0x64, 0x67, 0x65, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x46, 0x6f, 0x72, 0x31, 0x30, 0x45, + 0x64, 0x67, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x23, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x67, 0x72, 0x65, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, + 0x6f, 0x72, 0x5f, 0x31, 0x30, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x1e, 0x6d, 0x65, 0x61, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x31, 0x30, 0x45, 0x64, 0x67, 0x65, + 0x73, 0x12, 0x3f, 0x0a, 0x1d, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x5f, 0x6f, 0x66, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6e, 0x6f, + 0x64, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x01, 0x52, 0x18, 0x6d, 0x65, 0x61, 0x6e, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x45, 0x64, 0x67, 0x65, 0x73, 0x50, 0x65, 0x72, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x31, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, + 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x31, 0x49, 0x6e, 0x64, 0x65, 0x67, + 0x72, 0x65, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x35, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, + 0x65, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x35, 0x49, 0x6e, 0x64, 0x65, + 0x67, 0x72, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x39, 0x35, 0x5f, 0x6f, 0x75, 0x74, 0x64, + 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x39, 0x35, + 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x39, 0x39, + 0x5f, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x01, + 0x52, 0x0c, 0x63, 0x39, 0x39, 0x4f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x1f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x13, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, + 0x65, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x20, 0x20, 0x03, + 0x28, 0x04, 0x52, 0x12, 0x6f, 0x75, 0x74, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, + 0x65, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x21, 0x20, 0x03, + 0x28, 0x04, 0x52, 0x11, 0x69, 0x6e, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x1a, 0xbd, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x4b, 0x0a, 0x06, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x5c, 0x0a, 0x0b, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xef, 0x01, 0x0a, 0x03, 0x50, 0x6f, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, @@ -5619,7 +6093,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 90) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 93) var file_v1_payload_payload_proto_goTypes = []any{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -5706,15 +6180,18 @@ var file_v1_payload_payload_proto_goTypes = []any{ (*Info_Index_Count)(nil), // 82: payload.v1.Info.Index.Count (*Info_Index_Detail)(nil), // 83: payload.v1.Info.Index.Detail (*Info_Index_UUID)(nil), // 84: payload.v1.Info.Index.UUID - nil, // 85: payload.v1.Info.Index.Detail.CountsEntry - (*Info_Index_UUID_Committed)(nil), // 86: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 87: payload.v1.Info.Index.UUID.Uncommitted - nil, // 88: payload.v1.Info.Labels.LabelsEntry - nil, // 89: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 90: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 91: payload.v1.Mirror.Targets - (*wrapperspb.FloatValue)(nil), // 92: google.protobuf.FloatValue - (*status.Status)(nil), // 93: google.rpc.Status + (*Info_Index_Statistics)(nil), // 85: payload.v1.Info.Index.Statistics + (*Info_Index_StatisticsDetail)(nil), // 86: payload.v1.Info.Index.StatisticsDetail + nil, // 87: payload.v1.Info.Index.Detail.CountsEntry + (*Info_Index_UUID_Committed)(nil), // 88: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 89: payload.v1.Info.Index.UUID.Uncommitted + nil, // 90: payload.v1.Info.Index.StatisticsDetail.CountsEntry + nil, // 91: payload.v1.Info.Labels.LabelsEntry + nil, // 92: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 93: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 94: payload.v1.Mirror.Targets + (*wrapperspb.FloatValue)(nil), // 95: google.protobuf.FloatValue + (*status.Status)(nil), // 96: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5727,11 +6204,11 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 26, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config 26, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 92, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue + 95, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue 49, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 22, // 12: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 22, // 13: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 93, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 96, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status 25, // 15: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target 53, // 16: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector 31, // 17: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config @@ -5765,18 +6242,18 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 51, // 45: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID 26, // 46: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config 49, // 47: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 93, // 48: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 96, // 48: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status 51, // 49: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID 53, // 50: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector 53, // 51: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 93, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 96, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status 59, // 53: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 93, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 96, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status 61, // 55: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 93, // 56: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 96, // 56: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status 61, // 57: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location 53, // 58: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 93, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 96, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status 76, // 60: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU 77, // 61: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory 71, // 62: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node @@ -5786,19 +6263,21 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 73, // 66: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort 74, // 67: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels 75, // 68: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 88, // 69: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 89, // 70: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 91, // 69: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 92, // 70: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry 70, // 71: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod 71, // 72: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node 72, // 73: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 85, // 74: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry - 82, // 75: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count - 90, // 76: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 77, // [77:77] is the sub-list for method output_type - 77, // [77:77] is the sub-list for method input_type - 77, // [77:77] is the sub-list for extension type_name - 77, // [77:77] is the sub-list for extension extendee - 0, // [0:77] is the sub-list for field type_name + 87, // 74: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry + 90, // 75: payload.v1.Info.Index.StatisticsDetail.counts:type_name -> payload.v1.Info.Index.StatisticsDetail.CountsEntry + 82, // 76: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count + 85, // 77: payload.v1.Info.Index.StatisticsDetail.CountsEntry.value:type_name -> payload.v1.Info.Index.Statistics + 93, // 78: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 79, // [79:79] is the sub-list for method output_type + 79, // [79:79] is the sub-list for method input_type + 79, // [79:79] is the sub-list for extension type_name + 79, // [79:79] is the sub-list for extension extendee + 0, // [0:79] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -6803,7 +7282,31 @@ func file_v1_payload_payload_proto_init() { return nil } } + file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_Statistics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_StatisticsDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v any, i int) any { switch v := v.(*Info_Index_UUID_Committed); i { case 0: return &v.state @@ -6815,7 +7318,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[87].Exporter = func(v any, i int) any { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -6827,7 +7330,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[88].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[91].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Target); i { case 0: return &v.state @@ -6839,7 +7342,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[89].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[92].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -6882,7 +7385,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 90, + NumMessages: 93, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload.pb.json.go b/apis/grpc/v1/payload/payload.pb.json.go index 96c5c744954..159ebc555cb 100644 --- a/apis/grpc/v1/payload/payload.pb.json.go +++ b/apis/grpc/v1/payload/payload.pb.json.go @@ -731,6 +731,26 @@ func (msg *Info_Index_UUID_Uncommitted) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{}.Unmarshal(b, msg) } +// MarshalJSON implements json.Marshaler +func (msg *Info_Index_Statistics) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Info_Index_Statistics) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *Info_Index_StatisticsDetail) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Info_Index_StatisticsDetail) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + // MarshalJSON implements json.Marshaler func (msg *Info_Pod) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{}.Marshal(msg) diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 3daa37f0afe..6ed23972cb2 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -1549,6 +1549,90 @@ func (m *Info_Index_UUID) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Info_Index_Statistics) CloneVT() *Info_Index_Statistics { + if m == nil { + return (*Info_Index_Statistics)(nil) + } + r := new(Info_Index_Statistics) + r.Valid = m.Valid + r.MedianIndegree = m.MedianIndegree + r.MedianOutdegree = m.MedianOutdegree + r.MaxNumberOfIndegree = m.MaxNumberOfIndegree + r.MaxNumberOfOutdegree = m.MaxNumberOfOutdegree + r.MinNumberOfIndegree = m.MinNumberOfIndegree + r.MinNumberOfOutdegree = m.MinNumberOfOutdegree + r.ModeIndegree = m.ModeIndegree + r.ModeOutdegree = m.ModeOutdegree + r.NodesSkippedFor_10Edges = m.NodesSkippedFor_10Edges + r.NodesSkippedForIndegreeDistance = m.NodesSkippedForIndegreeDistance + r.NumberOfEdges = m.NumberOfEdges + r.NumberOfIndexedObjects = m.NumberOfIndexedObjects + r.NumberOfNodes = m.NumberOfNodes + r.NumberOfNodesWithoutEdges = m.NumberOfNodesWithoutEdges + r.NumberOfNodesWithoutIndegree = m.NumberOfNodesWithoutIndegree + r.NumberOfObjects = m.NumberOfObjects + r.NumberOfRemovedObjects = m.NumberOfRemovedObjects + r.SizeOfObjectRepository = m.SizeOfObjectRepository + r.SizeOfRefinementObjectRepository = m.SizeOfRefinementObjectRepository + r.VarianceOfIndegree = m.VarianceOfIndegree + r.VarianceOfOutdegree = m.VarianceOfOutdegree + r.MeanEdgeLength = m.MeanEdgeLength + r.MeanEdgeLengthFor_10Edges = m.MeanEdgeLengthFor_10Edges + r.MeanIndegreeDistanceFor_10Edges = m.MeanIndegreeDistanceFor_10Edges + r.MeanNumberOfEdgesPerNode = m.MeanNumberOfEdgesPerNode + r.C1Indegree = m.C1Indegree + r.C5Indegree = m.C5Indegree + r.C95Outdegree = m.C95Outdegree + r.C99Outdegree = m.C99Outdegree + if rhs := m.IndegreeCount; rhs != nil { + tmpContainer := make([]int64, len(rhs)) + copy(tmpContainer, rhs) + r.IndegreeCount = tmpContainer + } + if rhs := m.OutdegreeHistogram; rhs != nil { + tmpContainer := make([]uint64, len(rhs)) + copy(tmpContainer, rhs) + r.OutdegreeHistogram = tmpContainer + } + if rhs := m.IndegreeHistogram; rhs != nil { + tmpContainer := make([]uint64, len(rhs)) + copy(tmpContainer, rhs) + r.IndegreeHistogram = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Info_Index_Statistics) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Info_Index_StatisticsDetail) CloneVT() *Info_Index_StatisticsDetail { + if m == nil { + return (*Info_Index_StatisticsDetail)(nil) + } + r := new(Info_Index_StatisticsDetail) + if rhs := m.Counts; rhs != nil { + tmpContainer := make(map[string]*Info_Index_Statistics, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Counts = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Info_Index_StatisticsDetail) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Info_Index) CloneVT() *Info_Index { if m == nil { return (*Info_Index)(nil) @@ -4000,6 +4084,175 @@ func (this *Info_Index_UUID) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } +func (this *Info_Index_Statistics) EqualVT(that *Info_Index_Statistics) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Valid != that.Valid { + return false + } + if this.MedianIndegree != that.MedianIndegree { + return false + } + if this.MedianOutdegree != that.MedianOutdegree { + return false + } + if this.MaxNumberOfIndegree != that.MaxNumberOfIndegree { + return false + } + if this.MaxNumberOfOutdegree != that.MaxNumberOfOutdegree { + return false + } + if this.MinNumberOfIndegree != that.MinNumberOfIndegree { + return false + } + if this.MinNumberOfOutdegree != that.MinNumberOfOutdegree { + return false + } + if this.ModeIndegree != that.ModeIndegree { + return false + } + if this.ModeOutdegree != that.ModeOutdegree { + return false + } + if this.NodesSkippedFor_10Edges != that.NodesSkippedFor_10Edges { + return false + } + if this.NodesSkippedForIndegreeDistance != that.NodesSkippedForIndegreeDistance { + return false + } + if this.NumberOfEdges != that.NumberOfEdges { + return false + } + if this.NumberOfIndexedObjects != that.NumberOfIndexedObjects { + return false + } + if this.NumberOfNodes != that.NumberOfNodes { + return false + } + if this.NumberOfNodesWithoutEdges != that.NumberOfNodesWithoutEdges { + return false + } + if this.NumberOfNodesWithoutIndegree != that.NumberOfNodesWithoutIndegree { + return false + } + if this.NumberOfObjects != that.NumberOfObjects { + return false + } + if this.NumberOfRemovedObjects != that.NumberOfRemovedObjects { + return false + } + if this.SizeOfObjectRepository != that.SizeOfObjectRepository { + return false + } + if this.SizeOfRefinementObjectRepository != that.SizeOfRefinementObjectRepository { + return false + } + if this.VarianceOfIndegree != that.VarianceOfIndegree { + return false + } + if this.VarianceOfOutdegree != that.VarianceOfOutdegree { + return false + } + if this.MeanEdgeLength != that.MeanEdgeLength { + return false + } + if this.MeanEdgeLengthFor_10Edges != that.MeanEdgeLengthFor_10Edges { + return false + } + if this.MeanIndegreeDistanceFor_10Edges != that.MeanIndegreeDistanceFor_10Edges { + return false + } + if this.MeanNumberOfEdgesPerNode != that.MeanNumberOfEdgesPerNode { + return false + } + if this.C1Indegree != that.C1Indegree { + return false + } + if this.C5Indegree != that.C5Indegree { + return false + } + if this.C95Outdegree != that.C95Outdegree { + return false + } + if this.C99Outdegree != that.C99Outdegree { + return false + } + if len(this.IndegreeCount) != len(that.IndegreeCount) { + return false + } + for i, vx := range this.IndegreeCount { + vy := that.IndegreeCount[i] + if vx != vy { + return false + } + } + if len(this.OutdegreeHistogram) != len(that.OutdegreeHistogram) { + return false + } + for i, vx := range this.OutdegreeHistogram { + vy := that.OutdegreeHistogram[i] + if vx != vy { + return false + } + } + if len(this.IndegreeHistogram) != len(that.IndegreeHistogram) { + return false + } + for i, vx := range this.IndegreeHistogram { + vy := that.IndegreeHistogram[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Info_Index_Statistics) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Info_Index_Statistics) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Info_Index_StatisticsDetail) EqualVT(that *Info_Index_StatisticsDetail) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Counts) != len(that.Counts) { + return false + } + for i, vx := range this.Counts { + vy, ok := that.Counts[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &Info_Index_Statistics{} + } + if q == nil { + q = &Info_Index_Statistics{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Info_Index_StatisticsDetail) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Info_Index_StatisticsDetail) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *Info_Index) EqualVT(that *Info_Index) bool { if this == that { return true @@ -8021,40 +8274,7 @@ func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - return len(dAtA) - i, nil -} - -func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_Statistics) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8067,12 +8287,12 @@ func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_Statistics) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_Statistics) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8084,152 +8304,272 @@ func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Node != nil { - size, err := m.Node.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IndegreeHistogram) > 0 { + var pksize2 int + for _, num := range m.IndegreeHistogram { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i -= pksize2 + j1 := i + for _, num := range m.IndegreeHistogram { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a } - if m.Memory != nil { - size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.OutdegreeHistogram) > 0 { + var pksize4 int + for _, num := range m.OutdegreeHistogram { + pksize4 += protohelpers.SizeOfVarint(uint64(num)) } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i -= pksize4 + j3 := i + for _, num := range m.OutdegreeHistogram { + for num >= 1<<7 { + dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA[j3] = uint8(num) + j3++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize4)) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 } - if m.Cpu != nil { - size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IndegreeCount) > 0 { + var pksize6 int + for _, num := range m.IndegreeCount { + pksize6 += protohelpers.SizeOfVarint(uint64(num)) } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i -= pksize6 + j5 := i + for _, num1 := range m.IndegreeCount { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA[j5] = uint8(num) + j5++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize6)) i-- - dAtA[i] = 0x2a - } - if len(m.Ip) > 0 { - i -= len(m.Ip) - copy(dAtA[i:], m.Ip) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip))) + dAtA[i] = 0x1 i-- - dAtA[i] = 0x22 + dAtA[i] = 0xfa } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + if m.C99Outdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C99Outdegree)))) i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + dAtA[i] = 0x1 i-- - dAtA[i] = 0x12 + dAtA[i] = 0xf1 } - if len(m.AppName) > 0 { - i -= len(m.AppName) - copy(dAtA[i:], m.AppName) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AppName))) + if m.C95Outdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C95Outdegree)))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe9 } - return len(dAtA) - i, nil -} - -func (m *Info_Node) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil + if m.C5Indegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C5Indegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe1 } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err + if m.C1Indegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C1Indegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd9 } - return dAtA[:n], nil -} - -func (m *Info_Node) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Info_Node) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil + if m.MeanNumberOfEdgesPerNode != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanNumberOfEdgesPerNode)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd1 } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if m.MeanIndegreeDistanceFor_10Edges != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanIndegreeDistanceFor_10Edges)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc9 } - if m.Pods != nil { - size, err := m.Pods.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.MeanEdgeLengthFor_10Edges != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLengthFor_10Edges)))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc1 } - if m.Memory != nil { - size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.MeanEdgeLength != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLength)))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb9 } - if m.Cpu != nil { - size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.VarianceOfOutdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfOutdegree)))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb1 } - if len(m.ExternalAddr) > 0 { - i -= len(m.ExternalAddr) - copy(dAtA[i:], m.ExternalAddr) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ExternalAddr))) + if m.VarianceOfIndegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfIndegree)))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa9 } - if len(m.InternalAddr) > 0 { - i -= len(m.InternalAddr) - copy(dAtA[i:], m.InternalAddr) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalAddr))) + if m.SizeOfRefinementObjectRepository != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfRefinementObjectRepository)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if m.SizeOfObjectRepository != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfObjectRepository)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.NumberOfRemovedObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfRemovedObjects)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.NumberOfObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfObjects)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.NumberOfNodesWithoutIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutIndegree)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.NumberOfNodesWithoutEdges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutEdges)) + i-- + dAtA[i] = 0x78 + } + if m.NumberOfNodes != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodes)) + i-- + dAtA[i] = 0x70 + } + if m.NumberOfIndexedObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfIndexedObjects)) + i-- + dAtA[i] = 0x68 + } + if m.NumberOfEdges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfEdges)) + i-- + dAtA[i] = 0x60 + } + if m.NodesSkippedForIndegreeDistance != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedForIndegreeDistance)) + i-- + dAtA[i] = 0x58 + } + if m.NodesSkippedFor_10Edges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedFor_10Edges)) + i-- + dAtA[i] = 0x50 + } + if m.ModeOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeOutdegree)) + i-- + dAtA[i] = 0x48 + } + if m.ModeIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeIndegree)) + i-- + dAtA[i] = 0x40 + } + if m.MinNumberOfOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfOutdegree)) + i-- + dAtA[i] = 0x38 + } + if m.MinNumberOfIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfIndegree)) + i-- + dAtA[i] = 0x30 + } + if m.MaxNumberOfOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfOutdegree)) + i-- + dAtA[i] = 0x28 + } + if m.MaxNumberOfIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfIndegree)) + i-- + dAtA[i] = 0x20 + } + if m.MedianOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianOutdegree)) + i-- + dAtA[i] = 0x18 + } + if m.MedianIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianIndegree)) + i-- + dAtA[i] = 0x10 + } + if m.Valid { + i-- + if m.Valid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_StatisticsDetail) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8242,12 +8582,12 @@ func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Service) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_StatisticsDetail) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_StatisticsDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8259,65 +8599,32 @@ func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Annotations != nil { - size, err := m.Annotations.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 - } - if m.Labels != nil { - size, err := m.Labels.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x2a - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Counts) > 0 { + for k := range m.Counts { + v := m.Counts[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x22 - } - } - if len(m.ClusterIps) > 0 { - for iNdEx := len(m.ClusterIps) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ClusterIps[iNdEx]) - copy(dAtA[i:], m.ClusterIps[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIps[iNdEx]))) + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } } - if len(m.ClusterIp) > 0 { - i -= len(m.ClusterIp) - copy(dAtA[i:], m.ClusterIp) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIp))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8330,12 +8637,12 @@ func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_ServicePort) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8347,22 +8654,10 @@ func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Port != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8375,12 +8670,12 @@ func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Labels) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8392,29 +8687,68 @@ func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.Node != nil { + size, err := m.Node.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } - } - return len(dAtA) - i, nil + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0x22 + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.AppName) > 0 { + i -= len(m.AppName) + copy(dAtA[i:], m.AppName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AppName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Node) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8427,12 +8761,12 @@ func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Annotations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Node) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Node) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8444,29 +8778,61 @@ func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.Pods != nil { + size, err := m.Pods.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.ExternalAddr) > 0 { + i -= len(m.ExternalAddr) + copy(dAtA[i:], m.ExternalAddr) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ExternalAddr))) + i-- + dAtA[i] = 0x1a + } + if len(m.InternalAddr) > 0 { + i -= len(m.InternalAddr) + copy(dAtA[i:], m.InternalAddr) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalAddr))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8479,12 +8845,12 @@ func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_CPU) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Service) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8496,28 +8862,65 @@ func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Usage != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + if m.Annotations != nil { + size, err := m.Annotations.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x19 + dAtA[i] = 0x32 } - if m.Request != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + if m.Labels != nil { + size, err := m.Labels.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x11 + dAtA[i] = 0x2a } - if m.Limit != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.ClusterIps) > 0 { + for iNdEx := len(m.ClusterIps) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterIps[iNdEx]) + copy(dAtA[i:], m.ClusterIps[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIps[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ClusterIp) > 0 { + i -= len(m.ClusterIp) + copy(dAtA[i:], m.ClusterIp) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIp))) i-- - dAtA[i] = 0x9 + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { +func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8530,12 +8933,12 @@ func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Memory) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_ServicePort) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8547,28 +8950,22 @@ func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Usage != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) - i-- - dAtA[i] = 0x19 - } - if m.Request != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + if m.Port != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port)) i-- - dAtA[i] = 0x11 + dAtA[i] = 0x10 } - if m.Limit != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- - dAtA[i] = 0x9 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8581,12 +8978,12 @@ func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Pods) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Labels) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8598,14 +8995,21 @@ func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Pods) > 0 { - for iNdEx := len(m.Pods) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Pods[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.Labels) > 0 { + for k := range m.Labels { + v := m.Labels[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0xa } @@ -8613,7 +9017,7 @@ func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8626,12 +9030,211 @@ func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Nodes) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Annotations) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Nodes) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Annotations) > 0 { + for k := range m.Annotations { + v := m.Annotations[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_CPU) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Usage != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + i-- + dAtA[i] = 0x19 + } + if m.Request != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + i-- + dAtA[i] = 0x11 + } + if m.Limit != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Memory) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Usage != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + i-- + dAtA[i] = 0x19 + } + if m.Request != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + i-- + dAtA[i] = 0x11 + } + if m.Limit != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Pods) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Pods) > 0 { + for iNdEx := len(m.Pods) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Pods[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Nodes) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Nodes) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -10239,81 +10842,225 @@ func (m *Info_Index_UUID) SizeVT() (n int) { return n } -func (m *Info_Index) SizeVT() (n int) { +func (m *Info_Index_Statistics) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - n += len(m.unknownFields) - return n -} - -func (m *Info_Pod) SizeVT() (n int) { - if m == nil { - return 0 + if m.Valid { + n += 2 } - var l int - _ = l - l = len(m.AppName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MedianIndegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MedianIndegree)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MedianOutdegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MedianOutdegree)) } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MaxNumberOfIndegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxNumberOfIndegree)) } - l = len(m.Ip) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MaxNumberOfOutdegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxNumberOfOutdegree)) } - if m.Cpu != nil { - l = m.Cpu.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MinNumberOfIndegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNumberOfIndegree)) } - if m.Memory != nil { - l = m.Memory.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.MinNumberOfOutdegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNumberOfOutdegree)) } - if m.Node != nil { - l = m.Node.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.ModeIndegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ModeIndegree)) } - n += len(m.unknownFields) - return n -} - -func (m *Info_Node) SizeVT() (n int) { - if m == nil { - return 0 + if m.ModeOutdegree != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ModeOutdegree)) } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.NodesSkippedFor_10Edges != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NodesSkippedFor_10Edges)) } - l = len(m.InternalAddr) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.NodesSkippedForIndegreeDistance != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NodesSkippedForIndegreeDistance)) } - l = len(m.ExternalAddr) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.NumberOfEdges != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NumberOfEdges)) } - if m.Cpu != nil { - l = m.Cpu.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.NumberOfIndexedObjects != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NumberOfIndexedObjects)) } - if m.Memory != nil { - l = m.Memory.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.NumberOfNodes != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NumberOfNodes)) } - if m.Pods != nil { + if m.NumberOfNodesWithoutEdges != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.NumberOfNodesWithoutEdges)) + } + if m.NumberOfNodesWithoutIndegree != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.NumberOfNodesWithoutIndegree)) + } + if m.NumberOfObjects != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.NumberOfObjects)) + } + if m.NumberOfRemovedObjects != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.NumberOfRemovedObjects)) + } + if m.SizeOfObjectRepository != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.SizeOfObjectRepository)) + } + if m.SizeOfRefinementObjectRepository != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.SizeOfRefinementObjectRepository)) + } + if m.VarianceOfIndegree != 0 { + n += 10 + } + if m.VarianceOfOutdegree != 0 { + n += 10 + } + if m.MeanEdgeLength != 0 { + n += 10 + } + if m.MeanEdgeLengthFor_10Edges != 0 { + n += 10 + } + if m.MeanIndegreeDistanceFor_10Edges != 0 { + n += 10 + } + if m.MeanNumberOfEdgesPerNode != 0 { + n += 10 + } + if m.C1Indegree != 0 { + n += 10 + } + if m.C5Indegree != 0 { + n += 10 + } + if m.C95Outdegree != 0 { + n += 10 + } + if m.C99Outdegree != 0 { + n += 10 + } + if len(m.IndegreeCount) > 0 { + l = 0 + for _, e := range m.IndegreeCount { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 2 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if len(m.OutdegreeHistogram) > 0 { + l = 0 + for _, e := range m.OutdegreeHistogram { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 2 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if len(m.IndegreeHistogram) > 0 { + l = 0 + for _, e := range m.IndegreeHistogram { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 2 + protohelpers.SizeOfVarint(uint64(l)) + l + } + n += len(m.unknownFields) + return n +} + +func (m *Info_Index_StatisticsDetail) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Counts) > 0 { + for k, v := range m.Counts { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Info_Index) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Info_Pod) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AppName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Ip) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cpu != nil { + l = m.Cpu.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Memory != nil { + l = m.Memory.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Node != nil { + l = m.Node.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Info_Node) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.InternalAddr) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ExternalAddr) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cpu != nil { + l = m.Cpu.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Memory != nil { + l = m.Memory.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Pods != nil { l = m.Pods.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -17834,6 +18581,956 @@ func (m *Info_Index_UUID) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_Index_Statistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_Statistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Valid = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MedianIndegree", wireType) + } + m.MedianIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MedianIndegree |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MedianOutdegree", wireType) + } + m.MedianOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MedianOutdegree |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfIndegree", wireType) + } + m.MaxNumberOfIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNumberOfIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfOutdegree", wireType) + } + m.MaxNumberOfOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNumberOfOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfIndegree", wireType) + } + m.MinNumberOfIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNumberOfIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfOutdegree", wireType) + } + m.MinNumberOfOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNumberOfOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModeIndegree", wireType) + } + m.ModeIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ModeIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModeOutdegree", wireType) + } + m.ModeOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ModeOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedFor_10Edges", wireType) + } + m.NodesSkippedFor_10Edges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodesSkippedFor_10Edges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedForIndegreeDistance", wireType) + } + m.NodesSkippedForIndegreeDistance = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodesSkippedForIndegreeDistance |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfEdges", wireType) + } + m.NumberOfEdges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfEdges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfIndexedObjects", wireType) + } + m.NumberOfIndexedObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfIndexedObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodes", wireType) + } + m.NumberOfNodes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodes |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutEdges", wireType) + } + m.NumberOfNodesWithoutEdges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodesWithoutEdges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutIndegree", wireType) + } + m.NumberOfNodesWithoutIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodesWithoutIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfObjects", wireType) + } + m.NumberOfObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfRemovedObjects", wireType) + } + m.NumberOfRemovedObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfRemovedObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeOfObjectRepository", wireType) + } + m.SizeOfObjectRepository = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SizeOfObjectRepository |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeOfRefinementObjectRepository", wireType) + } + m.SizeOfRefinementObjectRepository = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SizeOfRefinementObjectRepository |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfIndegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.VarianceOfIndegree = float64(math.Float64frombits(v)) + case 22: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfOutdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.VarianceOfOutdegree = float64(math.Float64frombits(v)) + case 23: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLength", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanEdgeLength = float64(math.Float64frombits(v)) + case 24: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLengthFor_10Edges", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanEdgeLengthFor_10Edges = float64(math.Float64frombits(v)) + case 25: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanIndegreeDistanceFor_10Edges", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanIndegreeDistanceFor_10Edges = float64(math.Float64frombits(v)) + case 26: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanNumberOfEdgesPerNode", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanNumberOfEdgesPerNode = float64(math.Float64frombits(v)) + case 27: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C1Indegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C1Indegree = float64(math.Float64frombits(v)) + case 28: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C5Indegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C5Indegree = float64(math.Float64frombits(v)) + case 29: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C95Outdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C95Outdegree = float64(math.Float64frombits(v)) + case 30: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C99Outdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C99Outdegree = float64(math.Float64frombits(v)) + case 31: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeCount = append(m.IndegreeCount, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.IndegreeCount) == 0 { + m.IndegreeCount = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeCount = append(m.IndegreeCount, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field IndegreeCount", wireType) + } + case 32: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.OutdegreeHistogram) == 0 { + m.OutdegreeHistogram = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field OutdegreeHistogram", wireType) + } + case 33: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeHistogram = append(m.IndegreeHistogram, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.IndegreeHistogram) == 0 { + m.IndegreeHistogram = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeHistogram = append(m.IndegreeHistogram, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field IndegreeHistogram", wireType) + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_Index_StatisticsDetail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_StatisticsDetail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counts == nil { + m.Counts = make(map[string]*Info_Index_Statistics) + } + var mapkey string + var mapvalue *Info_Index_Statistics + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Info_Index_Statistics{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Counts[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Info_Index) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/apis/grpc/v1/vald/filter_vtproto.pb.go b/apis/grpc/v1/vald/filter_vtproto.pb.go index c72529c391f..a73d2576fdd 100644 --- a/apis/grpc/v1/vald/filter_vtproto.pb.go +++ b/apis/grpc/v1/vald/filter_vtproto.pb.go @@ -397,10 +397,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { } func _Filter_SearchObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_ObjectRequest) if err := dec(in); err != nil { @@ -420,10 +417,7 @@ func _Filter_SearchObject_Handler( } func _Filter_MultiSearchObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_MultiObjectRequest) if err := dec(in); err != nil { @@ -469,10 +463,7 @@ func (x *filterStreamSearchObjectServer) Recv() (*payload.Search_ObjectRequest, } func _Filter_InsertObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Insert_ObjectRequest) if err := dec(in); err != nil { @@ -518,10 +509,7 @@ func (x *filterStreamInsertObjectServer) Recv() (*payload.Insert_ObjectRequest, } func _Filter_MultiInsertObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Insert_MultiObjectRequest) if err := dec(in); err != nil { @@ -541,10 +529,7 @@ func _Filter_MultiInsertObject_Handler( } func _Filter_UpdateObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Update_ObjectRequest) if err := dec(in); err != nil { @@ -590,10 +575,7 @@ func (x *filterStreamUpdateObjectServer) Recv() (*payload.Update_ObjectRequest, } func _Filter_MultiUpdateObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Update_MultiObjectRequest) if err := dec(in); err != nil { @@ -613,10 +595,7 @@ func _Filter_MultiUpdateObject_Handler( } func _Filter_UpsertObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Upsert_ObjectRequest) if err := dec(in); err != nil { @@ -662,10 +641,7 @@ func (x *filterStreamUpsertObjectServer) Recv() (*payload.Upsert_ObjectRequest, } func _Filter_MultiUpsertObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Upsert_MultiObjectRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/flush_vtproto.pb.go b/apis/grpc/v1/vald/flush_vtproto.pb.go index 8d1e3abd522..29a8ac2a900 100644 --- a/apis/grpc/v1/vald/flush_vtproto.pb.go +++ b/apis/grpc/v1/vald/flush_vtproto.pb.go @@ -97,10 +97,7 @@ func RegisterFlushServer(s grpc.ServiceRegistrar, srv FlushServer) { } func _Flush_Flush_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Flush_Request) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/index.pb.go b/apis/grpc/v1/vald/index.pb.go index 624f1336d2c..77bcdbf2f09 100644 --- a/apis/grpc/v1/vald/index.pb.go +++ b/apis/grpc/v1/vald/index.pb.go @@ -46,7 +46,7 @@ var file_v1_vald_index_proto_rawDesc = []byte{ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xb2, 0x01, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x8d, 0x03, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x51, 0x0a, 0x09, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x11, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, @@ -57,27 +57,47 @@ var file_v1_vald_index_proto_rawDesc = []byte{ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1d, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x52, 0x0a, 0x1a, 0x6f, - 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x42, 0x09, 0x56, 0x61, 0x6c, 0x64, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, - 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x62, 0x0a, 0x0f, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x11, + 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, + 0x75, 0x0a, 0x15, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x11, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x27, 0x2e, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2f, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x52, 0x0a, 0x1a, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, + 0x61, 0x61, 0x73, 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x76, 0x61, 0x6c, 0x64, 0x42, 0x09, 0x56, 0x61, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, + 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, + 0x61, 0x61, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, + 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var file_v1_vald_index_proto_goTypes = []any{ - (*payload.Empty)(nil), // 0: payload.v1.Empty - (*payload.Info_Index_Count)(nil), // 1: payload.v1.Info.Index.Count - (*payload.Info_Index_Detail)(nil), // 2: payload.v1.Info.Index.Detail + (*payload.Empty)(nil), // 0: payload.v1.Empty + (*payload.Info_Index_Count)(nil), // 1: payload.v1.Info.Index.Count + (*payload.Info_Index_Detail)(nil), // 2: payload.v1.Info.Index.Detail + (*payload.Info_Index_Statistics)(nil), // 3: payload.v1.Info.Index.Statistics + (*payload.Info_Index_StatisticsDetail)(nil), // 4: payload.v1.Info.Index.StatisticsDetail } var file_v1_vald_index_proto_depIdxs = []int32{ 0, // 0: vald.v1.Index.IndexInfo:input_type -> payload.v1.Empty 0, // 1: vald.v1.Index.IndexDetail:input_type -> payload.v1.Empty - 1, // 2: vald.v1.Index.IndexInfo:output_type -> payload.v1.Info.Index.Count - 2, // 3: vald.v1.Index.IndexDetail:output_type -> payload.v1.Info.Index.Detail - 2, // [2:4] is the sub-list for method output_type - 0, // [0:2] is the sub-list for method input_type + 0, // 2: vald.v1.Index.IndexStatistics:input_type -> payload.v1.Empty + 0, // 3: vald.v1.Index.IndexStatisticsDetail:input_type -> payload.v1.Empty + 1, // 4: vald.v1.Index.IndexInfo:output_type -> payload.v1.Info.Index.Count + 2, // 5: vald.v1.Index.IndexDetail:output_type -> payload.v1.Info.Index.Detail + 3, // 6: vald.v1.Index.IndexStatistics:output_type -> payload.v1.Info.Index.Statistics + 4, // 7: vald.v1.Index.IndexStatisticsDetail:output_type -> payload.v1.Info.Index.StatisticsDetail + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/apis/grpc/v1/vald/index_vtproto.pb.go b/apis/grpc/v1/vald/index_vtproto.pb.go index af982a7869a..d5b5d7b8951 100644 --- a/apis/grpc/v1/vald/index_vtproto.pb.go +++ b/apis/grpc/v1/vald/index_vtproto.pb.go @@ -46,6 +46,10 @@ type IndexClient interface { IndexInfo(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Count, error) // Represent the RPC to get the index information for each agents. IndexDetail(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Detail, error) + // Represent the RPC to get the index statistics. + IndexStatistics(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Statistics, error) + // Represent the RPC to get the index statistics for each agents. + IndexStatisticsDetail(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_StatisticsDetail, error) } type indexClient struct { @@ -78,6 +82,28 @@ func (c *indexClient) IndexDetail( return out, nil } +func (c *indexClient) IndexStatistics( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Info_Index_Statistics, error) { + out := new(payload.Info_Index_Statistics) + err := c.cc.Invoke(ctx, "/vald.v1.Index/IndexStatistics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *indexClient) IndexStatisticsDetail( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Info_Index_StatisticsDetail, error) { + out := new(payload.Info_Index_StatisticsDetail) + err := c.cc.Invoke(ctx, "/vald.v1.Index/IndexStatisticsDetail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // IndexServer is the server API for Index service. // All implementations must embed UnimplementedIndexServer // for forward compatibility @@ -86,6 +112,10 @@ type IndexServer interface { IndexInfo(context.Context, *payload.Empty) (*payload.Info_Index_Count, error) // Represent the RPC to get the index information for each agents. IndexDetail(context.Context, *payload.Empty) (*payload.Info_Index_Detail, error) + // Represent the RPC to get the index statistics. + IndexStatistics(context.Context, *payload.Empty) (*payload.Info_Index_Statistics, error) + // Represent the RPC to get the index statistics for each agents. + IndexStatisticsDetail(context.Context, *payload.Empty) (*payload.Info_Index_StatisticsDetail, error) mustEmbedUnimplementedIndexServer() } @@ -103,6 +133,16 @@ func (UnimplementedIndexServer) IndexDetail( ) (*payload.Info_Index_Detail, error) { return nil, status.Errorf(codes.Unimplemented, "method IndexDetail not implemented") } +func (UnimplementedIndexServer) IndexStatistics( + context.Context, *payload.Empty, +) (*payload.Info_Index_Statistics, error) { + return nil, status.Errorf(codes.Unimplemented, "method IndexStatistics not implemented") +} +func (UnimplementedIndexServer) IndexStatisticsDetail( + context.Context, *payload.Empty, +) (*payload.Info_Index_StatisticsDetail, error) { + return nil, status.Errorf(codes.Unimplemented, "method IndexStatisticsDetail not implemented") +} func (UnimplementedIndexServer) mustEmbedUnimplementedIndexServer() {} // UnsafeIndexServer may be embedded to opt out of forward compatibility for this service. @@ -117,10 +157,7 @@ func RegisterIndexServer(s grpc.ServiceRegistrar, srv IndexServer) { } func _Index_IndexInfo_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Empty) if err := dec(in); err != nil { @@ -140,10 +177,7 @@ func _Index_IndexInfo_Handler( } func _Index_IndexDetail_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Empty) if err := dec(in); err != nil { @@ -162,6 +196,46 @@ func _Index_IndexDetail_Handler( return interceptor(ctx, in, info, handler) } +func _Index_IndexStatistics_Handler( + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, +) (any, error) { + in := new(payload.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IndexServer).IndexStatistics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vald.v1.Index/IndexStatistics", + } + handler := func(ctx context.Context, req any) (any, error) { + return srv.(IndexServer).IndexStatistics(ctx, req.(*payload.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _Index_IndexStatisticsDetail_Handler( + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, +) (any, error) { + in := new(payload.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IndexServer).IndexStatisticsDetail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vald.v1.Index/IndexStatisticsDetail", + } + handler := func(ctx context.Context, req any) (any, error) { + return srv.(IndexServer).IndexStatisticsDetail(ctx, req.(*payload.Empty)) + } + return interceptor(ctx, in, info, handler) +} + // Index_ServiceDesc is the grpc.ServiceDesc for Index service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -177,6 +251,14 @@ var Index_ServiceDesc = grpc.ServiceDesc{ MethodName: "IndexDetail", Handler: _Index_IndexDetail_Handler, }, + { + MethodName: "IndexStatistics", + Handler: _Index_IndexStatistics_Handler, + }, + { + MethodName: "IndexStatisticsDetail", + Handler: _Index_IndexStatisticsDetail_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/vald/index.proto", diff --git a/apis/grpc/v1/vald/insert_vtproto.pb.go b/apis/grpc/v1/vald/insert_vtproto.pb.go index 5c6880d481d..4274c79f0a7 100644 --- a/apis/grpc/v1/vald/insert_vtproto.pb.go +++ b/apis/grpc/v1/vald/insert_vtproto.pb.go @@ -157,10 +157,7 @@ func RegisterInsertServer(s grpc.ServiceRegistrar, srv InsertServer) { } func _Insert_Insert_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Insert_Request) if err := dec(in); err != nil { @@ -206,10 +203,7 @@ func (x *insertStreamInsertServer) Recv() (*payload.Insert_Request, error) { } func _Insert_MultiInsert_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Insert_MultiRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/object_vtproto.pb.go b/apis/grpc/v1/vald/object_vtproto.pb.go index 9a5fb40c8c0..d3beaa6dcd7 100644 --- a/apis/grpc/v1/vald/object_vtproto.pb.go +++ b/apis/grpc/v1/vald/object_vtproto.pb.go @@ -220,10 +220,7 @@ func RegisterObjectServer(s grpc.ServiceRegistrar, srv ObjectServer) { } func _Object_Exists_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_ID) if err := dec(in); err != nil { @@ -243,10 +240,7 @@ func _Object_Exists_Handler( } func _Object_GetObject_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_VectorRequest) if err := dec(in); err != nil { @@ -313,10 +307,7 @@ func (x *objectStreamListObjectServer) Send(m *payload.Object_List_Response) err } func _Object_GetTimestamp_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Object_TimestampRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/remove_vtproto.pb.go b/apis/grpc/v1/vald/remove_vtproto.pb.go index ac8c79e2e37..7a41f97a34e 100644 --- a/apis/grpc/v1/vald/remove_vtproto.pb.go +++ b/apis/grpc/v1/vald/remove_vtproto.pb.go @@ -177,10 +177,7 @@ func RegisterRemoveServer(s grpc.ServiceRegistrar, srv RemoveServer) { } func _Remove_Remove_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Remove_Request) if err := dec(in); err != nil { @@ -200,10 +197,7 @@ func _Remove_Remove_Handler( } func _Remove_RemoveByTimestamp_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Remove_TimestampRequest) if err := dec(in); err != nil { @@ -249,10 +243,7 @@ func (x *removeStreamRemoveServer) Recv() (*payload.Remove_Request, error) { } func _Remove_MultiRemove_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Remove_MultiRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/search_vtproto.pb.go b/apis/grpc/v1/vald/search_vtproto.pb.go index 51997164925..d161a299bcc 100644 --- a/apis/grpc/v1/vald/search_vtproto.pb.go +++ b/apis/grpc/v1/vald/search_vtproto.pb.go @@ -401,10 +401,7 @@ func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer) { } func _Search_Search_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_Request) if err := dec(in); err != nil { @@ -424,10 +421,7 @@ func _Search_Search_Handler( } func _Search_SearchByID_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_IDRequest) if err := dec(in); err != nil { @@ -499,10 +493,7 @@ func (x *searchStreamSearchByIDServer) Recv() (*payload.Search_IDRequest, error) } func _Search_MultiSearch_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_MultiRequest) if err := dec(in); err != nil { @@ -522,10 +513,7 @@ func _Search_MultiSearch_Handler( } func _Search_MultiSearchByID_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_MultiIDRequest) if err := dec(in); err != nil { @@ -545,10 +533,7 @@ func _Search_MultiSearchByID_Handler( } func _Search_LinearSearch_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_Request) if err := dec(in); err != nil { @@ -568,10 +553,7 @@ func _Search_LinearSearch_Handler( } func _Search_LinearSearchByID_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_IDRequest) if err := dec(in); err != nil { @@ -643,10 +625,7 @@ func (x *searchStreamLinearSearchByIDServer) Recv() (*payload.Search_IDRequest, } func _Search_MultiLinearSearch_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_MultiRequest) if err := dec(in); err != nil { @@ -666,10 +645,7 @@ func _Search_MultiLinearSearch_Handler( } func _Search_MultiLinearSearchByID_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Search_MultiIDRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/update_vtproto.pb.go b/apis/grpc/v1/vald/update_vtproto.pb.go index 7f8f6cae704..d29106eb95c 100644 --- a/apis/grpc/v1/vald/update_vtproto.pb.go +++ b/apis/grpc/v1/vald/update_vtproto.pb.go @@ -157,10 +157,7 @@ func RegisterUpdateServer(s grpc.ServiceRegistrar, srv UpdateServer) { } func _Update_Update_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Update_Request) if err := dec(in); err != nil { @@ -206,10 +203,7 @@ func (x *updateStreamUpdateServer) Recv() (*payload.Update_Request, error) { } func _Update_MultiUpdate_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Update_MultiRequest) if err := dec(in); err != nil { diff --git a/apis/grpc/v1/vald/upsert_vtproto.pb.go b/apis/grpc/v1/vald/upsert_vtproto.pb.go index 0350e4520e0..b5e846f1f39 100644 --- a/apis/grpc/v1/vald/upsert_vtproto.pb.go +++ b/apis/grpc/v1/vald/upsert_vtproto.pb.go @@ -157,10 +157,7 @@ func RegisterUpsertServer(s grpc.ServiceRegistrar, srv UpsertServer) { } func _Upsert_Upsert_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Upsert_Request) if err := dec(in); err != nil { @@ -206,10 +203,7 @@ func (x *upsertStreamUpsertServer) Recv() (*payload.Upsert_Request, error) { } func _Upsert_MultiUpsert_Handler( - srv any, - ctx context.Context, - dec func(any) error, - interceptor grpc.UnaryServerInterceptor, + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { in := new(payload.Upsert_MultiRequest) if err := dec(in); err != nil { diff --git a/apis/proto/v1/payload/payload.proto b/apis/proto/v1/payload/payload.proto index 2e5100f3185..54e82bab089 100644 --- a/apis/proto/v1/payload/payload.proto +++ b/apis/proto/v1/payload/payload.proto @@ -302,7 +302,8 @@ message Remove { // Represent the remove request based on timestamp. message TimestampRequest { - // The timestamp comparison list. If more than one is specified, the `AND` search is applied. + // The timestamp comparison list. If more than one is specified, the `AND` + // search is applied. repeated Timestamp timestamps = 1; } @@ -314,11 +315,13 @@ message Remove { Eq = 0; // The timestamp is not equal to the specified value in the request. Ne = 1; - // The timestamp is greater than or equal to the specified value in the request. + // The timestamp is greater than or equal to the specified value in the + // request. Ge = 2; // The timestamp is greater than the specified value in the request. Gt = 3; - // The timestamp is less than or equal to the specified value in the request. + // The timestamp is less than or equal to the specified value in the + // request. Le = 4; // The timestamp is less than the specified value in the request. Lt = 5; @@ -544,6 +547,49 @@ message Info { string uuid = 1; } } + + // Represents index Statistics + message Statistics { + bool valid = 1; + int32 median_indegree = 2; + int32 median_outdegree = 3; + uint64 max_number_of_indegree = 4; + uint64 max_number_of_outdegree = 5; + uint64 min_number_of_indegree = 6; + uint64 min_number_of_outdegree = 7; + uint64 mode_indegree = 8; + uint64 mode_outdegree = 9; + uint64 nodes_skipped_for_10_edges = 10; + uint64 nodes_skipped_for_indegree_distance = 11; + uint64 number_of_edges = 12; + uint64 number_of_indexed_objects = 13; + uint64 number_of_nodes = 14; + uint64 number_of_nodes_without_edges = 15; + uint64 number_of_nodes_without_indegree = 16; + uint64 number_of_objects = 17; + uint64 number_of_removed_objects = 18; + uint64 size_of_object_repository = 19; + uint64 size_of_refinement_object_repository = 20; + double variance_of_indegree = 21; + double variance_of_outdegree = 22; + double mean_edge_length = 23; + double mean_edge_length_for_10_edges = 24; + double mean_indegree_distance_for_10_edges = 25; + double mean_number_of_edges_per_node = 26; + double c1_indegree = 27; + double c5_indegree = 28; + double c95_outdegree = 29; + double c99_outdegree = 30; + repeated int64 indegree_count = 31; + repeated uint64 outdegree_histogram = 32; + repeated uint64 indegree_histogram = 33; + } + + // Represents index Statistics for each Agents + message StatisticsDetail { + // count infos for each agents + map counts = 1; + } } // Represent the pod information message. diff --git a/apis/proto/v1/vald/index.proto b/apis/proto/v1/vald/index.proto index 2fd589588a9..037132e59a0 100644 --- a/apis/proto/v1/vald/index.proto +++ b/apis/proto/v1/vald/index.proto @@ -36,4 +36,13 @@ service Index { rpc IndexDetail(payload.v1.Empty) returns (payload.v1.Info.Index.Detail) { option (google.api.http).get = "/index/detail"; } + // Represent the RPC to get the index statistics. + rpc IndexStatistics(payload.v1.Empty) returns (payload.v1.Info.Index.Statistics) { + option (google.api.http).get = "/index/statistics"; + } + + // Represent the RPC to get the index statistics for each agents. + rpc IndexStatisticsDetail(payload.v1.Empty) returns (payload.v1.Info.Index.StatisticsDetail) { + option (google.api.http).get = "/index/statistics/detail"; + } } diff --git a/apis/swagger/v1/vald/index.swagger.json b/apis/swagger/v1/vald/index.swagger.json index 6a0745eee22..41f940ad958 100644 --- a/apis/swagger/v1/vald/index.swagger.json +++ b/apis/swagger/v1/vald/index.swagger.json @@ -53,6 +53,48 @@ }, "tags": ["Index"] } + }, + "/index/statistics": { + "get": { + "summary": "Represent the RPC to get the index statistics.", + "operationId": "Index_IndexStatistics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/IndexStatistics" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "tags": ["Index"] + } + }, + "/index/statistics/detail": { + "get": { + "summary": "Represent the RPC to get the index statistics for each agents.", + "operationId": "Index_IndexStatisticsDetail", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/IndexStatisticsDetail" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "tags": ["Index"] + } } }, "definitions": { @@ -103,6 +145,165 @@ }, "description": "Represent the index count for each Agents message." }, + "IndexStatistics": { + "type": "object", + "properties": { + "valid": { + "type": "boolean" + }, + "medianIndegree": { + "type": "integer", + "format": "int32" + }, + "medianOutdegree": { + "type": "integer", + "format": "int32" + }, + "maxNumberOfIndegree": { + "type": "string", + "format": "uint64" + }, + "maxNumberOfOutdegree": { + "type": "string", + "format": "uint64" + }, + "minNumberOfIndegree": { + "type": "string", + "format": "uint64" + }, + "minNumberOfOutdegree": { + "type": "string", + "format": "uint64" + }, + "modeIndegree": { + "type": "string", + "format": "uint64" + }, + "modeOutdegree": { + "type": "string", + "format": "uint64" + }, + "nodesSkippedFor10Edges": { + "type": "string", + "format": "uint64" + }, + "nodesSkippedForIndegreeDistance": { + "type": "string", + "format": "uint64" + }, + "numberOfEdges": { + "type": "string", + "format": "uint64" + }, + "numberOfIndexedObjects": { + "type": "string", + "format": "uint64" + }, + "numberOfNodes": { + "type": "string", + "format": "uint64" + }, + "numberOfNodesWithoutEdges": { + "type": "string", + "format": "uint64" + }, + "numberOfNodesWithoutIndegree": { + "type": "string", + "format": "uint64" + }, + "numberOfObjects": { + "type": "string", + "format": "uint64" + }, + "numberOfRemovedObjects": { + "type": "string", + "format": "uint64" + }, + "sizeOfObjectRepository": { + "type": "string", + "format": "uint64" + }, + "sizeOfRefinementObjectRepository": { + "type": "string", + "format": "uint64" + }, + "varianceOfIndegree": { + "type": "number", + "format": "double" + }, + "varianceOfOutdegree": { + "type": "number", + "format": "double" + }, + "meanEdgeLength": { + "type": "number", + "format": "double" + }, + "meanEdgeLengthFor10Edges": { + "type": "number", + "format": "double" + }, + "meanIndegreeDistanceFor10Edges": { + "type": "number", + "format": "double" + }, + "meanNumberOfEdgesPerNode": { + "type": "number", + "format": "double" + }, + "c1Indegree": { + "type": "number", + "format": "double" + }, + "c5Indegree": { + "type": "number", + "format": "double" + }, + "c95Outdegree": { + "type": "number", + "format": "double" + }, + "c99Outdegree": { + "type": "number", + "format": "double" + }, + "indegreeCount": { + "type": "array", + "items": { + "type": "string", + "format": "int64" + } + }, + "outdegreeHistogram": { + "type": "array", + "items": { + "type": "string", + "format": "uint64" + } + }, + "indegreeHistogram": { + "type": "array", + "items": { + "type": "string", + "format": "uint64" + } + } + }, + "title": "Represents index Statistics" + }, + "IndexStatisticsDetail": { + "type": "object", + "properties": { + "counts": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/IndexStatistics" + }, + "title": "count infos for each agents" + } + }, + "title": "Represents index Statistics for each Agents" + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/remove.swagger.json b/apis/swagger/v1/vald/remove.swagger.json index c7fc1214266..34695978e56 100644 --- a/apis/swagger/v1/vald/remove.swagger.json +++ b/apis/swagger/v1/vald/remove.swagger.json @@ -150,7 +150,7 @@ "type": "string", "enum": ["Eq", "Ne", "Ge", "Gt", "Le", "Lt"], "default": "Eq", - "description": "Operator is enum of each conditional operator.\n\n - Eq: The timestamp is equal to the specified value in the request.\n - Ne: The timestamp is not equal to the specified value in the request.\n - Ge: The timestamp is greater than or equal to the specified value in the request.\n - Gt: The timestamp is greater than the specified value in the request.\n - Le: The timestamp is less than or equal to the specified value in the request.\n - Lt: The timestamp is less than the specified value in the request." + "description": "Operator is enum of each conditional operator.\n\n - Eq: The timestamp is equal to the specified value in the request.\n - Ne: The timestamp is not equal to the specified value in the request.\n - Ge: The timestamp is greater than or equal to the specified value in the\nrequest.\n - Gt: The timestamp is greater than the specified value in the request.\n - Le: The timestamp is less than or equal to the specified value in the\nrequest.\n - Lt: The timestamp is less than the specified value in the request." }, "protobufAny": { "type": "object", @@ -274,7 +274,7 @@ "type": "object", "$ref": "#/definitions/v1RemoveTimestamp" }, - "description": "The timestamp comparison list. If more than one is specified, the `AND` search is applied." + "description": "The timestamp comparison list. If more than one is specified, the `AND`\nsearch is applied." } }, "description": "Represent the remove request based on timestamp." diff --git a/dockers/ci/base/Dockerfile b/dockers/ci/base/Dockerfile index f85eb74fb6f..f6e4aae0c6f 100644 --- a/dockers/ci/base/Dockerfile +++ b/dockers/ci/base/Dockerfile @@ -39,8 +39,8 @@ ENV ORG=vdaas ENV PKG=ci/base ENV REPO=vald ENV RUST_HOME=/usr/loacl/lib/rust -ENV CARGO_HOME=${RUST_HOME}/cargo ENV RUSTUP_HOME=${RUST_HOME}/rustup +ENV CARGO_HOME=${RUST_HOME}/cargo ENV PATH=${CARGO_HOME}/bin:${GOPATH}/bin:${GOROOT}/bin:${RUSTUP_HOME}/bin:/usr/local/bin:${PATH} SHELL ["/bin/bash", "-o", "pipefail", "-c"] diff --git a/internal/core/algorithm/ngt/ngt.go b/internal/core/algorithm/ngt/ngt.go index 69d2a17ab28..56aeb548d0d 100644 --- a/internal/core/algorithm/ngt/ngt.go +++ b/internal/core/algorithm/ngt/ngt.go @@ -85,6 +85,8 @@ type ( // GetVector returns vector stored in NGT index. GetVector(id uint) ([]float32, error) + GetGraphStatistics(m statisticsType) (stats *GraphStatistics, err error) + // Close Without save index. CloseWithoutSaveIndex() @@ -103,6 +105,7 @@ type ( poolSize uint32 cnt atomic.Uint64 prop C.NGTProperty + ces uint64 // NGT edge size for creation epool sync.Pool // NGT error buffer pool eps atomic.Uint64 // NGT error buffer pool size epl uint64 // NGT error buffer pool size limit @@ -116,6 +119,42 @@ type ( err C.NGTError destroyed atomic.Bool } + + GraphStatistics struct { + Valid bool + MedianIndegree int32 + MedianOutdegree int32 + MaxNumberOfIndegree uint64 + MaxNumberOfOutdegree uint64 + MinNumberOfIndegree uint64 + MinNumberOfOutdegree uint64 + ModeIndegree uint64 + ModeOutdegree uint64 + NodesSkippedFor10Edges uint64 + NodesSkippedForIndegreeDistance uint64 + NumberOfEdges uint64 + NumberOfIndexedObjects uint64 + NumberOfNodes uint64 + NumberOfNodesWithoutEdges uint64 + NumberOfNodesWithoutIndegree uint64 + NumberOfObjects uint64 + NumberOfRemovedObjects uint64 + SizeOfObjectRepository uint64 + SizeOfRefinementObjectRepository uint64 + VarianceOfIndegree float64 + VarianceOfOutdegree float64 + MeanEdgeLength float64 + MeanEdgeLengthFor10Edges float64 + MeanIndegreeDistanceFor10Edges float64 + MeanNumberOfEdgesPerNode float64 + C1Indegree float64 + C5Indegree float64 + C95Outdegree float64 + C99Outdegree float64 + IndegreeCount []int64 + OutdegreeHistogram []uint64 + IndegreeHistogram []uint64 + } ) func newNGTError() (n *ngtError) { @@ -142,6 +181,8 @@ type objectType int // DistanceType is alias of distance type in NGT. type distanceType int +type statisticsType int + const ( // ------------------------------------------------------------- // Object Type Definition @@ -195,6 +236,9 @@ const ( // -------------------------------------------------------------. ErrorCode = C._Bool(false) // -------------------------------------------------------------. + + NormalStatistics statisticsType = iota - 1 + AdditionalStatistics ) func (o objectType) String() string { @@ -856,3 +900,82 @@ func (n *ngt) Close() { n.ospace = nil } } + +func fromCGraphStatistics(cstats *C.NGTGraphStatistics) *GraphStatistics { + goStats := &GraphStatistics{ + NumberOfObjects: uint64(cstats.numberOfObjects), + NumberOfIndexedObjects: uint64(cstats.numberOfIndexedObjects), + SizeOfObjectRepository: uint64(cstats.sizeOfObjectRepository), + SizeOfRefinementObjectRepository: uint64(cstats.sizeOfRefinementObjectRepository), + NumberOfRemovedObjects: uint64(cstats.numberOfRemovedObjects), + NumberOfNodes: uint64(cstats.numberOfNodes), + NumberOfEdges: uint64(cstats.numberOfEdges), + MeanEdgeLength: float64(cstats.meanEdgeLength), + MeanNumberOfEdgesPerNode: float64(cstats.meanNumberOfEdgesPerNode), + NumberOfNodesWithoutEdges: uint64(cstats.numberOfNodesWithoutEdges), + MaxNumberOfOutdegree: uint64(cstats.maxNumberOfOutdegree), + MinNumberOfOutdegree: uint64(cstats.minNumberOfOutdegree), + NumberOfNodesWithoutIndegree: uint64(cstats.numberOfNodesWithoutIndegree), + MaxNumberOfIndegree: uint64(cstats.maxNumberOfIndegree), + MinNumberOfIndegree: uint64(cstats.minNumberOfIndegree), + MeanEdgeLengthFor10Edges: float64(cstats.meanEdgeLengthFor10Edges), + NodesSkippedFor10Edges: uint64(cstats.nodesSkippedFor10Edges), + MeanIndegreeDistanceFor10Edges: float64(cstats.meanIndegreeDistanceFor10Edges), + NodesSkippedForIndegreeDistance: uint64(cstats.nodesSkippedForIndegreeDistance), + VarianceOfOutdegree: float64(cstats.varianceOfOutdegree), + VarianceOfIndegree: float64(cstats.varianceOfIndegree), + MedianOutdegree: int32(cstats.medianOutdegree), + ModeOutdegree: uint64(cstats.modeOutdegree), + C95Outdegree: float64(cstats.c95Outdegree), + C99Outdegree: float64(cstats.c99Outdegree), + MedianIndegree: int32(cstats.medianIndegree), + ModeIndegree: uint64(cstats.modeIndegree), + C5Indegree: float64(cstats.c5Indegree), + C1Indegree: float64(cstats.c1Indegree), + Valid: bool(cstats.valid), + } + + // Convert indegreeCount + indegreeCountSize := int(cstats.indegreeCountSize) + goStats.IndegreeCount = make([]int64, indegreeCountSize) + cIndegreeCount := (*[1 << 30]C.size_t)(unsafe.Pointer(cstats.indegreeCount))[:indegreeCountSize:indegreeCountSize] + for i := 0; i < indegreeCountSize; i++ { + goStats.IndegreeCount[i] = int64(cIndegreeCount[i]) + } + + // Convert outdegreeHistogram + outdegreeHistogramSize := int(cstats.outdegreeHistogramSize) + goStats.OutdegreeHistogram = make([]uint64, outdegreeHistogramSize) + cOutdegreeHistogram := (*[1 << 30]C.size_t)(unsafe.Pointer(cstats.outdegreeHistogram))[:outdegreeHistogramSize:outdegreeHistogramSize] + for i := 0; i < outdegreeHistogramSize; i++ { + goStats.OutdegreeHistogram[i] = uint64(cOutdegreeHistogram[i]) + } + + // Convert indegreeHistogram + indegreeHistogramSize := int(cstats.indegreeHistogramSize) + goStats.IndegreeHistogram = make([]uint64, indegreeHistogramSize) + cIndegreeHistogram := (*[1 << 30]C.size_t)(unsafe.Pointer(cstats.indegreeHistogram))[:indegreeHistogramSize:indegreeHistogramSize] + for i := 0; i < indegreeHistogramSize; i++ { + goStats.IndegreeHistogram[i] = uint64(cIndegreeHistogram[i]) + } + + return goStats +} + +func (n *ngt) GetGraphStatistics(m statisticsType) (stats *GraphStatistics, err error) { + var mode rune + switch m { + case NormalStatistics: + mode = '-' + case AdditionalStatistics: + mode = 'a' + } + ne := n.GetErrorBuffer() + cstats := C.ngt_get_graph_statistics(n.index, C.char(mode), C.size_t(n.ces), ne.err) + if !cstats.valid { + return nil, n.newGoError(ne) + } + n.PutErrorBuffer(ne) + defer C.ngt_free_graph_statistics(&cstats) + return fromCGraphStatistics(&cstats), nil +} diff --git a/internal/core/algorithm/ngt/option.go b/internal/core/algorithm/ngt/option.go index c9ce2484b31..356985da6f9 100644 --- a/internal/core/algorithm/ngt/option.go +++ b/internal/core/algorithm/ngt/option.go @@ -269,6 +269,7 @@ func WithObjectType(t objectType) Option { // WithCreationEdgeSize represents the option to set the creation edge size for NGT. func WithCreationEdgeSize(size int) Option { return func(n *ngt) error { + n.ces = uint64(size) ne := n.GetErrorBuffer() if C.ngt_set_property_edge_size_for_creation(n.prop, C.int16_t(size), ne.err) == ErrorCode { err := errors.ErrFailedToSetCreationEdgeSize(n.newGoError(ne)) diff --git a/internal/errors/ngt.go b/internal/errors/ngt.go index 75c6eeabf9a..e66593e9174 100644 --- a/internal/errors/ngt.go +++ b/internal/errors/ngt.go @@ -46,6 +46,8 @@ var ( } ErrSearchResultEmptyButNoDataStored = New("empty search result from cgo but no index data stored in ngt, this error can be ignored.") + + ErrNGTIndexStatisticsDisabled = New("ngt get statistics is disabled") ) type NGTError struct { diff --git a/pkg/agent/core/ngt/service/ngt.go b/pkg/agent/core/ngt/service/ngt.go index dfeed90d5b2..5742a3c7c5e 100644 --- a/pkg/agent/core/ngt/service/ngt.go +++ b/pkg/agent/core/ngt/service/ngt.go @@ -89,8 +89,9 @@ type NGT interface { DeleteVQueueBufferLen() uint64 InsertVQueueBufferLen() uint64 GetDimensionSize() int - Close(ctx context.Context) error BrokenIndexCount() uint64 + IndexStatistics() (*payload.Info_Index_Statistics, error) + Close(ctx context.Context) error } type ngt struct { @@ -160,6 +161,9 @@ type ngt struct { enableExportIndexInfo bool exportIndexInfoDuration time.Duration patcher client.Patcher + + enableStatistics bool + statisticsCache atomic.Pointer[payload.Info_Index_Statistics] } const ( @@ -1422,6 +1426,50 @@ func (n *ngt) CreateIndex(ctx context.Context, poolSize uint32) (err error) { return err } } + if n.enableStatistics { + log.Info("loading index statistics to cache") + stats, err := n.core.GetGraphStatistics(core.AdditionalStatistics) + if err != nil { + log.Errorf("failed to load index statistics to cache: %v", err) + return err + } + n.statisticsCache.Store(&payload.Info_Index_Statistics{ + Valid: stats.Valid, + MedianIndegree: stats.MedianIndegree, + MedianOutdegree: stats.MedianOutdegree, + MaxNumberOfIndegree: stats.MaxNumberOfIndegree, + MaxNumberOfOutdegree: stats.MaxNumberOfOutdegree, + MinNumberOfIndegree: stats.MinNumberOfIndegree, + MinNumberOfOutdegree: stats.MinNumberOfOutdegree, + ModeIndegree: stats.ModeIndegree, + ModeOutdegree: stats.ModeOutdegree, + NodesSkippedFor10Edges: stats.NodesSkippedFor10Edges, + NodesSkippedForIndegreeDistance: stats.NodesSkippedForIndegreeDistance, + NumberOfEdges: stats.NumberOfEdges, + NumberOfIndexedObjects: stats.NumberOfIndexedObjects, + NumberOfNodes: stats.NumberOfNodes, + NumberOfNodesWithoutEdges: stats.NumberOfNodesWithoutEdges, + NumberOfNodesWithoutIndegree: stats.NumberOfNodesWithoutIndegree, + NumberOfObjects: stats.NumberOfObjects, + NumberOfRemovedObjects: stats.NumberOfRemovedObjects, + SizeOfObjectRepository: stats.SizeOfObjectRepository, + SizeOfRefinementObjectRepository: stats.SizeOfRefinementObjectRepository, + VarianceOfIndegree: stats.VarianceOfIndegree, + VarianceOfOutdegree: stats.VarianceOfOutdegree, + MeanEdgeLength: stats.MeanEdgeLength, + MeanEdgeLengthFor10Edges: stats.MeanEdgeLengthFor10Edges, + MeanIndegreeDistanceFor10Edges: stats.MeanIndegreeDistanceFor10Edges, + MeanNumberOfEdgesPerNode: stats.MeanNumberOfEdgesPerNode, + C1Indegree: stats.C1Indegree, + C5Indegree: stats.C5Indegree, + C95Outdegree: stats.C95Outdegree, + C99Outdegree: stats.C99Outdegree, + IndegreeCount: stats.IndegreeCount, + OutdegreeHistogram: stats.OutdegreeHistogram, + IndegreeHistogram: stats.IndegreeHistogram, + }) + } + return err } @@ -1980,6 +2028,13 @@ func (n *ngt) ListObjectFunc(ctx context.Context, f func(uuid string, oid uint32 }) } +func (n *ngt) IndexStatistics() (*payload.Info_Index_Statistics, error) { + if !n.enableStatistics { + return nil, errors.ErrNGTIndexStatisticsDisabled + } + return n.statisticsCache.Load(), nil +} + func (n *ngt) toSearchResponse( sr []algorithm.SearchResult, ) (res *payload.Search_Response, err error) { diff --git a/rust/libs/proto/src/payload.v1.rs b/rust/libs/proto/src/payload.v1.rs index 8b67f0a033e..faeb8f73289 100644 --- a/rust/libs/proto/src/payload.v1.rs +++ b/rust/libs/proto/src/payload.v1.rs @@ -444,7 +444,8 @@ pub mod remove { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampRequest { - /// The timestamp comparison list. If more than one is specified, the `AND` search is applied. + /// The timestamp comparison list. If more than one is specified, the `AND` + /// search is applied. #[prost(message, repeated, tag="1")] pub timestamps: ::prost::alloc::vec::Vec, } @@ -469,11 +470,13 @@ pub mod remove { Eq = 0, /// The timestamp is not equal to the specified value in the request. Ne = 1, - /// The timestamp is greater than or equal to the specified value in the request. + /// The timestamp is greater than or equal to the specified value in the + /// request. Ge = 2, /// The timestamp is greater than the specified value in the request. Gt = 3, - /// The timestamp is less than or equal to the specified value in the request. + /// The timestamp is less than or equal to the specified value in the + /// request. Le = 4, /// The timestamp is less than the specified value in the request. Lt = 5, @@ -874,6 +877,85 @@ pub mod info { pub uuid: ::prost::alloc::string::String, } } + /// Represents index Statistics + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct Statistics { + #[prost(bool, tag="1")] + pub valid: bool, + #[prost(int32, tag="2")] + pub median_indegree: i32, + #[prost(int32, tag="3")] + pub median_outdegree: i32, + #[prost(uint64, tag="4")] + pub max_number_of_indegree: u64, + #[prost(uint64, tag="5")] + pub max_number_of_outdegree: u64, + #[prost(uint64, tag="6")] + pub min_number_of_indegree: u64, + #[prost(uint64, tag="7")] + pub min_number_of_outdegree: u64, + #[prost(uint64, tag="8")] + pub mode_indegree: u64, + #[prost(uint64, tag="9")] + pub mode_outdegree: u64, + #[prost(uint64, tag="10")] + pub nodes_skipped_for_10_edges: u64, + #[prost(uint64, tag="11")] + pub nodes_skipped_for_indegree_distance: u64, + #[prost(uint64, tag="12")] + pub number_of_edges: u64, + #[prost(uint64, tag="13")] + pub number_of_indexed_objects: u64, + #[prost(uint64, tag="14")] + pub number_of_nodes: u64, + #[prost(uint64, tag="15")] + pub number_of_nodes_without_edges: u64, + #[prost(uint64, tag="16")] + pub number_of_nodes_without_indegree: u64, + #[prost(uint64, tag="17")] + pub number_of_objects: u64, + #[prost(uint64, tag="18")] + pub number_of_removed_objects: u64, + #[prost(uint64, tag="19")] + pub size_of_object_repository: u64, + #[prost(uint64, tag="20")] + pub size_of_refinement_object_repository: u64, + #[prost(double, tag="21")] + pub variance_of_indegree: f64, + #[prost(double, tag="22")] + pub variance_of_outdegree: f64, + #[prost(double, tag="23")] + pub mean_edge_length: f64, + #[prost(double, tag="24")] + pub mean_edge_length_for_10_edges: f64, + #[prost(double, tag="25")] + pub mean_indegree_distance_for_10_edges: f64, + #[prost(double, tag="26")] + pub mean_number_of_edges_per_node: f64, + #[prost(double, tag="27")] + pub c1_indegree: f64, + #[prost(double, tag="28")] + pub c5_indegree: f64, + #[prost(double, tag="29")] + pub c95_outdegree: f64, + #[prost(double, tag="30")] + pub c99_outdegree: f64, + #[prost(int64, repeated, tag="31")] + pub indegree_count: ::prost::alloc::vec::Vec, + #[prost(uint64, repeated, tag="32")] + pub outdegree_histogram: ::prost::alloc::vec::Vec, + #[prost(uint64, repeated, tag="33")] + pub indegree_histogram: ::prost::alloc::vec::Vec, + } + /// Represents index Statistics for each Agents + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct StatisticsDetail { + /// count infos for each agents + #[prost(map="string, message", tag="1")] + pub counts: ::std::collections::HashMap<::prost::alloc::string::String, Statistics>, + } } /// Represent the pod information message. #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/rust/libs/proto/src/vald.v1.tonic.rs b/rust/libs/proto/src/vald.v1.tonic.rs index 21f5bbe9510..1ff23e3b464 100644 --- a/rust/libs/proto/src/vald.v1.tonic.rs +++ b/rust/libs/proto/src/vald.v1.tonic.rs @@ -1655,8 +1655,6 @@ pub mod index_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; use tonic::codegen::http::Uri; - /** Represent the index manager service. -*/ #[derive(Debug, Clone)] pub struct IndexClient { inner: tonic::client::Grpc, @@ -1737,8 +1735,6 @@ pub mod index_client { self.inner = self.inner.max_encoding_message_size(limit); self } - /** Represent the RPC to get the index information. -*/ pub async fn index_info( &mut self, request: impl tonic::IntoRequest, @@ -1787,6 +1783,62 @@ pub mod index_client { req.extensions_mut().insert(GrpcMethod::new("vald.v1.Index", "IndexDetail")); self.inner.unary(req, path, codec).await } + /** Represent the RPC to get the index statistics. +*/ + pub async fn index_statistics( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/vald.v1.Index/IndexStatistics", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert(GrpcMethod::new("vald.v1.Index", "IndexStatistics")); + self.inner.unary(req, path, codec).await + } + /** Represent the RPC to get the index statistics for each agents. +*/ + pub async fn index_statistics_detail( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response< + super::super::super::payload::v1::info::index::StatisticsDetail, + >, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/vald.v1.Index/IndexStatisticsDetail", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert(GrpcMethod::new("vald.v1.Index", "IndexStatisticsDetail")); + self.inner.unary(req, path, codec).await + } } } /// Generated server implementations. @@ -1796,8 +1848,6 @@ pub mod index_server { /// Generated trait containing gRPC methods that should be implemented for use with IndexServer. #[async_trait] pub trait Index: Send + Sync + 'static { - /** Represent the RPC to get the index information. -*/ async fn index_info( &self, request: tonic::Request, @@ -1814,9 +1864,27 @@ pub mod index_server { tonic::Response, tonic::Status, >; - } - /** Represent the index manager service. + /** Represent the RPC to get the index statistics. */ + async fn index_statistics( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + /** Represent the RPC to get the index statistics for each agents. +*/ + async fn index_statistics_detail( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response< + super::super::super::payload::v1::info::index::StatisticsDetail, + >, + tonic::Status, + >; + } #[derive(Debug)] pub struct IndexServer { inner: _Inner, @@ -1994,6 +2062,104 @@ pub mod index_server { }; Box::pin(fut) } + "/vald.v1.Index/IndexStatistics" => { + #[allow(non_camel_case_types)] + struct IndexStatisticsSvc(pub Arc); + impl< + T: Index, + > tonic::server::UnaryService< + super::super::super::payload::v1::Empty, + > for IndexStatisticsSvc { + type Response = super::super::super::payload::v1::info::index::Statistics; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::super::super::payload::v1::Empty, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::index_statistics(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = IndexStatisticsSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/vald.v1.Index/IndexStatisticsDetail" => { + #[allow(non_camel_case_types)] + struct IndexStatisticsDetailSvc(pub Arc); + impl< + T: Index, + > tonic::server::UnaryService< + super::super::super::payload::v1::Empty, + > for IndexStatisticsDetailSvc { + type Response = super::super::super::payload::v1::info::index::StatisticsDetail; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::super::super::payload::v1::Empty, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::index_statistics_detail(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = IndexStatisticsDetailSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } _ => { Box::pin(async move { Ok(