diff --git a/apis/grpc/v1/agent/core/agent.pb.go b/apis/grpc/v1/agent/core/agent.pb.go index 1cd4bab3abb..42f03029a9a 100644 --- a/apis/grpc/v1/agent/core/agent.pb.go +++ b/apis/grpc/v1/agent/core/agent.pb.go @@ -23,11 +23,12 @@ package core import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -79,6 +80,7 @@ var file_v1_agent_core_agent_proto_goTypes = []any{ (*payload.Control_CreateIndexRequest)(nil), // 0: payload.v1.Control.CreateIndexRequest (*payload.Empty)(nil), // 1: payload.v1.Empty } + var file_v1_agent_core_agent_proto_depIdxs = []int32{ 0, // 0: core.v1.Agent.CreateIndex:input_type -> payload.v1.Control.CreateIndexRequest 1, // 1: core.v1.Agent.SaveIndex:input_type -> payload.v1.Empty diff --git a/apis/grpc/v1/agent/core/agent_vtproto.pb.go b/apis/grpc/v1/agent/core/agent_vtproto.pb.go index 1fa722fa7c1..93f689fa9c5 100644 --- a/apis/grpc/v1/agent/core/agent_vtproto.pb.go +++ b/apis/grpc/v1/agent/core/agent_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/agent/core/agent.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package core import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -45,7 +58,9 @@ func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { return &agentClient{cc} } -func (c *agentClient) CreateIndex(ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption) (*payload.Empty, error) { +func (c *agentClient) CreateIndex( + ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption, +) (*payload.Empty, error) { out := new(payload.Empty) err := c.cc.Invoke(ctx, "/core.v1.Agent/CreateIndex", in, out, opts...) if err != nil { @@ -54,7 +69,9 @@ func (c *agentClient) CreateIndex(ctx context.Context, in *payload.Control_Creat return out, nil } -func (c *agentClient) SaveIndex(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Empty, error) { +func (c *agentClient) SaveIndex( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Empty, error) { out := new(payload.Empty) err := c.cc.Invoke(ctx, "/core.v1.Agent/SaveIndex", in, out, opts...) if err != nil { @@ -63,7 +80,9 @@ func (c *agentClient) SaveIndex(ctx context.Context, in *payload.Empty, opts ... return out, nil } -func (c *agentClient) CreateAndSaveIndex(ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption) (*payload.Empty, error) { +func (c *agentClient) CreateAndSaveIndex( + ctx context.Context, in *payload.Control_CreateIndexRequest, opts ...grpc.CallOption, +) (*payload.Empty, error) { out := new(payload.Empty) err := c.cc.Invoke(ctx, "/core.v1.Agent/CreateAndSaveIndex", in, out, opts...) if err != nil { @@ -86,16 +105,21 @@ type AgentServer interface { } // UnimplementedAgentServer must be embedded to have forward compatible implementations. -type UnimplementedAgentServer struct { -} +type UnimplementedAgentServer struct{} -func (UnimplementedAgentServer) CreateIndex(context.Context, *payload.Control_CreateIndexRequest) (*payload.Empty, error) { +func (UnimplementedAgentServer) CreateIndex( + context.Context, *payload.Control_CreateIndexRequest, +) (*payload.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateIndex not implemented") } + func (UnimplementedAgentServer) SaveIndex(context.Context, *payload.Empty) (*payload.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SaveIndex not implemented") } -func (UnimplementedAgentServer) CreateAndSaveIndex(context.Context, *payload.Control_CreateIndexRequest) (*payload.Empty, error) { + +func (UnimplementedAgentServer) CreateAndSaveIndex( + context.Context, *payload.Control_CreateIndexRequest, +) (*payload.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAndSaveIndex not implemented") } func (UnimplementedAgentServer) mustEmbedUnimplementedAgentServer() {} @@ -111,7 +135,9 @@ func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer) { s.RegisterService(&Agent_ServiceDesc, srv) } -func _Agent_CreateIndex_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Agent_CreateIndex_Handler( + 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 { return nil, err @@ -129,7 +155,9 @@ func _Agent_CreateIndex_Handler(srv any, ctx context.Context, dec func(any) erro return interceptor(ctx, in, info, handler) } -func _Agent_SaveIndex_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Agent_SaveIndex_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 @@ -147,7 +175,9 @@ func _Agent_SaveIndex_Handler(srv any, ctx context.Context, dec func(any) error, return interceptor(ctx, in, info, handler) } -func _Agent_CreateAndSaveIndex_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Agent_CreateAndSaveIndex_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/agent/sidecar/sidecar.pb.go b/apis/grpc/v1/agent/sidecar/sidecar.pb.go index b582c0e731f..bcaf02c7c6c 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar.pb.go @@ -23,9 +23,10 @@ package sidecar import ( + reflect "reflect" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -51,14 +52,16 @@ var file_v1_agent_sidecar_sidecar_proto_rawDesc = []byte{ 0x65, 0x63, 0x61, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var file_v1_agent_sidecar_sidecar_proto_goTypes = []any{} -var file_v1_agent_sidecar_sidecar_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] 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 -} +var ( + file_v1_agent_sidecar_sidecar_proto_goTypes = []any{} + file_v1_agent_sidecar_sidecar_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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 + } +) func init() { file_v1_agent_sidecar_sidecar_proto_init() } func file_v1_agent_sidecar_sidecar_proto_init() { diff --git a/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go b/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go index 1051bc9ac6b..f60d8f002fb 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go @@ -1,6 +1,18 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/agent/sidecar/sidecar.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package sidecar @@ -24,8 +36,7 @@ const _ = grpc.SupportPackageIsVersion7 // SidecarClient is the client API for Sidecar service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SidecarClient interface { -} +type SidecarClient interface{} type sidecarClient struct { cc grpc.ClientConnInterface @@ -43,8 +54,7 @@ type SidecarServer interface { } // UnimplementedSidecarServer must be embedded to have forward compatible implementations. -type UnimplementedSidecarServer struct { -} +type UnimplementedSidecarServer struct{} func (UnimplementedSidecarServer) mustEmbedUnimplementedSidecarServer() {} diff --git a/apis/grpc/v1/discoverer/discoverer.pb.go b/apis/grpc/v1/discoverer/discoverer.pb.go index 87a441ac83f..f95d2f8cbef 100644 --- a/apis/grpc/v1/discoverer/discoverer.pb.go +++ b/apis/grpc/v1/discoverer/discoverer.pb.go @@ -23,11 +23,12 @@ package discoverer import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -80,6 +81,7 @@ var file_v1_discoverer_discoverer_proto_goTypes = []any{ (*payload.Info_Nodes)(nil), // 2: payload.v1.Info.Nodes (*payload.Info_Services)(nil), // 3: payload.v1.Info.Services } + var file_v1_discoverer_discoverer_proto_depIdxs = []int32{ 0, // 0: discoverer.v1.Discoverer.Pods:input_type -> payload.v1.Discoverer.Request 0, // 1: discoverer.v1.Discoverer.Nodes:input_type -> payload.v1.Discoverer.Request diff --git a/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go b/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go index 89b5d3b03be..a1153195c61 100644 --- a/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go +++ b/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/discoverer/discoverer.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package discoverer import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -45,7 +58,9 @@ func NewDiscovererClient(cc grpc.ClientConnInterface) DiscovererClient { return &discovererClient{cc} } -func (c *discovererClient) Pods(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Pods, error) { +func (c *discovererClient) Pods( + ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption, +) (*payload.Info_Pods, error) { out := new(payload.Info_Pods) err := c.cc.Invoke(ctx, "/discoverer.v1.Discoverer/Pods", in, out, opts...) if err != nil { @@ -54,7 +69,9 @@ func (c *discovererClient) Pods(ctx context.Context, in *payload.Discoverer_Requ return out, nil } -func (c *discovererClient) Nodes(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Nodes, error) { +func (c *discovererClient) Nodes( + ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption, +) (*payload.Info_Nodes, error) { out := new(payload.Info_Nodes) err := c.cc.Invoke(ctx, "/discoverer.v1.Discoverer/Nodes", in, out, opts...) if err != nil { @@ -63,7 +80,9 @@ func (c *discovererClient) Nodes(ctx context.Context, in *payload.Discoverer_Req return out, nil } -func (c *discovererClient) Services(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Services, error) { +func (c *discovererClient) Services( + ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption, +) (*payload.Info_Services, error) { out := new(payload.Info_Services) err := c.cc.Invoke(ctx, "/discoverer.v1.Discoverer/Services", in, out, opts...) if err != nil { @@ -86,16 +105,23 @@ type DiscovererServer interface { } // UnimplementedDiscovererServer must be embedded to have forward compatible implementations. -type UnimplementedDiscovererServer struct { -} +type UnimplementedDiscovererServer struct{} -func (UnimplementedDiscovererServer) Pods(context.Context, *payload.Discoverer_Request) (*payload.Info_Pods, error) { +func (UnimplementedDiscovererServer) Pods( + context.Context, *payload.Discoverer_Request, +) (*payload.Info_Pods, error) { return nil, status.Errorf(codes.Unimplemented, "method Pods not implemented") } -func (UnimplementedDiscovererServer) Nodes(context.Context, *payload.Discoverer_Request) (*payload.Info_Nodes, error) { + +func (UnimplementedDiscovererServer) Nodes( + context.Context, *payload.Discoverer_Request, +) (*payload.Info_Nodes, error) { return nil, status.Errorf(codes.Unimplemented, "method Nodes not implemented") } -func (UnimplementedDiscovererServer) Services(context.Context, *payload.Discoverer_Request) (*payload.Info_Services, error) { + +func (UnimplementedDiscovererServer) Services( + context.Context, *payload.Discoverer_Request, +) (*payload.Info_Services, error) { return nil, status.Errorf(codes.Unimplemented, "method Services not implemented") } func (UnimplementedDiscovererServer) mustEmbedUnimplementedDiscovererServer() {} @@ -111,7 +137,9 @@ func RegisterDiscovererServer(s grpc.ServiceRegistrar, srv DiscovererServer) { s.RegisterService(&Discoverer_ServiceDesc, srv) } -func _Discoverer_Pods_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Discoverer_Pods_Handler( + 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 { return nil, err @@ -129,7 +157,9 @@ func _Discoverer_Pods_Handler(srv any, ctx context.Context, dec func(any) error, return interceptor(ctx, in, info, handler) } -func _Discoverer_Nodes_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Discoverer_Nodes_Handler( + 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 { return nil, err @@ -147,7 +177,9 @@ func _Discoverer_Nodes_Handler(srv any, ctx context.Context, dec func(any) error return interceptor(ctx, in, info, handler) } -func _Discoverer_Services_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Discoverer_Services_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 470d0cac016..5d60c42564e 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -23,11 +23,12 @@ package egress import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -75,6 +76,7 @@ var file_v1_filter_egress_egress_filter_proto_goTypes = []any{ (*payload.Object_Distance)(nil), // 0: payload.v1.Object.Distance (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector } + var file_v1_filter_egress_egress_filter_proto_depIdxs = []int32{ 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Object.Distance 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector 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 85960ba2f58..fc9d0d34e2e 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/filter/egress/egress_filter.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package egress import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -43,7 +56,9 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { return &filterClient{cc} } -func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) { +func (c *filterClient) FilterDistance( + ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption, +) (*payload.Object_Distance, error) { out := new(payload.Object_Distance) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterDistance", in, out, opts...) if err != nil { @@ -52,7 +67,9 @@ func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Di return out, nil } -func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) { +func (c *filterClient) FilterVector( + ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, +) (*payload.Object_Vector, error) { out := new(payload.Object_Vector) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterVector", in, out, opts...) if err != nil { @@ -73,13 +90,17 @@ type FilterServer interface { } // UnimplementedFilterServer must be embedded to have forward compatible implementations. -type UnimplementedFilterServer struct { -} +type UnimplementedFilterServer struct{} -func (UnimplementedFilterServer) FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) { +func (UnimplementedFilterServer) FilterDistance( + context.Context, *payload.Object_Distance, +) (*payload.Object_Distance, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterDistance not implemented") } -func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) { + +func (UnimplementedFilterServer) FilterVector( + context.Context, *payload.Object_Vector, +) (*payload.Object_Vector, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -95,7 +116,9 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { s.RegisterService(&Filter_ServiceDesc, srv) } -func _Filter_FilterDistance_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_FilterDistance_Handler( + 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 { return nil, err @@ -113,7 +136,9 @@ func _Filter_FilterDistance_Handler(srv any, ctx context.Context, dec func(any) return interceptor(ctx, in, info, handler) } -func _Filter_FilterVector_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_FilterVector_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go index fe86dde2afb..4c76d06ed6b 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -23,11 +23,12 @@ package ingress import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -75,6 +76,7 @@ var file_v1_filter_ingress_ingress_filter_proto_goTypes = []any{ (*payload.Object_Blob)(nil), // 0: payload.v1.Object.Blob (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector } + var file_v1_filter_ingress_ingress_filter_proto_depIdxs = []int32{ 0, // 0: filter.ingress.v1.Filter.GenVector:input_type -> payload.v1.Object.Blob 1, // 1: filter.ingress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector 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 215a2385e3b..acea57e8096 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/filter/ingress/ingress_filter.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package ingress import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -43,7 +56,9 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { return &filterClient{cc} } -func (c *filterClient) GenVector(ctx context.Context, in *payload.Object_Blob, opts ...grpc.CallOption) (*payload.Object_Vector, error) { +func (c *filterClient) GenVector( + ctx context.Context, in *payload.Object_Blob, opts ...grpc.CallOption, +) (*payload.Object_Vector, error) { out := new(payload.Object_Vector) err := c.cc.Invoke(ctx, "/filter.ingress.v1.Filter/GenVector", in, out, opts...) if err != nil { @@ -52,7 +67,9 @@ func (c *filterClient) GenVector(ctx context.Context, in *payload.Object_Blob, o return out, nil } -func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) { +func (c *filterClient) FilterVector( + ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, +) (*payload.Object_Vector, error) { out := new(payload.Object_Vector) err := c.cc.Invoke(ctx, "/filter.ingress.v1.Filter/FilterVector", in, out, opts...) if err != nil { @@ -73,13 +90,17 @@ type FilterServer interface { } // UnimplementedFilterServer must be embedded to have forward compatible implementations. -type UnimplementedFilterServer struct { -} +type UnimplementedFilterServer struct{} -func (UnimplementedFilterServer) GenVector(context.Context, *payload.Object_Blob) (*payload.Object_Vector, error) { +func (UnimplementedFilterServer) GenVector( + context.Context, *payload.Object_Blob, +) (*payload.Object_Vector, error) { return nil, status.Errorf(codes.Unimplemented, "method GenVector not implemented") } -func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) { + +func (UnimplementedFilterServer) FilterVector( + context.Context, *payload.Object_Vector, +) (*payload.Object_Vector, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -95,7 +116,9 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { s.RegisterService(&Filter_ServiceDesc, srv) } -func _Filter_GenVector_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_GenVector_Handler( + 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 { return nil, err @@ -113,7 +136,9 @@ func _Filter_GenVector_Handler(srv any, ctx context.Context, dec func(any) error return interceptor(ctx, in, info, handler) } -func _Filter_FilterVector_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_FilterVector_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/meta/meta.pb.go b/apis/grpc/v1/meta/meta.pb.go index 5aaad168433..86615416bf4 100644 --- a/apis/grpc/v1/meta/meta.pb.go +++ b/apis/grpc/v1/meta/meta.pb.go @@ -23,11 +23,12 @@ package meta import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -74,6 +75,7 @@ var file_v1_meta_meta_proto_goTypes = []any{ (*payload.Meta_Value)(nil), // 2: payload.v1.Meta.Value (*payload.Empty)(nil), // 3: payload.v1.Empty } + var file_v1_meta_meta_proto_depIdxs = []int32{ 0, // 0: meta.v1.Meta.Get:input_type -> payload.v1.Meta.Key 1, // 1: meta.v1.Meta.Set:input_type -> payload.v1.Meta.KeyValue diff --git a/apis/grpc/v1/meta/meta_vtproto.pb.go b/apis/grpc/v1/meta/meta_vtproto.pb.go index bc96261d445..95bc2596678 100644 --- a/apis/grpc/v1/meta/meta_vtproto.pb.go +++ b/apis/grpc/v1/meta/meta_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/meta/meta.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package meta import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -42,7 +55,9 @@ func NewMetaClient(cc grpc.ClientConnInterface) MetaClient { return &metaClient{cc} } -func (c *metaClient) Get(ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption) (*payload.Meta_Value, error) { +func (c *metaClient) Get( + ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption, +) (*payload.Meta_Value, error) { out := new(payload.Meta_Value) err := c.cc.Invoke(ctx, "/meta.v1.Meta/Get", in, out, opts...) if err != nil { @@ -51,7 +66,9 @@ func (c *metaClient) Get(ctx context.Context, in *payload.Meta_Key, opts ...grpc return out, nil } -func (c *metaClient) Set(ctx context.Context, in *payload.Meta_KeyValue, opts ...grpc.CallOption) (*payload.Empty, error) { +func (c *metaClient) Set( + ctx context.Context, in *payload.Meta_KeyValue, opts ...grpc.CallOption, +) (*payload.Empty, error) { out := new(payload.Empty) err := c.cc.Invoke(ctx, "/meta.v1.Meta/Set", in, out, opts...) if err != nil { @@ -60,7 +77,9 @@ func (c *metaClient) Set(ctx context.Context, in *payload.Meta_KeyValue, opts .. return out, nil } -func (c *metaClient) Delete(ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption) (*payload.Empty, error) { +func (c *metaClient) Delete( + ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption, +) (*payload.Empty, error) { out := new(payload.Empty) err := c.cc.Invoke(ctx, "/meta.v1.Meta/Delete", in, out, opts...) if err != nil { @@ -80,15 +99,20 @@ type MetaServer interface { } // UnimplementedMetaServer must be embedded to have forward compatible implementations. -type UnimplementedMetaServer struct { -} +type UnimplementedMetaServer struct{} -func (UnimplementedMetaServer) Get(context.Context, *payload.Meta_Key) (*payload.Meta_Value, error) { +func (UnimplementedMetaServer) Get( + context.Context, *payload.Meta_Key, +) (*payload.Meta_Value, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") } -func (UnimplementedMetaServer) Set(context.Context, *payload.Meta_KeyValue) (*payload.Empty, error) { + +func (UnimplementedMetaServer) Set( + context.Context, *payload.Meta_KeyValue, +) (*payload.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Set not implemented") } + func (UnimplementedMetaServer) Delete(context.Context, *payload.Meta_Key) (*payload.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } @@ -105,7 +129,9 @@ func RegisterMetaServer(s grpc.ServiceRegistrar, srv MetaServer) { s.RegisterService(&Meta_ServiceDesc, srv) } -func _Meta_Get_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Meta_Get_Handler( + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, +) (any, error) { in := new(payload.Meta_Key) if err := dec(in); err != nil { return nil, err @@ -123,7 +149,9 @@ func _Meta_Get_Handler(srv any, ctx context.Context, dec func(any) error, interc return interceptor(ctx, in, info, handler) } -func _Meta_Set_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Meta_Set_Handler( + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, +) (any, error) { in := new(payload.Meta_KeyValue) if err := dec(in); err != nil { return nil, err @@ -141,7 +169,9 @@ func _Meta_Set_Handler(srv any, ctx context.Context, dec func(any) error, interc return interceptor(ctx, in, info, handler) } -func _Meta_Delete_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Meta_Delete_Handler( + srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, +) (any, error) { in := new(payload.Meta_Key) if err := dec(in); err != nil { return nil, err diff --git a/apis/grpc/v1/mirror/mirror.pb.go b/apis/grpc/v1/mirror/mirror.pb.go index e6e682bbfd3..429706e1c3f 100644 --- a/apis/grpc/v1/mirror/mirror.pb.go +++ b/apis/grpc/v1/mirror/mirror.pb.go @@ -23,11 +23,12 @@ package mirror import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -64,6 +65,7 @@ var file_v1_mirror_mirror_proto_rawDesc = []byte{ var file_v1_mirror_mirror_proto_goTypes = []any{ (*payload.Mirror_Targets)(nil), // 0: payload.v1.Mirror.Targets } + var file_v1_mirror_mirror_proto_depIdxs = []int32{ 0, // 0: mirror.v1.Mirror.Register:input_type -> payload.v1.Mirror.Targets 0, // 1: mirror.v1.Mirror.Register:output_type -> payload.v1.Mirror.Targets diff --git a/apis/grpc/v1/mirror/mirror_vtproto.pb.go b/apis/grpc/v1/mirror/mirror_vtproto.pb.go index 30bfedf5a39..5b733bf39d3 100644 --- a/apis/grpc/v1/mirror/mirror_vtproto.pb.go +++ b/apis/grpc/v1/mirror/mirror_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/mirror/mirror.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package mirror import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -41,7 +54,9 @@ func NewMirrorClient(cc grpc.ClientConnInterface) MirrorClient { return &mirrorClient{cc} } -func (c *mirrorClient) Register(ctx context.Context, in *payload.Mirror_Targets, opts ...grpc.CallOption) (*payload.Mirror_Targets, error) { +func (c *mirrorClient) Register( + ctx context.Context, in *payload.Mirror_Targets, opts ...grpc.CallOption, +) (*payload.Mirror_Targets, error) { out := new(payload.Mirror_Targets) err := c.cc.Invoke(ctx, "/mirror.v1.Mirror/Register", in, out, opts...) if err != nil { @@ -60,10 +75,11 @@ type MirrorServer interface { } // UnimplementedMirrorServer must be embedded to have forward compatible implementations. -type UnimplementedMirrorServer struct { -} +type UnimplementedMirrorServer struct{} -func (UnimplementedMirrorServer) Register(context.Context, *payload.Mirror_Targets) (*payload.Mirror_Targets, error) { +func (UnimplementedMirrorServer) Register( + context.Context, *payload.Mirror_Targets, +) (*payload.Mirror_Targets, error) { return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") } func (UnimplementedMirrorServer) mustEmbedUnimplementedMirrorServer() {} @@ -79,7 +95,9 @@ func RegisterMirrorServer(s grpc.ServiceRegistrar, srv MirrorServer) { s.RegisterService(&Mirror_ServiceDesc, srv) } -func _Mirror_Register_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Mirror_Register_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 2c8c950bb0e..6a20716558f 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -23,14 +23,15 @@ package payload import ( + reflect "reflect" + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" + sync "github.com/vdaas/vald/internal/sync" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "github.com/vdaas/vald/internal/sync" ) const ( @@ -717,7 +718,7 @@ type Search_Request struct { // The vector to be searched. Vector []float32 `protobuf:"fixed32,1,rep,packed,name=vector,proto3" json:"vector,omitempty"` // The configuration of the search request. - Config *Search_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Config *Search_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` } func (x *Search_Request) Reset() { @@ -822,7 +823,7 @@ type Search_IDRequest struct { unknownFields protoimpl.UnknownFields // The vector ID to be searched. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The configuration of the search request. Config *Search_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` } @@ -929,9 +930,9 @@ type Search_ObjectRequest struct { unknownFields protoimpl.UnknownFields // The binary object to be searched. - Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // The configuration of the search request. - Config *Search_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Config *Search_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Filter configuration. Vectorizer *Filter_Target `protobuf:"bytes,3,opt,name=vectorizer,proto3" json:"vectorizer,omitempty"` } @@ -1045,27 +1046,27 @@ type Search_Config struct { unknownFields protoimpl.UnknownFields // Unique request ID. - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Maximum number of result to be returned. - Num uint32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` + Num uint32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` // Search radius. - Radius float32 `protobuf:"fixed32,3,opt,name=radius,proto3" json:"radius,omitempty"` + Radius float32 `protobuf:"fixed32,3,opt,name=radius,proto3" json:"radius,omitempty"` // Search coefficient. - Epsilon float32 `protobuf:"fixed32,4,opt,name=epsilon,proto3" json:"epsilon,omitempty"` + Epsilon float32 `protobuf:"fixed32,4,opt,name=epsilon,proto3" json:"epsilon,omitempty"` // Search timeout in nanoseconds. - Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. - MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` + MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm AggregationAlgorithm Search_AggregationAlgorithm `protobuf:"varint,9,opt,name=aggregation_algorithm,json=aggregationAlgorithm,proto3,enum=payload.v1.Search_AggregationAlgorithm" json:"aggregation_algorithm,omitempty"` // Search ratio for agent return result number. - Ratio *wrapperspb.FloatValue `protobuf:"bytes,10,opt,name=ratio,proto3" json:"ratio,omitempty"` + Ratio *wrapperspb.FloatValue `protobuf:"bytes,10,opt,name=ratio,proto3" json:"ratio,omitempty"` // Search nprobe. - Nprobe uint32 `protobuf:"varint,11,opt,name=nprobe,proto3" json:"nprobe,omitempty"` + Nprobe uint32 `protobuf:"varint,11,opt,name=nprobe,proto3" json:"nprobe,omitempty"` } func (x *Search_Config) Reset() { @@ -1186,7 +1187,7 @@ type Search_Response struct { // The unique request ID. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Search results. - Results []*Object_Distance `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + Results []*Object_Distance `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` } func (x *Search_Response) Reset() { @@ -1375,7 +1376,7 @@ type Filter_Target struct { unknownFields protoimpl.UnknownFields // The target hostname. - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // The target port. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } @@ -1589,9 +1590,9 @@ type Insert_ObjectRequest struct { unknownFields protoimpl.UnknownFields // The binary object to be inserted. - Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // The configuration of the insert request. - Config *Insert_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Config *Insert_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Filter configurations. Vectorizer *Filter_Target `protobuf:"bytes,3,opt,name=vectorizer,proto3" json:"vectorizer,omitempty"` } @@ -1707,9 +1708,9 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (x *Insert_Config) Reset() { @@ -1879,9 +1880,9 @@ type Update_ObjectRequest struct { unknownFields protoimpl.UnknownFields // The binary object to be updated. - Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // The configuration of the update request. - Config *Update_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Config *Update_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Filter target. Vectorizer *Filter_Target `protobuf:"bytes,3,opt,name=vectorizer,proto3" json:"vectorizer,omitempty"` } @@ -1995,11 +1996,11 @@ type Update_Config struct { unknownFields protoimpl.UnknownFields // A flag to skip exist check during update operation. - SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` + SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) // during update operation. DisableBalancedUpdate bool `protobuf:"varint,4,opt,name=disable_balanced_update,json=disableBalancedUpdate,proto3" json:"disable_balanced_update,omitempty"` @@ -2179,9 +2180,9 @@ type Upsert_ObjectRequest struct { unknownFields protoimpl.UnknownFields // The binary object to be upserted. - Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + Object *Object_Blob `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // The configuration of the upsert request. - Config *Upsert_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Config *Upsert_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Filter target. Vectorizer *Filter_Target `protobuf:"bytes,3,opt,name=vectorizer,proto3" json:"vectorizer,omitempty"` } @@ -2295,11 +2296,11 @@ type Upsert_Config struct { unknownFields protoimpl.UnknownFields // A flag to skip exist check during upsert operation. - SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` + SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) // during update operation. DisableBalancedUpdate bool `protobuf:"varint,4,opt,name=disable_balanced_update,json=disableBalancedUpdate,proto3" json:"disable_balanced_update,omitempty"` @@ -2372,7 +2373,7 @@ type Remove_Request struct { unknownFields protoimpl.UnknownFields // The object ID to be removed. - Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The configuration of the remove request. Config *Remove_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` } @@ -2529,7 +2530,7 @@ type Remove_Timestamp struct { unknownFields protoimpl.UnknownFields // The timestamp. - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The conditional operator. Operator Remove_Timestamp_Operator `protobuf:"varint,2,opt,name=operator,proto3,enum=payload.v1.Remove_Timestamp_Operator" json:"operator,omitempty"` } @@ -2589,7 +2590,7 @@ type Remove_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Remove timestamp. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (x *Remove_Config) Reset() { @@ -2683,7 +2684,7 @@ type Object_VectorRequest struct { unknownFields protoimpl.UnknownFields // The vector ID to be fetched. - Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` } @@ -2741,7 +2742,7 @@ type Object_Distance struct { unknownFields protoimpl.UnknownFields // The vector ID. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The distance. Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"` } @@ -2979,11 +2980,11 @@ type Object_Vector struct { unknownFields protoimpl.UnknownFields // The vector ID. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The vector. Vector []float32 `protobuf:"fixed32,2,rep,packed,name=vector,proto3" json:"vector,omitempty"` // timestamp represents when this vector inserted. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (x *Object_Vector) Reset() { @@ -3095,7 +3096,7 @@ type Object_Timestamp struct { unknownFields protoimpl.UnknownFields // The vector ID. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // timestamp represents when this vector inserted. Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -3285,7 +3286,7 @@ type Object_ReshapeVector struct { unknownFields protoimpl.UnknownFields // The binary object. - Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // The new shape. Shape []int32 `protobuf:"varint,2,rep,packed,name=shape,proto3" json:"shape,omitempty"` } @@ -3343,7 +3344,7 @@ type Object_Blob struct { unknownFields protoimpl.UnknownFields // The object ID. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The binary object. Object []byte `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` } @@ -3489,7 +3490,7 @@ type Object_Location struct { // The UUID of the vector. Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // The IP list. - Ips []string `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` + Ips []string `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` } func (x *Object_Location) Reset() { @@ -3893,11 +3894,11 @@ type Discoverer_Request struct { unknownFields protoimpl.UnknownFields // The agent name to be discovered. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The namespace to be discovered. Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // The node to be discovered. - Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` + Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` } func (x *Discoverer_Request) Reset() { @@ -4001,17 +4002,17 @@ type Info_Pod struct { // The app name of the pod on the label. AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` // The name of the pod. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The namespace of the pod. - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // The IP of the pod. - Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` + Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // The CPU information of the pod. - Cpu *Info_CPU `protobuf:"bytes,5,opt,name=cpu,proto3" json:"cpu,omitempty"` + Cpu *Info_CPU `protobuf:"bytes,5,opt,name=cpu,proto3" json:"cpu,omitempty"` // The memory information of the pod. - Memory *Info_Memory `protobuf:"bytes,6,opt,name=memory,proto3" json:"memory,omitempty"` + Memory *Info_Memory `protobuf:"bytes,6,opt,name=memory,proto3" json:"memory,omitempty"` // The node information of the pod. - Node *Info_Node `protobuf:"bytes,7,opt,name=node,proto3" json:"node,omitempty"` + Node *Info_Node `protobuf:"bytes,7,opt,name=node,proto3" json:"node,omitempty"` } func (x *Info_Pod) Reset() { @@ -4102,17 +4103,17 @@ type Info_Node struct { unknownFields protoimpl.UnknownFields // The name of the node. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The internal IP address of the node. InternalAddr string `protobuf:"bytes,2,opt,name=internal_addr,json=internalAddr,proto3" json:"internal_addr,omitempty"` // The external IP address of the node. ExternalAddr string `protobuf:"bytes,3,opt,name=external_addr,json=externalAddr,proto3" json:"external_addr,omitempty"` // The CPU information of the node. - Cpu *Info_CPU `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"` + Cpu *Info_CPU `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"` // The memory information of the node. - Memory *Info_Memory `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"` + Memory *Info_Memory `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"` // The pod information of the node. - Pods *Info_Pods `protobuf:"bytes,6,opt,name=Pods,proto3" json:"Pods,omitempty"` + Pods *Info_Pods `protobuf:"bytes,6,opt,name=Pods,proto3" json:"Pods,omitempty"` } func (x *Info_Node) Reset() { @@ -4196,17 +4197,17 @@ type Info_Service struct { unknownFields protoimpl.UnknownFields // The name of the svc. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The cluster ip of the svc. - ClusterIp string `protobuf:"bytes,2,opt,name=cluster_ip,json=clusterIp,proto3" json:"cluster_ip,omitempty"` + ClusterIp string `protobuf:"bytes,2,opt,name=cluster_ip,json=clusterIp,proto3" json:"cluster_ip,omitempty"` // The cluster ips of the svc. ClusterIps []string `protobuf:"bytes,3,rep,name=cluster_ips,json=clusterIps,proto3" json:"cluster_ips,omitempty"` // The port of the svc. - Ports []*Info_ServicePort `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"` + Ports []*Info_ServicePort `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"` // The labels of the service. - Labels *Info_Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` + Labels *Info_Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` // The annotations of the service. - Annotations *Info_Annotations `protobuf:"bytes,6,opt,name=annotations,proto3" json:"annotations,omitempty"` + Annotations *Info_Annotations `protobuf:"bytes,6,opt,name=annotations,proto3" json:"annotations,omitempty"` } func (x *Info_Service) Reset() { @@ -4290,7 +4291,7 @@ type Info_ServicePort struct { unknownFields protoimpl.UnknownFields // The name of the port. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The port number Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } @@ -4444,11 +4445,11 @@ type Info_CPU struct { unknownFields protoimpl.UnknownFields // The CPU resource limit. - Limit float64 `protobuf:"fixed64,1,opt,name=limit,proto3" json:"limit,omitempty"` + Limit float64 `protobuf:"fixed64,1,opt,name=limit,proto3" json:"limit,omitempty"` // The CPU resource requested. Request float64 `protobuf:"fixed64,2,opt,name=request,proto3" json:"request,omitempty"` // The CPU usage. - Usage float64 `protobuf:"fixed64,3,opt,name=usage,proto3" json:"usage,omitempty"` + Usage float64 `protobuf:"fixed64,3,opt,name=usage,proto3" json:"usage,omitempty"` } func (x *Info_CPU) Reset() { @@ -4511,11 +4512,11 @@ type Info_Memory struct { unknownFields protoimpl.UnknownFields // The memory limit. - Limit float64 `protobuf:"fixed64,1,opt,name=limit,proto3" json:"limit,omitempty"` + Limit float64 `protobuf:"fixed64,1,opt,name=limit,proto3" json:"limit,omitempty"` // The memory requested. Request float64 `protobuf:"fixed64,2,opt,name=request,proto3" json:"request,omitempty"` // The memory usage. - Usage float64 `protobuf:"fixed64,3,opt,name=usage,proto3" json:"usage,omitempty"` + Usage float64 `protobuf:"fixed64,3,opt,name=usage,proto3" json:"usage,omitempty"` } func (x *Info_Memory) Reset() { @@ -4773,13 +4774,13 @@ type Info_Index_Count struct { unknownFields protoimpl.UnknownFields // The stored index count. - Stored uint32 `protobuf:"varint,1,opt,name=stored,proto3" json:"stored,omitempty"` + Stored uint32 `protobuf:"varint,1,opt,name=stored,proto3" json:"stored,omitempty"` // The uncommitted index count. Uncommitted uint32 `protobuf:"varint,2,opt,name=uncommitted,proto3" json:"uncommitted,omitempty"` // The indexing index count. - Indexing bool `protobuf:"varint,3,opt,name=indexing,proto3" json:"indexing,omitempty"` + Indexing bool `protobuf:"varint,3,opt,name=indexing,proto3" json:"indexing,omitempty"` // The saving index count. - Saving bool `protobuf:"varint,4,opt,name=saving,proto3" json:"saving,omitempty"` + Saving bool `protobuf:"varint,4,opt,name=saving,proto3" json:"saving,omitempty"` } func (x *Info_Index_Count) Reset() { @@ -4849,9 +4850,9 @@ type Info_Index_Detail struct { unknownFields protoimpl.UnknownFields // count infos for each agents - Counts map[string]*Info_Index_Count `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"` + Counts map[string]*Info_Index_Count `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"` // index replica of vald cluster - Replica uint32 `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"` + Replica uint32 `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"` // live agent replica of vald cluster LiveAgents uint32 `protobuf:"varint,3,opt,name=live_agents,json=liveAgents,proto3" json:"live_agents,omitempty"` } @@ -4954,39 +4955,39 @@ type Info_Index_Statistics struct { 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"` - NodesSkippedFor10Edges 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"` + 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"` + NodesSkippedFor10Edges 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"` - MeanEdgeLengthFor10Edges float64 `protobuf:"fixed64,24,opt,name=mean_edge_length_for_10_edges,json=meanEdgeLengthFor10Edges,proto3" json:"mean_edge_length_for_10_edges,omitempty"` - MeanIndegreeDistanceFor10Edges 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"` + 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"` + MeanEdgeLengthFor10Edges float64 `protobuf:"fixed64,24,opt,name=mean_edge_length_for_10_edges,json=meanEdgeLengthFor10Edges,proto3" json:"mean_edge_length_for_10_edges,omitempty"` + MeanIndegreeDistanceFor10Edges 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() { @@ -5307,40 +5308,40 @@ type Info_Index_Property struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Dimension int32 `protobuf:"varint,1,opt,name=dimension,proto3" json:"dimension,omitempty"` - ThreadPoolSize int32 `protobuf:"varint,2,opt,name=thread_pool_size,json=threadPoolSize,proto3" json:"thread_pool_size,omitempty"` - ObjectType string `protobuf:"bytes,3,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` - DistanceType string `protobuf:"bytes,4,opt,name=distance_type,json=distanceType,proto3" json:"distance_type,omitempty"` - IndexType string `protobuf:"bytes,5,opt,name=index_type,json=indexType,proto3" json:"index_type,omitempty"` - DatabaseType string `protobuf:"bytes,6,opt,name=database_type,json=databaseType,proto3" json:"database_type,omitempty"` - ObjectAlignment string `protobuf:"bytes,7,opt,name=object_alignment,json=objectAlignment,proto3" json:"object_alignment,omitempty"` - PathAdjustmentInterval int32 `protobuf:"varint,8,opt,name=path_adjustment_interval,json=pathAdjustmentInterval,proto3" json:"path_adjustment_interval,omitempty"` - GraphSharedMemorySize int32 `protobuf:"varint,9,opt,name=graph_shared_memory_size,json=graphSharedMemorySize,proto3" json:"graph_shared_memory_size,omitempty"` - TreeSharedMemorySize int32 `protobuf:"varint,10,opt,name=tree_shared_memory_size,json=treeSharedMemorySize,proto3" json:"tree_shared_memory_size,omitempty"` - ObjectSharedMemorySize int32 `protobuf:"varint,11,opt,name=object_shared_memory_size,json=objectSharedMemorySize,proto3" json:"object_shared_memory_size,omitempty"` - PrefetchOffset int32 `protobuf:"varint,12,opt,name=prefetch_offset,json=prefetchOffset,proto3" json:"prefetch_offset,omitempty"` - PrefetchSize int32 `protobuf:"varint,13,opt,name=prefetch_size,json=prefetchSize,proto3" json:"prefetch_size,omitempty"` - AccuracyTable string `protobuf:"bytes,14,opt,name=accuracy_table,json=accuracyTable,proto3" json:"accuracy_table,omitempty"` - SearchType string `protobuf:"bytes,15,opt,name=search_type,json=searchType,proto3" json:"search_type,omitempty"` - MaxMagnitude float32 `protobuf:"fixed32,16,opt,name=max_magnitude,json=maxMagnitude,proto3" json:"max_magnitude,omitempty"` + Dimension int32 `protobuf:"varint,1,opt,name=dimension,proto3" json:"dimension,omitempty"` + ThreadPoolSize int32 `protobuf:"varint,2,opt,name=thread_pool_size,json=threadPoolSize,proto3" json:"thread_pool_size,omitempty"` + ObjectType string `protobuf:"bytes,3,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` + DistanceType string `protobuf:"bytes,4,opt,name=distance_type,json=distanceType,proto3" json:"distance_type,omitempty"` + IndexType string `protobuf:"bytes,5,opt,name=index_type,json=indexType,proto3" json:"index_type,omitempty"` + DatabaseType string `protobuf:"bytes,6,opt,name=database_type,json=databaseType,proto3" json:"database_type,omitempty"` + ObjectAlignment string `protobuf:"bytes,7,opt,name=object_alignment,json=objectAlignment,proto3" json:"object_alignment,omitempty"` + PathAdjustmentInterval int32 `protobuf:"varint,8,opt,name=path_adjustment_interval,json=pathAdjustmentInterval,proto3" json:"path_adjustment_interval,omitempty"` + GraphSharedMemorySize int32 `protobuf:"varint,9,opt,name=graph_shared_memory_size,json=graphSharedMemorySize,proto3" json:"graph_shared_memory_size,omitempty"` + TreeSharedMemorySize int32 `protobuf:"varint,10,opt,name=tree_shared_memory_size,json=treeSharedMemorySize,proto3" json:"tree_shared_memory_size,omitempty"` + ObjectSharedMemorySize int32 `protobuf:"varint,11,opt,name=object_shared_memory_size,json=objectSharedMemorySize,proto3" json:"object_shared_memory_size,omitempty"` + PrefetchOffset int32 `protobuf:"varint,12,opt,name=prefetch_offset,json=prefetchOffset,proto3" json:"prefetch_offset,omitempty"` + PrefetchSize int32 `protobuf:"varint,13,opt,name=prefetch_size,json=prefetchSize,proto3" json:"prefetch_size,omitempty"` + AccuracyTable string `protobuf:"bytes,14,opt,name=accuracy_table,json=accuracyTable,proto3" json:"accuracy_table,omitempty"` + SearchType string `protobuf:"bytes,15,opt,name=search_type,json=searchType,proto3" json:"search_type,omitempty"` + MaxMagnitude float32 `protobuf:"fixed32,16,opt,name=max_magnitude,json=maxMagnitude,proto3" json:"max_magnitude,omitempty"` NOfNeighborsForInsertionOrder int32 `protobuf:"varint,17,opt,name=n_of_neighbors_for_insertion_order,json=nOfNeighborsForInsertionOrder,proto3" json:"n_of_neighbors_for_insertion_order,omitempty"` - EpsilonForInsertionOrder float32 `protobuf:"fixed32,18,opt,name=epsilon_for_insertion_order,json=epsilonForInsertionOrder,proto3" json:"epsilon_for_insertion_order,omitempty"` - RefinementObjectType string `protobuf:"bytes,19,opt,name=refinement_object_type,json=refinementObjectType,proto3" json:"refinement_object_type,omitempty"` - TruncationThreshold int32 `protobuf:"varint,20,opt,name=truncation_threshold,json=truncationThreshold,proto3" json:"truncation_threshold,omitempty"` - EdgeSizeForCreation int32 `protobuf:"varint,21,opt,name=edge_size_for_creation,json=edgeSizeForCreation,proto3" json:"edge_size_for_creation,omitempty"` - EdgeSizeForSearch int32 `protobuf:"varint,22,opt,name=edge_size_for_search,json=edgeSizeForSearch,proto3" json:"edge_size_for_search,omitempty"` - EdgeSizeLimitForCreation int32 `protobuf:"varint,23,opt,name=edge_size_limit_for_creation,json=edgeSizeLimitForCreation,proto3" json:"edge_size_limit_for_creation,omitempty"` - InsertionRadiusCoefficient float64 `protobuf:"fixed64,24,opt,name=insertion_radius_coefficient,json=insertionRadiusCoefficient,proto3" json:"insertion_radius_coefficient,omitempty"` - SeedSize int32 `protobuf:"varint,25,opt,name=seed_size,json=seedSize,proto3" json:"seed_size,omitempty"` - SeedType string `protobuf:"bytes,26,opt,name=seed_type,json=seedType,proto3" json:"seed_type,omitempty"` - TruncationThreadPoolSize int32 `protobuf:"varint,27,opt,name=truncation_thread_pool_size,json=truncationThreadPoolSize,proto3" json:"truncation_thread_pool_size,omitempty"` - BatchSizeForCreation int32 `protobuf:"varint,28,opt,name=batch_size_for_creation,json=batchSizeForCreation,proto3" json:"batch_size_for_creation,omitempty"` - GraphType string `protobuf:"bytes,29,opt,name=graph_type,json=graphType,proto3" json:"graph_type,omitempty"` - DynamicEdgeSizeBase int32 `protobuf:"varint,30,opt,name=dynamic_edge_size_base,json=dynamicEdgeSizeBase,proto3" json:"dynamic_edge_size_base,omitempty"` - DynamicEdgeSizeRate int32 `protobuf:"varint,31,opt,name=dynamic_edge_size_rate,json=dynamicEdgeSizeRate,proto3" json:"dynamic_edge_size_rate,omitempty"` - BuildTimeLimit float32 `protobuf:"fixed32,32,opt,name=build_time_limit,json=buildTimeLimit,proto3" json:"build_time_limit,omitempty"` - OutgoingEdge int32 `protobuf:"varint,33,opt,name=outgoing_edge,json=outgoingEdge,proto3" json:"outgoing_edge,omitempty"` - IncomingEdge int32 `protobuf:"varint,34,opt,name=incoming_edge,json=incomingEdge,proto3" json:"incoming_edge,omitempty"` + EpsilonForInsertionOrder float32 `protobuf:"fixed32,18,opt,name=epsilon_for_insertion_order,json=epsilonForInsertionOrder,proto3" json:"epsilon_for_insertion_order,omitempty"` + RefinementObjectType string `protobuf:"bytes,19,opt,name=refinement_object_type,json=refinementObjectType,proto3" json:"refinement_object_type,omitempty"` + TruncationThreshold int32 `protobuf:"varint,20,opt,name=truncation_threshold,json=truncationThreshold,proto3" json:"truncation_threshold,omitempty"` + EdgeSizeForCreation int32 `protobuf:"varint,21,opt,name=edge_size_for_creation,json=edgeSizeForCreation,proto3" json:"edge_size_for_creation,omitempty"` + EdgeSizeForSearch int32 `protobuf:"varint,22,opt,name=edge_size_for_search,json=edgeSizeForSearch,proto3" json:"edge_size_for_search,omitempty"` + EdgeSizeLimitForCreation int32 `protobuf:"varint,23,opt,name=edge_size_limit_for_creation,json=edgeSizeLimitForCreation,proto3" json:"edge_size_limit_for_creation,omitempty"` + InsertionRadiusCoefficient float64 `protobuf:"fixed64,24,opt,name=insertion_radius_coefficient,json=insertionRadiusCoefficient,proto3" json:"insertion_radius_coefficient,omitempty"` + SeedSize int32 `protobuf:"varint,25,opt,name=seed_size,json=seedSize,proto3" json:"seed_size,omitempty"` + SeedType string `protobuf:"bytes,26,opt,name=seed_type,json=seedType,proto3" json:"seed_type,omitempty"` + TruncationThreadPoolSize int32 `protobuf:"varint,27,opt,name=truncation_thread_pool_size,json=truncationThreadPoolSize,proto3" json:"truncation_thread_pool_size,omitempty"` + BatchSizeForCreation int32 `protobuf:"varint,28,opt,name=batch_size_for_creation,json=batchSizeForCreation,proto3" json:"batch_size_for_creation,omitempty"` + GraphType string `protobuf:"bytes,29,opt,name=graph_type,json=graphType,proto3" json:"graph_type,omitempty"` + DynamicEdgeSizeBase int32 `protobuf:"varint,30,opt,name=dynamic_edge_size_base,json=dynamicEdgeSizeBase,proto3" json:"dynamic_edge_size_base,omitempty"` + DynamicEdgeSizeRate int32 `protobuf:"varint,31,opt,name=dynamic_edge_size_rate,json=dynamicEdgeSizeRate,proto3" json:"dynamic_edge_size_rate,omitempty"` + BuildTimeLimit float32 `protobuf:"fixed32,32,opt,name=build_time_limit,json=buildTimeLimit,proto3" json:"build_time_limit,omitempty"` + OutgoingEdge int32 `protobuf:"varint,33,opt,name=outgoing_edge,json=outgoingEdge,proto3" json:"outgoing_edge,omitempty"` + IncomingEdge int32 `protobuf:"varint,34,opt,name=incoming_edge,json=incomingEdge,proto3" json:"incoming_edge,omitempty"` } func (x *Info_Index_Property) Reset() { @@ -5764,7 +5765,7 @@ type Mirror_Target struct { unknownFields protoimpl.UnknownFields // The target hostname. - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // The target port. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } @@ -5963,7 +5964,7 @@ type Meta_KeyValue struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *Meta_Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Key *Meta_Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *Meta_Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } @@ -6774,115 +6775,117 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { return file_v1_payload_payload_proto_rawDescData } -var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 100) -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 - (*Search)(nil), // 2: payload.v1.Search - (*Filter)(nil), // 3: payload.v1.Filter - (*Insert)(nil), // 4: payload.v1.Insert - (*Update)(nil), // 5: payload.v1.Update - (*Upsert)(nil), // 6: payload.v1.Upsert - (*Remove)(nil), // 7: payload.v1.Remove - (*Flush)(nil), // 8: payload.v1.Flush - (*Object)(nil), // 9: payload.v1.Object - (*Control)(nil), // 10: payload.v1.Control - (*Discoverer)(nil), // 11: payload.v1.Discoverer - (*Info)(nil), // 12: payload.v1.Info - (*Mirror)(nil), // 13: payload.v1.Mirror - (*Meta)(nil), // 14: payload.v1.Meta - (*Empty)(nil), // 15: payload.v1.Empty - (*Search_Request)(nil), // 16: payload.v1.Search.Request - (*Search_MultiRequest)(nil), // 17: payload.v1.Search.MultiRequest - (*Search_IDRequest)(nil), // 18: payload.v1.Search.IDRequest - (*Search_MultiIDRequest)(nil), // 19: payload.v1.Search.MultiIDRequest - (*Search_ObjectRequest)(nil), // 20: payload.v1.Search.ObjectRequest - (*Search_MultiObjectRequest)(nil), // 21: payload.v1.Search.MultiObjectRequest - (*Search_Config)(nil), // 22: payload.v1.Search.Config - (*Search_Response)(nil), // 23: payload.v1.Search.Response - (*Search_Responses)(nil), // 24: payload.v1.Search.Responses - (*Search_StreamResponse)(nil), // 25: payload.v1.Search.StreamResponse - (*Filter_Target)(nil), // 26: payload.v1.Filter.Target - (*Filter_Config)(nil), // 27: payload.v1.Filter.Config - (*Insert_Request)(nil), // 28: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 29: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 30: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 31: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 32: payload.v1.Insert.Config - (*Update_Request)(nil), // 33: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 34: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 35: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 36: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 37: payload.v1.Update.Config - (*Upsert_Request)(nil), // 38: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 39: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 40: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 41: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 42: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 43: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 44: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 45: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 46: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 47: payload.v1.Remove.Config - (*Flush_Request)(nil), // 48: payload.v1.Flush.Request - (*Object_VectorRequest)(nil), // 49: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 50: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 51: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 52: payload.v1.Object.ID - (*Object_IDs)(nil), // 53: payload.v1.Object.IDs - (*Object_Vector)(nil), // 54: payload.v1.Object.Vector - (*Object_TimestampRequest)(nil), // 55: payload.v1.Object.TimestampRequest - (*Object_Timestamp)(nil), // 56: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 57: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 58: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 59: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 60: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 61: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 62: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 63: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 64: payload.v1.Object.Locations - (*Object_List)(nil), // 65: payload.v1.Object.List - (*Object_List_Request)(nil), // 66: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 67: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 68: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 69: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 70: payload.v1.Info.Index - (*Info_Pod)(nil), // 71: payload.v1.Info.Pod - (*Info_Node)(nil), // 72: payload.v1.Info.Node - (*Info_Service)(nil), // 73: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 74: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 75: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 76: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 77: payload.v1.Info.CPU - (*Info_Memory)(nil), // 78: payload.v1.Info.Memory - (*Info_Pods)(nil), // 79: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 80: payload.v1.Info.Nodes - (*Info_Services)(nil), // 81: payload.v1.Info.Services - (*Info_IPs)(nil), // 82: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 83: payload.v1.Info.Index.Count - (*Info_Index_Detail)(nil), // 84: payload.v1.Info.Index.Detail - (*Info_Index_UUID)(nil), // 85: payload.v1.Info.Index.UUID - (*Info_Index_Statistics)(nil), // 86: payload.v1.Info.Index.Statistics - (*Info_Index_StatisticsDetail)(nil), // 87: payload.v1.Info.Index.StatisticsDetail - (*Info_Index_Property)(nil), // 88: payload.v1.Info.Index.Property - (*Info_Index_PropertyDetail)(nil), // 89: payload.v1.Info.Index.PropertyDetail - nil, // 90: payload.v1.Info.Index.Detail.CountsEntry - (*Info_Index_UUID_Committed)(nil), // 91: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 92: payload.v1.Info.Index.UUID.Uncommitted - nil, // 93: payload.v1.Info.Index.StatisticsDetail.DetailsEntry - nil, // 94: payload.v1.Info.Index.PropertyDetail.DetailsEntry - nil, // 95: payload.v1.Info.Labels.LabelsEntry - nil, // 96: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 97: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 98: payload.v1.Mirror.Targets - (*Meta_Key)(nil), // 99: payload.v1.Meta.Key - (*Meta_Value)(nil), // 100: payload.v1.Meta.Value - (*Meta_KeyValue)(nil), // 101: payload.v1.Meta.KeyValue - (*wrapperspb.FloatValue)(nil), // 102: google.protobuf.FloatValue - (*status.Status)(nil), // 103: google.rpc.Status - (*anypb.Any)(nil), // 104: google.protobuf.Any -} +var ( + file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 100) + 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 + (*Search)(nil), // 2: payload.v1.Search + (*Filter)(nil), // 3: payload.v1.Filter + (*Insert)(nil), // 4: payload.v1.Insert + (*Update)(nil), // 5: payload.v1.Update + (*Upsert)(nil), // 6: payload.v1.Upsert + (*Remove)(nil), // 7: payload.v1.Remove + (*Flush)(nil), // 8: payload.v1.Flush + (*Object)(nil), // 9: payload.v1.Object + (*Control)(nil), // 10: payload.v1.Control + (*Discoverer)(nil), // 11: payload.v1.Discoverer + (*Info)(nil), // 12: payload.v1.Info + (*Mirror)(nil), // 13: payload.v1.Mirror + (*Meta)(nil), // 14: payload.v1.Meta + (*Empty)(nil), // 15: payload.v1.Empty + (*Search_Request)(nil), // 16: payload.v1.Search.Request + (*Search_MultiRequest)(nil), // 17: payload.v1.Search.MultiRequest + (*Search_IDRequest)(nil), // 18: payload.v1.Search.IDRequest + (*Search_MultiIDRequest)(nil), // 19: payload.v1.Search.MultiIDRequest + (*Search_ObjectRequest)(nil), // 20: payload.v1.Search.ObjectRequest + (*Search_MultiObjectRequest)(nil), // 21: payload.v1.Search.MultiObjectRequest + (*Search_Config)(nil), // 22: payload.v1.Search.Config + (*Search_Response)(nil), // 23: payload.v1.Search.Response + (*Search_Responses)(nil), // 24: payload.v1.Search.Responses + (*Search_StreamResponse)(nil), // 25: payload.v1.Search.StreamResponse + (*Filter_Target)(nil), // 26: payload.v1.Filter.Target + (*Filter_Config)(nil), // 27: payload.v1.Filter.Config + (*Insert_Request)(nil), // 28: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 29: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 30: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 31: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 32: payload.v1.Insert.Config + (*Update_Request)(nil), // 33: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 34: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 35: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 36: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 37: payload.v1.Update.Config + (*Upsert_Request)(nil), // 38: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 39: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 40: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 41: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 42: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 43: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 44: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 45: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 46: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 47: payload.v1.Remove.Config + (*Flush_Request)(nil), // 48: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 49: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 50: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 51: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 52: payload.v1.Object.ID + (*Object_IDs)(nil), // 53: payload.v1.Object.IDs + (*Object_Vector)(nil), // 54: payload.v1.Object.Vector + (*Object_TimestampRequest)(nil), // 55: payload.v1.Object.TimestampRequest + (*Object_Timestamp)(nil), // 56: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 57: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 58: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 59: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 60: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 61: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 62: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 63: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 64: payload.v1.Object.Locations + (*Object_List)(nil), // 65: payload.v1.Object.List + (*Object_List_Request)(nil), // 66: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 67: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 68: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 69: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 70: payload.v1.Info.Index + (*Info_Pod)(nil), // 71: payload.v1.Info.Pod + (*Info_Node)(nil), // 72: payload.v1.Info.Node + (*Info_Service)(nil), // 73: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 74: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 75: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 76: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 77: payload.v1.Info.CPU + (*Info_Memory)(nil), // 78: payload.v1.Info.Memory + (*Info_Pods)(nil), // 79: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 80: payload.v1.Info.Nodes + (*Info_Services)(nil), // 81: payload.v1.Info.Services + (*Info_IPs)(nil), // 82: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 83: payload.v1.Info.Index.Count + (*Info_Index_Detail)(nil), // 84: payload.v1.Info.Index.Detail + (*Info_Index_UUID)(nil), // 85: payload.v1.Info.Index.UUID + (*Info_Index_Statistics)(nil), // 86: payload.v1.Info.Index.Statistics + (*Info_Index_StatisticsDetail)(nil), // 87: payload.v1.Info.Index.StatisticsDetail + (*Info_Index_Property)(nil), // 88: payload.v1.Info.Index.Property + (*Info_Index_PropertyDetail)(nil), // 89: payload.v1.Info.Index.PropertyDetail + nil, // 90: payload.v1.Info.Index.Detail.CountsEntry + (*Info_Index_UUID_Committed)(nil), // 91: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 92: payload.v1.Info.Index.UUID.Uncommitted + nil, // 93: payload.v1.Info.Index.StatisticsDetail.DetailsEntry + nil, // 94: payload.v1.Info.Index.PropertyDetail.DetailsEntry + nil, // 95: payload.v1.Info.Labels.LabelsEntry + nil, // 96: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 97: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 98: payload.v1.Mirror.Targets + (*Meta_Key)(nil), // 99: payload.v1.Meta.Key + (*Meta_Value)(nil), // 100: payload.v1.Meta.Value + (*Meta_KeyValue)(nil), // 101: payload.v1.Meta.KeyValue + (*wrapperspb.FloatValue)(nil), // 102: google.protobuf.FloatValue + (*status.Status)(nil), // 103: google.rpc.Status + (*anypb.Any)(nil), // 104: google.protobuf.Any + } +) var file_v1_payload_payload_proto_depIdxs = []int32{ 22, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config 16, // 1: payload.v1.Search.MultiRequest.requests:type_name -> payload.v1.Search.Request diff --git a/apis/grpc/v1/payload/payload.pb.json.go b/apis/grpc/v1/payload/payload.pb.json.go index 53eea627826..9d8ade0437a 100644 --- a/apis/grpc/v1/payload/payload.pb.json.go +++ b/apis/grpc/v1/payload/payload.pb.json.go @@ -19,9 +19,7 @@ package payload -import ( - "google.golang.org/protobuf/encoding/protojson" -) +import "google.golang.org/protobuf/encoding/protojson" // MarshalJSON implements json.Marshaler func (msg *Search) MarshalJSON() ([]byte, error) { diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 4e53dccaf86..b4ecee725af 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -1,22 +1,35 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/payload/payload.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package payload import ( binary "encoding/binary" fmt "fmt" + math "math" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" anypb1 "github.com/planetscale/vtprotobuf/types/known/anypb" wrapperspb1 "github.com/planetscale/vtprotobuf/types/known/wrapperspb" + io "github.com/vdaas/vald/internal/io" status "google.golang.org/genproto/googleapis/rpc/status" proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - io "github.com/vdaas/vald/internal/io" - math "math" ) const ( @@ -2166,6 +2179,7 @@ func (this *Search_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_MultiRequest) EqualVT(that *Search_MultiRequest) bool { if this == that { return true @@ -2199,6 +2213,7 @@ func (this *Search_MultiRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_IDRequest) EqualVT(that *Search_IDRequest) bool { if this == that { return true @@ -2221,6 +2236,7 @@ func (this *Search_IDRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_MultiIDRequest) EqualVT(that *Search_MultiIDRequest) bool { if this == that { return true @@ -2254,6 +2270,7 @@ func (this *Search_MultiIDRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_ObjectRequest) EqualVT(that *Search_ObjectRequest) bool { if this == that { return true @@ -2279,6 +2296,7 @@ func (this *Search_ObjectRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_MultiObjectRequest) EqualVT(that *Search_MultiObjectRequest) bool { if this == that { return true @@ -2312,6 +2330,7 @@ func (this *Search_MultiObjectRequest) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Search_Config) EqualVT(that *Search_Config) bool { if this == that { return true @@ -2361,6 +2380,7 @@ func (this *Search_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_Response) EqualVT(that *Search_Response) bool { if this == that { return true @@ -2397,6 +2417,7 @@ func (this *Search_Response) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_Responses) EqualVT(that *Search_Responses) bool { if this == that { return true @@ -2430,6 +2451,7 @@ func (this *Search_Responses) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Search_StreamResponse) EqualVT(that *Search_StreamResponse) bool { if this == that { return true @@ -2458,7 +2480,10 @@ func (this *Search_StreamResponse) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } -func (this *Search_StreamResponse_Response) EqualVT(thatIface isSearch_StreamResponse_Payload) bool { + +func (this *Search_StreamResponse_Response) EqualVT( + thatIface isSearch_StreamResponse_Payload, +) bool { that, ok := thatIface.(*Search_StreamResponse_Response) if !ok { return false @@ -2528,6 +2553,7 @@ func (this *Search) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Filter_Target) EqualVT(that *Filter_Target) bool { if this == that { return true @@ -2550,6 +2576,7 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true @@ -2583,6 +2610,7 @@ func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Filter) EqualVT(that *Filter) bool { if this == that { return true @@ -2599,6 +2627,7 @@ func (this *Filter) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Insert_Request) EqualVT(that *Insert_Request) bool { if this == that { return true @@ -2621,6 +2650,7 @@ func (this *Insert_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Insert_MultiRequest) EqualVT(that *Insert_MultiRequest) bool { if this == that { return true @@ -2654,6 +2684,7 @@ func (this *Insert_MultiRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Insert_ObjectRequest) EqualVT(that *Insert_ObjectRequest) bool { if this == that { return true @@ -2679,6 +2710,7 @@ func (this *Insert_ObjectRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Insert_MultiObjectRequest) EqualVT(that *Insert_MultiObjectRequest) bool { if this == that { return true @@ -2712,6 +2744,7 @@ func (this *Insert_MultiObjectRequest) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this == that { return true @@ -2737,6 +2770,7 @@ func (this *Insert_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Insert) EqualVT(that *Insert) bool { if this == that { return true @@ -2753,6 +2787,7 @@ func (this *Insert) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Update_Request) EqualVT(that *Update_Request) bool { if this == that { return true @@ -2775,6 +2810,7 @@ func (this *Update_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Update_MultiRequest) EqualVT(that *Update_MultiRequest) bool { if this == that { return true @@ -2808,6 +2844,7 @@ func (this *Update_MultiRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Update_ObjectRequest) EqualVT(that *Update_ObjectRequest) bool { if this == that { return true @@ -2833,6 +2870,7 @@ func (this *Update_ObjectRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Update_MultiObjectRequest) EqualVT(that *Update_MultiObjectRequest) bool { if this == that { return true @@ -2866,6 +2904,7 @@ func (this *Update_MultiObjectRequest) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Update_Config) EqualVT(that *Update_Config) bool { if this == that { return true @@ -2894,6 +2933,7 @@ func (this *Update_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Update) EqualVT(that *Update) bool { if this == that { return true @@ -2910,6 +2950,7 @@ func (this *Update) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Upsert_Request) EqualVT(that *Upsert_Request) bool { if this == that { return true @@ -2932,6 +2973,7 @@ func (this *Upsert_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Upsert_MultiRequest) EqualVT(that *Upsert_MultiRequest) bool { if this == that { return true @@ -2965,6 +3007,7 @@ func (this *Upsert_MultiRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Upsert_ObjectRequest) EqualVT(that *Upsert_ObjectRequest) bool { if this == that { return true @@ -2990,6 +3033,7 @@ func (this *Upsert_ObjectRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Upsert_MultiObjectRequest) EqualVT(that *Upsert_MultiObjectRequest) bool { if this == that { return true @@ -3023,6 +3067,7 @@ func (this *Upsert_MultiObjectRequest) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this == that { return true @@ -3051,6 +3096,7 @@ func (this *Upsert_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Upsert) EqualVT(that *Upsert) bool { if this == that { return true @@ -3067,6 +3113,7 @@ func (this *Upsert) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Remove_Request) EqualVT(that *Remove_Request) bool { if this == that { return true @@ -3089,6 +3136,7 @@ func (this *Remove_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Remove_MultiRequest) EqualVT(that *Remove_MultiRequest) bool { if this == that { return true @@ -3122,6 +3170,7 @@ func (this *Remove_MultiRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Remove_TimestampRequest) EqualVT(that *Remove_TimestampRequest) bool { if this == that { return true @@ -3155,6 +3204,7 @@ func (this *Remove_TimestampRequest) EqualMessageVT(thatMsg proto.Message) bool } return this.EqualVT(that) } + func (this *Remove_Timestamp) EqualVT(that *Remove_Timestamp) bool { if this == that { return true @@ -3177,6 +3227,7 @@ func (this *Remove_Timestamp) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Remove_Config) EqualVT(that *Remove_Config) bool { if this == that { return true @@ -3199,6 +3250,7 @@ func (this *Remove_Config) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Remove) EqualVT(that *Remove) bool { if this == that { return true @@ -3215,6 +3267,7 @@ func (this *Remove) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Flush_Request) EqualVT(that *Flush_Request) bool { if this == that { return true @@ -3231,6 +3284,7 @@ func (this *Flush_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Flush) EqualVT(that *Flush) bool { if this == that { return true @@ -3247,6 +3301,7 @@ func (this *Flush) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if this == that { return true @@ -3269,6 +3324,7 @@ func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_Distance) EqualVT(that *Object_Distance) bool { if this == that { return true @@ -3291,6 +3347,7 @@ func (this *Object_Distance) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamDistance) EqualVT(that *Object_StreamDistance) bool { if this == that { return true @@ -3319,7 +3376,10 @@ func (this *Object_StreamDistance) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } -func (this *Object_StreamDistance_Distance) EqualVT(thatIface isObject_StreamDistance_Payload) bool { + +func (this *Object_StreamDistance_Distance) EqualVT( + thatIface isObject_StreamDistance_Payload, +) bool { that, ok := thatIface.(*Object_StreamDistance_Distance) if !ok { return false @@ -3392,6 +3452,7 @@ func (this *Object_ID) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_IDs) EqualVT(that *Object_IDs) bool { if this == that { return true @@ -3417,6 +3478,7 @@ func (this *Object_IDs) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_Vector) EqualVT(that *Object_Vector) bool { if this == that { return true @@ -3448,6 +3510,7 @@ func (this *Object_Vector) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_TimestampRequest) EqualVT(that *Object_TimestampRequest) bool { if this == that { return true @@ -3467,6 +3530,7 @@ func (this *Object_TimestampRequest) EqualMessageVT(thatMsg proto.Message) bool } return this.EqualVT(that) } + func (this *Object_Timestamp) EqualVT(that *Object_Timestamp) bool { if this == that { return true @@ -3489,6 +3553,7 @@ func (this *Object_Timestamp) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_Vectors) EqualVT(that *Object_Vectors) bool { if this == that { return true @@ -3522,6 +3587,7 @@ func (this *Object_Vectors) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamVector) EqualVT(that *Object_StreamVector) bool { if this == that { return true @@ -3550,6 +3616,7 @@ func (this *Object_StreamVector) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamVector_Vector) EqualVT(thatIface isObject_StreamVector_Payload) bool { that, ok := thatIface.(*Object_StreamVector_Vector) if !ok { @@ -3632,6 +3699,7 @@ func (this *Object_ReshapeVector) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_Blob) EqualVT(that *Object_Blob) bool { if this == that { return true @@ -3654,6 +3722,7 @@ func (this *Object_Blob) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamBlob) EqualVT(that *Object_StreamBlob) bool { if this == that { return true @@ -3682,6 +3751,7 @@ func (this *Object_StreamBlob) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamBlob_Blob) EqualVT(thatIface isObject_StreamBlob_Payload) bool { that, ok := thatIface.(*Object_StreamBlob_Blob) if !ok { @@ -3767,6 +3837,7 @@ func (this *Object_Location) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_StreamLocation) EqualVT(that *Object_StreamLocation) bool { if this == that { return true @@ -3795,7 +3866,10 @@ func (this *Object_StreamLocation) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } -func (this *Object_StreamLocation_Location) EqualVT(thatIface isObject_StreamLocation_Payload) bool { + +func (this *Object_StreamLocation_Location) EqualVT( + thatIface isObject_StreamLocation_Payload, +) bool { that, ok := thatIface.(*Object_StreamLocation_Location) if !ok { return false @@ -3882,6 +3956,7 @@ func (this *Object_Locations) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_List_Request) EqualVT(that *Object_List_Request) bool { if this == that { return true @@ -3898,6 +3973,7 @@ func (this *Object_List_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_List_Response) EqualVT(that *Object_List_Response) bool { if this == that { return true @@ -3926,6 +4002,7 @@ func (this *Object_List_Response) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object_List_Response_Vector) EqualVT(thatIface isObject_List_Response_Payload) bool { that, ok := thatIface.(*Object_List_Response_Vector) if !ok { @@ -3996,6 +4073,7 @@ func (this *Object_List) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Object) EqualVT(that *Object) bool { if this == that { return true @@ -4012,6 +4090,7 @@ func (this *Object) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Control_CreateIndexRequest) EqualVT(that *Control_CreateIndexRequest) bool { if this == that { return true @@ -4031,6 +4110,7 @@ func (this *Control_CreateIndexRequest) EqualMessageVT(thatMsg proto.Message) bo } return this.EqualVT(that) } + func (this *Control) EqualVT(that *Control) bool { if this == that { return true @@ -4047,6 +4127,7 @@ func (this *Control) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Discoverer_Request) EqualVT(that *Discoverer_Request) bool { if this == that { return true @@ -4072,6 +4153,7 @@ func (this *Discoverer_Request) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Discoverer) EqualVT(that *Discoverer) bool { if this == that { return true @@ -4088,6 +4170,7 @@ func (this *Discoverer) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Index_Count) EqualVT(that *Info_Index_Count) bool { if this == that { return true @@ -4116,6 +4199,7 @@ func (this *Info_Index_Count) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Index_Detail) EqualVT(that *Info_Index_Detail) bool { if this == that { return true @@ -4158,6 +4242,7 @@ func (this *Info_Index_Detail) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Index_UUID_Committed) EqualVT(that *Info_Index_UUID_Committed) bool { if this == that { return true @@ -4177,6 +4262,7 @@ func (this *Info_Index_UUID_Committed) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Info_Index_UUID_Uncommitted) EqualVT(that *Info_Index_UUID_Uncommitted) bool { if this == that { return true @@ -4196,6 +4282,7 @@ func (this *Info_Index_UUID_Uncommitted) EqualMessageVT(thatMsg proto.Message) b } return this.EqualVT(that) } + func (this *Info_Index_UUID) EqualVT(that *Info_Index_UUID) bool { if this == that { return true @@ -4212,6 +4299,7 @@ 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 @@ -4345,6 +4433,7 @@ func (this *Info_Index_Statistics) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Index_StatisticsDetail) EqualVT(that *Info_Index_StatisticsDetail) bool { if this == that { return true @@ -4381,6 +4470,7 @@ func (this *Info_Index_StatisticsDetail) EqualMessageVT(thatMsg proto.Message) b } return this.EqualVT(that) } + func (this *Info_Index_Property) EqualVT(that *Info_Index_Property) bool { if this == that { return true @@ -4499,6 +4589,7 @@ func (this *Info_Index_Property) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Index_PropertyDetail) EqualVT(that *Info_Index_PropertyDetail) bool { if this == that { return true @@ -4535,6 +4626,7 @@ func (this *Info_Index_PropertyDetail) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *Info_Index) EqualVT(that *Info_Index) bool { if this == that { return true @@ -4551,6 +4643,7 @@ func (this *Info_Index) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Pod) EqualVT(that *Info_Pod) bool { if this == that { return true @@ -4588,6 +4681,7 @@ func (this *Info_Pod) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Node) EqualVT(that *Info_Node) bool { if this == that { return true @@ -4622,6 +4716,7 @@ func (this *Info_Node) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Service) EqualVT(that *Info_Service) bool { if this == that { return true @@ -4676,6 +4771,7 @@ func (this *Info_Service) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_ServicePort) EqualVT(that *Info_ServicePort) bool { if this == that { return true @@ -4698,6 +4794,7 @@ func (this *Info_ServicePort) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Labels) EqualVT(that *Info_Labels) bool { if this == that { return true @@ -4726,6 +4823,7 @@ func (this *Info_Labels) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Annotations) EqualVT(that *Info_Annotations) bool { if this == that { return true @@ -4754,6 +4852,7 @@ func (this *Info_Annotations) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_CPU) EqualVT(that *Info_CPU) bool { if this == that { return true @@ -4779,6 +4878,7 @@ func (this *Info_CPU) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Memory) EqualVT(that *Info_Memory) bool { if this == that { return true @@ -4804,6 +4904,7 @@ func (this *Info_Memory) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Pods) EqualVT(that *Info_Pods) bool { if this == that { return true @@ -4837,6 +4938,7 @@ func (this *Info_Pods) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Nodes) EqualVT(that *Info_Nodes) bool { if this == that { return true @@ -4870,6 +4972,7 @@ func (this *Info_Nodes) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_Services) EqualVT(that *Info_Services) bool { if this == that { return true @@ -4903,6 +5006,7 @@ func (this *Info_Services) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info_IPs) EqualVT(that *Info_IPs) bool { if this == that { return true @@ -4928,6 +5032,7 @@ func (this *Info_IPs) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Info) EqualVT(that *Info) bool { if this == that { return true @@ -4944,6 +5049,7 @@ func (this *Info) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Mirror_Target) EqualVT(that *Mirror_Target) bool { if this == that { return true @@ -4966,6 +5072,7 @@ func (this *Mirror_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Mirror_Targets) EqualVT(that *Mirror_Targets) bool { if this == that { return true @@ -4999,6 +5106,7 @@ func (this *Mirror_Targets) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Mirror) EqualVT(that *Mirror) bool { if this == that { return true @@ -5015,6 +5123,7 @@ func (this *Mirror) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Meta_Key) EqualVT(that *Meta_Key) bool { if this == that { return true @@ -5034,6 +5143,7 @@ func (this *Meta_Key) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Meta_Value) EqualVT(that *Meta_Value) bool { if this == that { return true @@ -5053,6 +5163,7 @@ func (this *Meta_Value) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Meta_KeyValue) EqualVT(that *Meta_KeyValue) bool { if this == that { return true @@ -5075,6 +5186,7 @@ func (this *Meta_KeyValue) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Meta) EqualVT(that *Meta) bool { if this == that { return true @@ -5091,6 +5203,7 @@ func (this *Meta) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Empty) EqualVT(that *Empty) bool { if this == that { return true @@ -5107,6 +5220,7 @@ func (this *Empty) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (m *Search_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -5670,6 +5784,7 @@ func (m *Search_StreamResponse_Response) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } + func (m *Search_StreamResponse_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -5701,6 +5816,7 @@ func (m *Search_StreamResponse_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } + func (m *Search) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -7261,6 +7377,7 @@ func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } + func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -7292,6 +7409,7 @@ func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } + func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -7623,6 +7741,7 @@ func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } + func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -7654,6 +7773,7 @@ func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } + func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -7823,6 +7943,7 @@ func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error } return len(dAtA) - i, nil } + func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -7854,6 +7975,7 @@ func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, err } return len(dAtA) - i, nil } + func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -7971,6 +8093,7 @@ func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } + func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -8002,6 +8125,7 @@ func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } + func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -8141,6 +8265,7 @@ func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } + func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) @@ -8172,6 +8297,7 @@ func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } + func (m *Object_List) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -10602,6 +10728,7 @@ func (m *Search_StreamResponse_Response) SizeVT() (n int) { } return n } + func (m *Search_StreamResponse_Status) SizeVT() (n int) { if m == nil { return 0 @@ -10620,6 +10747,7 @@ func (m *Search_StreamResponse_Status) SizeVT() (n int) { } return n } + func (m *Search) SizeVT() (n int) { if m == nil { return 0 @@ -11157,6 +11285,7 @@ func (m *Object_StreamDistance_Distance) SizeVT() (n int) { } return n } + func (m *Object_StreamDistance_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11175,6 +11304,7 @@ func (m *Object_StreamDistance_Status) SizeVT() (n int) { } return n } + func (m *Object_ID) SizeVT() (n int) { if m == nil { return 0 @@ -11297,6 +11427,7 @@ func (m *Object_StreamVector_Vector) SizeVT() (n int) { } return n } + func (m *Object_StreamVector_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11315,6 +11446,7 @@ func (m *Object_StreamVector_Status) SizeVT() (n int) { } return n } + func (m *Object_ReshapeVector) SizeVT() (n int) { if m == nil { return 0 @@ -11379,6 +11511,7 @@ func (m *Object_StreamBlob_Blob) SizeVT() (n int) { } return n } + func (m *Object_StreamBlob_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11397,6 +11530,7 @@ func (m *Object_StreamBlob_Status) SizeVT() (n int) { } return n } + func (m *Object_Location) SizeVT() (n int) { if m == nil { return 0 @@ -11446,6 +11580,7 @@ func (m *Object_StreamLocation_Location) SizeVT() (n int) { } return n } + func (m *Object_StreamLocation_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11464,6 +11599,7 @@ func (m *Object_StreamLocation_Status) SizeVT() (n int) { } return n } + func (m *Object_Locations) SizeVT() (n int) { if m == nil { return 0 @@ -11515,6 +11651,7 @@ func (m *Object_List_Response_Vector) SizeVT() (n int) { } return n } + func (m *Object_List_Response_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11533,6 +11670,7 @@ func (m *Object_List_Response_Status) SizeVT() (n int) { } return n } + func (m *Object_List) SizeVT() (n int) { if m == nil { return 0 @@ -12521,6 +12659,7 @@ func (m *Search_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12606,6 +12745,7 @@ func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12725,6 +12865,7 @@ func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12810,6 +12951,7 @@ func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12967,6 +13109,7 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13052,6 +13195,7 @@ func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13360,6 +13504,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_Response) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13477,6 +13622,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13562,6 +13708,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13711,6 +13858,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Search) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13762,6 +13910,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13864,6 +14013,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13949,6 +14099,7 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Filter) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14000,6 +14151,7 @@ func (m *Filter) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14123,6 +14275,7 @@ func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14208,6 +14361,7 @@ func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14367,6 +14521,7 @@ func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14452,6 +14607,7 @@ func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14578,6 +14734,7 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Insert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14629,6 +14786,7 @@ func (m *Insert) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14752,6 +14910,7 @@ func (m *Update_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14837,6 +14996,7 @@ func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14996,6 +15156,7 @@ func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15081,6 +15242,7 @@ func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15227,6 +15389,7 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Update) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15278,6 +15441,7 @@ func (m *Update) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15401,6 +15565,7 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15486,6 +15651,7 @@ func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15645,6 +15811,7 @@ func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15730,6 +15897,7 @@ func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15876,6 +16044,7 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Upsert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15927,6 +16096,7 @@ func (m *Upsert) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16050,6 +16220,7 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16135,6 +16306,7 @@ func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16220,6 +16392,7 @@ func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16309,6 +16482,7 @@ func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16399,6 +16573,7 @@ func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Remove) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16450,6 +16625,7 @@ func (m *Remove) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Flush_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16501,6 +16677,7 @@ func (m *Flush_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Flush) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16552,6 +16729,7 @@ func (m *Flush) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16675,6 +16853,7 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16769,6 +16948,7 @@ func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16918,6 +17098,7 @@ func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_ID) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17001,6 +17182,7 @@ func (m *Object_ID) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17084,6 +17266,7 @@ func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17240,6 +17423,7 @@ func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17327,6 +17511,7 @@ func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17429,6 +17614,7 @@ func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17514,6 +17700,7 @@ func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17663,6 +17850,7 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17824,6 +18012,7 @@ func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17941,6 +18130,7 @@ func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18090,6 +18280,7 @@ func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Location) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18237,6 +18428,7 @@ func (m *Object_Location) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18386,6 +18578,7 @@ func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18471,6 +18664,7 @@ func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_List_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18522,6 +18716,7 @@ func (m *Object_List_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18671,6 +18866,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object_List) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18722,6 +18918,7 @@ func (m *Object_List) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Object) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18773,6 +18970,7 @@ func (m *Object) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18843,6 +19041,7 @@ func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Control) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18894,6 +19093,7 @@ func (m *Control) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19041,6 +19241,7 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Discoverer) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19092,6 +19293,7 @@ func (m *Discoverer) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19221,6 +19423,7 @@ func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19439,6 +19642,7 @@ func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_UUID_Committed) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19522,6 +19726,7 @@ func (m *Info_Index_UUID_Committed) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19605,6 +19810,7 @@ func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_UUID) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19656,6 +19862,7 @@ 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 @@ -20426,6 +20633,7 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -20606,6 +20814,7 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -21401,6 +21610,7 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -21581,6 +21791,7 @@ func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Index) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -21632,6 +21843,7 @@ func (m *Info_Index) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -21919,6 +22131,7 @@ func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Node) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22174,6 +22387,7 @@ func (m *Info_Node) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Service) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22427,6 +22641,7 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22529,6 +22744,7 @@ func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22707,6 +22923,7 @@ func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22885,6 +23102,7 @@ func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22969,6 +23187,7 @@ func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23053,6 +23272,7 @@ func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23138,6 +23358,7 @@ func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23223,6 +23444,7 @@ func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_Services) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23308,6 +23530,7 @@ func (m *Info_Services) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23391,6 +23614,7 @@ func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Info) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23442,6 +23666,7 @@ func (m *Info) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23544,6 +23769,7 @@ func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23629,6 +23855,7 @@ func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Mirror) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23680,6 +23907,7 @@ func (m *Mirror) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23763,6 +23991,7 @@ func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23850,6 +24079,7 @@ func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23973,6 +24203,7 @@ func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Meta) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -24024,6 +24255,7 @@ func (m *Meta) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Empty) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.go index 01604594969..1ca92f95549 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -24,11 +24,12 @@ package errdetails import ( + reflect "reflect" + + sync "github.com/vdaas/vald/internal/sync" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - reflect "reflect" - sync "github.com/vdaas/vald/internal/sync" ) const ( @@ -72,14 +73,14 @@ type ErrorInfo struct { // domain of errors. This should be at most 63 characters and match a // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents // UPPER_SNAKE_CASE. - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // The logical grouping to which the "reason" belongs. The error domain // is typically the registered service name of the tool or product that // generates the error. Example: "pubsub.googleapis.com". If the error is // generated by some common infrastructure, the error domain must be a // globally unique value that identifies the infrastructure. For Google API // infrastructure, the error domain is "googleapis.com". - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // Additional structured details about this error. // // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in @@ -214,7 +215,7 @@ type DebugInfo struct { // The stack trace entries indicating where the error occurred. StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"` // Additional debugging information provided by the server. - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` } func (x *DebugInfo) Reset() { @@ -434,7 +435,7 @@ type RequestInfo struct { // An opaque string that should only be interpreted by the service generating // it. For example, it can be used to identify requests in the service's logs. - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Any data that was used to serve this request. For example, an encrypted // stack trace that can be sent back to the service provider for debugging. ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"` @@ -504,11 +505,11 @@ type ResourceInfo struct { // The owner of the resource (optional). // For example, "user:" or "project:". - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // Describes what error is encountered when accessing this resource. // For example, updating a cloud project may require the `writer` permission // on the developer console project. - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` } func (x *ResourceInfo) Reset() { @@ -634,7 +635,7 @@ type LocalizedMessage struct { // The locale used following the specification defined at // https://www.rfc-editor.org/rfc/bcp/bcp47.txt. // Examples are: "en-US", "fr-CH", "es-MX" - Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` + Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` // The localized error message in the above locale. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } @@ -695,7 +696,7 @@ type QuotaFailure_Violation struct { // The subject on which the quota check failed. // For example, "clientip:" or "project:". - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // A description of how the quota check failed. Clients can use this // description to find more about the quota configuration in the service's // public documentation, or find the relevant quota limit to adjust through @@ -761,11 +762,11 @@ type PreconditionFailure_Violation struct { // The type of PreconditionFailure. We recommend using a service-specific // enum type to define the supported precondition violation subjects. For // example, "TOS" for "Terms of Service violation". - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The subject, relative to the type, that failed. // For example, "google.com/cloud" relative to the "TOS" type would indicate // which terms of service is being referenced. - Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // A description of how the precondition failed. Developers can use this // description to understand how to fix the failure. // @@ -869,7 +870,7 @@ type BadRequest_FieldViolation struct { // first `emailAddresses` message // - `emailAddresses[3].type[2]` for a violation in the second `type` // value in the third `emailAddresses` message. - Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // A description of why the request element is bad. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } @@ -929,7 +930,7 @@ type Help_Link struct { // Describes what the link offers. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // The URL of the link. - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` } func (x *Help_Link) Reset() { @@ -1086,25 +1087,27 @@ func file_v1_rpc_errdetails_error_details_proto_rawDescGZIP() []byte { return file_v1_rpc_errdetails_error_details_proto_rawDescData } -var file_v1_rpc_errdetails_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_v1_rpc_errdetails_error_details_proto_goTypes = []any{ - (*ErrorInfo)(nil), // 0: rpc.v1.ErrorInfo - (*RetryInfo)(nil), // 1: rpc.v1.RetryInfo - (*DebugInfo)(nil), // 2: rpc.v1.DebugInfo - (*QuotaFailure)(nil), // 3: rpc.v1.QuotaFailure - (*PreconditionFailure)(nil), // 4: rpc.v1.PreconditionFailure - (*BadRequest)(nil), // 5: rpc.v1.BadRequest - (*RequestInfo)(nil), // 6: rpc.v1.RequestInfo - (*ResourceInfo)(nil), // 7: rpc.v1.ResourceInfo - (*Help)(nil), // 8: rpc.v1.Help - (*LocalizedMessage)(nil), // 9: rpc.v1.LocalizedMessage - nil, // 10: rpc.v1.ErrorInfo.MetadataEntry - (*QuotaFailure_Violation)(nil), // 11: rpc.v1.QuotaFailure.Violation - (*PreconditionFailure_Violation)(nil), // 12: rpc.v1.PreconditionFailure.Violation - (*BadRequest_FieldViolation)(nil), // 13: rpc.v1.BadRequest.FieldViolation - (*Help_Link)(nil), // 14: rpc.v1.Help.Link - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration -} +var ( + file_v1_rpc_errdetails_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 15) + file_v1_rpc_errdetails_error_details_proto_goTypes = []any{ + (*ErrorInfo)(nil), // 0: rpc.v1.ErrorInfo + (*RetryInfo)(nil), // 1: rpc.v1.RetryInfo + (*DebugInfo)(nil), // 2: rpc.v1.DebugInfo + (*QuotaFailure)(nil), // 3: rpc.v1.QuotaFailure + (*PreconditionFailure)(nil), // 4: rpc.v1.PreconditionFailure + (*BadRequest)(nil), // 5: rpc.v1.BadRequest + (*RequestInfo)(nil), // 6: rpc.v1.RequestInfo + (*ResourceInfo)(nil), // 7: rpc.v1.ResourceInfo + (*Help)(nil), // 8: rpc.v1.Help + (*LocalizedMessage)(nil), // 9: rpc.v1.LocalizedMessage + nil, // 10: rpc.v1.ErrorInfo.MetadataEntry + (*QuotaFailure_Violation)(nil), // 11: rpc.v1.QuotaFailure.Violation + (*PreconditionFailure_Violation)(nil), // 12: rpc.v1.PreconditionFailure.Violation + (*BadRequest_FieldViolation)(nil), // 13: rpc.v1.BadRequest.FieldViolation + (*Help_Link)(nil), // 14: rpc.v1.Help.Link + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration + } +) var file_v1_rpc_errdetails_error_details_proto_depIdxs = []int32{ 10, // 0: rpc.v1.ErrorInfo.metadata:type_name -> rpc.v1.ErrorInfo.MetadataEntry 15, // 1: rpc.v1.RetryInfo.retry_delay:type_name -> google.protobuf.Duration diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go index 64d4be7c523..8aad832ca97 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go @@ -20,9 +20,7 @@ package errdetails -import ( - "google.golang.org/protobuf/encoding/protojson" -) +import "google.golang.org/protobuf/encoding/protojson" // MarshalJSON implements json.Marshaler func (msg *ErrorInfo) MarshalJSON() ([]byte, error) { diff --git a/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go b/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go index 908b2d21a5b..580f165e44c 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go @@ -1,17 +1,31 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/rpc/errdetails/error_details.proto +// +// Copyright (C) 2024 Google LLC +// Modified by vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package errdetails import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" durationpb1 "github.com/planetscale/vtprotobuf/types/known/durationpb" + io "github.com/vdaas/vald/internal/io" proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - io "github.com/vdaas/vald/internal/io" ) const ( @@ -340,6 +354,7 @@ func (this *ErrorInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *RetryInfo) EqualVT(that *RetryInfo) bool { if this == that { return true @@ -359,6 +374,7 @@ func (this *RetryInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *DebugInfo) EqualVT(that *DebugInfo) bool { if this == that { return true @@ -387,6 +403,7 @@ func (this *DebugInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *QuotaFailure_Violation) EqualVT(that *QuotaFailure_Violation) bool { if this == that { return true @@ -409,6 +426,7 @@ func (this *QuotaFailure_Violation) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *QuotaFailure) EqualVT(that *QuotaFailure) bool { if this == that { return true @@ -442,6 +460,7 @@ func (this *QuotaFailure) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *PreconditionFailure_Violation) EqualVT(that *PreconditionFailure_Violation) bool { if this == that { return true @@ -467,6 +486,7 @@ func (this *PreconditionFailure_Violation) EqualMessageVT(thatMsg proto.Message) } return this.EqualVT(that) } + func (this *PreconditionFailure) EqualVT(that *PreconditionFailure) bool { if this == that { return true @@ -500,6 +520,7 @@ func (this *PreconditionFailure) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *BadRequest_FieldViolation) EqualVT(that *BadRequest_FieldViolation) bool { if this == that { return true @@ -522,6 +543,7 @@ func (this *BadRequest_FieldViolation) EqualMessageVT(thatMsg proto.Message) boo } return this.EqualVT(that) } + func (this *BadRequest) EqualVT(that *BadRequest) bool { if this == that { return true @@ -555,6 +577,7 @@ func (this *BadRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *RequestInfo) EqualVT(that *RequestInfo) bool { if this == that { return true @@ -577,6 +600,7 @@ func (this *RequestInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *ResourceInfo) EqualVT(that *ResourceInfo) bool { if this == that { return true @@ -605,6 +629,7 @@ func (this *ResourceInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Help_Link) EqualVT(that *Help_Link) bool { if this == that { return true @@ -627,6 +652,7 @@ func (this *Help_Link) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *Help) EqualVT(that *Help) bool { if this == that { return true @@ -660,6 +686,7 @@ func (this *Help) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (this *LocalizedMessage) EqualVT(that *LocalizedMessage) bool { if this == that { return true @@ -682,6 +709,7 @@ func (this *LocalizedMessage) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } + func (m *ErrorInfo) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -1874,6 +1902,7 @@ func (m *ErrorInfo) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *RetryInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1961,6 +1990,7 @@ func (m *RetryInfo) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *DebugInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2076,6 +2106,7 @@ func (m *DebugInfo) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *QuotaFailure_Violation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2191,6 +2222,7 @@ func (m *QuotaFailure_Violation) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *QuotaFailure) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2276,6 +2308,7 @@ func (m *QuotaFailure) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *PreconditionFailure_Violation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2423,6 +2456,7 @@ func (m *PreconditionFailure_Violation) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *PreconditionFailure) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2508,6 +2542,7 @@ func (m *PreconditionFailure) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *BadRequest_FieldViolation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2623,6 +2658,7 @@ func (m *BadRequest_FieldViolation) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *BadRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2708,6 +2744,7 @@ func (m *BadRequest) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *RequestInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2823,6 +2860,7 @@ func (m *RequestInfo) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *ResourceInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3002,6 +3040,7 @@ func (m *ResourceInfo) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Help_Link) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3117,6 +3156,7 @@ func (m *Help_Link) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *Help) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3202,6 +3242,7 @@ func (m *Help) UnmarshalVT(dAtA []byte) error { } return nil } + func (m *LocalizedMessage) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/apis/grpc/v1/vald/filter.pb.go b/apis/grpc/v1/vald/filter.pb.go index 48375f9807d..8309d71f5b9 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -153,6 +154,7 @@ var file_v1_vald_filter_proto_goTypes = []any{ (*payload.Object_StreamLocation)(nil), // 12: payload.v1.Object.StreamLocation (*payload.Object_Locations)(nil), // 13: payload.v1.Object.Locations } + var file_v1_vald_filter_proto_depIdxs = []int32{ 0, // 0: vald.v1.Filter.SearchObject:input_type -> payload.v1.Search.ObjectRequest 1, // 1: vald.v1.Filter.MultiSearchObject:input_type -> payload.v1.Search.MultiObjectRequest diff --git a/apis/grpc/v1/vald/filter_vtproto.pb.go b/apis/grpc/v1/vald/filter_vtproto.pb.go index ff90196e1ac..54963521a7b 100644 --- a/apis/grpc/v1/vald/filter_vtproto.pb.go +++ b/apis/grpc/v1/vald/filter_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/filter.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -63,7 +76,9 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { return &filterClient{cc} } -func (c *filterClient) SearchObject(ctx context.Context, in *payload.Search_ObjectRequest, opts ...grpc.CallOption) (*payload.Search_Response, error) { +func (c *filterClient) SearchObject( + ctx context.Context, in *payload.Search_ObjectRequest, opts ...grpc.CallOption, +) (*payload.Search_Response, error) { out := new(payload.Search_Response) err := c.cc.Invoke(ctx, "/vald.v1.Filter/SearchObject", in, out, opts...) if err != nil { @@ -72,7 +87,9 @@ func (c *filterClient) SearchObject(ctx context.Context, in *payload.Search_Obje return out, nil } -func (c *filterClient) MultiSearchObject(ctx context.Context, in *payload.Search_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error) { +func (c *filterClient) MultiSearchObject( + ctx context.Context, in *payload.Search_MultiObjectRequest, opts ...grpc.CallOption, +) (*payload.Search_Responses, error) { out := new(payload.Search_Responses) err := c.cc.Invoke(ctx, "/vald.v1.Filter/MultiSearchObject", in, out, opts...) if err != nil { @@ -81,7 +98,9 @@ func (c *filterClient) MultiSearchObject(ctx context.Context, in *payload.Search return out, nil } -func (c *filterClient) StreamSearchObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamSearchObjectClient, error) { +func (c *filterClient) StreamSearchObject( + ctx context.Context, opts ...grpc.CallOption, +) (Filter_StreamSearchObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Filter_ServiceDesc.Streams[0], "/vald.v1.Filter/StreamSearchObject", opts...) if err != nil { return nil, err @@ -112,7 +131,9 @@ func (x *filterStreamSearchObjectClient) Recv() (*payload.Search_StreamResponse, return m, nil } -func (c *filterClient) InsertObject(ctx context.Context, in *payload.Insert_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *filterClient) InsertObject( + ctx context.Context, in *payload.Insert_ObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Filter/InsertObject", in, out, opts...) if err != nil { @@ -121,7 +142,9 @@ func (c *filterClient) InsertObject(ctx context.Context, in *payload.Insert_Obje return out, nil } -func (c *filterClient) StreamInsertObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamInsertObjectClient, error) { +func (c *filterClient) StreamInsertObject( + ctx context.Context, opts ...grpc.CallOption, +) (Filter_StreamInsertObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Filter_ServiceDesc.Streams[1], "/vald.v1.Filter/StreamInsertObject", opts...) if err != nil { return nil, err @@ -152,7 +175,9 @@ func (x *filterStreamInsertObjectClient) Recv() (*payload.Object_StreamLocation, return m, nil } -func (c *filterClient) MultiInsertObject(ctx context.Context, in *payload.Insert_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *filterClient) MultiInsertObject( + ctx context.Context, in *payload.Insert_MultiObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Filter/MultiInsertObject", in, out, opts...) if err != nil { @@ -161,7 +186,9 @@ func (c *filterClient) MultiInsertObject(ctx context.Context, in *payload.Insert return out, nil } -func (c *filterClient) UpdateObject(ctx context.Context, in *payload.Update_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *filterClient) UpdateObject( + ctx context.Context, in *payload.Update_ObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Filter/UpdateObject", in, out, opts...) if err != nil { @@ -170,7 +197,9 @@ func (c *filterClient) UpdateObject(ctx context.Context, in *payload.Update_Obje return out, nil } -func (c *filterClient) StreamUpdateObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamUpdateObjectClient, error) { +func (c *filterClient) StreamUpdateObject( + ctx context.Context, opts ...grpc.CallOption, +) (Filter_StreamUpdateObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Filter_ServiceDesc.Streams[2], "/vald.v1.Filter/StreamUpdateObject", opts...) if err != nil { return nil, err @@ -201,7 +230,9 @@ func (x *filterStreamUpdateObjectClient) Recv() (*payload.Object_StreamLocation, return m, nil } -func (c *filterClient) MultiUpdateObject(ctx context.Context, in *payload.Update_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *filterClient) MultiUpdateObject( + ctx context.Context, in *payload.Update_MultiObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Filter/MultiUpdateObject", in, out, opts...) if err != nil { @@ -210,7 +241,9 @@ func (c *filterClient) MultiUpdateObject(ctx context.Context, in *payload.Update return out, nil } -func (c *filterClient) UpsertObject(ctx context.Context, in *payload.Upsert_ObjectRequest, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *filterClient) UpsertObject( + ctx context.Context, in *payload.Upsert_ObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Filter/UpsertObject", in, out, opts...) if err != nil { @@ -219,7 +252,9 @@ func (c *filterClient) UpsertObject(ctx context.Context, in *payload.Upsert_Obje return out, nil } -func (c *filterClient) StreamUpsertObject(ctx context.Context, opts ...grpc.CallOption) (Filter_StreamUpsertObjectClient, error) { +func (c *filterClient) StreamUpsertObject( + ctx context.Context, opts ...grpc.CallOption, +) (Filter_StreamUpsertObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Filter_ServiceDesc.Streams[3], "/vald.v1.Filter/StreamUpsertObject", opts...) if err != nil { return nil, err @@ -250,7 +285,9 @@ func (x *filterStreamUpsertObjectClient) Recv() (*payload.Object_StreamLocation, return m, nil } -func (c *filterClient) MultiUpsertObject(ctx context.Context, in *payload.Upsert_MultiObjectRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *filterClient) MultiUpsertObject( + ctx context.Context, in *payload.Upsert_MultiObjectRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Filter/MultiUpsertObject", in, out, opts...) if err != nil { @@ -291,43 +328,69 @@ type FilterServer interface { } // UnimplementedFilterServer must be embedded to have forward compatible implementations. -type UnimplementedFilterServer struct { -} +type UnimplementedFilterServer struct{} -func (UnimplementedFilterServer) SearchObject(context.Context, *payload.Search_ObjectRequest) (*payload.Search_Response, error) { +func (UnimplementedFilterServer) SearchObject( + context.Context, *payload.Search_ObjectRequest, +) (*payload.Search_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchObject not implemented") } -func (UnimplementedFilterServer) MultiSearchObject(context.Context, *payload.Search_MultiObjectRequest) (*payload.Search_Responses, error) { + +func (UnimplementedFilterServer) MultiSearchObject( + context.Context, *payload.Search_MultiObjectRequest, +) (*payload.Search_Responses, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiSearchObject not implemented") } + func (UnimplementedFilterServer) StreamSearchObject(Filter_StreamSearchObjectServer) error { return status.Errorf(codes.Unimplemented, "method StreamSearchObject not implemented") } -func (UnimplementedFilterServer) InsertObject(context.Context, *payload.Insert_ObjectRequest) (*payload.Object_Location, error) { + +func (UnimplementedFilterServer) InsertObject( + context.Context, *payload.Insert_ObjectRequest, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method InsertObject not implemented") } + func (UnimplementedFilterServer) StreamInsertObject(Filter_StreamInsertObjectServer) error { return status.Errorf(codes.Unimplemented, "method StreamInsertObject not implemented") } -func (UnimplementedFilterServer) MultiInsertObject(context.Context, *payload.Insert_MultiObjectRequest) (*payload.Object_Locations, error) { + +func (UnimplementedFilterServer) MultiInsertObject( + context.Context, *payload.Insert_MultiObjectRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiInsertObject not implemented") } -func (UnimplementedFilterServer) UpdateObject(context.Context, *payload.Update_ObjectRequest) (*payload.Object_Location, error) { + +func (UnimplementedFilterServer) UpdateObject( + context.Context, *payload.Update_ObjectRequest, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateObject not implemented") } + func (UnimplementedFilterServer) StreamUpdateObject(Filter_StreamUpdateObjectServer) error { return status.Errorf(codes.Unimplemented, "method StreamUpdateObject not implemented") } -func (UnimplementedFilterServer) MultiUpdateObject(context.Context, *payload.Update_MultiObjectRequest) (*payload.Object_Locations, error) { + +func (UnimplementedFilterServer) MultiUpdateObject( + context.Context, *payload.Update_MultiObjectRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiUpdateObject not implemented") } -func (UnimplementedFilterServer) UpsertObject(context.Context, *payload.Upsert_ObjectRequest) (*payload.Object_Location, error) { + +func (UnimplementedFilterServer) UpsertObject( + context.Context, *payload.Upsert_ObjectRequest, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method UpsertObject not implemented") } + func (UnimplementedFilterServer) StreamUpsertObject(Filter_StreamUpsertObjectServer) error { return status.Errorf(codes.Unimplemented, "method StreamUpsertObject not implemented") } -func (UnimplementedFilterServer) MultiUpsertObject(context.Context, *payload.Upsert_MultiObjectRequest) (*payload.Object_Locations, error) { + +func (UnimplementedFilterServer) MultiUpsertObject( + context.Context, *payload.Upsert_MultiObjectRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiUpsertObject not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -343,7 +406,9 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { s.RegisterService(&Filter_ServiceDesc, srv) } -func _Filter_SearchObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_SearchObject_Handler( + 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 { return nil, err @@ -361,7 +426,9 @@ func _Filter_SearchObject_Handler(srv any, ctx context.Context, dec func(any) er return interceptor(ctx, in, info, handler) } -func _Filter_MultiSearchObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_MultiSearchObject_Handler( + 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 { return nil, err @@ -405,7 +472,9 @@ func (x *filterStreamSearchObjectServer) Recv() (*payload.Search_ObjectRequest, return m, nil } -func _Filter_InsertObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_InsertObject_Handler( + 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 { return nil, err @@ -449,7 +518,9 @@ func (x *filterStreamInsertObjectServer) Recv() (*payload.Insert_ObjectRequest, return m, nil } -func _Filter_MultiInsertObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_MultiInsertObject_Handler( + 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 { return nil, err @@ -467,7 +538,9 @@ func _Filter_MultiInsertObject_Handler(srv any, ctx context.Context, dec func(an return interceptor(ctx, in, info, handler) } -func _Filter_UpdateObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_UpdateObject_Handler( + 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 { return nil, err @@ -511,7 +584,9 @@ func (x *filterStreamUpdateObjectServer) Recv() (*payload.Update_ObjectRequest, return m, nil } -func _Filter_MultiUpdateObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_MultiUpdateObject_Handler( + 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 { return nil, err @@ -529,7 +604,9 @@ func _Filter_MultiUpdateObject_Handler(srv any, ctx context.Context, dec func(an return interceptor(ctx, in, info, handler) } -func _Filter_UpsertObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_UpsertObject_Handler( + 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 { return nil, err @@ -573,7 +650,9 @@ func (x *filterStreamUpsertObjectServer) Recv() (*payload.Upsert_ObjectRequest, return m, nil } -func _Filter_MultiUpsertObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Filter_MultiUpsertObject_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/flush.pb.go b/apis/grpc/v1/vald/flush.pb.go index 8e02dff1f25..282dbd05900 100644 --- a/apis/grpc/v1/vald/flush.pb.go +++ b/apis/grpc/v1/vald/flush.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -63,6 +64,7 @@ var file_v1_vald_flush_proto_goTypes = []any{ (*payload.Flush_Request)(nil), // 0: payload.v1.Flush.Request (*payload.Info_Index_Count)(nil), // 1: payload.v1.Info.Index.Count } + var file_v1_vald_flush_proto_depIdxs = []int32{ 0, // 0: vald.v1.Flush.Flush:input_type -> payload.v1.Flush.Request 1, // 1: vald.v1.Flush.Flush:output_type -> payload.v1.Info.Index.Count diff --git a/apis/grpc/v1/vald/flush_vtproto.pb.go b/apis/grpc/v1/vald/flush_vtproto.pb.go index 95784bf3c71..fd1978bec8d 100644 --- a/apis/grpc/v1/vald/flush_vtproto.pb.go +++ b/apis/grpc/v1/vald/flush_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/flush.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -41,7 +54,9 @@ func NewFlushClient(cc grpc.ClientConnInterface) FlushClient { return &flushClient{cc} } -func (c *flushClient) Flush(ctx context.Context, in *payload.Flush_Request, opts ...grpc.CallOption) (*payload.Info_Index_Count, error) { +func (c *flushClient) Flush( + ctx context.Context, in *payload.Flush_Request, opts ...grpc.CallOption, +) (*payload.Info_Index_Count, error) { out := new(payload.Info_Index_Count) err := c.cc.Invoke(ctx, "/vald.v1.Flush/Flush", in, out, opts...) if err != nil { @@ -60,10 +75,11 @@ type FlushServer interface { } // UnimplementedFlushServer must be embedded to have forward compatible implementations. -type UnimplementedFlushServer struct { -} +type UnimplementedFlushServer struct{} -func (UnimplementedFlushServer) Flush(context.Context, *payload.Flush_Request) (*payload.Info_Index_Count, error) { +func (UnimplementedFlushServer) Flush( + context.Context, *payload.Flush_Request, +) (*payload.Info_Index_Count, error) { return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") } func (UnimplementedFlushServer) mustEmbedUnimplementedFlushServer() {} @@ -79,7 +95,9 @@ func RegisterFlushServer(s grpc.ServiceRegistrar, srv FlushServer) { s.RegisterService(&Flush_ServiceDesc, srv) } -func _Flush_Flush_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Flush_Flush_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/index.pb.go b/apis/grpc/v1/vald/index.pb.go index ccd5644687a..58728f3ad6f 100644 --- a/apis/grpc/v1/vald/index.pb.go +++ b/apis/grpc/v1/vald/index.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -93,6 +94,7 @@ var file_v1_vald_index_proto_goTypes = []any{ (*payload.Info_Index_StatisticsDetail)(nil), // 4: payload.v1.Info.Index.StatisticsDetail (*payload.Info_Index_PropertyDetail)(nil), // 5: payload.v1.Info.Index.PropertyDetail } + 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 diff --git a/apis/grpc/v1/vald/index_vtproto.pb.go b/apis/grpc/v1/vald/index_vtproto.pb.go index 2d96883a0a7..e0d8f29f686 100644 --- a/apis/grpc/v1/vald/index_vtproto.pb.go +++ b/apis/grpc/v1/vald/index_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/index.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -49,7 +62,9 @@ func NewIndexClient(cc grpc.ClientConnInterface) IndexClient { return &indexClient{cc} } -func (c *indexClient) IndexInfo(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Count, error) { +func (c *indexClient) IndexInfo( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Info_Index_Count, error) { out := new(payload.Info_Index_Count) err := c.cc.Invoke(ctx, "/vald.v1.Index/IndexInfo", in, out, opts...) if err != nil { @@ -58,7 +73,9 @@ func (c *indexClient) IndexInfo(ctx context.Context, in *payload.Empty, opts ... return out, nil } -func (c *indexClient) IndexDetail(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Detail, error) { +func (c *indexClient) IndexDetail( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Info_Index_Detail, error) { out := new(payload.Info_Index_Detail) err := c.cc.Invoke(ctx, "/vald.v1.Index/IndexDetail", in, out, opts...) if err != nil { @@ -67,7 +84,9 @@ func (c *indexClient) IndexDetail(ctx context.Context, in *payload.Empty, opts . return out, nil } -func (c *indexClient) IndexStatistics(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Statistics, error) { +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 { @@ -76,7 +95,9 @@ func (c *indexClient) IndexStatistics(ctx context.Context, in *payload.Empty, op return out, nil } -func (c *indexClient) IndexStatisticsDetail(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_StatisticsDetail, error) { +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 { @@ -85,7 +106,9 @@ func (c *indexClient) IndexStatisticsDetail(ctx context.Context, in *payload.Emp return out, nil } -func (c *indexClient) IndexProperty(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_PropertyDetail, error) { +func (c *indexClient) IndexProperty( + ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, +) (*payload.Info_Index_PropertyDetail, error) { out := new(payload.Info_Index_PropertyDetail) err := c.cc.Invoke(ctx, "/vald.v1.Index/IndexProperty", in, out, opts...) if err != nil { @@ -112,22 +135,35 @@ type IndexServer interface { } // UnimplementedIndexServer must be embedded to have forward compatible implementations. -type UnimplementedIndexServer struct { -} +type UnimplementedIndexServer struct{} -func (UnimplementedIndexServer) IndexInfo(context.Context, *payload.Empty) (*payload.Info_Index_Count, error) { +func (UnimplementedIndexServer) IndexInfo( + context.Context, *payload.Empty, +) (*payload.Info_Index_Count, error) { return nil, status.Errorf(codes.Unimplemented, "method IndexInfo not implemented") } -func (UnimplementedIndexServer) IndexDetail(context.Context, *payload.Empty) (*payload.Info_Index_Detail, error) { + +func (UnimplementedIndexServer) IndexDetail( + context.Context, *payload.Empty, +) (*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) { + +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) { + +func (UnimplementedIndexServer) IndexStatisticsDetail( + context.Context, *payload.Empty, +) (*payload.Info_Index_StatisticsDetail, error) { return nil, status.Errorf(codes.Unimplemented, "method IndexStatisticsDetail not implemented") } -func (UnimplementedIndexServer) IndexProperty(context.Context, *payload.Empty) (*payload.Info_Index_PropertyDetail, error) { + +func (UnimplementedIndexServer) IndexProperty( + context.Context, *payload.Empty, +) (*payload.Info_Index_PropertyDetail, error) { return nil, status.Errorf(codes.Unimplemented, "method IndexProperty not implemented") } func (UnimplementedIndexServer) mustEmbedUnimplementedIndexServer() {} @@ -143,7 +179,9 @@ func RegisterIndexServer(s grpc.ServiceRegistrar, srv IndexServer) { s.RegisterService(&Index_ServiceDesc, srv) } -func _Index_IndexInfo_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Index_IndexInfo_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 @@ -161,7 +199,9 @@ func _Index_IndexInfo_Handler(srv any, ctx context.Context, dec func(any) error, return interceptor(ctx, in, info, handler) } -func _Index_IndexDetail_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Index_IndexDetail_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 @@ -179,7 +219,9 @@ func _Index_IndexDetail_Handler(srv any, ctx context.Context, dec func(any) erro return interceptor(ctx, in, info, handler) } -func _Index_IndexStatistics_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +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 @@ -197,7 +239,9 @@ func _Index_IndexStatistics_Handler(srv any, ctx context.Context, dec func(any) return interceptor(ctx, in, info, handler) } -func _Index_IndexStatisticsDetail_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +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 @@ -215,7 +259,9 @@ func _Index_IndexStatisticsDetail_Handler(srv any, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _Index_IndexProperty_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Index_IndexProperty_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 diff --git a/apis/grpc/v1/vald/insert.pb.go b/apis/grpc/v1/vald/insert.pb.go index 90ccd453369..26f4a05fe7d 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -79,6 +80,7 @@ var file_v1_vald_insert_proto_goTypes = []any{ (*payload.Object_StreamLocation)(nil), // 3: payload.v1.Object.StreamLocation (*payload.Object_Locations)(nil), // 4: payload.v1.Object.Locations } + var file_v1_vald_insert_proto_depIdxs = []int32{ 0, // 0: vald.v1.Insert.Insert:input_type -> payload.v1.Insert.Request 0, // 1: vald.v1.Insert.StreamInsert:input_type -> payload.v1.Insert.Request diff --git a/apis/grpc/v1/vald/insert_vtproto.pb.go b/apis/grpc/v1/vald/insert_vtproto.pb.go index a57da063f39..4adde0acb59 100644 --- a/apis/grpc/v1/vald/insert_vtproto.pb.go +++ b/apis/grpc/v1/vald/insert_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/insert.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -45,7 +58,9 @@ func NewInsertClient(cc grpc.ClientConnInterface) InsertClient { return &insertClient{cc} } -func (c *insertClient) Insert(ctx context.Context, in *payload.Insert_Request, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *insertClient) Insert( + ctx context.Context, in *payload.Insert_Request, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Insert/Insert", in, out, opts...) if err != nil { @@ -54,7 +69,9 @@ func (c *insertClient) Insert(ctx context.Context, in *payload.Insert_Request, o return out, nil } -func (c *insertClient) StreamInsert(ctx context.Context, opts ...grpc.CallOption) (Insert_StreamInsertClient, error) { +func (c *insertClient) StreamInsert( + ctx context.Context, opts ...grpc.CallOption, +) (Insert_StreamInsertClient, error) { stream, err := c.cc.NewStream(ctx, &Insert_ServiceDesc.Streams[0], "/vald.v1.Insert/StreamInsert", opts...) if err != nil { return nil, err @@ -85,7 +102,9 @@ func (x *insertStreamInsertClient) Recv() (*payload.Object_StreamLocation, error return m, nil } -func (c *insertClient) MultiInsert(ctx context.Context, in *payload.Insert_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *insertClient) MultiInsert( + ctx context.Context, in *payload.Insert_MultiRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Insert/MultiInsert", in, out, opts...) if err != nil { @@ -108,16 +127,21 @@ type InsertServer interface { } // UnimplementedInsertServer must be embedded to have forward compatible implementations. -type UnimplementedInsertServer struct { -} +type UnimplementedInsertServer struct{} -func (UnimplementedInsertServer) Insert(context.Context, *payload.Insert_Request) (*payload.Object_Location, error) { +func (UnimplementedInsertServer) Insert( + context.Context, *payload.Insert_Request, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method Insert not implemented") } + func (UnimplementedInsertServer) StreamInsert(Insert_StreamInsertServer) error { return status.Errorf(codes.Unimplemented, "method StreamInsert not implemented") } -func (UnimplementedInsertServer) MultiInsert(context.Context, *payload.Insert_MultiRequest) (*payload.Object_Locations, error) { + +func (UnimplementedInsertServer) MultiInsert( + context.Context, *payload.Insert_MultiRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiInsert not implemented") } func (UnimplementedInsertServer) mustEmbedUnimplementedInsertServer() {} @@ -133,7 +157,9 @@ func RegisterInsertServer(s grpc.ServiceRegistrar, srv InsertServer) { s.RegisterService(&Insert_ServiceDesc, srv) } -func _Insert_Insert_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Insert_Insert_Handler( + 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 { return nil, err @@ -177,7 +203,9 @@ func (x *insertStreamInsertServer) Recv() (*payload.Insert_Request, error) { return m, nil } -func _Insert_MultiInsert_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Insert_MultiInsert_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/object.pb.go b/apis/grpc/v1/vald/object.pb.go index cc269ba3176..f9114671040 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -95,6 +96,7 @@ var file_v1_vald_object_proto_goTypes = []any{ (*payload.Object_List_Response)(nil), // 6: payload.v1.Object.List.Response (*payload.Object_Timestamp)(nil), // 7: payload.v1.Object.Timestamp } + var file_v1_vald_object_proto_depIdxs = []int32{ 0, // 0: vald.v1.Object.Exists:input_type -> payload.v1.Object.ID 1, // 1: vald.v1.Object.GetObject:input_type -> payload.v1.Object.VectorRequest diff --git a/apis/grpc/v1/vald/object_vtproto.pb.go b/apis/grpc/v1/vald/object_vtproto.pb.go index 8ba9c1b4bea..1df7b6eadfb 100644 --- a/apis/grpc/v1/vald/object_vtproto.pb.go +++ b/apis/grpc/v1/vald/object_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/object.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -49,7 +62,9 @@ func NewObjectClient(cc grpc.ClientConnInterface) ObjectClient { return &objectClient{cc} } -func (c *objectClient) Exists(ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption) (*payload.Object_ID, error) { +func (c *objectClient) Exists( + ctx context.Context, in *payload.Object_ID, opts ...grpc.CallOption, +) (*payload.Object_ID, error) { out := new(payload.Object_ID) err := c.cc.Invoke(ctx, "/vald.v1.Object/Exists", in, out, opts...) if err != nil { @@ -58,7 +73,9 @@ func (c *objectClient) Exists(ctx context.Context, in *payload.Object_ID, opts . return out, nil } -func (c *objectClient) GetObject(ctx context.Context, in *payload.Object_VectorRequest, opts ...grpc.CallOption) (*payload.Object_Vector, error) { +func (c *objectClient) GetObject( + ctx context.Context, in *payload.Object_VectorRequest, opts ...grpc.CallOption, +) (*payload.Object_Vector, error) { out := new(payload.Object_Vector) err := c.cc.Invoke(ctx, "/vald.v1.Object/GetObject", in, out, opts...) if err != nil { @@ -67,7 +84,9 @@ func (c *objectClient) GetObject(ctx context.Context, in *payload.Object_VectorR return out, nil } -func (c *objectClient) StreamGetObject(ctx context.Context, opts ...grpc.CallOption) (Object_StreamGetObjectClient, error) { +func (c *objectClient) StreamGetObject( + ctx context.Context, opts ...grpc.CallOption, +) (Object_StreamGetObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Object_ServiceDesc.Streams[0], "/vald.v1.Object/StreamGetObject", opts...) if err != nil { return nil, err @@ -98,7 +117,9 @@ func (x *objectStreamGetObjectClient) Recv() (*payload.Object_StreamVector, erro return m, nil } -func (c *objectClient) StreamListObject(ctx context.Context, in *payload.Object_List_Request, opts ...grpc.CallOption) (Object_StreamListObjectClient, error) { +func (c *objectClient) StreamListObject( + ctx context.Context, in *payload.Object_List_Request, opts ...grpc.CallOption, +) (Object_StreamListObjectClient, error) { stream, err := c.cc.NewStream(ctx, &Object_ServiceDesc.Streams[1], "/vald.v1.Object/StreamListObject", opts...) if err != nil { return nil, err @@ -130,7 +151,9 @@ func (x *objectStreamListObjectClient) Recv() (*payload.Object_List_Response, er return m, nil } -func (c *objectClient) GetTimestamp(ctx context.Context, in *payload.Object_TimestampRequest, opts ...grpc.CallOption) (*payload.Object_Timestamp, error) { +func (c *objectClient) GetTimestamp( + ctx context.Context, in *payload.Object_TimestampRequest, opts ...grpc.CallOption, +) (*payload.Object_Timestamp, error) { out := new(payload.Object_Timestamp) err := c.cc.Invoke(ctx, "/vald.v1.Object/GetTimestamp", in, out, opts...) if err != nil { @@ -157,22 +180,33 @@ type ObjectServer interface { } // UnimplementedObjectServer must be embedded to have forward compatible implementations. -type UnimplementedObjectServer struct { -} +type UnimplementedObjectServer struct{} -func (UnimplementedObjectServer) Exists(context.Context, *payload.Object_ID) (*payload.Object_ID, error) { +func (UnimplementedObjectServer) Exists( + context.Context, *payload.Object_ID, +) (*payload.Object_ID, error) { return nil, status.Errorf(codes.Unimplemented, "method Exists not implemented") } -func (UnimplementedObjectServer) GetObject(context.Context, *payload.Object_VectorRequest) (*payload.Object_Vector, error) { + +func (UnimplementedObjectServer) GetObject( + context.Context, *payload.Object_VectorRequest, +) (*payload.Object_Vector, error) { return nil, status.Errorf(codes.Unimplemented, "method GetObject not implemented") } + func (UnimplementedObjectServer) StreamGetObject(Object_StreamGetObjectServer) error { return status.Errorf(codes.Unimplemented, "method StreamGetObject not implemented") } -func (UnimplementedObjectServer) StreamListObject(*payload.Object_List_Request, Object_StreamListObjectServer) error { + +func (UnimplementedObjectServer) StreamListObject( + *payload.Object_List_Request, Object_StreamListObjectServer, +) error { return status.Errorf(codes.Unimplemented, "method StreamListObject not implemented") } -func (UnimplementedObjectServer) GetTimestamp(context.Context, *payload.Object_TimestampRequest) (*payload.Object_Timestamp, error) { + +func (UnimplementedObjectServer) GetTimestamp( + context.Context, *payload.Object_TimestampRequest, +) (*payload.Object_Timestamp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTimestamp not implemented") } func (UnimplementedObjectServer) mustEmbedUnimplementedObjectServer() {} @@ -188,7 +222,9 @@ func RegisterObjectServer(s grpc.ServiceRegistrar, srv ObjectServer) { s.RegisterService(&Object_ServiceDesc, srv) } -func _Object_Exists_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Object_Exists_Handler( + 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 { return nil, err @@ -206,7 +242,9 @@ func _Object_Exists_Handler(srv any, ctx context.Context, dec func(any) error, i return interceptor(ctx, in, info, handler) } -func _Object_GetObject_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Object_GetObject_Handler( + 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 { return nil, err @@ -271,7 +309,9 @@ func (x *objectStreamListObjectServer) Send(m *payload.Object_List_Response) err return x.ServerStream.SendMsg(m) } -func _Object_GetTimestamp_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Object_GetTimestamp_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/remove.pb.go b/apis/grpc/v1/vald/remove.pb.go index 484cde0d224..cf58d5f1eb6 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -87,6 +88,7 @@ var file_v1_vald_remove_proto_goTypes = []any{ (*payload.Object_Locations)(nil), // 4: payload.v1.Object.Locations (*payload.Object_StreamLocation)(nil), // 5: payload.v1.Object.StreamLocation } + var file_v1_vald_remove_proto_depIdxs = []int32{ 0, // 0: vald.v1.Remove.Remove:input_type -> payload.v1.Remove.Request 1, // 1: vald.v1.Remove.RemoveByTimestamp:input_type -> payload.v1.Remove.TimestampRequest diff --git a/apis/grpc/v1/vald/remove_vtproto.pb.go b/apis/grpc/v1/vald/remove_vtproto.pb.go index 87864c0a74f..68219d9faa2 100644 --- a/apis/grpc/v1/vald/remove_vtproto.pb.go +++ b/apis/grpc/v1/vald/remove_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/remove.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -47,7 +60,9 @@ func NewRemoveClient(cc grpc.ClientConnInterface) RemoveClient { return &removeClient{cc} } -func (c *removeClient) Remove(ctx context.Context, in *payload.Remove_Request, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *removeClient) Remove( + ctx context.Context, in *payload.Remove_Request, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Remove/Remove", in, out, opts...) if err != nil { @@ -56,7 +71,9 @@ func (c *removeClient) Remove(ctx context.Context, in *payload.Remove_Request, o return out, nil } -func (c *removeClient) RemoveByTimestamp(ctx context.Context, in *payload.Remove_TimestampRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *removeClient) RemoveByTimestamp( + ctx context.Context, in *payload.Remove_TimestampRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Remove/RemoveByTimestamp", in, out, opts...) if err != nil { @@ -65,7 +82,9 @@ func (c *removeClient) RemoveByTimestamp(ctx context.Context, in *payload.Remove return out, nil } -func (c *removeClient) StreamRemove(ctx context.Context, opts ...grpc.CallOption) (Remove_StreamRemoveClient, error) { +func (c *removeClient) StreamRemove( + ctx context.Context, opts ...grpc.CallOption, +) (Remove_StreamRemoveClient, error) { stream, err := c.cc.NewStream(ctx, &Remove_ServiceDesc.Streams[0], "/vald.v1.Remove/StreamRemove", opts...) if err != nil { return nil, err @@ -96,7 +115,9 @@ func (x *removeStreamRemoveClient) Recv() (*payload.Object_StreamLocation, error return m, nil } -func (c *removeClient) MultiRemove(ctx context.Context, in *payload.Remove_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *removeClient) MultiRemove( + ctx context.Context, in *payload.Remove_MultiRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Remove/MultiRemove", in, out, opts...) if err != nil { @@ -121,19 +142,27 @@ type RemoveServer interface { } // UnimplementedRemoveServer must be embedded to have forward compatible implementations. -type UnimplementedRemoveServer struct { -} +type UnimplementedRemoveServer struct{} -func (UnimplementedRemoveServer) Remove(context.Context, *payload.Remove_Request) (*payload.Object_Location, error) { +func (UnimplementedRemoveServer) Remove( + context.Context, *payload.Remove_Request, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") } -func (UnimplementedRemoveServer) RemoveByTimestamp(context.Context, *payload.Remove_TimestampRequest) (*payload.Object_Locations, error) { + +func (UnimplementedRemoveServer) RemoveByTimestamp( + context.Context, *payload.Remove_TimestampRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveByTimestamp not implemented") } + func (UnimplementedRemoveServer) StreamRemove(Remove_StreamRemoveServer) error { return status.Errorf(codes.Unimplemented, "method StreamRemove not implemented") } -func (UnimplementedRemoveServer) MultiRemove(context.Context, *payload.Remove_MultiRequest) (*payload.Object_Locations, error) { + +func (UnimplementedRemoveServer) MultiRemove( + context.Context, *payload.Remove_MultiRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiRemove not implemented") } func (UnimplementedRemoveServer) mustEmbedUnimplementedRemoveServer() {} @@ -149,7 +178,9 @@ func RegisterRemoveServer(s grpc.ServiceRegistrar, srv RemoveServer) { s.RegisterService(&Remove_ServiceDesc, srv) } -func _Remove_Remove_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Remove_Remove_Handler( + 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 { return nil, err @@ -167,7 +198,9 @@ func _Remove_Remove_Handler(srv any, ctx context.Context, dec func(any) error, i return interceptor(ctx, in, info, handler) } -func _Remove_RemoveByTimestamp_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Remove_RemoveByTimestamp_Handler( + 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 { return nil, err @@ -211,7 +244,9 @@ func (x *removeStreamRemoveServer) Recv() (*payload.Remove_Request, error) { return m, nil } -func _Remove_MultiRemove_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Remove_MultiRemove_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/search.pb.go b/apis/grpc/v1/vald/search.pb.go index e3f5041bca9..2577281aa7c 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -140,6 +141,7 @@ var file_v1_vald_search_proto_goTypes = []any{ (*payload.Search_StreamResponse)(nil), // 5: payload.v1.Search.StreamResponse (*payload.Search_Responses)(nil), // 6: payload.v1.Search.Responses } + var file_v1_vald_search_proto_depIdxs = []int32{ 0, // 0: vald.v1.Search.Search:input_type -> payload.v1.Search.Request 1, // 1: vald.v1.Search.SearchByID:input_type -> payload.v1.Search.IDRequest diff --git a/apis/grpc/v1/vald/search_vtproto.pb.go b/apis/grpc/v1/vald/search_vtproto.pb.go index a20242b891d..bf69c0fbba4 100644 --- a/apis/grpc/v1/vald/search_vtproto.pb.go +++ b/apis/grpc/v1/vald/search_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/search.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -65,7 +78,9 @@ func NewSearchClient(cc grpc.ClientConnInterface) SearchClient { return &searchClient{cc} } -func (c *searchClient) Search(ctx context.Context, in *payload.Search_Request, opts ...grpc.CallOption) (*payload.Search_Response, error) { +func (c *searchClient) Search( + ctx context.Context, in *payload.Search_Request, opts ...grpc.CallOption, +) (*payload.Search_Response, error) { out := new(payload.Search_Response) err := c.cc.Invoke(ctx, "/vald.v1.Search/Search", in, out, opts...) if err != nil { @@ -74,7 +89,9 @@ func (c *searchClient) Search(ctx context.Context, in *payload.Search_Request, o return out, nil } -func (c *searchClient) SearchByID(ctx context.Context, in *payload.Search_IDRequest, opts ...grpc.CallOption) (*payload.Search_Response, error) { +func (c *searchClient) SearchByID( + ctx context.Context, in *payload.Search_IDRequest, opts ...grpc.CallOption, +) (*payload.Search_Response, error) { out := new(payload.Search_Response) err := c.cc.Invoke(ctx, "/vald.v1.Search/SearchByID", in, out, opts...) if err != nil { @@ -83,7 +100,9 @@ func (c *searchClient) SearchByID(ctx context.Context, in *payload.Search_IDRequ return out, nil } -func (c *searchClient) StreamSearch(ctx context.Context, opts ...grpc.CallOption) (Search_StreamSearchClient, error) { +func (c *searchClient) StreamSearch( + ctx context.Context, opts ...grpc.CallOption, +) (Search_StreamSearchClient, error) { stream, err := c.cc.NewStream(ctx, &Search_ServiceDesc.Streams[0], "/vald.v1.Search/StreamSearch", opts...) if err != nil { return nil, err @@ -114,7 +133,9 @@ func (x *searchStreamSearchClient) Recv() (*payload.Search_StreamResponse, error return m, nil } -func (c *searchClient) StreamSearchByID(ctx context.Context, opts ...grpc.CallOption) (Search_StreamSearchByIDClient, error) { +func (c *searchClient) StreamSearchByID( + ctx context.Context, opts ...grpc.CallOption, +) (Search_StreamSearchByIDClient, error) { stream, err := c.cc.NewStream(ctx, &Search_ServiceDesc.Streams[1], "/vald.v1.Search/StreamSearchByID", opts...) if err != nil { return nil, err @@ -145,7 +166,9 @@ func (x *searchStreamSearchByIDClient) Recv() (*payload.Search_StreamResponse, e return m, nil } -func (c *searchClient) MultiSearch(ctx context.Context, in *payload.Search_MultiRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error) { +func (c *searchClient) MultiSearch( + ctx context.Context, in *payload.Search_MultiRequest, opts ...grpc.CallOption, +) (*payload.Search_Responses, error) { out := new(payload.Search_Responses) err := c.cc.Invoke(ctx, "/vald.v1.Search/MultiSearch", in, out, opts...) if err != nil { @@ -154,7 +177,9 @@ func (c *searchClient) MultiSearch(ctx context.Context, in *payload.Search_Multi return out, nil } -func (c *searchClient) MultiSearchByID(ctx context.Context, in *payload.Search_MultiIDRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error) { +func (c *searchClient) MultiSearchByID( + ctx context.Context, in *payload.Search_MultiIDRequest, opts ...grpc.CallOption, +) (*payload.Search_Responses, error) { out := new(payload.Search_Responses) err := c.cc.Invoke(ctx, "/vald.v1.Search/MultiSearchByID", in, out, opts...) if err != nil { @@ -163,7 +188,9 @@ func (c *searchClient) MultiSearchByID(ctx context.Context, in *payload.Search_M return out, nil } -func (c *searchClient) LinearSearch(ctx context.Context, in *payload.Search_Request, opts ...grpc.CallOption) (*payload.Search_Response, error) { +func (c *searchClient) LinearSearch( + ctx context.Context, in *payload.Search_Request, opts ...grpc.CallOption, +) (*payload.Search_Response, error) { out := new(payload.Search_Response) err := c.cc.Invoke(ctx, "/vald.v1.Search/LinearSearch", in, out, opts...) if err != nil { @@ -172,7 +199,9 @@ func (c *searchClient) LinearSearch(ctx context.Context, in *payload.Search_Requ return out, nil } -func (c *searchClient) LinearSearchByID(ctx context.Context, in *payload.Search_IDRequest, opts ...grpc.CallOption) (*payload.Search_Response, error) { +func (c *searchClient) LinearSearchByID( + ctx context.Context, in *payload.Search_IDRequest, opts ...grpc.CallOption, +) (*payload.Search_Response, error) { out := new(payload.Search_Response) err := c.cc.Invoke(ctx, "/vald.v1.Search/LinearSearchByID", in, out, opts...) if err != nil { @@ -181,7 +210,9 @@ func (c *searchClient) LinearSearchByID(ctx context.Context, in *payload.Search_ return out, nil } -func (c *searchClient) StreamLinearSearch(ctx context.Context, opts ...grpc.CallOption) (Search_StreamLinearSearchClient, error) { +func (c *searchClient) StreamLinearSearch( + ctx context.Context, opts ...grpc.CallOption, +) (Search_StreamLinearSearchClient, error) { stream, err := c.cc.NewStream(ctx, &Search_ServiceDesc.Streams[2], "/vald.v1.Search/StreamLinearSearch", opts...) if err != nil { return nil, err @@ -212,7 +243,9 @@ func (x *searchStreamLinearSearchClient) Recv() (*payload.Search_StreamResponse, return m, nil } -func (c *searchClient) StreamLinearSearchByID(ctx context.Context, opts ...grpc.CallOption) (Search_StreamLinearSearchByIDClient, error) { +func (c *searchClient) StreamLinearSearchByID( + ctx context.Context, opts ...grpc.CallOption, +) (Search_StreamLinearSearchByIDClient, error) { stream, err := c.cc.NewStream(ctx, &Search_ServiceDesc.Streams[3], "/vald.v1.Search/StreamLinearSearchByID", opts...) if err != nil { return nil, err @@ -243,7 +276,9 @@ func (x *searchStreamLinearSearchByIDClient) Recv() (*payload.Search_StreamRespo return m, nil } -func (c *searchClient) MultiLinearSearch(ctx context.Context, in *payload.Search_MultiRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error) { +func (c *searchClient) MultiLinearSearch( + ctx context.Context, in *payload.Search_MultiRequest, opts ...grpc.CallOption, +) (*payload.Search_Responses, error) { out := new(payload.Search_Responses) err := c.cc.Invoke(ctx, "/vald.v1.Search/MultiLinearSearch", in, out, opts...) if err != nil { @@ -252,7 +287,9 @@ func (c *searchClient) MultiLinearSearch(ctx context.Context, in *payload.Search return out, nil } -func (c *searchClient) MultiLinearSearchByID(ctx context.Context, in *payload.Search_MultiIDRequest, opts ...grpc.CallOption) (*payload.Search_Responses, error) { +func (c *searchClient) MultiLinearSearchByID( + ctx context.Context, in *payload.Search_MultiIDRequest, opts ...grpc.CallOption, +) (*payload.Search_Responses, error) { out := new(payload.Search_Responses) err := c.cc.Invoke(ctx, "/vald.v1.Search/MultiLinearSearchByID", in, out, opts...) if err != nil { @@ -295,43 +332,69 @@ type SearchServer interface { } // UnimplementedSearchServer must be embedded to have forward compatible implementations. -type UnimplementedSearchServer struct { -} +type UnimplementedSearchServer struct{} -func (UnimplementedSearchServer) Search(context.Context, *payload.Search_Request) (*payload.Search_Response, error) { +func (UnimplementedSearchServer) Search( + context.Context, *payload.Search_Request, +) (*payload.Search_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") } -func (UnimplementedSearchServer) SearchByID(context.Context, *payload.Search_IDRequest) (*payload.Search_Response, error) { + +func (UnimplementedSearchServer) SearchByID( + context.Context, *payload.Search_IDRequest, +) (*payload.Search_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchByID not implemented") } + func (UnimplementedSearchServer) StreamSearch(Search_StreamSearchServer) error { return status.Errorf(codes.Unimplemented, "method StreamSearch not implemented") } + func (UnimplementedSearchServer) StreamSearchByID(Search_StreamSearchByIDServer) error { return status.Errorf(codes.Unimplemented, "method StreamSearchByID not implemented") } -func (UnimplementedSearchServer) MultiSearch(context.Context, *payload.Search_MultiRequest) (*payload.Search_Responses, error) { + +func (UnimplementedSearchServer) MultiSearch( + context.Context, *payload.Search_MultiRequest, +) (*payload.Search_Responses, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiSearch not implemented") } -func (UnimplementedSearchServer) MultiSearchByID(context.Context, *payload.Search_MultiIDRequest) (*payload.Search_Responses, error) { + +func (UnimplementedSearchServer) MultiSearchByID( + context.Context, *payload.Search_MultiIDRequest, +) (*payload.Search_Responses, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiSearchByID not implemented") } -func (UnimplementedSearchServer) LinearSearch(context.Context, *payload.Search_Request) (*payload.Search_Response, error) { + +func (UnimplementedSearchServer) LinearSearch( + context.Context, *payload.Search_Request, +) (*payload.Search_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method LinearSearch not implemented") } -func (UnimplementedSearchServer) LinearSearchByID(context.Context, *payload.Search_IDRequest) (*payload.Search_Response, error) { + +func (UnimplementedSearchServer) LinearSearchByID( + context.Context, *payload.Search_IDRequest, +) (*payload.Search_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method LinearSearchByID not implemented") } + func (UnimplementedSearchServer) StreamLinearSearch(Search_StreamLinearSearchServer) error { return status.Errorf(codes.Unimplemented, "method StreamLinearSearch not implemented") } + func (UnimplementedSearchServer) StreamLinearSearchByID(Search_StreamLinearSearchByIDServer) error { return status.Errorf(codes.Unimplemented, "method StreamLinearSearchByID not implemented") } -func (UnimplementedSearchServer) MultiLinearSearch(context.Context, *payload.Search_MultiRequest) (*payload.Search_Responses, error) { + +func (UnimplementedSearchServer) MultiLinearSearch( + context.Context, *payload.Search_MultiRequest, +) (*payload.Search_Responses, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiLinearSearch not implemented") } -func (UnimplementedSearchServer) MultiLinearSearchByID(context.Context, *payload.Search_MultiIDRequest) (*payload.Search_Responses, error) { + +func (UnimplementedSearchServer) MultiLinearSearchByID( + context.Context, *payload.Search_MultiIDRequest, +) (*payload.Search_Responses, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiLinearSearchByID not implemented") } func (UnimplementedSearchServer) mustEmbedUnimplementedSearchServer() {} @@ -347,7 +410,9 @@ func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer) { s.RegisterService(&Search_ServiceDesc, srv) } -func _Search_Search_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_Search_Handler( + 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 { return nil, err @@ -365,7 +430,9 @@ func _Search_Search_Handler(srv any, ctx context.Context, dec func(any) error, i return interceptor(ctx, in, info, handler) } -func _Search_SearchByID_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_SearchByID_Handler( + 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 { return nil, err @@ -435,7 +502,9 @@ func (x *searchStreamSearchByIDServer) Recv() (*payload.Search_IDRequest, error) return m, nil } -func _Search_MultiSearch_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_MultiSearch_Handler( + 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 { return nil, err @@ -453,7 +522,9 @@ func _Search_MultiSearch_Handler(srv any, ctx context.Context, dec func(any) err return interceptor(ctx, in, info, handler) } -func _Search_MultiSearchByID_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_MultiSearchByID_Handler( + 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 { return nil, err @@ -471,7 +542,9 @@ func _Search_MultiSearchByID_Handler(srv any, ctx context.Context, dec func(any) return interceptor(ctx, in, info, handler) } -func _Search_LinearSearch_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_LinearSearch_Handler( + 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 { return nil, err @@ -489,7 +562,9 @@ func _Search_LinearSearch_Handler(srv any, ctx context.Context, dec func(any) er return interceptor(ctx, in, info, handler) } -func _Search_LinearSearchByID_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_LinearSearchByID_Handler( + 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 { return nil, err @@ -559,7 +634,9 @@ func (x *searchStreamLinearSearchByIDServer) Recv() (*payload.Search_IDRequest, return m, nil } -func _Search_MultiLinearSearch_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_MultiLinearSearch_Handler( + 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 { return nil, err @@ -577,7 +654,9 @@ func _Search_MultiLinearSearch_Handler(srv any, ctx context.Context, dec func(an return interceptor(ctx, in, info, handler) } -func _Search_MultiLinearSearchByID_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Search_MultiLinearSearchByID_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/update.pb.go b/apis/grpc/v1/vald/update.pb.go index 8a03dc36124..ad05fbe50c7 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -79,6 +80,7 @@ var file_v1_vald_update_proto_goTypes = []any{ (*payload.Object_StreamLocation)(nil), // 3: payload.v1.Object.StreamLocation (*payload.Object_Locations)(nil), // 4: payload.v1.Object.Locations } + var file_v1_vald_update_proto_depIdxs = []int32{ 0, // 0: vald.v1.Update.Update:input_type -> payload.v1.Update.Request 0, // 1: vald.v1.Update.StreamUpdate:input_type -> payload.v1.Update.Request diff --git a/apis/grpc/v1/vald/update_vtproto.pb.go b/apis/grpc/v1/vald/update_vtproto.pb.go index 5624ff1c722..60f92fd0a80 100644 --- a/apis/grpc/v1/vald/update_vtproto.pb.go +++ b/apis/grpc/v1/vald/update_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/update.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -45,7 +58,9 @@ func NewUpdateClient(cc grpc.ClientConnInterface) UpdateClient { return &updateClient{cc} } -func (c *updateClient) Update(ctx context.Context, in *payload.Update_Request, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *updateClient) Update( + ctx context.Context, in *payload.Update_Request, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Update/Update", in, out, opts...) if err != nil { @@ -54,7 +69,9 @@ func (c *updateClient) Update(ctx context.Context, in *payload.Update_Request, o return out, nil } -func (c *updateClient) StreamUpdate(ctx context.Context, opts ...grpc.CallOption) (Update_StreamUpdateClient, error) { +func (c *updateClient) StreamUpdate( + ctx context.Context, opts ...grpc.CallOption, +) (Update_StreamUpdateClient, error) { stream, err := c.cc.NewStream(ctx, &Update_ServiceDesc.Streams[0], "/vald.v1.Update/StreamUpdate", opts...) if err != nil { return nil, err @@ -85,7 +102,9 @@ func (x *updateStreamUpdateClient) Recv() (*payload.Object_StreamLocation, error return m, nil } -func (c *updateClient) MultiUpdate(ctx context.Context, in *payload.Update_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *updateClient) MultiUpdate( + ctx context.Context, in *payload.Update_MultiRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Update/MultiUpdate", in, out, opts...) if err != nil { @@ -108,16 +127,21 @@ type UpdateServer interface { } // UnimplementedUpdateServer must be embedded to have forward compatible implementations. -type UnimplementedUpdateServer struct { -} +type UnimplementedUpdateServer struct{} -func (UnimplementedUpdateServer) Update(context.Context, *payload.Update_Request) (*payload.Object_Location, error) { +func (UnimplementedUpdateServer) Update( + context.Context, *payload.Update_Request, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") } + func (UnimplementedUpdateServer) StreamUpdate(Update_StreamUpdateServer) error { return status.Errorf(codes.Unimplemented, "method StreamUpdate not implemented") } -func (UnimplementedUpdateServer) MultiUpdate(context.Context, *payload.Update_MultiRequest) (*payload.Object_Locations, error) { + +func (UnimplementedUpdateServer) MultiUpdate( + context.Context, *payload.Update_MultiRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiUpdate not implemented") } func (UnimplementedUpdateServer) mustEmbedUnimplementedUpdateServer() {} @@ -133,7 +157,9 @@ func RegisterUpdateServer(s grpc.ServiceRegistrar, srv UpdateServer) { s.RegisterService(&Update_ServiceDesc, srv) } -func _Update_Update_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Update_Update_Handler( + 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 { return nil, err @@ -177,7 +203,9 @@ func (x *updateStreamUpdateServer) Recv() (*payload.Update_Request, error) { return m, nil } -func _Update_MultiUpdate_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Update_MultiUpdate_Handler( + 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 { return nil, err diff --git a/apis/grpc/v1/vald/upsert.pb.go b/apis/grpc/v1/vald/upsert.pb.go index f0655def9f9..3c1a741dc1e 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -23,11 +23,12 @@ package vald import ( + reflect "reflect" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" ) const ( @@ -79,6 +80,7 @@ var file_v1_vald_upsert_proto_goTypes = []any{ (*payload.Object_StreamLocation)(nil), // 3: payload.v1.Object.StreamLocation (*payload.Object_Locations)(nil), // 4: payload.v1.Object.Locations } + var file_v1_vald_upsert_proto_depIdxs = []int32{ 0, // 0: vald.v1.Upsert.Upsert:input_type -> payload.v1.Upsert.Request 0, // 1: vald.v1.Upsert.StreamUpsert:input_type -> payload.v1.Upsert.Request diff --git a/apis/grpc/v1/vald/upsert_vtproto.pb.go b/apis/grpc/v1/vald/upsert_vtproto.pb.go index 0d2456664c0..1a28a9461a0 100644 --- a/apis/grpc/v1/vald/upsert_vtproto.pb.go +++ b/apis/grpc/v1/vald/upsert_vtproto.pb.go @@ -1,15 +1,28 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 -// source: v1/vald/upsert.proto +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package vald import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" - grpc "google.golang.org/grpc" codes "github.com/vdaas/vald/internal/net/grpc/codes" status "github.com/vdaas/vald/internal/net/grpc/status" + grpc "google.golang.org/grpc" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -45,7 +58,9 @@ func NewUpsertClient(cc grpc.ClientConnInterface) UpsertClient { return &upsertClient{cc} } -func (c *upsertClient) Upsert(ctx context.Context, in *payload.Upsert_Request, opts ...grpc.CallOption) (*payload.Object_Location, error) { +func (c *upsertClient) Upsert( + ctx context.Context, in *payload.Upsert_Request, opts ...grpc.CallOption, +) (*payload.Object_Location, error) { out := new(payload.Object_Location) err := c.cc.Invoke(ctx, "/vald.v1.Upsert/Upsert", in, out, opts...) if err != nil { @@ -54,7 +69,9 @@ func (c *upsertClient) Upsert(ctx context.Context, in *payload.Upsert_Request, o return out, nil } -func (c *upsertClient) StreamUpsert(ctx context.Context, opts ...grpc.CallOption) (Upsert_StreamUpsertClient, error) { +func (c *upsertClient) StreamUpsert( + ctx context.Context, opts ...grpc.CallOption, +) (Upsert_StreamUpsertClient, error) { stream, err := c.cc.NewStream(ctx, &Upsert_ServiceDesc.Streams[0], "/vald.v1.Upsert/StreamUpsert", opts...) if err != nil { return nil, err @@ -85,7 +102,9 @@ func (x *upsertStreamUpsertClient) Recv() (*payload.Object_StreamLocation, error return m, nil } -func (c *upsertClient) MultiUpsert(ctx context.Context, in *payload.Upsert_MultiRequest, opts ...grpc.CallOption) (*payload.Object_Locations, error) { +func (c *upsertClient) MultiUpsert( + ctx context.Context, in *payload.Upsert_MultiRequest, opts ...grpc.CallOption, +) (*payload.Object_Locations, error) { out := new(payload.Object_Locations) err := c.cc.Invoke(ctx, "/vald.v1.Upsert/MultiUpsert", in, out, opts...) if err != nil { @@ -108,16 +127,21 @@ type UpsertServer interface { } // UnimplementedUpsertServer must be embedded to have forward compatible implementations. -type UnimplementedUpsertServer struct { -} +type UnimplementedUpsertServer struct{} -func (UnimplementedUpsertServer) Upsert(context.Context, *payload.Upsert_Request) (*payload.Object_Location, error) { +func (UnimplementedUpsertServer) Upsert( + context.Context, *payload.Upsert_Request, +) (*payload.Object_Location, error) { return nil, status.Errorf(codes.Unimplemented, "method Upsert not implemented") } + func (UnimplementedUpsertServer) StreamUpsert(Upsert_StreamUpsertServer) error { return status.Errorf(codes.Unimplemented, "method StreamUpsert not implemented") } -func (UnimplementedUpsertServer) MultiUpsert(context.Context, *payload.Upsert_MultiRequest) (*payload.Object_Locations, error) { + +func (UnimplementedUpsertServer) MultiUpsert( + context.Context, *payload.Upsert_MultiRequest, +) (*payload.Object_Locations, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiUpsert not implemented") } func (UnimplementedUpsertServer) mustEmbedUnimplementedUpsertServer() {} @@ -133,7 +157,9 @@ func RegisterUpsertServer(s grpc.ServiceRegistrar, srv UpsertServer) { s.RegisterService(&Upsert_ServiceDesc, srv) } -func _Upsert_Upsert_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Upsert_Upsert_Handler( + 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 { return nil, err @@ -177,7 +203,9 @@ func (x *upsertStreamUpsertServer) Recv() (*payload.Upsert_Request, error) { return m, nil } -func _Upsert_MultiUpsert_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) { +func _Upsert_MultiUpsert_Handler( + 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 { return nil, err diff --git a/apis/swagger/v1/agent/core/agent.swagger.json b/apis/swagger/v1/agent/core/agent.swagger.json index 348f6104a93..2abce5f2220 100644 --- a/apis/swagger/v1/agent/core/agent.swagger.json +++ b/apis/swagger/v1/agent/core/agent.swagger.json @@ -9,12 +9,8 @@ "name": "Agent" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/index/create/{poolSize}": { "get": { @@ -44,9 +40,7 @@ "format": "int64" } ], - "tags": [ - "Agent" - ] + "tags": ["Agent"] } }, "/index/createandsave/{poolSize}": { @@ -77,9 +71,7 @@ "format": "int64" } ], - "tags": [ - "Agent" - ] + "tags": ["Agent"] } }, "/index/save": { @@ -100,9 +92,7 @@ } } }, - "tags": [ - "Agent" - ] + "tags": ["Agent"] } } }, diff --git a/apis/swagger/v1/agent/sidecar/sidecar.swagger.json b/apis/swagger/v1/agent/sidecar/sidecar.swagger.json index 44f053bf424..c3f84e0170b 100644 --- a/apis/swagger/v1/agent/sidecar/sidecar.swagger.json +++ b/apis/swagger/v1/agent/sidecar/sidecar.swagger.json @@ -4,12 +4,8 @@ "title": "v1/agent/sidecar/sidecar.proto", "version": "version not set" }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": {}, "definitions": { "protobufAny": { diff --git a/apis/swagger/v1/discoverer/discoverer.swagger.json b/apis/swagger/v1/discoverer/discoverer.swagger.json index 7f07c1682f4..915d82ab716 100644 --- a/apis/swagger/v1/discoverer/discoverer.swagger.json +++ b/apis/swagger/v1/discoverer/discoverer.swagger.json @@ -9,12 +9,8 @@ "name": "Discoverer" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/discover/nodes": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Discoverer" - ] + "tags": ["Discoverer"] } }, "/discover/pods": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Discoverer" - ] + "tags": ["Discoverer"] } }, "/discover/services": { @@ -113,9 +105,7 @@ } } ], - "tags": [ - "Discoverer" - ] + "tags": ["Discoverer"] } } }, diff --git a/apis/swagger/v1/filter/egress/egress_filter.swagger.json b/apis/swagger/v1/filter/egress/egress_filter.swagger.json index ba5c5308832..395887d8e28 100644 --- a/apis/swagger/v1/filter/egress/egress_filter.swagger.json +++ b/apis/swagger/v1/filter/egress/egress_filter.swagger.json @@ -9,12 +9,8 @@ "name": "Filter" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/filter/egress/distance": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/filter/egress/vector": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } } }, diff --git a/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json b/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json index f2246ac31eb..ae3504a56b8 100644 --- a/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json +++ b/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json @@ -9,12 +9,8 @@ "name": "Filter" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/filter/ingress/object": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/filter/ingress/vector": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } } }, diff --git a/apis/swagger/v1/meta/meta.swagger.json b/apis/swagger/v1/meta/meta.swagger.json index 57d0b45d02e..8e4abca7150 100644 --- a/apis/swagger/v1/meta/meta.swagger.json +++ b/apis/swagger/v1/meta/meta.swagger.json @@ -9,12 +9,8 @@ "name": "Meta" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/meta": { "post": { @@ -43,9 +39,7 @@ } } ], - "tags": [ - "Meta" - ] + "tags": ["Meta"] } }, "/meta/{key}": { @@ -73,9 +67,7 @@ "type": "string" } ], - "tags": [ - "Meta" - ] + "tags": ["Meta"] }, "delete": { "operationId": "Meta_Delete", @@ -101,9 +93,7 @@ "type": "string" } ], - "tags": [ - "Meta" - ] + "tags": ["Meta"] } } }, diff --git a/apis/swagger/v1/mirror/mirror.swagger.json b/apis/swagger/v1/mirror/mirror.swagger.json index b6e9f730f43..8c2fea2bb48 100644 --- a/apis/swagger/v1/mirror/mirror.swagger.json +++ b/apis/swagger/v1/mirror/mirror.swagger.json @@ -9,12 +9,8 @@ "name": "Mirror" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/mirror/register": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Mirror" - ] + "tags": ["Mirror"] } } }, diff --git a/apis/swagger/v1/payload/payload.swagger.json b/apis/swagger/v1/payload/payload.swagger.json index 4ffae36b594..345c401edd1 100644 --- a/apis/swagger/v1/payload/payload.swagger.json +++ b/apis/swagger/v1/payload/payload.swagger.json @@ -4,12 +4,8 @@ "title": "v1/payload/payload.proto", "version": "version not set" }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": {}, "definitions": { "protobufAny": { diff --git a/apis/swagger/v1/rpc/errdetails/error_details.swagger.json b/apis/swagger/v1/rpc/errdetails/error_details.swagger.json index 584f874c3ce..50d969b8717 100644 --- a/apis/swagger/v1/rpc/errdetails/error_details.swagger.json +++ b/apis/swagger/v1/rpc/errdetails/error_details.swagger.json @@ -4,12 +4,8 @@ "title": "v1/rpc/errdetails/error_details.proto", "version": "version not set" }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": {}, "definitions": { "protobufAny": { diff --git a/apis/swagger/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/filter.swagger.json index ed04c8a5322..ddf4c886eb7 100644 --- a/apis/swagger/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/filter.swagger.json @@ -9,12 +9,8 @@ "name": "Filter" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/insert/object": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/insert/object/multiple": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/search/object": { @@ -113,9 +105,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/search/object/multiple": { @@ -147,9 +137,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/update/object": { @@ -181,9 +169,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/update/object/multiple": { @@ -215,9 +201,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/upsert/object": { @@ -249,9 +233,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } }, "/upsert/object/multiple": { @@ -283,9 +265,7 @@ } } ], - "tags": [ - "Filter" - ] + "tags": ["Filter"] } } }, diff --git a/apis/swagger/v1/vald/flush.swagger.json b/apis/swagger/v1/vald/flush.swagger.json index 7588fc4c369..a42ecf0c424 100644 --- a/apis/swagger/v1/vald/flush.swagger.json +++ b/apis/swagger/v1/vald/flush.swagger.json @@ -9,12 +9,8 @@ "name": "Flush" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/flush": { "delete": { @@ -34,9 +30,7 @@ } } }, - "tags": [ - "Flush" - ] + "tags": ["Flush"] } } }, diff --git a/apis/swagger/v1/vald/index.swagger.json b/apis/swagger/v1/vald/index.swagger.json index 37aa4129d47..b8032366d55 100644 --- a/apis/swagger/v1/vald/index.swagger.json +++ b/apis/swagger/v1/vald/index.swagger.json @@ -9,12 +9,8 @@ "name": "Index" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/index/detail": { "get": { @@ -34,9 +30,7 @@ } } }, - "tags": [ - "Index" - ] + "tags": ["Index"] } }, "/index/info": { @@ -57,9 +51,7 @@ } } }, - "tags": [ - "Index" - ] + "tags": ["Index"] } }, "/index/property": { @@ -80,9 +72,7 @@ } } }, - "tags": [ - "Index" - ] + "tags": ["Index"] } }, "/index/statistics": { @@ -103,9 +93,7 @@ } } }, - "tags": [ - "Index" - ] + "tags": ["Index"] } }, "/index/statistics/detail": { @@ -126,9 +114,7 @@ } } }, - "tags": [ - "Index" - ] + "tags": ["Index"] } } }, diff --git a/apis/swagger/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/insert.swagger.json index 74346dc2c71..6b767193829 100644 --- a/apis/swagger/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/insert.swagger.json @@ -9,12 +9,8 @@ "name": "Insert" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/insert": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Insert" - ] + "tags": ["Insert"] } }, "/insert/multiple": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Insert" - ] + "tags": ["Insert"] } } }, diff --git a/apis/swagger/v1/vald/object.swagger.json b/apis/swagger/v1/vald/object.swagger.json index b5f50062bc3..263808e6d35 100644 --- a/apis/swagger/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/object.swagger.json @@ -9,12 +9,8 @@ "name": "Object" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/exists/{id}": { "get": { @@ -42,9 +38,7 @@ "type": "string" } ], - "tags": [ - "Object" - ] + "tags": ["Object"] } }, "/object/list": { @@ -74,9 +68,7 @@ } } }, - "tags": [ - "Object" - ] + "tags": ["Object"] } }, "/object/meta/{id.id}": { @@ -105,9 +97,7 @@ "type": "string" } ], - "tags": [ - "Object" - ] + "tags": ["Object"] } }, "/object/{id.id}": { @@ -136,9 +126,7 @@ "type": "string" } ], - "tags": [ - "Object" - ] + "tags": ["Object"] } } }, diff --git a/apis/swagger/v1/vald/remove.swagger.json b/apis/swagger/v1/vald/remove.swagger.json index 0d986b78bec..34695978e56 100644 --- a/apis/swagger/v1/vald/remove.swagger.json +++ b/apis/swagger/v1/vald/remove.swagger.json @@ -9,12 +9,8 @@ "name": "Remove" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/remove": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Remove" - ] + "tags": ["Remove"] } }, "/remove/multiple": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Remove" - ] + "tags": ["Remove"] } }, "/remove/timestamp": { @@ -113,9 +105,7 @@ } } ], - "tags": [ - "Remove" - ] + "tags": ["Remove"] } } }, @@ -158,14 +148,7 @@ }, "TimestampOperator": { "type": "string", - "enum": [ - "Eq", - "Ne", - "Ge", - "Gt", - "Le", - "Lt" - ], + "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\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." }, diff --git a/apis/swagger/v1/vald/search.swagger.json b/apis/swagger/v1/vald/search.swagger.json index 6e4ea465316..cf23ad1f068 100644 --- a/apis/swagger/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/search.swagger.json @@ -9,12 +9,8 @@ "name": "Search" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/linearsearch": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/linearsearch/id": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/linearsearch/id/multiple": { @@ -113,9 +105,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/linearsearch/multiple": { @@ -147,9 +137,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/search": { @@ -181,9 +169,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/search/id": { @@ -215,9 +201,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/search/id/multiple": { @@ -249,9 +233,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } }, "/search/multiple": { @@ -283,9 +265,7 @@ } } ], - "tags": [ - "Search" - ] + "tags": ["Search"] } } }, diff --git a/apis/swagger/v1/vald/update.swagger.json b/apis/swagger/v1/vald/update.swagger.json index 1833136cf99..d295febc194 100644 --- a/apis/swagger/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/update.swagger.json @@ -9,12 +9,8 @@ "name": "Update" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/update": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Update" - ] + "tags": ["Update"] } }, "/update/multiple": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Update" - ] + "tags": ["Update"] } } }, diff --git a/apis/swagger/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/upsert.swagger.json index 3f652542baf..b36801bc746 100644 --- a/apis/swagger/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/upsert.swagger.json @@ -9,12 +9,8 @@ "name": "Upsert" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/upsert": { "post": { @@ -45,9 +41,7 @@ } } ], - "tags": [ - "Upsert" - ] + "tags": ["Upsert"] } }, "/upsert/multiple": { @@ -79,9 +73,7 @@ } } ], - "tags": [ - "Upsert" - ] + "tags": ["Upsert"] } } }, diff --git a/dockers/agent/core/agent/Dockerfile b/dockers/agent/core/agent/Dockerfile index f3195dde427..c7b382436bd 100644 --- a/dockers/agent/core/agent/Dockerfile +++ b/dockers/agent/core/agent/Dockerfile @@ -39,8 +39,8 @@ ENV REPO=vald ENV RUST_HOME=/usr/loacl/lib/rust ENV TZ=Etc/UTC ENV USER=root -ENV CARGO_HOME=${RUST_HOME}/cargo ENV RUSTUP_HOME=${RUST_HOME}/rustup +ENV CARGO_HOME=${RUST_HOME}/cargo ENV PATH=${CARGO_HOME}/bin:${RUSTUP_HOME}/bin:/usr/local/bin:${PATH} WORKDIR ${HOME}/rust/src/github.com/${ORG}/${REPO} SHELL ["/bin/bash", "-o", "pipefail", "-c"] @@ -91,4 +91,4 @@ LABEL maintainer="vdaas.org vald team " COPY --from=builder /usr/bin/agent /usr/bin/agent # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/agent"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/agent"] diff --git a/dockers/agent/core/faiss/Dockerfile b/dockers/agent/core/faiss/Dockerfile index 463e13494bd..3ee7076aad1 100644 --- a/dockers/agent/core/faiss/Dockerfile +++ b/dockers/agent/core/faiss/Dockerfile @@ -93,4 +93,4 @@ COPY --from=builder /usr/bin/faiss /usr/bin/faiss COPY cmd/agent/core/faiss/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/faiss"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/faiss"] diff --git a/dockers/agent/core/ngt/Dockerfile b/dockers/agent/core/ngt/Dockerfile index cf0bbcdce2d..55b55d7e439 100644 --- a/dockers/agent/core/ngt/Dockerfile +++ b/dockers/agent/core/ngt/Dockerfile @@ -92,4 +92,4 @@ COPY --from=builder /usr/bin/ngt /usr/bin/ngt COPY cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/ngt"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/ngt"] diff --git a/dockers/agent/sidecar/Dockerfile b/dockers/agent/sidecar/Dockerfile index 2b06e565fd9..0f9c0e07604 100644 --- a/dockers/agent/sidecar/Dockerfile +++ b/dockers/agent/sidecar/Dockerfile @@ -82,4 +82,4 @@ LABEL maintainer="vdaas.org vald team " COPY --from=builder /usr/bin/sidecar /usr/bin/sidecar # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/sidecar"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/sidecar"] diff --git a/dockers/binfmt/Dockerfile b/dockers/binfmt/Dockerfile index 47284d17e2c..f2d73909bdc 100644 --- a/dockers/binfmt/Dockerfile +++ b/dockers/binfmt/Dockerfile @@ -16,4 +16,4 @@ # # DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go -FROM tonistiigi/binfmt:master AS builder \ No newline at end of file +FROM tonistiigi/binfmt:master AS builder diff --git a/dockers/buildbase/Dockerfile b/dockers/buildbase/Dockerfile index 6457b014578..301a31e0103 100644 --- a/dockers/buildbase/Dockerfile +++ b/dockers/buildbase/Dockerfile @@ -16,4 +16,4 @@ # # DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go -FROM ubuntu:devel AS builder \ No newline at end of file +FROM ubuntu:devel AS builder diff --git a/dockers/buildkit/Dockerfile b/dockers/buildkit/Dockerfile index 9dd722ea255..99c71c61e23 100644 --- a/dockers/buildkit/Dockerfile +++ b/dockers/buildkit/Dockerfile @@ -16,4 +16,4 @@ # # DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go -FROM moby/buildkit:master AS builder \ No newline at end of file +FROM moby/buildkit:master AS builder diff --git a/dockers/ci/base/Dockerfile b/dockers/ci/base/Dockerfile index 09fccb1e35e..8f3a65949f7 100644 --- a/dockers/ci/base/Dockerfile +++ b/dockers/ci/base/Dockerfile @@ -123,4 +123,4 @@ RUN --mount=type=bind,target=.,rw \ && rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* # skipcq: DOK-DL3002 USER root:root -ENTRYPOINT ["/bin/bash"] \ No newline at end of file +ENTRYPOINT ["/bin/bash"] diff --git a/dockers/dev/Dockerfile b/dockers/dev/Dockerfile index 502f386e973..53c33bb0367 100644 --- a/dockers/dev/Dockerfile +++ b/dockers/dev/Dockerfile @@ -44,8 +44,8 @@ ENV REPO=vald ENV RUST_HOME=/usr/loacl/lib/rust ENV TZ=Etc/UTC ENV USER=root -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} WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} SHELL ["/bin/bash", "-o", "pipefail", "-c"] @@ -142,4 +142,4 @@ RUN --mount=type=bind,target=.,rw \ && make faiss/install \ && rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* # skipcq: DOK-DL3002 -USER root:root \ No newline at end of file +USER root:root diff --git a/dockers/discoverer/k8s/Dockerfile b/dockers/discoverer/k8s/Dockerfile index 19e5953ee21..42d7b476f7f 100644 --- a/dockers/discoverer/k8s/Dockerfile +++ b/dockers/discoverer/k8s/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/discoverer /usr/bin/discoverer COPY cmd/discoverer/k8s/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/discoverer"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/discoverer"] diff --git a/dockers/gateway/filter/Dockerfile b/dockers/gateway/filter/Dockerfile index b523b5e5b87..bd6b3dadd3b 100644 --- a/dockers/gateway/filter/Dockerfile +++ b/dockers/gateway/filter/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/filter /usr/bin/filter COPY cmd/gateway/filter/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/filter"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/filter"] diff --git a/dockers/gateway/lb/Dockerfile b/dockers/gateway/lb/Dockerfile index 2f8c91768b0..f6c3f0b5c55 100644 --- a/dockers/gateway/lb/Dockerfile +++ b/dockers/gateway/lb/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/lb /usr/bin/lb COPY cmd/gateway/lb/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/lb"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/lb"] diff --git a/dockers/gateway/mirror/Dockerfile b/dockers/gateway/mirror/Dockerfile index 9b97231c740..f3effce23fe 100644 --- a/dockers/gateway/mirror/Dockerfile +++ b/dockers/gateway/mirror/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/mirror /usr/bin/mirror COPY cmd/gateway/mirror/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/mirror"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/mirror"] diff --git a/dockers/index/job/correction/Dockerfile b/dockers/index/job/correction/Dockerfile index 01e3818c56b..06b7642c1a5 100644 --- a/dockers/index/job/correction/Dockerfile +++ b/dockers/index/job/correction/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/index-correction /usr/bin/index-correction COPY cmd/index/job/correction/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/index-correction"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/index-correction"] diff --git a/dockers/index/job/creation/Dockerfile b/dockers/index/job/creation/Dockerfile index d656b3ad222..6ea3eda4b6d 100644 --- a/dockers/index/job/creation/Dockerfile +++ b/dockers/index/job/creation/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/index-creation /usr/bin/index-creation COPY cmd/index/job/creation/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/index-creation"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/index-creation"] diff --git a/dockers/index/job/readreplica/rotate/Dockerfile b/dockers/index/job/readreplica/rotate/Dockerfile index bdb0ec76646..432085dbb42 100644 --- a/dockers/index/job/readreplica/rotate/Dockerfile +++ b/dockers/index/job/readreplica/rotate/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/readreplica-rotate /usr/bin/readreplica-rotate COPY cmd/index/job/readreplica/rotate/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/readreplica-rotate"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/readreplica-rotate"] diff --git a/dockers/index/job/save/Dockerfile b/dockers/index/job/save/Dockerfile index fdd674abd49..1b0797a81d0 100644 --- a/dockers/index/job/save/Dockerfile +++ b/dockers/index/job/save/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/index-save /usr/bin/index-save COPY cmd/index/job/save/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/index-save"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/index-save"] diff --git a/dockers/index/operator/Dockerfile b/dockers/index/operator/Dockerfile index 23e9aae5140..c2f652283f1 100644 --- a/dockers/index/operator/Dockerfile +++ b/dockers/index/operator/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/index-operator /usr/bin/index-operator COPY cmd/index/operator/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/index-operator"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/index-operator"] diff --git a/dockers/manager/index/Dockerfile b/dockers/manager/index/Dockerfile index edecb98a6c7..8eb554a3905 100644 --- a/dockers/manager/index/Dockerfile +++ b/dockers/manager/index/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/index /usr/bin/index COPY cmd/manager/index/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/index"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/index"] diff --git a/dockers/operator/helm/Dockerfile b/dockers/operator/helm/Dockerfile index db240947906..d5edc4f6e9f 100644 --- a/dockers/operator/helm/Dockerfile +++ b/dockers/operator/helm/Dockerfile @@ -104,4 +104,4 @@ COPY --from=builder /opt/helm/charts/vald /opt/helm/charts/vald COPY --from=builder /opt/helm/charts/vald-helm-operator /opt/helm/charts/vald-helm-operator # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] diff --git a/dockers/tools/benchmark/job/Dockerfile b/dockers/tools/benchmark/job/Dockerfile index 65da31d4680..d77a1181fd1 100644 --- a/dockers/tools/benchmark/job/Dockerfile +++ b/dockers/tools/benchmark/job/Dockerfile @@ -91,4 +91,4 @@ COPY --from=builder /usr/bin/job /usr/bin/job COPY cmd/tools/benchmark/job/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/job"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/job"] diff --git a/dockers/tools/benchmark/operator/Dockerfile b/dockers/tools/benchmark/operator/Dockerfile index 283773b11ef..efe0a34e9fd 100644 --- a/dockers/tools/benchmark/operator/Dockerfile +++ b/dockers/tools/benchmark/operator/Dockerfile @@ -83,4 +83,4 @@ COPY --from=builder /usr/bin/operator /usr/bin/operator COPY cmd/tools/benchmark/operator/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/operator"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/operator"] diff --git a/dockers/tools/cli/loadtest/Dockerfile b/dockers/tools/cli/loadtest/Dockerfile index ffbea81b056..d061b486f98 100644 --- a/dockers/tools/cli/loadtest/Dockerfile +++ b/dockers/tools/cli/loadtest/Dockerfile @@ -91,4 +91,4 @@ COPY --from=builder /usr/bin/loadtest /usr/bin/loadtest COPY cmd/tools/cli/loadtest/sample.yaml /etc/server/config.yaml # skipcq: DOK-DL3002 USER nonroot:nonroot -ENTRYPOINT ["/usr/bin/loadtest"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/loadtest"] diff --git a/rust/bin/meta/Cargo.toml b/rust/bin/meta/Cargo.toml index abb129eabf4..62e4cad2104 100644 --- a/rust/bin/meta/Cargo.toml +++ b/rust/bin/meta/Cargo.toml @@ -1,3 +1,18 @@ +# +# Copyright (C) 2019-2024 vdaas.org vald team +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# [package] name = "meta" version = "0.1.0" diff --git a/rust/bin/meta/src/handler/meta.rs b/rust/bin/meta/src/handler/meta.rs index 9133b5e514e..8e5dfa58087 100644 --- a/rust/bin/meta/src/handler/meta.rs +++ b/rust/bin/meta/src/handler/meta.rs @@ -37,4 +37,4 @@ impl meta_server::Meta for super::Meta { ) -> std::result::Result, tonic::Status> { todo!() } -} \ No newline at end of file +} diff --git a/rust/bin/meta/src/main.rs b/rust/bin/meta/src/main.rs index df0c321fb39..aaa0a706cb4 100644 --- a/rust/bin/meta/src/main.rs +++ b/rust/bin/meta/src/main.rs @@ -27,4 +27,4 @@ async fn main() -> Result<(), Box> { .await?; Ok(()) -} \ No newline at end of file +} diff --git a/rust/libs/proto/src/core.v1.rs b/rust/libs/proto/src/core.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/core.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/core.v1.tonic.rs b/rust/libs/proto/src/core.v1.tonic.rs index 7a6ad21416f..f19cd43034e 100644 --- a/rust/libs/proto/src/core.v1.tonic.rs +++ b/rust/libs/proto/src/core.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod agent_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/discoverer.v1.rs b/rust/libs/proto/src/discoverer.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/discoverer.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/discoverer.v1.tonic.rs b/rust/libs/proto/src/discoverer.v1.tonic.rs index b1f9c263436..e1ca78c88a6 100644 --- a/rust/libs/proto/src/discoverer.v1.tonic.rs +++ b/rust/libs/proto/src/discoverer.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod discoverer_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/filter.egress.v1.rs b/rust/libs/proto/src/filter.egress.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/filter.egress.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/filter.egress.v1.tonic.rs b/rust/libs/proto/src/filter.egress.v1.tonic.rs index 49398de2560..74102173ce1 100644 --- a/rust/libs/proto/src/filter.egress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.egress.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/filter.ingress.v1.rs b/rust/libs/proto/src/filter.ingress.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/filter.ingress.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/filter.ingress.v1.tonic.rs b/rust/libs/proto/src/filter.ingress.v1.tonic.rs index 6bd43254719..d8b462caa17 100644 --- a/rust/libs/proto/src/filter.ingress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.ingress.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/meta.v1.rs b/rust/libs/proto/src/meta.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/meta.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/meta.v1.tonic.rs b/rust/libs/proto/src/meta.v1.tonic.rs index 24eac776052..b683ff6440a 100644 --- a/rust/libs/proto/src/meta.v1.tonic.rs +++ b/rust/libs/proto/src/meta.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod meta_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/mirror.v1.rs b/rust/libs/proto/src/mirror.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/mirror.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/mirror.v1.tonic.rs b/rust/libs/proto/src/mirror.v1.tonic.rs index 07596240d8f..fb55727a628 100644 --- a/rust/libs/proto/src/mirror.v1.tonic.rs +++ b/rust/libs/proto/src/mirror.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod mirror_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/payload.v1.rs b/rust/libs/proto/src/payload.v1.rs index a4d3ab4280f..5f8ec9eb030 100644 --- a/rust/libs/proto/src/payload.v1.rs +++ b/rust/libs/proto/src/payload.v1.rs @@ -1,6 +1,18 @@ -// @generated -// This file is @generated by prost-build. -/// Search related messages. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Search { diff --git a/rust/libs/proto/src/rpc.v1.rs b/rust/libs/proto/src/rpc.v1.rs index 9706bd6260e..3b9abf8f8be 100644 --- a/rust/libs/proto/src/rpc.v1.rs +++ b/rust/libs/proto/src/rpc.v1.rs @@ -1,29 +1,18 @@ -// @generated -// This file is @generated by prost-build. -/// Describes the cause of the error with structured details. -/// -/// Example of an error when contacting the "pubsub.googleapis.com" API when it -/// is not enabled: -/// -/// { "reason": "API_DISABLED" -/// "domain": "googleapis.com" -/// "metadata": { -/// "resource": "projects/123", -/// "service": "pubsub.googleapis.com" -/// } -/// } -/// -/// This response indicates that the pubsub.googleapis.com API is not enabled. -/// -/// Example of an error that is returned when attempting to create a Spanner -/// instance in a region that is out of stock: -/// -/// { "reason": "STOCKOUT" -/// "domain": "spanner.googleapis.com", -/// "metadata": { -/// "availableRegions": "us-central1,us-east2" -/// } -/// } +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ErrorInfo { diff --git a/rust/libs/proto/src/sidecar.v1.rs b/rust/libs/proto/src/sidecar.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/sidecar.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/sidecar.v1.tonic.rs b/rust/libs/proto/src/sidecar.v1.tonic.rs index 200569c28e3..ad7acdee150 100644 --- a/rust/libs/proto/src/sidecar.v1.tonic.rs +++ b/rust/libs/proto/src/sidecar.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod sidecar_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/rust/libs/proto/src/vald.v1.rs b/rust/libs/proto/src/vald.v1.rs deleted file mode 100644 index 8e2ac1beb99..00000000000 --- a/rust/libs/proto/src/vald.v1.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated -// @@protoc_insertion_point(module) diff --git a/rust/libs/proto/src/vald.v1.tonic.rs b/rust/libs/proto/src/vald.v1.tonic.rs index 141ee5f2957..4d287564507 100644 --- a/rust/libs/proto/src/vald.v1.tonic.rs +++ b/rust/libs/proto/src/vald.v1.tonic.rs @@ -1,5 +1,18 @@ -// @generated -/// Generated client implementations. +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*;