diff --git a/apis/grpc/v1/agent/core/agent.pb.go b/apis/grpc/v1/agent/core/agent.pb.go index 42f03029a9..1cd4bab3ab 100644 --- a/apis/grpc/v1/agent/core/agent.pb.go +++ b/apis/grpc/v1/agent/core/agent.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -80,7 +79,6 @@ 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 93f689fa9c..1fa722fa7c 100644 --- a/apis/grpc/v1/agent/core/agent_vtproto.pb.go +++ b/apis/grpc/v1/agent/core/agent_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/agent/core/agent.proto 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" ) @@ -58,9 +45,7 @@ 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 { @@ -69,9 +54,7 @@ func (c *agentClient) CreateIndex( 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 { @@ -80,9 +63,7 @@ func (c *agentClient) SaveIndex( 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 { @@ -105,21 +86,16 @@ 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() {} @@ -135,9 +111,7 @@ 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 @@ -155,9 +129,7 @@ func _Agent_CreateIndex_Handler( 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 @@ -175,9 +147,7 @@ func _Agent_SaveIndex_Handler( 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 bcaf02c7c6..b582c0e731 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar.pb.go @@ -23,10 +23,9 @@ package sidecar import ( - reflect "reflect" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" ) const ( @@ -52,16 +51,14 @@ 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{} - 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{} +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 +} 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 f60d8f002f..1051bc9ac6 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go @@ -1,18 +1,6 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/agent/sidecar/sidecar.proto package sidecar @@ -36,7 +24,8 @@ 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 @@ -54,7 +43,8 @@ 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 f95d2f8cbe..87a441ac83 100644 --- a/apis/grpc/v1/discoverer/discoverer.pb.go +++ b/apis/grpc/v1/discoverer/discoverer.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -81,7 +80,6 @@ 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 a1153195c6..89b5d3b03b 100644 --- a/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go +++ b/apis/grpc/v1/discoverer/discoverer_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/discoverer/discoverer.proto 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" ) @@ -58,9 +45,7 @@ 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 { @@ -69,9 +54,7 @@ func (c *discovererClient) Pods( 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 { @@ -80,9 +63,7 @@ func (c *discovererClient) Nodes( 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 { @@ -105,23 +86,16 @@ 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() {} @@ -137,9 +111,7 @@ 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 @@ -157,9 +129,7 @@ func _Discoverer_Pods_Handler( 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 @@ -177,9 +147,7 @@ func _Discoverer_Nodes_Handler( 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 5d60c42564..470d0cac01 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -76,7 +75,6 @@ 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 fc9d0d34e2..85960ba2f5 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// 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 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" ) @@ -56,9 +43,7 @@ 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 { @@ -67,9 +52,7 @@ func (c *filterClient) FilterDistance( 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 { @@ -90,17 +73,13 @@ 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() {} @@ -116,9 +95,7 @@ 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 @@ -136,9 +113,7 @@ func _Filter_FilterDistance_Handler( 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 4c76d06ed6..fe86dde2af 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -76,7 +75,6 @@ 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 acea57e809..215a2385e3 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// 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 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" ) @@ -56,9 +43,7 @@ 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 { @@ -67,9 +52,7 @@ func (c *filterClient) GenVector( 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 { @@ -90,17 +73,13 @@ 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() {} @@ -116,9 +95,7 @@ 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 @@ -136,9 +113,7 @@ func _Filter_GenVector_Handler( 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 86615416bf..5aaad16843 100644 --- a/apis/grpc/v1/meta/meta.pb.go +++ b/apis/grpc/v1/meta/meta.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -75,7 +74,6 @@ 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 95bc259667..bc96261d44 100644 --- a/apis/grpc/v1/meta/meta_vtproto.pb.go +++ b/apis/grpc/v1/meta/meta_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/meta/meta.proto 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" ) @@ -55,9 +42,7 @@ 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 { @@ -66,9 +51,7 @@ func (c *metaClient) Get( 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 { @@ -77,9 +60,7 @@ func (c *metaClient) Set( 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 { @@ -99,20 +80,15 @@ 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") } @@ -129,9 +105,7 @@ 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 @@ -149,9 +123,7 @@ func _Meta_Get_Handler( 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 @@ -169,9 +141,7 @@ func _Meta_Set_Handler( 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 429706e1c3..e6e682bbfd 100644 --- a/apis/grpc/v1/mirror/mirror.pb.go +++ b/apis/grpc/v1/mirror/mirror.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -65,7 +64,6 @@ 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 5b733bf39d..30bfedf5a3 100644 --- a/apis/grpc/v1/mirror/mirror_vtproto.pb.go +++ b/apis/grpc/v1/mirror/mirror_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/mirror/mirror.proto 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" ) @@ -54,9 +41,7 @@ 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 { @@ -75,11 +60,10 @@ 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() {} @@ -95,9 +79,7 @@ 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 6a20716558..2c8c950bb0 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -23,15 +23,14 @@ 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 ( @@ -718,7 +717,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() { @@ -823,7 +822,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"` } @@ -930,9 +929,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"` } @@ -1046,27 +1045,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() { @@ -1187,7 +1186,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() { @@ -1376,7 +1375,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"` } @@ -1590,9 +1589,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"` } @@ -1708,9 +1707,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() { @@ -1880,9 +1879,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"` } @@ -1996,11 +1995,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"` @@ -2180,9 +2179,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"` } @@ -2296,11 +2295,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"` @@ -2373,7 +2372,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"` } @@ -2530,7 +2529,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"` } @@ -2590,7 +2589,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() { @@ -2684,7 +2683,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"` } @@ -2742,7 +2741,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"` } @@ -2980,11 +2979,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() { @@ -3096,7 +3095,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"` } @@ -3286,7 +3285,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"` } @@ -3344,7 +3343,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"` } @@ -3490,7 +3489,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() { @@ -3894,11 +3893,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() { @@ -4002,17 +4001,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() { @@ -4103,17 +4102,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() { @@ -4197,17 +4196,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() { @@ -4291,7 +4290,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"` } @@ -4445,11 +4444,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() { @@ -4512,11 +4511,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() { @@ -4774,13 +4773,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() { @@ -4850,9 +4849,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"` } @@ -4955,39 +4954,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() { @@ -5308,40 +5307,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() { @@ -5765,7 +5764,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"` } @@ -5964,7 +5963,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"` } @@ -6775,117 +6774,115 @@ 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) - 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_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_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 9d8ade0437..53eea62782 100644 --- a/apis/grpc/v1/payload/payload.pb.json.go +++ b/apis/grpc/v1/payload/payload.pb.json.go @@ -19,7 +19,9 @@ 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 b4ecee725a..4e53dccaf8 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -1,35 +1,22 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/payload/payload.proto 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 ( @@ -2179,7 +2166,6 @@ 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 @@ -2213,7 +2199,6 @@ 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 @@ -2236,7 +2221,6 @@ 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 @@ -2270,7 +2254,6 @@ 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 @@ -2296,7 +2279,6 @@ 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 @@ -2330,7 +2312,6 @@ 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 @@ -2380,7 +2361,6 @@ 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 @@ -2417,7 +2397,6 @@ 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 @@ -2451,7 +2430,6 @@ 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 @@ -2480,10 +2458,7 @@ 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 @@ -2553,7 +2528,6 @@ 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 @@ -2576,7 +2550,6 @@ 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 @@ -2610,7 +2583,6 @@ 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 @@ -2627,7 +2599,6 @@ 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 @@ -2650,7 +2621,6 @@ 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 @@ -2684,7 +2654,6 @@ 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 @@ -2710,7 +2679,6 @@ 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 @@ -2744,7 +2712,6 @@ 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 @@ -2770,7 +2737,6 @@ 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 @@ -2787,7 +2753,6 @@ 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 @@ -2810,7 +2775,6 @@ 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 @@ -2844,7 +2808,6 @@ 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 @@ -2870,7 +2833,6 @@ 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 @@ -2904,7 +2866,6 @@ 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 @@ -2933,7 +2894,6 @@ 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 @@ -2950,7 +2910,6 @@ 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 @@ -2973,7 +2932,6 @@ 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 @@ -3007,7 +2965,6 @@ 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 @@ -3033,7 +2990,6 @@ 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 @@ -3067,7 +3023,6 @@ 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 @@ -3096,7 +3051,6 @@ 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 @@ -3113,7 +3067,6 @@ 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 @@ -3136,7 +3089,6 @@ 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 @@ -3170,7 +3122,6 @@ 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 @@ -3204,7 +3155,6 @@ 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 @@ -3227,7 +3177,6 @@ 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 @@ -3250,7 +3199,6 @@ 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 @@ -3267,7 +3215,6 @@ 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 @@ -3284,7 +3231,6 @@ 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 @@ -3301,7 +3247,6 @@ 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 @@ -3324,7 +3269,6 @@ 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 @@ -3347,7 +3291,6 @@ 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 @@ -3376,10 +3319,7 @@ 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 @@ -3452,7 +3392,6 @@ 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 @@ -3478,7 +3417,6 @@ 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 @@ -3510,7 +3448,6 @@ 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 @@ -3530,7 +3467,6 @@ 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 @@ -3553,7 +3489,6 @@ 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 @@ -3587,7 +3522,6 @@ 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 @@ -3616,7 +3550,6 @@ 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 { @@ -3699,7 +3632,6 @@ 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 @@ -3722,7 +3654,6 @@ 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 @@ -3751,7 +3682,6 @@ 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 { @@ -3837,7 +3767,6 @@ 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 @@ -3866,10 +3795,7 @@ 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 @@ -3956,7 +3882,6 @@ 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 @@ -3973,7 +3898,6 @@ 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 @@ -4002,7 +3926,6 @@ 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 { @@ -4073,7 +3996,6 @@ 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 @@ -4090,7 +4012,6 @@ 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 @@ -4110,7 +4031,6 @@ 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 @@ -4127,7 +4047,6 @@ 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 @@ -4153,7 +4072,6 @@ 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 @@ -4170,7 +4088,6 @@ 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 @@ -4199,7 +4116,6 @@ 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 @@ -4242,7 +4158,6 @@ 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 @@ -4262,7 +4177,6 @@ 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 @@ -4282,7 +4196,6 @@ 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 @@ -4299,7 +4212,6 @@ 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 @@ -4433,7 +4345,6 @@ 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 @@ -4470,7 +4381,6 @@ 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 @@ -4589,7 +4499,6 @@ 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 @@ -4626,7 +4535,6 @@ 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 @@ -4643,7 +4551,6 @@ 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 @@ -4681,7 +4588,6 @@ 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 @@ -4716,7 +4622,6 @@ 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 @@ -4771,7 +4676,6 @@ 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 @@ -4794,7 +4698,6 @@ 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 @@ -4823,7 +4726,6 @@ 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 @@ -4852,7 +4754,6 @@ 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 @@ -4878,7 +4779,6 @@ 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 @@ -4904,7 +4804,6 @@ 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 @@ -4938,7 +4837,6 @@ 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 @@ -4972,7 +4870,6 @@ 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 @@ -5006,7 +4903,6 @@ 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 @@ -5032,7 +4928,6 @@ 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 @@ -5049,7 +4944,6 @@ 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 @@ -5072,7 +4966,6 @@ 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 @@ -5106,7 +4999,6 @@ 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 @@ -5123,7 +5015,6 @@ 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 @@ -5143,7 +5034,6 @@ 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 @@ -5163,7 +5053,6 @@ 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 @@ -5186,7 +5075,6 @@ 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 @@ -5203,7 +5091,6 @@ func (this *Meta) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *Empty) EqualVT(that *Empty) bool { if this == that { return true @@ -5220,7 +5107,6 @@ 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 @@ -5784,7 +5670,6 @@ 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]) @@ -5816,7 +5701,6 @@ 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 @@ -7377,7 +7261,6 @@ 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]) @@ -7409,7 +7292,6 @@ 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 @@ -7741,7 +7623,6 @@ 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]) @@ -7773,7 +7654,6 @@ 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 @@ -7943,7 +7823,6 @@ 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]) @@ -7975,7 +7854,6 @@ 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 @@ -8093,7 +7971,6 @@ 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]) @@ -8125,7 +8002,6 @@ 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 @@ -8265,7 +8141,6 @@ 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]) @@ -8297,7 +8172,6 @@ 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 @@ -10728,7 +10602,6 @@ func (m *Search_StreamResponse_Response) SizeVT() (n int) { } return n } - func (m *Search_StreamResponse_Status) SizeVT() (n int) { if m == nil { return 0 @@ -10747,7 +10620,6 @@ func (m *Search_StreamResponse_Status) SizeVT() (n int) { } return n } - func (m *Search) SizeVT() (n int) { if m == nil { return 0 @@ -11285,7 +11157,6 @@ func (m *Object_StreamDistance_Distance) SizeVT() (n int) { } return n } - func (m *Object_StreamDistance_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11304,7 +11175,6 @@ func (m *Object_StreamDistance_Status) SizeVT() (n int) { } return n } - func (m *Object_ID) SizeVT() (n int) { if m == nil { return 0 @@ -11427,7 +11297,6 @@ func (m *Object_StreamVector_Vector) SizeVT() (n int) { } return n } - func (m *Object_StreamVector_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11446,7 +11315,6 @@ func (m *Object_StreamVector_Status) SizeVT() (n int) { } return n } - func (m *Object_ReshapeVector) SizeVT() (n int) { if m == nil { return 0 @@ -11511,7 +11379,6 @@ func (m *Object_StreamBlob_Blob) SizeVT() (n int) { } return n } - func (m *Object_StreamBlob_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11530,7 +11397,6 @@ func (m *Object_StreamBlob_Status) SizeVT() (n int) { } return n } - func (m *Object_Location) SizeVT() (n int) { if m == nil { return 0 @@ -11580,7 +11446,6 @@ func (m *Object_StreamLocation_Location) SizeVT() (n int) { } return n } - func (m *Object_StreamLocation_Status) SizeVT() (n int) { if m == nil { return 0 @@ -11599,7 +11464,6 @@ func (m *Object_StreamLocation_Status) SizeVT() (n int) { } return n } - func (m *Object_Locations) SizeVT() (n int) { if m == nil { return 0 @@ -11651,7 +11515,6 @@ 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 @@ -11670,7 +11533,6 @@ func (m *Object_List_Response_Status) SizeVT() (n int) { } return n } - func (m *Object_List) SizeVT() (n int) { if m == nil { return 0 @@ -12659,7 +12521,6 @@ func (m *Search_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12745,7 +12606,6 @@ func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12865,7 +12725,6 @@ func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12951,7 +12810,6 @@ func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13109,7 +12967,6 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13195,7 +13052,6 @@ func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13504,7 +13360,6 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_Response) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13622,7 +13477,6 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13708,7 +13562,6 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13858,7 +13711,6 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Search) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13910,7 +13762,6 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14013,7 +13864,6 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14099,7 +13949,6 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Filter) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14151,7 +14000,6 @@ func (m *Filter) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14275,7 +14123,6 @@ func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14361,7 +14208,6 @@ func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14521,7 +14367,6 @@ func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14607,7 +14452,6 @@ func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14734,7 +14578,6 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Insert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14786,7 +14629,6 @@ func (m *Insert) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14910,7 +14752,6 @@ func (m *Update_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14996,7 +14837,6 @@ func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15156,7 +14996,6 @@ func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15242,7 +15081,6 @@ func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15389,7 +15227,6 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Update) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15441,7 +15278,6 @@ func (m *Update) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15565,7 +15401,6 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15651,7 +15486,6 @@ func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15811,7 +15645,6 @@ func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -15897,7 +15730,6 @@ func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16044,7 +15876,6 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Upsert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16096,7 +15927,6 @@ func (m *Upsert) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16220,7 +16050,6 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16306,7 +16135,6 @@ func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16392,7 +16220,6 @@ func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16482,7 +16309,6 @@ func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16573,7 +16399,6 @@ func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Remove) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16625,7 +16450,6 @@ func (m *Remove) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Flush_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16677,7 +16501,6 @@ func (m *Flush_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Flush) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16729,7 +16552,6 @@ func (m *Flush) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16853,7 +16675,6 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -16948,7 +16769,6 @@ func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17098,7 +16918,6 @@ func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_ID) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17182,7 +17001,6 @@ func (m *Object_ID) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17266,7 +17084,6 @@ func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17423,7 +17240,6 @@ func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17511,7 +17327,6 @@ func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17614,7 +17429,6 @@ func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17700,7 +17514,6 @@ func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17850,7 +17663,6 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18012,7 +17824,6 @@ func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18130,7 +17941,6 @@ func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18280,7 +18090,6 @@ func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Location) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18428,7 +18237,6 @@ func (m *Object_Location) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18578,7 +18386,6 @@ func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18664,7 +18471,6 @@ func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_List_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18716,7 +18522,6 @@ 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 @@ -18866,7 +18671,6 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object_List) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18918,7 +18722,6 @@ func (m *Object_List) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Object) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -18970,7 +18773,6 @@ func (m *Object) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19041,7 +18843,6 @@ func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Control) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19093,7 +18894,6 @@ func (m *Control) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19241,7 +19041,6 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Discoverer) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19293,7 +19092,6 @@ func (m *Discoverer) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -19423,7 +19221,6 @@ 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 @@ -19642,7 +19439,6 @@ 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 @@ -19726,7 +19522,6 @@ 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 @@ -19810,7 +19605,6 @@ 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 @@ -19862,7 +19656,6 @@ 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 @@ -20633,7 +20426,6 @@ 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 @@ -20814,7 +20606,6 @@ 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 @@ -21610,7 +21401,6 @@ 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 @@ -21791,7 +21581,6 @@ func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Index) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -21843,7 +21632,6 @@ func (m *Info_Index) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22131,7 +21919,6 @@ func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Node) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22387,7 +22174,6 @@ func (m *Info_Node) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Service) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22641,7 +22427,6 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22744,7 +22529,6 @@ func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -22923,7 +22707,6 @@ func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23102,7 +22885,6 @@ func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23187,7 +22969,6 @@ func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23272,7 +23053,6 @@ func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23358,7 +23138,6 @@ func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23444,7 +23223,6 @@ func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_Services) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23530,7 +23308,6 @@ func (m *Info_Services) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23614,7 +23391,6 @@ func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Info) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23666,7 +23442,6 @@ func (m *Info) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23769,7 +23544,6 @@ func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23855,7 +23629,6 @@ func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Mirror) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23907,7 +23680,6 @@ func (m *Mirror) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -23991,7 +23763,6 @@ func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -24079,7 +23850,6 @@ func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -24203,7 +23973,6 @@ func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Meta) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -24255,7 +24024,6 @@ 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 1ca92f9554..0160459496 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -24,12 +24,11 @@ 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 ( @@ -73,14 +72,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 @@ -215,7 +214,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() { @@ -435,7 +434,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"` @@ -505,11 +504,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() { @@ -635,7 +634,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"` } @@ -696,7 +695,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 @@ -762,11 +761,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. // @@ -870,7 +869,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"` } @@ -930,7 +929,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() { @@ -1087,27 +1086,25 @@ 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) - 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) +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_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 8aad832ca9..64d4be7c52 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.json.go @@ -20,7 +20,9 @@ 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 580f165e44..908b2d21a5 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go @@ -1,31 +1,17 @@ -// -// 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. -// +// 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 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 ( @@ -354,7 +340,6 @@ func (this *ErrorInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *RetryInfo) EqualVT(that *RetryInfo) bool { if this == that { return true @@ -374,7 +359,6 @@ func (this *RetryInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *DebugInfo) EqualVT(that *DebugInfo) bool { if this == that { return true @@ -403,7 +387,6 @@ 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 @@ -426,7 +409,6 @@ 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 @@ -460,7 +442,6 @@ 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 @@ -486,7 +467,6 @@ func (this *PreconditionFailure_Violation) EqualMessageVT(thatMsg proto.Message) } return this.EqualVT(that) } - func (this *PreconditionFailure) EqualVT(that *PreconditionFailure) bool { if this == that { return true @@ -520,7 +500,6 @@ 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 @@ -543,7 +522,6 @@ 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 @@ -577,7 +555,6 @@ func (this *BadRequest) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *RequestInfo) EqualVT(that *RequestInfo) bool { if this == that { return true @@ -600,7 +577,6 @@ func (this *RequestInfo) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *ResourceInfo) EqualVT(that *ResourceInfo) bool { if this == that { return true @@ -629,7 +605,6 @@ 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 @@ -652,7 +627,6 @@ 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 @@ -686,7 +660,6 @@ func (this *Help) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } - func (this *LocalizedMessage) EqualVT(that *LocalizedMessage) bool { if this == that { return true @@ -709,7 +682,6 @@ 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 @@ -1902,7 +1874,6 @@ func (m *ErrorInfo) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *RetryInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1990,7 +1961,6 @@ func (m *RetryInfo) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *DebugInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2106,7 +2076,6 @@ func (m *DebugInfo) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *QuotaFailure_Violation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2222,7 +2191,6 @@ func (m *QuotaFailure_Violation) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *QuotaFailure) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2308,7 +2276,6 @@ func (m *QuotaFailure) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *PreconditionFailure_Violation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2456,7 +2423,6 @@ func (m *PreconditionFailure_Violation) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *PreconditionFailure) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2542,7 +2508,6 @@ func (m *PreconditionFailure) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *BadRequest_FieldViolation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2658,7 +2623,6 @@ func (m *BadRequest_FieldViolation) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *BadRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2744,7 +2708,6 @@ func (m *BadRequest) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *RequestInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2860,7 +2823,6 @@ func (m *RequestInfo) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *ResourceInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3040,7 +3002,6 @@ func (m *ResourceInfo) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Help_Link) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3156,7 +3117,6 @@ func (m *Help_Link) UnmarshalVT(dAtA []byte) error { } return nil } - func (m *Help) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3242,7 +3202,6 @@ 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 8309d71f5b..48375f9807 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -154,7 +153,6 @@ 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 54963521a7..ff90196e1a 100644 --- a/apis/grpc/v1/vald/filter_vtproto.pb.go +++ b/apis/grpc/v1/vald/filter_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/filter.proto 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" ) @@ -76,9 +63,7 @@ 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 { @@ -87,9 +72,7 @@ func (c *filterClient) SearchObject( 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 { @@ -98,9 +81,7 @@ func (c *filterClient) MultiSearchObject( 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 @@ -131,9 +112,7 @@ 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 { @@ -142,9 +121,7 @@ func (c *filterClient) InsertObject( 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 @@ -175,9 +152,7 @@ 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 { @@ -186,9 +161,7 @@ func (c *filterClient) MultiInsertObject( 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 { @@ -197,9 +170,7 @@ func (c *filterClient) UpdateObject( 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 @@ -230,9 +201,7 @@ 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 { @@ -241,9 +210,7 @@ func (c *filterClient) MultiUpdateObject( 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 { @@ -252,9 +219,7 @@ func (c *filterClient) UpsertObject( 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 @@ -285,9 +250,7 @@ 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 { @@ -328,69 +291,43 @@ 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() {} @@ -406,9 +343,7 @@ 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 @@ -426,9 +361,7 @@ func _Filter_SearchObject_Handler( 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 @@ -472,9 +405,7 @@ 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 @@ -518,9 +449,7 @@ 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 @@ -538,9 +467,7 @@ func _Filter_MultiInsertObject_Handler( 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 @@ -584,9 +511,7 @@ 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 @@ -604,9 +529,7 @@ func _Filter_MultiUpdateObject_Handler( 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 @@ -650,9 +573,7 @@ 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 282dbd0590..8e02dff1f2 100644 --- a/apis/grpc/v1/vald/flush.pb.go +++ b/apis/grpc/v1/vald/flush.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -64,7 +63,6 @@ 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 fd1978bec8..95784bf3c7 100644 --- a/apis/grpc/v1/vald/flush_vtproto.pb.go +++ b/apis/grpc/v1/vald/flush_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/flush.proto 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" ) @@ -54,9 +41,7 @@ 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 { @@ -75,11 +60,10 @@ 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() {} @@ -95,9 +79,7 @@ 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 58728f3ad6..ccd5644687 100644 --- a/apis/grpc/v1/vald/index.pb.go +++ b/apis/grpc/v1/vald/index.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -94,7 +93,6 @@ 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 e0d8f29f68..2d96883a0a 100644 --- a/apis/grpc/v1/vald/index_vtproto.pb.go +++ b/apis/grpc/v1/vald/index_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/index.proto 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" ) @@ -62,9 +49,7 @@ 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 { @@ -73,9 +58,7 @@ func (c *indexClient) IndexInfo( 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 { @@ -84,9 +67,7 @@ func (c *indexClient) IndexDetail( return out, nil } -func (c *indexClient) IndexStatistics( - ctx context.Context, in *payload.Empty, opts ...grpc.CallOption, -) (*payload.Info_Index_Statistics, error) { +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 { @@ -95,9 +76,7 @@ func (c *indexClient) IndexStatistics( 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 { @@ -106,9 +85,7 @@ func (c *indexClient) IndexStatisticsDetail( 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 { @@ -135,35 +112,22 @@ 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() {} @@ -179,9 +143,7 @@ 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 @@ -199,9 +161,7 @@ func _Index_IndexInfo_Handler( 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 @@ -219,9 +179,7 @@ func _Index_IndexDetail_Handler( return interceptor(ctx, in, info, handler) } -func _Index_IndexStatistics_Handler( - srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, -) (any, error) { +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 @@ -239,9 +197,7 @@ func _Index_IndexStatistics_Handler( 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 @@ -259,9 +215,7 @@ func _Index_IndexStatisticsDetail_Handler( 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 26f4a05fe7..90ccd45336 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -80,7 +79,6 @@ 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 4adde0acb5..a57da063f3 100644 --- a/apis/grpc/v1/vald/insert_vtproto.pb.go +++ b/apis/grpc/v1/vald/insert_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/insert.proto 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" ) @@ -58,9 +45,7 @@ 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 { @@ -69,9 +54,7 @@ func (c *insertClient) Insert( 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 @@ -102,9 +85,7 @@ 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 { @@ -127,21 +108,16 @@ 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() {} @@ -157,9 +133,7 @@ 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 @@ -203,9 +177,7 @@ 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 f911467104..cc269ba317 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -96,7 +95,6 @@ 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 1df7b6eadf..8ba9c1b4be 100644 --- a/apis/grpc/v1/vald/object_vtproto.pb.go +++ b/apis/grpc/v1/vald/object_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/object.proto 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" ) @@ -62,9 +49,7 @@ 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 { @@ -73,9 +58,7 @@ func (c *objectClient) Exists( 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 { @@ -84,9 +67,7 @@ func (c *objectClient) GetObject( 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 @@ -117,9 +98,7 @@ 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 @@ -151,9 +130,7 @@ 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 { @@ -180,33 +157,22 @@ 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() {} @@ -222,9 +188,7 @@ 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 @@ -242,9 +206,7 @@ func _Object_Exists_Handler( 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 @@ -309,9 +271,7 @@ 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 cf58d5f1eb..484cde0d22 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -88,7 +87,6 @@ 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 68219d9faa..87864c0a74 100644 --- a/apis/grpc/v1/vald/remove_vtproto.pb.go +++ b/apis/grpc/v1/vald/remove_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/remove.proto 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" ) @@ -60,9 +47,7 @@ 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 { @@ -71,9 +56,7 @@ func (c *removeClient) Remove( 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 { @@ -82,9 +65,7 @@ func (c *removeClient) RemoveByTimestamp( 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 @@ -115,9 +96,7 @@ 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 { @@ -142,27 +121,19 @@ 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() {} @@ -178,9 +149,7 @@ 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 @@ -198,9 +167,7 @@ func _Remove_Remove_Handler( 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 @@ -244,9 +211,7 @@ 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 2577281aa7..e3f5041bca 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -141,7 +140,6 @@ 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 bf69c0fbba..a20242b891 100644 --- a/apis/grpc/v1/vald/search_vtproto.pb.go +++ b/apis/grpc/v1/vald/search_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/search.proto 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" ) @@ -78,9 +65,7 @@ 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 { @@ -89,9 +74,7 @@ func (c *searchClient) Search( 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 { @@ -100,9 +83,7 @@ func (c *searchClient) SearchByID( 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 @@ -133,9 +114,7 @@ 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 @@ -166,9 +145,7 @@ 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 { @@ -177,9 +154,7 @@ func (c *searchClient) MultiSearch( 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 { @@ -188,9 +163,7 @@ func (c *searchClient) MultiSearchByID( 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 { @@ -199,9 +172,7 @@ func (c *searchClient) LinearSearch( 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 { @@ -210,9 +181,7 @@ func (c *searchClient) LinearSearchByID( 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 @@ -243,9 +212,7 @@ 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 @@ -276,9 +243,7 @@ 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 { @@ -287,9 +252,7 @@ func (c *searchClient) MultiLinearSearch( 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 { @@ -332,69 +295,43 @@ 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() {} @@ -410,9 +347,7 @@ 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 @@ -430,9 +365,7 @@ func _Search_Search_Handler( 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 @@ -502,9 +435,7 @@ 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 @@ -522,9 +453,7 @@ func _Search_MultiSearch_Handler( 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 @@ -542,9 +471,7 @@ func _Search_MultiSearchByID_Handler( 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 @@ -562,9 +489,7 @@ func _Search_LinearSearch_Handler( 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 @@ -634,9 +559,7 @@ 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 @@ -654,9 +577,7 @@ func _Search_MultiLinearSearch_Handler( 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 ad05fbe50c..8a03dc3612 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -80,7 +79,6 @@ 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 60f92fd0a8..5624ff1c72 100644 --- a/apis/grpc/v1/vald/update_vtproto.pb.go +++ b/apis/grpc/v1/vald/update_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/update.proto 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" ) @@ -58,9 +45,7 @@ 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 { @@ -69,9 +54,7 @@ func (c *updateClient) Update( 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 @@ -102,9 +85,7 @@ 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 { @@ -127,21 +108,16 @@ 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() {} @@ -157,9 +133,7 @@ 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 @@ -203,9 +177,7 @@ 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 3c1a741dc1..f0655def9f 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -23,12 +23,11 @@ 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 ( @@ -80,7 +79,6 @@ 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 1a28a9461a..0d2456664c 100644 --- a/apis/grpc/v1/vald/upsert_vtproto.pb.go +++ b/apis/grpc/v1/vald/upsert_vtproto.pb.go @@ -1,28 +1,15 @@ -// -// 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. -// +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: v1/vald/upsert.proto 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" ) @@ -58,9 +45,7 @@ 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 { @@ -69,9 +54,7 @@ func (c *upsertClient) Upsert( 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 @@ -102,9 +85,7 @@ 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 { @@ -127,21 +108,16 @@ 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() {} @@ -157,9 +133,7 @@ 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 @@ -203,9 +177,7 @@ 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 2abce5f222..348f6104a9 100644 --- a/apis/swagger/v1/agent/core/agent.swagger.json +++ b/apis/swagger/v1/agent/core/agent.swagger.json @@ -9,8 +9,12 @@ "name": "Agent" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/index/create/{poolSize}": { "get": { @@ -40,7 +44,9 @@ "format": "int64" } ], - "tags": ["Agent"] + "tags": [ + "Agent" + ] } }, "/index/createandsave/{poolSize}": { @@ -71,7 +77,9 @@ "format": "int64" } ], - "tags": ["Agent"] + "tags": [ + "Agent" + ] } }, "/index/save": { @@ -92,7 +100,9 @@ } } }, - "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 c3f84e0170..44f053bf42 100644 --- a/apis/swagger/v1/agent/sidecar/sidecar.swagger.json +++ b/apis/swagger/v1/agent/sidecar/sidecar.swagger.json @@ -4,8 +4,12 @@ "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 915d82ab71..7f07c1682f 100644 --- a/apis/swagger/v1/discoverer/discoverer.swagger.json +++ b/apis/swagger/v1/discoverer/discoverer.swagger.json @@ -9,8 +9,12 @@ "name": "Discoverer" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/discover/nodes": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Discoverer"] + "tags": [ + "Discoverer" + ] } }, "/discover/pods": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Discoverer"] + "tags": [ + "Discoverer" + ] } }, "/discover/services": { @@ -105,7 +113,9 @@ } } ], - "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 395887d8e2..ba5c530883 100644 --- a/apis/swagger/v1/filter/egress/egress_filter.swagger.json +++ b/apis/swagger/v1/filter/egress/egress_filter.swagger.json @@ -9,8 +9,12 @@ "name": "Filter" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/filter/egress/distance": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/filter/egress/vector": { @@ -73,7 +79,9 @@ } } ], - "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 ae3504a56b..f2246ac31e 100644 --- a/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json +++ b/apis/swagger/v1/filter/ingress/ingress_filter.swagger.json @@ -9,8 +9,12 @@ "name": "Filter" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/filter/ingress/object": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/filter/ingress/vector": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } } }, diff --git a/apis/swagger/v1/meta/meta.swagger.json b/apis/swagger/v1/meta/meta.swagger.json index 8e4abca715..57d0b45d02 100644 --- a/apis/swagger/v1/meta/meta.swagger.json +++ b/apis/swagger/v1/meta/meta.swagger.json @@ -9,8 +9,12 @@ "name": "Meta" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/meta": { "post": { @@ -39,7 +43,9 @@ } } ], - "tags": ["Meta"] + "tags": [ + "Meta" + ] } }, "/meta/{key}": { @@ -67,7 +73,9 @@ "type": "string" } ], - "tags": ["Meta"] + "tags": [ + "Meta" + ] }, "delete": { "operationId": "Meta_Delete", @@ -93,7 +101,9 @@ "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 8c2fea2bb4..b6e9f730f4 100644 --- a/apis/swagger/v1/mirror/mirror.swagger.json +++ b/apis/swagger/v1/mirror/mirror.swagger.json @@ -9,8 +9,12 @@ "name": "Mirror" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/mirror/register": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Mirror"] + "tags": [ + "Mirror" + ] } } }, diff --git a/apis/swagger/v1/payload/payload.swagger.json b/apis/swagger/v1/payload/payload.swagger.json index 345c401edd..4ffae36b59 100644 --- a/apis/swagger/v1/payload/payload.swagger.json +++ b/apis/swagger/v1/payload/payload.swagger.json @@ -4,8 +4,12 @@ "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 50d969b871..584f874c3c 100644 --- a/apis/swagger/v1/rpc/errdetails/error_details.swagger.json +++ b/apis/swagger/v1/rpc/errdetails/error_details.swagger.json @@ -4,8 +4,12 @@ "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 ddf4c886eb..ed04c8a532 100644 --- a/apis/swagger/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/filter.swagger.json @@ -9,8 +9,12 @@ "name": "Filter" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/insert/object": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/insert/object/multiple": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/search/object": { @@ -105,7 +113,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/search/object/multiple": { @@ -137,7 +147,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/update/object": { @@ -169,7 +181,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/update/object/multiple": { @@ -201,7 +215,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/upsert/object": { @@ -233,7 +249,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } }, "/upsert/object/multiple": { @@ -265,7 +283,9 @@ } } ], - "tags": ["Filter"] + "tags": [ + "Filter" + ] } } }, diff --git a/apis/swagger/v1/vald/flush.swagger.json b/apis/swagger/v1/vald/flush.swagger.json index a42ecf0c42..7588fc4c36 100644 --- a/apis/swagger/v1/vald/flush.swagger.json +++ b/apis/swagger/v1/vald/flush.swagger.json @@ -9,8 +9,12 @@ "name": "Flush" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/flush": { "delete": { @@ -30,7 +34,9 @@ } } }, - "tags": ["Flush"] + "tags": [ + "Flush" + ] } } }, diff --git a/apis/swagger/v1/vald/index.swagger.json b/apis/swagger/v1/vald/index.swagger.json index b8032366d5..37aa4129d4 100644 --- a/apis/swagger/v1/vald/index.swagger.json +++ b/apis/swagger/v1/vald/index.swagger.json @@ -9,8 +9,12 @@ "name": "Index" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/index/detail": { "get": { @@ -30,7 +34,9 @@ } } }, - "tags": ["Index"] + "tags": [ + "Index" + ] } }, "/index/info": { @@ -51,7 +57,9 @@ } } }, - "tags": ["Index"] + "tags": [ + "Index" + ] } }, "/index/property": { @@ -72,7 +80,9 @@ } } }, - "tags": ["Index"] + "tags": [ + "Index" + ] } }, "/index/statistics": { @@ -93,7 +103,9 @@ } } }, - "tags": ["Index"] + "tags": [ + "Index" + ] } }, "/index/statistics/detail": { @@ -114,7 +126,9 @@ } } }, - "tags": ["Index"] + "tags": [ + "Index" + ] } } }, diff --git a/apis/swagger/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/insert.swagger.json index 6b76719382..74346dc2c7 100644 --- a/apis/swagger/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/insert.swagger.json @@ -9,8 +9,12 @@ "name": "Insert" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/insert": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Insert"] + "tags": [ + "Insert" + ] } }, "/insert/multiple": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Insert"] + "tags": [ + "Insert" + ] } } }, diff --git a/apis/swagger/v1/vald/object.swagger.json b/apis/swagger/v1/vald/object.swagger.json index 263808e6d3..b5f50062bc 100644 --- a/apis/swagger/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/object.swagger.json @@ -9,8 +9,12 @@ "name": "Object" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/exists/{id}": { "get": { @@ -38,7 +42,9 @@ "type": "string" } ], - "tags": ["Object"] + "tags": [ + "Object" + ] } }, "/object/list": { @@ -68,7 +74,9 @@ } } }, - "tags": ["Object"] + "tags": [ + "Object" + ] } }, "/object/meta/{id.id}": { @@ -97,7 +105,9 @@ "type": "string" } ], - "tags": ["Object"] + "tags": [ + "Object" + ] } }, "/object/{id.id}": { @@ -126,7 +136,9 @@ "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 34695978e5..0d986b78be 100644 --- a/apis/swagger/v1/vald/remove.swagger.json +++ b/apis/swagger/v1/vald/remove.swagger.json @@ -9,8 +9,12 @@ "name": "Remove" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/remove": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Remove"] + "tags": [ + "Remove" + ] } }, "/remove/multiple": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Remove"] + "tags": [ + "Remove" + ] } }, "/remove/timestamp": { @@ -105,7 +113,9 @@ } } ], - "tags": ["Remove"] + "tags": [ + "Remove" + ] } } }, @@ -148,7 +158,14 @@ }, "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 cf23ad1f06..6e4ea46531 100644 --- a/apis/swagger/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/search.swagger.json @@ -9,8 +9,12 @@ "name": "Search" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/linearsearch": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/linearsearch/id": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/linearsearch/id/multiple": { @@ -105,7 +113,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/linearsearch/multiple": { @@ -137,7 +147,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/search": { @@ -169,7 +181,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/search/id": { @@ -201,7 +215,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/search/id/multiple": { @@ -233,7 +249,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } }, "/search/multiple": { @@ -265,7 +283,9 @@ } } ], - "tags": ["Search"] + "tags": [ + "Search" + ] } } }, diff --git a/apis/swagger/v1/vald/update.swagger.json b/apis/swagger/v1/vald/update.swagger.json index d295febc19..1833136cf9 100644 --- a/apis/swagger/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/update.swagger.json @@ -9,8 +9,12 @@ "name": "Update" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/update": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Update"] + "tags": [ + "Update" + ] } }, "/update/multiple": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Update"] + "tags": [ + "Update" + ] } } }, diff --git a/apis/swagger/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/upsert.swagger.json index b36801bc74..3f652542ba 100644 --- a/apis/swagger/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/upsert.swagger.json @@ -9,8 +9,12 @@ "name": "Upsert" } ], - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "paths": { "/upsert": { "post": { @@ -41,7 +45,9 @@ } } ], - "tags": ["Upsert"] + "tags": [ + "Upsert" + ] } }, "/upsert/multiple": { @@ -73,7 +79,9 @@ } } ], - "tags": ["Upsert"] + "tags": [ + "Upsert" + ] } } }, diff --git a/dockers/agent/core/agent/Dockerfile b/dockers/agent/core/agent/Dockerfile index c7b382436b..f3195dde42 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 RUSTUP_HOME=${RUST_HOME}/rustup ENV CARGO_HOME=${RUST_HOME}/cargo +ENV RUSTUP_HOME=${RUST_HOME}/rustup 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"] +ENTRYPOINT ["/usr/bin/agent"] \ No newline at end of file diff --git a/dockers/agent/core/faiss/Dockerfile b/dockers/agent/core/faiss/Dockerfile index 3ee7076aad..463e13494b 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"] +ENTRYPOINT ["/usr/bin/faiss"] \ No newline at end of file diff --git a/dockers/agent/core/ngt/Dockerfile b/dockers/agent/core/ngt/Dockerfile index 55b55d7e43..cf0bbcdce2 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"] +ENTRYPOINT ["/usr/bin/ngt"] \ No newline at end of file diff --git a/dockers/agent/sidecar/Dockerfile b/dockers/agent/sidecar/Dockerfile index 0f9c0e0760..2b06e565fd 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"] +ENTRYPOINT ["/usr/bin/sidecar"] \ No newline at end of file diff --git a/dockers/binfmt/Dockerfile b/dockers/binfmt/Dockerfile index f2d73909bd..47284d17e2 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 +FROM tonistiigi/binfmt:master AS builder \ No newline at end of file diff --git a/dockers/buildbase/Dockerfile b/dockers/buildbase/Dockerfile index 301a31e010..6457b01457 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 +FROM ubuntu:devel AS builder \ No newline at end of file diff --git a/dockers/buildkit/Dockerfile b/dockers/buildkit/Dockerfile index 99c71c61e2..9dd722ea25 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 +FROM moby/buildkit:master AS builder \ No newline at end of file diff --git a/dockers/ci/base/Dockerfile b/dockers/ci/base/Dockerfile index 8f3a65949f..09fccb1e35 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"] +ENTRYPOINT ["/bin/bash"] \ No newline at end of file diff --git a/dockers/dev/Dockerfile b/dockers/dev/Dockerfile index 53c33bb036..502f386e97 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 RUSTUP_HOME=${RUST_HOME}/rustup ENV CARGO_HOME=${RUST_HOME}/cargo +ENV RUSTUP_HOME=${RUST_HOME}/rustup 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 +USER root:root \ No newline at end of file diff --git a/dockers/discoverer/k8s/Dockerfile b/dockers/discoverer/k8s/Dockerfile index 42d7b476f7..19e5953ee2 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"] +ENTRYPOINT ["/usr/bin/discoverer"] \ No newline at end of file diff --git a/dockers/gateway/filter/Dockerfile b/dockers/gateway/filter/Dockerfile index bd6b3dadd3..b523b5e5b8 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"] +ENTRYPOINT ["/usr/bin/filter"] \ No newline at end of file diff --git a/dockers/gateway/lb/Dockerfile b/dockers/gateway/lb/Dockerfile index f6c3f0b5c5..2f8c91768b 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"] +ENTRYPOINT ["/usr/bin/lb"] \ No newline at end of file diff --git a/dockers/gateway/mirror/Dockerfile b/dockers/gateway/mirror/Dockerfile index f3effce23f..9b97231c74 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"] +ENTRYPOINT ["/usr/bin/mirror"] \ No newline at end of file diff --git a/dockers/index/job/correction/Dockerfile b/dockers/index/job/correction/Dockerfile index 06b7642c1a..01e3818c56 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"] +ENTRYPOINT ["/usr/bin/index-correction"] \ No newline at end of file diff --git a/dockers/index/job/creation/Dockerfile b/dockers/index/job/creation/Dockerfile index 6ea3eda4b6..d656b3ad22 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"] +ENTRYPOINT ["/usr/bin/index-creation"] \ No newline at end of file diff --git a/dockers/index/job/readreplica/rotate/Dockerfile b/dockers/index/job/readreplica/rotate/Dockerfile index 432085dbb4..bdb0ec7664 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"] +ENTRYPOINT ["/usr/bin/readreplica-rotate"] \ No newline at end of file diff --git a/dockers/index/job/save/Dockerfile b/dockers/index/job/save/Dockerfile index 1b0797a81d..fdd674abd4 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"] +ENTRYPOINT ["/usr/bin/index-save"] \ No newline at end of file diff --git a/dockers/index/operator/Dockerfile b/dockers/index/operator/Dockerfile index c2f652283f..23e9aae514 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"] +ENTRYPOINT ["/usr/bin/index-operator"] \ No newline at end of file diff --git a/dockers/manager/index/Dockerfile b/dockers/manager/index/Dockerfile index 8eb554a390..edecb98a6c 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"] +ENTRYPOINT ["/usr/bin/index"] \ No newline at end of file diff --git a/dockers/operator/helm/Dockerfile b/dockers/operator/helm/Dockerfile index d5edc4f6e9..db24094790 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"] +ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] \ No newline at end of file diff --git a/dockers/tools/benchmark/job/Dockerfile b/dockers/tools/benchmark/job/Dockerfile index d77a1181fd..65da31d468 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"] +ENTRYPOINT ["/usr/bin/job"] \ No newline at end of file diff --git a/dockers/tools/benchmark/operator/Dockerfile b/dockers/tools/benchmark/operator/Dockerfile index efe0a34e9f..283773b11e 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"] +ENTRYPOINT ["/usr/bin/operator"] \ No newline at end of file diff --git a/dockers/tools/cli/loadtest/Dockerfile b/dockers/tools/cli/loadtest/Dockerfile index d061b486f9..ffbea81b05 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"] +ENTRYPOINT ["/usr/bin/loadtest"] \ No newline at end of file diff --git a/rust/bin/meta/Cargo.toml b/rust/bin/meta/Cargo.toml index 62e4cad210..abb129eabf 100644 --- a/rust/bin/meta/Cargo.toml +++ b/rust/bin/meta/Cargo.toml @@ -1,18 +1,3 @@ -# -# 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 8e5dfa5808..9133b5e514 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 aaa0a706cb..df0c321fb3 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/core.v1.rs @@ -0,0 +1,2 @@ +// @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 f19cd43034..7a6ad21416 100644 --- a/rust/libs/proto/src/core.v1.tonic.rs +++ b/rust/libs/proto/src/core.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/discoverer.v1.rs @@ -0,0 +1,2 @@ +// @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 e1ca78c88a..b1f9c26343 100644 --- a/rust/libs/proto/src/discoverer.v1.tonic.rs +++ b/rust/libs/proto/src/discoverer.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/filter.egress.v1.rs @@ -0,0 +1,2 @@ +// @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 74102173ce..49398de256 100644 --- a/rust/libs/proto/src/filter.egress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.egress.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/filter.ingress.v1.rs @@ -0,0 +1,2 @@ +// @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 d8b462caa1..6bd4325471 100644 --- a/rust/libs/proto/src/filter.ingress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.ingress.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/meta.v1.rs @@ -0,0 +1,2 @@ +// @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 b683ff6440..24eac77605 100644 --- a/rust/libs/proto/src/meta.v1.tonic.rs +++ b/rust/libs/proto/src/meta.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/mirror.v1.rs @@ -0,0 +1,2 @@ +// @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 fb55727a62..07596240d8 100644 --- a/rust/libs/proto/src/mirror.v1.tonic.rs +++ b/rust/libs/proto/src/mirror.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 5f8ec9eb03..a4d3ab4280 100644 --- a/rust/libs/proto/src/payload.v1.rs +++ b/rust/libs/proto/src/payload.v1.rs @@ -1,18 +1,6 @@ -// -// 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. -// +// @generated +// This file is @generated by prost-build. +/// Search related messages. #[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 3b9abf8f8b..9706bd6260 100644 --- a/rust/libs/proto/src/rpc.v1.rs +++ b/rust/libs/proto/src/rpc.v1.rs @@ -1,18 +1,29 @@ -// -// 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. -// +// @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" +/// } +/// } #[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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/sidecar.v1.rs @@ -0,0 +1,2 @@ +// @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 ad7acdee15..200569c28e 100644 --- a/rust/libs/proto/src/sidecar.v1.tonic.rs +++ b/rust/libs/proto/src/sidecar.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. 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 new file mode 100644 index 0000000000..8e2ac1beb9 --- /dev/null +++ b/rust/libs/proto/src/vald.v1.rs @@ -0,0 +1,2 @@ +// @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 4d28756450..141ee5f295 100644 --- a/rust/libs/proto/src/vald.v1.tonic.rs +++ b/rust/libs/proto/src/vald.v1.tonic.rs @@ -1,18 +1,5 @@ -// -// 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. -// +// @generated +/// Generated client implementations. pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*;