diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index d97ade97dde..76a30444c93 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -102,6 +102,10 @@ - [Object.IDs](#payload.v1.Object.IDs) - [Object.Location](#payload.v1.Object.Location) - [Object.Locations](#payload.v1.Object.Locations) + - [Object.StreamBlob](#payload.v1.Object.StreamBlob) + - [Object.StreamDistance](#payload.v1.Object.StreamDistance) + - [Object.StreamLocation](#payload.v1.Object.StreamLocation) + - [Object.StreamVector](#payload.v1.Object.StreamVector) - [Object.Vector](#payload.v1.Object.Vector) - [Object.Vectors](#payload.v1.Object.Vectors) - [Remove](#payload.v1.Remove) @@ -121,6 +125,7 @@ - [Search.Request](#payload.v1.Search.Request) - [Search.Response](#payload.v1.Search.Response) - [Search.Responses](#payload.v1.Search.Responses) + - [Search.StreamResponse](#payload.v1.Search.StreamResponse) - [Update](#payload.v1.Update) - [Update.Config](#payload.v1.Update.Config) - [Update.MultiRequest](#payload.v1.Update.MultiRequest) @@ -304,7 +309,7 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Filter | [.payload.v1.Object.Distance](#payload.v1.Object.Distance) | [.payload.v1.Object.Distance](#payload.v1.Object.Distance) | | -| StreamFilter | [.payload.v1.Object.Distance](#payload.v1.Object.Distance) stream | [.payload.v1.Object.Distance](#payload.v1.Object.Distance) stream | | +| StreamFilter | [.payload.v1.Object.Distance](#payload.v1.Object.Distance) stream | [.payload.v1.Object.StreamDistance](#payload.v1.Object.StreamDistance) stream | | @@ -331,9 +336,9 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | GenVector | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) | | -| StreamGenVector | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) stream | | +| StreamGenVector | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.StreamVector](#payload.v1.Object.StreamVector) stream | | | FilterVector | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) | | -| StreamFilterVector | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) stream | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) stream | | +| StreamFilterVector | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) stream | [.payload.v1.Object.StreamVector](#payload.v1.Object.StreamVector) stream | | @@ -1383,6 +1388,70 @@ + + +### Object.StreamBlob + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| blob | [Object.Blob](#payload.v1.Object.Blob) | | | +| error | [errors.v1.Errors.RPC](#errors.v1.Errors.RPC) | | | + + + + + + + + +### Object.StreamDistance + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| distance | [Object.Distance](#payload.v1.Object.Distance) | | | +| error | [errors.v1.Errors.RPC](#errors.v1.Errors.RPC) | | | + + + + + + + + +### Object.StreamLocation + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| location | [Object.Location](#payload.v1.Object.Location) | | | +| error | [errors.v1.Errors.RPC](#errors.v1.Errors.RPC) | | | + + + + + + + + +### Object.StreamVector + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| vector | [Object.Vector](#payload.v1.Object.Vector) | | | +| error | [errors.v1.Errors.RPC](#errors.v1.Errors.RPC) | | | + + + + + + ### Object.Vector @@ -1667,6 +1736,22 @@ + + +### Search.StreamResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| response | [Search.Response](#payload.v1.Search.Response) | | | +| error | [errors.v1.Errors.RPC](#errors.v1.Errors.RPC) | | | + + + + + + ### Update @@ -1811,15 +1896,15 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | SearchObject | [.payload.v1.Search.ObjectRequest](#payload.v1.Search.ObjectRequest) | [.payload.v1.Search.Response](#payload.v1.Search.Response) | | -| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload.v1.Search.ObjectRequest) stream | [.payload.v1.Search.Response](#payload.v1.Search.Response) stream | | +| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload.v1.Search.ObjectRequest) stream | [.payload.v1.Search.StreamResponse](#payload.v1.Search.StreamResponse) stream | | | InsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamInsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamInsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiInsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | | UpdateObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamUpdateObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamUpdateObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiUpdateObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | | UpsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamUpsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamUpsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiUpsertObject | [.payload.v1.Object.Blob](#payload.v1.Object.Blob) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | @@ -1847,7 +1932,7 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Insert | [.payload.v1.Insert.Request](#payload.v1.Insert.Request) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamInsert | [.payload.v1.Insert.Request](#payload.v1.Insert.Request) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamInsert | [.payload.v1.Insert.Request](#payload.v1.Insert.Request) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiInsert | [.payload.v1.Insert.MultiRequest](#payload.v1.Insert.MultiRequest) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | @@ -1876,7 +1961,7 @@ | ----------- | ------------ | ------------- | ------------| | Exists | [.payload.v1.Object.ID](#payload.v1.Object.ID) | [.payload.v1.Object.ID](#payload.v1.Object.ID) | | | GetObject | [.payload.v1.Object.ID](#payload.v1.Object.ID) | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) | | -| StreamGetObject | [.payload.v1.Object.ID](#payload.v1.Object.ID) stream | [.payload.v1.Object.Vector](#payload.v1.Object.Vector) stream | | +| StreamGetObject | [.payload.v1.Object.ID](#payload.v1.Object.ID) stream | [.payload.v1.Object.StreamVector](#payload.v1.Object.StreamVector) stream | | @@ -1903,7 +1988,7 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Remove | [.payload.v1.Remove.Request](#payload.v1.Remove.Request) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamRemove | [.payload.v1.Remove.Request](#payload.v1.Remove.Request) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamRemove | [.payload.v1.Remove.Request](#payload.v1.Remove.Request) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiRemove | [.payload.v1.Remove.MultiRequest](#payload.v1.Remove.MultiRequest) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | @@ -1932,8 +2017,8 @@ | ----------- | ------------ | ------------- | ------------| | Search | [.payload.v1.Search.Request](#payload.v1.Search.Request) | [.payload.v1.Search.Response](#payload.v1.Search.Response) | | | SearchByID | [.payload.v1.Search.IDRequest](#payload.v1.Search.IDRequest) | [.payload.v1.Search.Response](#payload.v1.Search.Response) | | -| StreamSearch | [.payload.v1.Search.Request](#payload.v1.Search.Request) stream | [.payload.v1.Search.Response](#payload.v1.Search.Response) stream | | -| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload.v1.Search.IDRequest) stream | [.payload.v1.Search.Response](#payload.v1.Search.Response) stream | | +| StreamSearch | [.payload.v1.Search.Request](#payload.v1.Search.Request) stream | [.payload.v1.Search.StreamResponse](#payload.v1.Search.StreamResponse) stream | | +| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload.v1.Search.IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload.v1.Search.StreamResponse) stream | | | MultiSearch | [.payload.v1.Search.MultiRequest](#payload.v1.Search.MultiRequest) | [.payload.v1.Search.Responses](#payload.v1.Search.Responses) | | | MultiSearchByID | [.payload.v1.Search.MultiIDRequest](#payload.v1.Search.MultiIDRequest) | [.payload.v1.Search.Responses](#payload.v1.Search.Responses) | | @@ -1962,7 +2047,7 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Update | [.payload.v1.Update.Request](#payload.v1.Update.Request) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamUpdate | [.payload.v1.Update.Request](#payload.v1.Update.Request) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamUpdate | [.payload.v1.Update.Request](#payload.v1.Update.Request) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiUpdate | [.payload.v1.Update.MultiRequest](#payload.v1.Update.MultiRequest) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | @@ -1990,7 +2075,7 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Upsert | [.payload.v1.Upsert.Request](#payload.v1.Upsert.Request) | [.payload.v1.Object.Location](#payload.v1.Object.Location) | | -| StreamUpsert | [.payload.v1.Upsert.Request](#payload.v1.Upsert.Request) stream | [.payload.v1.Object.Location](#payload.v1.Object.Location) stream | | +| StreamUpsert | [.payload.v1.Upsert.Request](#payload.v1.Upsert.Request) stream | [.payload.v1.Object.StreamLocation](#payload.v1.Object.StreamLocation) stream | | | MultiUpsert | [.payload.v1.Upsert.MultiRequest](#payload.v1.Upsert.MultiRequest) | [.payload.v1.Object.Locations](#payload.v1.Object.Locations) | | diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 5b02edbad15..be85d0831c7 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -44,22 +44,22 @@ func init() { } var fileDescriptor_7f3e67472eb32d70 = []byte{ - // 226 bytes of a gzipped FileDescriptorProto + // 234 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0x2c, 0xc8, 0x2c, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x33, 0xd4, 0x4f, 0xcb, 0xcc, 0x29, 0x49, 0x2d, 0xd2, 0x4f, 0x4d, 0x2f, 0x4a, 0x2d, 0x2e, 0x86, 0x52, 0xf1, 0x10, 0x41, 0x3d, 0xb0, 0x22, 0x21, 0x01, 0x28, 0x0f, 0x22, 0xa7, 0x57, 0x66, 0x28, 0xa5, 0x8c, 0x6a, 0x44, 0x41, 0x62, 0x65, 0x4e, - 0x7e, 0x62, 0x0a, 0x8c, 0x86, 0x68, 0x33, 0x5a, 0xc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c, 0x45, + 0x2c, 0x92, 0x10, 0xdd, 0x08, 0x13, 0x35, 0x18, 0x0d, 0x18, 0x9d, 0xca, 0x4f, 0x3c, 0x92, 0x63, + 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0x46, 0x2e, 0xe5, 0xfc, 0xa2, 0x74, 0xbd, 0xb2, + 0x94, 0xc4, 0xc4, 0x62, 0xbd, 0xb2, 0xc4, 0x9c, 0x14, 0xbd, 0xc4, 0x82, 0x4c, 0x90, 0x01, 0x28, + 0xe1, 0xe0, 0x24, 0x10, 0x96, 0x98, 0x93, 0x82, 0xec, 0xc1, 0x00, 0xc6, 0x28, 0x83, 0xf4, 0xcc, + 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x7e, 0x7d, 0x90, 0x7e, 0x48, 0x88, + 0xa7, 0x17, 0x15, 0x24, 0x63, 0x04, 0x78, 0x12, 0x1b, 0x38, 0xb0, 0x8c, 0x01, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xa8, 0x1c, 0xb4, 0x48, 0x96, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -106,7 +106,7 @@ func (c *egressFilterClient) StreamFilter(ctx context.Context, opts ...grpc.Call type EgressFilter_StreamFilterClient interface { Send(*payload.Object_Distance) error - Recv() (*payload.Object_Distance, error) + Recv() (*payload.Object_StreamDistance, error) grpc.ClientStream } @@ -118,8 +118,8 @@ func (x *egressFilterStreamFilterClient) Send(m *payload.Object_Distance) error return x.ClientStream.SendMsg(m) } -func (x *egressFilterStreamFilterClient) Recv() (*payload.Object_Distance, error) { - m := new(payload.Object_Distance) +func (x *egressFilterStreamFilterClient) Recv() (*payload.Object_StreamDistance, error) { + m := new(payload.Object_StreamDistance) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -170,7 +170,7 @@ func _EgressFilter_StreamFilter_Handler(srv interface{}, stream grpc.ServerStrea } type EgressFilter_StreamFilterServer interface { - Send(*payload.Object_Distance) error + Send(*payload.Object_StreamDistance) error Recv() (*payload.Object_Distance, error) grpc.ServerStream } @@ -179,7 +179,7 @@ type egressFilterStreamFilterServer struct { grpc.ServerStream } -func (x *egressFilterStreamFilterServer) Send(m *payload.Object_Distance) error { +func (x *egressFilterStreamFilterServer) Send(m *payload.Object_StreamDistance) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go index e691b7aedc8..003712db027 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -45,27 +45,27 @@ func init() { } var fileDescriptor_8b82e91ce4fe335b = []byte{ - // 305 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x4b, 0x43, 0x31, - 0x14, 0x85, 0x4d, 0x07, 0xc5, 0x50, 0x91, 0x66, 0x11, 0x8b, 0x74, 0xa8, 0x0e, 0xe2, 0x90, 0xf8, - 0x74, 0x73, 0xec, 0xa0, 0x88, 0x83, 0x85, 0x42, 0x11, 0x17, 0xb9, 0xef, 0xbd, 0x18, 0x23, 0xe9, - 0xbb, 0x21, 0x2f, 0x06, 0x74, 0xf4, 0x2f, 0xf8, 0xa7, 0x1c, 0x05, 0x67, 0x41, 0x8a, 0x3f, 0x44, - 0x9a, 0xb4, 0xc3, 0x43, 0x05, 0x41, 0xa7, 0x4b, 0xee, 0xc9, 0xf9, 0x38, 0x70, 0x2e, 0xcd, 0xc0, - 0xea, 0x5a, 0x58, 0x87, 0x1e, 0x45, 0xc8, 0xc4, 0xb5, 0x36, 0x5e, 0x3a, 0xa1, 0x2b, 0xe5, 0x64, - 0x5d, 0x2f, 0xe6, 0x55, 0x5a, 0xf3, 0xf8, 0x8d, 0x75, 0xe6, 0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0x15, 0x1f, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x06, 0x3e, 0x7c, 0x2a, 0x6d, 0x02, 0x00, - 0x00, + // 312 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4a, 0x04, 0x31, + 0x10, 0x86, 0xcd, 0x15, 0x8a, 0xe1, 0x44, 0x2e, 0x8d, 0x78, 0xc8, 0x09, 0xa7, 0x85, 0x58, 0x24, + 0xae, 0x76, 0x96, 0x57, 0x28, 0x56, 0x2a, 0x07, 0x87, 0xd8, 0xc8, 0xec, 0x6e, 0x5c, 0x23, 0xb9, + 0x9d, 0x90, 0x8d, 0x01, 0x2d, 0x7d, 0x05, 0x5f, 0xca, 0x52, 0xf0, 0x05, 0xe4, 0xb0, 0xf1, 0x2d, + 0xe4, 0x92, 0xbd, 0x62, 0xf1, 0x84, 0xad, 0x86, 0xcc, 0x9f, 0xff, 0x9b, 0x1f, 0x66, 0x68, 0x02, + 0x46, 0x55, 0xc2, 0x58, 0x74, 0x28, 0x7c, 0x22, 0xee, 0x95, 0x76, 0xd2, 0x0a, 0x55, 0x16, 0x56, + 0x56, 0xd5, 0xa2, 0xde, 0xc5, 0x36, 0x0f, 0xdf, 0x58, 0xaf, 0x7e, 0xd5, 0x22, 0xf7, 0x49, 0x7f, + 0xaf, 0x49, 0x31, 0xf0, 0xac, 0x11, 0xf2, 0x45, 0x8d, 0xbe, 0xfe, 0x4e, 0x81, 0x58, 0x68, 0x29, + 0xc0, 0x28, 0x01, 0x65, 0x89, 0x0e, 0x9c, 0xc2, 0xb2, 0x8a, 0xea, 0xf1, 0x4f, 0x87, 0x6e, 0x5c, + 0x44, 0xe2, 0x59, 0xe0, 0xb3, 0x31, 0x5d, 0x3f, 0x97, 0xe5, 0x44, 0x66, 0x0e, 0x2d, 0xdb, 0xe2, + 0x0b, 0x98, 0x4f, 0xf8, 0x65, 0xfa, 0x28, 0x33, 0xc7, 0x47, 0x1a, 0xd3, 0xfe, 0xf6, 0x12, 0x21, + 0x7a, 0x86, 0xec, 0xf5, 0xf3, 0xfb, 0xad, 0xd3, 0x1d, 0xae, 0x09, 0x0c, 0xfd, 0x53, 0x72, 0xc8, + 0xae, 0xe9, 0xe6, 0xd8, 0x59, 0x09, 0xd3, 0x16, 0xe8, 0xdd, 0x25, 0x42, 0x34, 0xd7, 0x03, 0x56, + 0x0e, 0xc8, 0x11, 0x61, 0x37, 0xb4, 0x1b, 0x13, 0xd7, 0xbc, 0xff, 0x13, 0xb5, 0x0b, 0xeb, 0x43, + 0x63, 0x1e, 0x76, 0x42, 0x59, 0x9c, 0xd7, 0x96, 0xdf, 0x2e, 0xf1, 0xe8, 0xe5, 0x7d, 0x36, 0x20, + 0x1f, 0xb3, 0x01, 0xf9, 0x9a, 0x0d, 0x08, 0xdd, 0x47, 0x5b, 0x70, 0x9f, 0x03, 0x54, 0xdc, 0x83, + 0xce, 0x39, 0x18, 0x35, 0xb7, 0x37, 0xb7, 0x3c, 0xea, 0x4d, 0x40, 0xe7, 0x8d, 0x05, 0x5d, 0x91, + 0xdb, 0xa4, 0x50, 0xee, 0xe1, 0x29, 0xe5, 0x19, 0x4e, 0x45, 0x20, 0x88, 0x39, 0x41, 0x84, 0x6b, + 0x28, 0xac, 0xc9, 0xfe, 0x9e, 0x54, 0xba, 0x1a, 0xd6, 0x7d, 0xf2, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0xf7, 0x7d, 0x5c, 0x94, 0x79, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -114,7 +114,7 @@ func (c *ingressFilterClient) StreamGenVector(ctx context.Context, opts ...grpc. type IngressFilter_StreamGenVectorClient interface { Send(*payload.Object_Blob) error - Recv() (*payload.Object_Vector, error) + Recv() (*payload.Object_StreamVector, error) grpc.ClientStream } @@ -126,8 +126,8 @@ func (x *ingressFilterStreamGenVectorClient) Send(m *payload.Object_Blob) error return x.ClientStream.SendMsg(m) } -func (x *ingressFilterStreamGenVectorClient) Recv() (*payload.Object_Vector, error) { - m := new(payload.Object_Vector) +func (x *ingressFilterStreamGenVectorClient) Recv() (*payload.Object_StreamVector, error) { + m := new(payload.Object_StreamVector) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -154,7 +154,7 @@ func (c *ingressFilterClient) StreamFilterVector(ctx context.Context, opts ...gr type IngressFilter_StreamFilterVectorClient interface { Send(*payload.Object_Vector) error - Recv() (*payload.Object_Vector, error) + Recv() (*payload.Object_StreamVector, error) grpc.ClientStream } @@ -166,8 +166,8 @@ func (x *ingressFilterStreamFilterVectorClient) Send(m *payload.Object_Vector) e return x.ClientStream.SendMsg(m) } -func (x *ingressFilterStreamFilterVectorClient) Recv() (*payload.Object_Vector, error) { - m := new(payload.Object_Vector) +func (x *ingressFilterStreamFilterVectorClient) Recv() (*payload.Object_StreamVector, error) { + m := new(payload.Object_StreamVector) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -226,7 +226,7 @@ func _IngressFilter_StreamGenVector_Handler(srv interface{}, stream grpc.ServerS } type IngressFilter_StreamGenVectorServer interface { - Send(*payload.Object_Vector) error + Send(*payload.Object_StreamVector) error Recv() (*payload.Object_Blob, error) grpc.ServerStream } @@ -235,7 +235,7 @@ type ingressFilterStreamGenVectorServer struct { grpc.ServerStream } -func (x *ingressFilterStreamGenVectorServer) Send(m *payload.Object_Vector) error { +func (x *ingressFilterStreamGenVectorServer) Send(m *payload.Object_StreamVector) error { return x.ServerStream.SendMsg(m) } @@ -270,7 +270,7 @@ func _IngressFilter_StreamFilterVector_Handler(srv interface{}, stream grpc.Serv } type IngressFilter_StreamFilterVectorServer interface { - Send(*payload.Object_Vector) error + Send(*payload.Object_StreamVector) error Recv() (*payload.Object_Vector, error) grpc.ServerStream } @@ -279,7 +279,7 @@ type ingressFilterStreamFilterVectorServer struct { grpc.ServerStream } -func (x *ingressFilterStreamFilterVectorServer) Send(m *payload.Object_Vector) error { +func (x *ingressFilterStreamFilterVectorServer) Send(m *payload.Object_StreamVector) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index da56bcdf22f..4f8a4625e0b 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -25,6 +25,7 @@ import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/gogo/protobuf/proto" + errors "github.com/vdaas/vald/apis/grpc/v1/errors" ) // Reference imports to suppress errors if they are not otherwise used. @@ -525,6 +526,94 @@ func (m *Search_Responses) GetResponses() []*Search_Response { return nil } +type Search_StreamResponse struct { + // Types that are valid to be assigned to Payload: + // *Search_StreamResponse_Response + // *Search_StreamResponse_Error + Payload isSearch_StreamResponse_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Search_StreamResponse) Reset() { *m = Search_StreamResponse{} } +func (m *Search_StreamResponse) String() string { return proto.CompactTextString(m) } +func (*Search_StreamResponse) ProtoMessage() {} +func (*Search_StreamResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f0518b37b4e7594b, []int{0, 8} +} +func (m *Search_StreamResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Search_StreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Search_StreamResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Search_StreamResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_Search_StreamResponse.Merge(m, src) +} +func (m *Search_StreamResponse) XXX_Size() int { + return m.Size() +} +func (m *Search_StreamResponse) XXX_DiscardUnknown() { + xxx_messageInfo_Search_StreamResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_Search_StreamResponse proto.InternalMessageInfo + +type isSearch_StreamResponse_Payload interface { + isSearch_StreamResponse_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Search_StreamResponse_Response struct { + Response *Search_Response `protobuf:"bytes,1,opt,name=response,proto3,oneof" json:"response,omitempty"` +} +type Search_StreamResponse_Error struct { + Error *errors.Errors_RPC `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (*Search_StreamResponse_Response) isSearch_StreamResponse_Payload() {} +func (*Search_StreamResponse_Error) isSearch_StreamResponse_Payload() {} + +func (m *Search_StreamResponse) GetPayload() isSearch_StreamResponse_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *Search_StreamResponse) GetResponse() *Search_Response { + if x, ok := m.GetPayload().(*Search_StreamResponse_Response); ok { + return x.Response + } + return nil +} + +func (m *Search_StreamResponse) GetError() *errors.Errors_RPC { + if x, ok := m.GetPayload().(*Search_StreamResponse_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Search_StreamResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Search_StreamResponse_Response)(nil), + (*Search_StreamResponse_Error)(nil), + } +} + type Filter struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1865,6 +1954,94 @@ func (m *Object_Distance) GetDistance() float32 { return 0 } +type Object_StreamDistance struct { + // Types that are valid to be assigned to Payload: + // *Object_StreamDistance_Distance + // *Object_StreamDistance_Error + Payload isObject_StreamDistance_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Object_StreamDistance) Reset() { *m = Object_StreamDistance{} } +func (m *Object_StreamDistance) String() string { return proto.CompactTextString(m) } +func (*Object_StreamDistance) ProtoMessage() {} +func (*Object_StreamDistance) Descriptor() ([]byte, []int) { + return fileDescriptor_f0518b37b4e7594b, []int{7, 1} +} +func (m *Object_StreamDistance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Object_StreamDistance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Object_StreamDistance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Object_StreamDistance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Object_StreamDistance.Merge(m, src) +} +func (m *Object_StreamDistance) XXX_Size() int { + return m.Size() +} +func (m *Object_StreamDistance) XXX_DiscardUnknown() { + xxx_messageInfo_Object_StreamDistance.DiscardUnknown(m) +} + +var xxx_messageInfo_Object_StreamDistance proto.InternalMessageInfo + +type isObject_StreamDistance_Payload interface { + isObject_StreamDistance_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Object_StreamDistance_Distance struct { + Distance *Object_Distance `protobuf:"bytes,1,opt,name=distance,proto3,oneof" json:"distance,omitempty"` +} +type Object_StreamDistance_Error struct { + Error *errors.Errors_RPC `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (*Object_StreamDistance_Distance) isObject_StreamDistance_Payload() {} +func (*Object_StreamDistance_Error) isObject_StreamDistance_Payload() {} + +func (m *Object_StreamDistance) GetPayload() isObject_StreamDistance_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *Object_StreamDistance) GetDistance() *Object_Distance { + if x, ok := m.GetPayload().(*Object_StreamDistance_Distance); ok { + return x.Distance + } + return nil +} + +func (m *Object_StreamDistance) GetError() *errors.Errors_RPC { + if x, ok := m.GetPayload().(*Object_StreamDistance_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Object_StreamDistance) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Object_StreamDistance_Distance)(nil), + (*Object_StreamDistance_Error)(nil), + } +} + type Object_ID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1876,7 +2053,7 @@ func (m *Object_ID) Reset() { *m = Object_ID{} } func (m *Object_ID) String() string { return proto.CompactTextString(m) } func (*Object_ID) ProtoMessage() {} func (*Object_ID) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 1} + return fileDescriptor_f0518b37b4e7594b, []int{7, 2} } func (m *Object_ID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1923,7 +2100,7 @@ func (m *Object_IDs) Reset() { *m = Object_IDs{} } func (m *Object_IDs) String() string { return proto.CompactTextString(m) } func (*Object_IDs) ProtoMessage() {} func (*Object_IDs) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 2} + return fileDescriptor_f0518b37b4e7594b, []int{7, 3} } func (m *Object_IDs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1971,7 +2148,7 @@ func (m *Object_Vector) Reset() { *m = Object_Vector{} } func (m *Object_Vector) String() string { return proto.CompactTextString(m) } func (*Object_Vector) ProtoMessage() {} func (*Object_Vector) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 3} + return fileDescriptor_f0518b37b4e7594b, []int{7, 4} } func (m *Object_Vector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2025,7 +2202,7 @@ func (m *Object_Vectors) Reset() { *m = Object_Vectors{} } func (m *Object_Vectors) String() string { return proto.CompactTextString(m) } func (*Object_Vectors) ProtoMessage() {} func (*Object_Vectors) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 4} + return fileDescriptor_f0518b37b4e7594b, []int{7, 5} } func (m *Object_Vectors) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2061,6 +2238,94 @@ func (m *Object_Vectors) GetVectors() []*Object_Vector { return nil } +type Object_StreamVector struct { + // Types that are valid to be assigned to Payload: + // *Object_StreamVector_Vector + // *Object_StreamVector_Error + Payload isObject_StreamVector_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Object_StreamVector) Reset() { *m = Object_StreamVector{} } +func (m *Object_StreamVector) String() string { return proto.CompactTextString(m) } +func (*Object_StreamVector) ProtoMessage() {} +func (*Object_StreamVector) Descriptor() ([]byte, []int) { + return fileDescriptor_f0518b37b4e7594b, []int{7, 6} +} +func (m *Object_StreamVector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Object_StreamVector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Object_StreamVector.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Object_StreamVector) XXX_Merge(src proto.Message) { + xxx_messageInfo_Object_StreamVector.Merge(m, src) +} +func (m *Object_StreamVector) XXX_Size() int { + return m.Size() +} +func (m *Object_StreamVector) XXX_DiscardUnknown() { + xxx_messageInfo_Object_StreamVector.DiscardUnknown(m) +} + +var xxx_messageInfo_Object_StreamVector proto.InternalMessageInfo + +type isObject_StreamVector_Payload interface { + isObject_StreamVector_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Object_StreamVector_Vector struct { + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3,oneof" json:"vector,omitempty"` +} +type Object_StreamVector_Error struct { + Error *errors.Errors_RPC `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (*Object_StreamVector_Vector) isObject_StreamVector_Payload() {} +func (*Object_StreamVector_Error) isObject_StreamVector_Payload() {} + +func (m *Object_StreamVector) GetPayload() isObject_StreamVector_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *Object_StreamVector) GetVector() *Object_Vector { + if x, ok := m.GetPayload().(*Object_StreamVector_Vector); ok { + return x.Vector + } + return nil +} + +func (m *Object_StreamVector) GetError() *errors.Errors_RPC { + if x, ok := m.GetPayload().(*Object_StreamVector_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Object_StreamVector) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Object_StreamVector_Vector)(nil), + (*Object_StreamVector_Error)(nil), + } +} + type Object_Blob struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object []byte `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` @@ -2073,7 +2338,7 @@ func (m *Object_Blob) Reset() { *m = Object_Blob{} } func (m *Object_Blob) String() string { return proto.CompactTextString(m) } func (*Object_Blob) ProtoMessage() {} func (*Object_Blob) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 5} + return fileDescriptor_f0518b37b4e7594b, []int{7, 7} } func (m *Object_Blob) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2116,6 +2381,94 @@ func (m *Object_Blob) GetObject() []byte { return nil } +type Object_StreamBlob struct { + // Types that are valid to be assigned to Payload: + // *Object_StreamBlob_Blob + // *Object_StreamBlob_Error + Payload isObject_StreamBlob_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Object_StreamBlob) Reset() { *m = Object_StreamBlob{} } +func (m *Object_StreamBlob) String() string { return proto.CompactTextString(m) } +func (*Object_StreamBlob) ProtoMessage() {} +func (*Object_StreamBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_f0518b37b4e7594b, []int{7, 8} +} +func (m *Object_StreamBlob) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Object_StreamBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Object_StreamBlob.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Object_StreamBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_Object_StreamBlob.Merge(m, src) +} +func (m *Object_StreamBlob) XXX_Size() int { + return m.Size() +} +func (m *Object_StreamBlob) XXX_DiscardUnknown() { + xxx_messageInfo_Object_StreamBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_Object_StreamBlob proto.InternalMessageInfo + +type isObject_StreamBlob_Payload interface { + isObject_StreamBlob_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Object_StreamBlob_Blob struct { + Blob *Object_Blob `protobuf:"bytes,1,opt,name=blob,proto3,oneof" json:"blob,omitempty"` +} +type Object_StreamBlob_Error struct { + Error *errors.Errors_RPC `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (*Object_StreamBlob_Blob) isObject_StreamBlob_Payload() {} +func (*Object_StreamBlob_Error) isObject_StreamBlob_Payload() {} + +func (m *Object_StreamBlob) GetPayload() isObject_StreamBlob_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *Object_StreamBlob) GetBlob() *Object_Blob { + if x, ok := m.GetPayload().(*Object_StreamBlob_Blob); ok { + return x.Blob + } + return nil +} + +func (m *Object_StreamBlob) GetError() *errors.Errors_RPC { + if x, ok := m.GetPayload().(*Object_StreamBlob_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Object_StreamBlob) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Object_StreamBlob_Blob)(nil), + (*Object_StreamBlob_Error)(nil), + } +} + type Object_Location struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` @@ -2129,7 +2482,7 @@ func (m *Object_Location) Reset() { *m = Object_Location{} } func (m *Object_Location) String() string { return proto.CompactTextString(m) } func (*Object_Location) ProtoMessage() {} func (*Object_Location) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 6} + return fileDescriptor_f0518b37b4e7594b, []int{7, 9} } func (m *Object_Location) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2179,6 +2532,94 @@ func (m *Object_Location) GetIps() []string { return nil } +type Object_StreamLocation struct { + // Types that are valid to be assigned to Payload: + // *Object_StreamLocation_Location + // *Object_StreamLocation_Error + Payload isObject_StreamLocation_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Object_StreamLocation) Reset() { *m = Object_StreamLocation{} } +func (m *Object_StreamLocation) String() string { return proto.CompactTextString(m) } +func (*Object_StreamLocation) ProtoMessage() {} +func (*Object_StreamLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_f0518b37b4e7594b, []int{7, 10} +} +func (m *Object_StreamLocation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Object_StreamLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Object_StreamLocation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Object_StreamLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Object_StreamLocation.Merge(m, src) +} +func (m *Object_StreamLocation) XXX_Size() int { + return m.Size() +} +func (m *Object_StreamLocation) XXX_DiscardUnknown() { + xxx_messageInfo_Object_StreamLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_Object_StreamLocation proto.InternalMessageInfo + +type isObject_StreamLocation_Payload interface { + isObject_StreamLocation_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Object_StreamLocation_Location struct { + Location *Object_Location `protobuf:"bytes,1,opt,name=location,proto3,oneof" json:"location,omitempty"` +} +type Object_StreamLocation_Error struct { + Error *errors.Errors_RPC `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (*Object_StreamLocation_Location) isObject_StreamLocation_Payload() {} +func (*Object_StreamLocation_Error) isObject_StreamLocation_Payload() {} + +func (m *Object_StreamLocation) GetPayload() isObject_StreamLocation_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *Object_StreamLocation) GetLocation() *Object_Location { + if x, ok := m.GetPayload().(*Object_StreamLocation_Location); ok { + return x.Location + } + return nil +} + +func (m *Object_StreamLocation) GetError() *errors.Errors_RPC { + if x, ok := m.GetPayload().(*Object_StreamLocation_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Object_StreamLocation) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Object_StreamLocation_Location)(nil), + (*Object_StreamLocation_Error)(nil), + } +} + type Object_Locations struct { Locations []*Object_Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -2190,7 +2631,7 @@ func (m *Object_Locations) Reset() { *m = Object_Locations{} } func (m *Object_Locations) String() string { return proto.CompactTextString(m) } func (*Object_Locations) ProtoMessage() {} func (*Object_Locations) Descriptor() ([]byte, []int) { - return fileDescriptor_f0518b37b4e7594b, []int{7, 7} + return fileDescriptor_f0518b37b4e7594b, []int{7, 11} } func (m *Object_Locations) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4259,6 +4700,7 @@ func init() { proto.RegisterType((*Search_Config)(nil), "payload.v1.Search.Config") proto.RegisterType((*Search_Response)(nil), "payload.v1.Search.Response") proto.RegisterType((*Search_Responses)(nil), "payload.v1.Search.Responses") + proto.RegisterType((*Search_StreamResponse)(nil), "payload.v1.Search.StreamResponse") proto.RegisterType((*Filter)(nil), "payload.v1.Filter") proto.RegisterType((*Filter_Target)(nil), "payload.v1.Filter.Target") proto.RegisterType((*Filter_Config)(nil), "payload.v1.Filter.Config") @@ -4287,12 +4729,16 @@ func init() { proto.RegisterType((*Meta_KeyVals)(nil), "payload.v1.Meta.KeyVals") proto.RegisterType((*Object)(nil), "payload.v1.Object") proto.RegisterType((*Object_Distance)(nil), "payload.v1.Object.Distance") + proto.RegisterType((*Object_StreamDistance)(nil), "payload.v1.Object.StreamDistance") proto.RegisterType((*Object_ID)(nil), "payload.v1.Object.ID") proto.RegisterType((*Object_IDs)(nil), "payload.v1.Object.IDs") proto.RegisterType((*Object_Vector)(nil), "payload.v1.Object.Vector") proto.RegisterType((*Object_Vectors)(nil), "payload.v1.Object.Vectors") + proto.RegisterType((*Object_StreamVector)(nil), "payload.v1.Object.StreamVector") proto.RegisterType((*Object_Blob)(nil), "payload.v1.Object.Blob") + proto.RegisterType((*Object_StreamBlob)(nil), "payload.v1.Object.StreamBlob") proto.RegisterType((*Object_Location)(nil), "payload.v1.Object.Location") + proto.RegisterType((*Object_StreamLocation)(nil), "payload.v1.Object.StreamLocation") proto.RegisterType((*Object_Locations)(nil), "payload.v1.Object.Locations") proto.RegisterType((*Control)(nil), "payload.v1.Control") proto.RegisterType((*Control_CreateIndexRequest)(nil), "payload.v1.Control.CreateIndexRequest") @@ -4342,114 +4788,124 @@ func init() { } var fileDescriptor_f0518b37b4e7594b = []byte{ - // 1705 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4f, 0x93, 0x1b, 0x47, - 0x15, 0x67, 0x46, 0xd2, 0x48, 0x7a, 0xda, 0x35, 0xce, 0x94, 0xe3, 0x55, 0xda, 0xb1, 0x11, 0x4a, - 0x9c, 0xda, 0x18, 0x22, 0xe1, 0x35, 0x0e, 0x10, 0xaa, 0x4c, 0x59, 0x92, 0x4d, 0x29, 0x8b, 0x37, - 0xaa, 0x31,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0xdd, 0x83, 0xff, 0x04, 0x00, 0x00, 0xff, - 0xff, 0xdf, 0xa0, 0xb1, 0x70, 0x16, 0x14, 0x00, 0x00, + // 1860 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4f, 0x6f, 0x1b, 0xc7, + 0x15, 0xd7, 0x2e, 0xc9, 0x25, 0xf9, 0xf4, 0xa7, 0xce, 0xc2, 0xb1, 0xe8, 0x71, 0xec, 0x2a, 0x4c, + 0x1c, 0x28, 0x6e, 0x4d, 0x56, 0x76, 0x9d, 0xd6, 0x29, 0xe0, 0xc2, 0xa4, 0xec, 0x9a, 0x71, 0xad, + 0x10, 0xe3, 0xca, 0x28, 0x02, 0x34, 0xcc, 0x68, 0x77, 0x44, 0x6d, 0xb5, 0xdc, 0xd9, 0xee, 0x2c, + 0x69, 0x31, 0x40, 0x8f, 0xfd, 0x02, 0xbd, 0xf5, 0xd4, 0x7e, 0x86, 0x7c, 0x83, 0xa2, 0x97, 0xa0, + 0xa7, 0x1e, 0xfa, 0x01, 0x0a, 0x9f, 0x7a, 0xeb, 0xad, 0x87, 0x9c, 0x8a, 0xf9, 0xb7, 0xbb, 0x14, + 0x29, 0x87, 0x95, 0x82, 0x20, 0x27, 0xce, 0xbc, 0xf9, 0xbd, 0x37, 0xef, 0xbd, 0x79, 0xff, 0xb8, + 0xf0, 0x0e, 0x89, 0x03, 0xde, 0x8e, 0x13, 0x96, 0xb2, 0xf6, 0x64, 0xa7, 0x1d, 0x93, 0x69, 0xc8, + 0x88, 0x6f, 0x7e, 0x5b, 0xf2, 0xc0, 0x05, 0xb3, 0x9d, 0xec, 0xa0, 0xb7, 0x67, 0x19, 0x68, 0x92, + 0xb0, 0x84, 0xeb, 0x1f, 0x05, 0x47, 0x0f, 0x87, 0x41, 0x7a, 0x34, 0x3e, 0x68, 0x79, 0x6c, 0xd4, + 0xa6, 0xd1, 0x84, 0x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6b, 0x42, 0x42, 0xbf, 0x45, 0xe2, + 0x40, 0xc8, 0xd7, 0x57, 0x75, 0x56, 0x5f, 0x90, 0xd0, 0xef, 0xab, 0x4d, 0xdf, 0xfa, 0xe4, 0x56, + 0xe1, 0xf3, 0xb1, 0x64, 0x6a, 0x0b, 0xa6, 0xb6, 0xfc, 0xee, 0x3c, 0x4c, 0x62, 0xaf, 0xf0, 0x9d, + 0xfa, 0xc0, 0x91, 0x9f, 0x8b, 0xef, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x3f, 0x59, 0xc9, + 0xc7, 0x16, 0x00, 0x00, } func (m *Search) Marshal() (dAtA []byte, err error) { @@ -4859,7 +5315,7 @@ func (m *Search_Responses) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter) Marshal() (dAtA []byte, err error) { +func (m *Search_StreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4869,12 +5325,12 @@ func (m *Filter) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalTo(dAtA []byte) (int, error) { +func (m *Search_StreamResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Filter) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Search_StreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4883,29 +5339,107 @@ func (m *Filter) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil -} - -func (m *Filter_Target) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.Payload != nil { + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } - return dAtA[:n], nil + return len(dAtA) - i, nil } -func (m *Filter_Target) MarshalTo(dAtA []byte) (int, error) { +func (m *Search_StreamResponse_Response) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Filter_Target) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Search_StreamResponse_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l + if m.Response != nil { + { + size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Search_StreamResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Search_StreamResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Filter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Filter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Filter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *Filter_Target) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Filter_Target) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Filter_Target) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) @@ -5937,6 +6471,84 @@ func (m *Object_Distance) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Object_StreamDistance) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_StreamDistance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamDistance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Payload != nil { + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Object_StreamDistance_Distance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamDistance_Distance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Distance != nil { + { + size, err := m.Distance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamDistance_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamDistance_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} func (m *Object_ID) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -6033,9 +6645,9 @@ func (m *Object_Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) { } if len(m.Vector) > 0 { for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f17 := math.Float32bits(float32(m.Vector[iNdEx])) + f21 := math.Float32bits(float32(m.Vector[iNdEx])) i -= 4 - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(f17)) + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(f21)) } i = encodeVarintPayload(dAtA, i, uint64(len(m.Vector)*4)) i-- @@ -6092,7 +6704,7 @@ func (m *Object_Vectors) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_Blob) Marshal() (dAtA []byte, err error) { +func (m *Object_StreamVector) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6102,12 +6714,12 @@ func (m *Object_Blob) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Blob) MarshalTo(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Object_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6116,24 +6728,61 @@ func (m *Object_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = encodeVarintPayload(dAtA, i, uint64(len(m.Object))) - i-- - dAtA[i] = 0x12 + if m.Payload != nil { + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintPayload(dAtA, i, uint64(len(m.Id))) + return len(dAtA) - i, nil +} + +func (m *Object_StreamVector_Vector) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamVector_Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + { + size, err := m.Vector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *Object_StreamVector_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} -func (m *Object_Location) Marshal() (dAtA []byte, err error) { +func (m *Object_StreamVector_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Blob) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6143,12 +6792,12 @@ func (m *Object_Location) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Location) MarshalTo(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Object_Location) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6157,33 +6806,24 @@ func (m *Object_Location) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = encodeVarintPayload(dAtA, i, uint64(len(m.Ips[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintPayload(dAtA, i, uint64(len(m.Uuid))) + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = encodeVarintPayload(dAtA, i, uint64(len(m.Object))) i-- dAtA[i] = 0x12 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPayload(dAtA, i, uint64(len(m.Name))) + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintPayload(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Locations) Marshal() (dAtA []byte, err error) { +func (m *Object_StreamBlob) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6193,12 +6833,12 @@ func (m *Object_Locations) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Locations) MarshalTo(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Object_Locations) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -6207,45 +6847,251 @@ func (m *Object_Locations) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Locations) > 0 { - for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPayload(dAtA, i, uint64(size)) + if m.Payload != nil { + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err } - i-- - dAtA[i] = 0xa } } return len(dAtA) - i, nil } -func (m *Control) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Control) MarshalTo(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Control) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) + if m.Blob != nil { + { + size, err := m.Blob.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamBlob_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamBlob_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Location) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Location) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_Location) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ips) > 0 { + for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ips[iNdEx]) + copy(dAtA[i:], m.Ips[iNdEx]) + i = encodeVarintPayload(dAtA, i, uint64(len(m.Ips[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintPayload(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintPayload(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Object_StreamLocation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_StreamLocation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamLocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Payload != nil { + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Object_StreamLocation_Location) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamLocation_Location) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Location != nil { + { + size, err := m.Location.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamLocation_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_StreamLocation_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Locations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Locations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Object_Locations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPayload(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Control) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Control) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Control) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } return len(dAtA) - i, nil @@ -6995,9 +7841,9 @@ func (m *Backup_Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) { } if len(m.Vector) > 0 { for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f18 := math.Float32bits(float32(m.Vector[iNdEx])) + f28 := math.Float32bits(float32(m.Vector[iNdEx])) i -= 4 - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(f18)) + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(f28)) } i = encodeVarintPayload(dAtA, i, uint64(len(m.Vector)*4)) i-- @@ -7968,6 +8814,45 @@ func (m *Search_Responses) Size() (n int) { return n } +func (m *Search_StreamResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Payload != nil { + n += m.Payload.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Search_StreamResponse_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Response != nil { + l = m.Response.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} +func (m *Search_StreamResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} func (m *Filter) Size() (n int) { if m == nil { return 0 @@ -8438,15 +9323,14 @@ func (m *Object_Distance) Size() (n int) { return n } -func (m *Object_ID) Size() (n int) { +func (m *Object_StreamDistance) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovPayload(uint64(l)) + if m.Payload != nil { + n += m.Payload.Size() } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -8454,36 +9338,76 @@ func (m *Object_ID) Size() (n int) { return n } -func (m *Object_IDs) Size() (n int) { +func (m *Object_StreamDistance_Distance) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Ids) > 0 { - for _, s := range m.Ids { - l = len(s) - n += 1 + l + sovPayload(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Distance != nil { + l = m.Distance.Size() + n += 1 + l + sovPayload(uint64(l)) } return n } - -func (m *Object_Vector) Size() (n int) { +func (m *Object_StreamDistance_Error) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Id) - if l > 0 { + if m.Error != nil { + l = m.Error.Size() n += 1 + l + sovPayload(uint64(l)) } - if len(m.Vector) > 0 { - n += 1 + sovPayload(uint64(len(m.Vector)*4)) + len(m.Vector)*4 + return n +} +func (m *Object_ID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovPayload(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Object_IDs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovPayload(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Object_Vector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovPayload(uint64(l)) + } + if len(m.Vector) > 0 { + n += 1 + sovPayload(uint64(len(m.Vector)*4)) + len(m.Vector)*4 } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -8509,6 +9433,45 @@ func (m *Object_Vectors) Size() (n int) { return n } +func (m *Object_StreamVector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Payload != nil { + n += m.Payload.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Object_StreamVector_Vector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} +func (m *Object_StreamVector_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} func (m *Object_Blob) Size() (n int) { if m == nil { return 0 @@ -8529,6 +9492,45 @@ func (m *Object_Blob) Size() (n int) { return n } +func (m *Object_StreamBlob) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Payload != nil { + n += m.Payload.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Object_StreamBlob_Blob) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Blob != nil { + l = m.Blob.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} +func (m *Object_StreamBlob_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} func (m *Object_Location) Size() (n int) { if m == nil { return 0 @@ -8555,6 +9557,45 @@ func (m *Object_Location) Size() (n int) { return n } +func (m *Object_StreamLocation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Payload != nil { + n += m.Payload.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Object_StreamLocation_Location) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Location != nil { + l = m.Location.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} +func (m *Object_StreamLocation_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPayload(uint64(l)) + } + return n +} func (m *Object_Locations) Size() (n int) { if m == nil { return 0 @@ -10287,6 +11328,127 @@ func (m *Search_Responses) Unmarshal(dAtA []byte) error { } return nil } +func (m *Search_StreamResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StreamResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Search_Response{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Response{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &errors.Errors_RPC{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Error{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPayload(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPayload + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Filter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -12679,7 +13841,7 @@ func (m *Object_Distance) Unmarshal(dAtA []byte) error { } return nil } -func (m *Object_ID) Unmarshal(dAtA []byte) error { +func (m *Object_StreamDistance) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12702,17 +13864,138 @@ func (m *Object_ID) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ID: wiretype end group for non-group") + return fmt.Errorf("proto: StreamDistance: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ID: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StreamDistance: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } - var stringLen uint64 + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Object_Distance{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamDistance_Distance{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &errors.Errors_RPC{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamDistance_Error{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPayload(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPayload + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Object_ID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPayload @@ -13067,6 +14350,127 @@ func (m *Object_Vectors) Unmarshal(dAtA []byte) error { } return nil } +func (m *Object_StreamVector) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StreamVector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StreamVector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Object_Vector{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamVector_Vector{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &errors.Errors_RPC{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamVector_Error{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPayload(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPayload + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Object_Blob) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13184,6 +14588,127 @@ func (m *Object_Blob) Unmarshal(dAtA []byte) error { } return nil } +func (m *Object_StreamBlob) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StreamBlob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StreamBlob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Object_Blob{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamBlob_Blob{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &errors.Errors_RPC{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamBlob_Error{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPayload(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPayload + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Object_Location) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -13331,6 +14856,127 @@ func (m *Object_Location) Unmarshal(dAtA []byte) error { } return nil } +func (m *Object_StreamLocation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StreamLocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StreamLocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Object_Location{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamLocation_Location{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPayload + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPayload + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPayload + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &errors.Errors_RPC{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamLocation_Error{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPayload(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPayload + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Object_Locations) Unmarshal(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 a4381d288f4..2a8cc3bd4d6 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -43,31 +43,32 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/filter.proto", fileDescriptor_a46f8d8eee988c86) } var fileDescriptor_a46f8d8eee988c86 = []byte{ - // 376 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x4a, 0xeb, 0x40, - 0x14, 0xc6, 0x9b, 0xbb, 0x68, 0x61, 0x28, 0x17, 0x8c, 0x0b, 0x31, 0x96, 0x2a, 0x75, 0xa1, 0xb8, - 0x98, 0xb1, 0xba, 0x73, 0xd9, 0x85, 0x20, 0x54, 0x2c, 0x2d, 0x0a, 0xba, 0x29, 0x27, 0xc9, 0x98, - 0x8e, 0xa4, 0x99, 0x71, 0x66, 0x12, 0x70, 0xeb, 0x2b, 0xf8, 0x52, 0x2e, 0x0b, 0xbe, 0x80, 0x14, - 0x1f, 0x44, 0x32, 0xd3, 0x40, 0x2b, 0x55, 0xba, 0x98, 0x55, 0xc2, 0xf9, 0xf3, 0x3b, 0x87, 0x8f, - 0x33, 0x1f, 0xda, 0x07, 0xc1, 0x14, 0x11, 0x92, 0x6b, 0x4e, 0x8a, 0x2e, 0x29, 0x20, 0x8d, 0xc9, - 0x23, 0x4b, 0x35, 0x95, 0xd8, 0x04, 0xfd, 0x46, 0x19, 0xc2, 0x45, 0x37, 0x38, 0x5c, 0xad, 0x14, - 0xf0, 0x92, 0x72, 0x88, 0xab, 0xaf, 0xad, 0x0e, 0x5a, 0x09, 0xe7, 0x49, 0x4a, 0x09, 0x08, 0x46, - 0x20, 0xcb, 0xb8, 0x06, 0xcd, 0x78, 0xa6, 0x6c, 0xf6, 0x6c, 0xd6, 0x40, 0xf5, 0x4b, 0x03, 0xf7, - 0x27, 0xa8, 0x39, 0xa2, 0x20, 0xa3, 0xc9, 0x4d, 0xf8, 0x44, 0x23, 0xed, 0x1f, 0xe0, 0x0a, 0x54, - 0x74, 0xb1, 0xcd, 0x60, 0x9b, 0x1a, 0xd2, 0xe7, 0x9c, 0x2a, 0x1d, 0xec, 0xad, 0xa9, 0x18, 0x52, - 0x25, 0x78, 0xa6, 0x68, 0x67, 0xf7, 0xf5, 0xe3, 0xeb, 0xed, 0xdf, 0x76, 0xe7, 0x3f, 0x51, 0x26, - 0x43, 0xb8, 0xe9, 0xbd, 0xf0, 0x4e, 0xfc, 0x7b, 0xe4, 0x8f, 0xb4, 0xa4, 0x30, 0x75, 0x39, 0xaf, - 0x76, 0xec, 0x9d, 0x7a, 0xfe, 0x18, 0x35, 0xaf, 0x32, 0x45, 0xa5, 0x5e, 0x40, 0x77, 0x96, 0x5b, - 0x6c, 0x0c, 0xf7, 0x52, 0x1e, 0xae, 0xb2, 0x16, 0x89, 0x3e, 0x8f, 0x8c, 0x38, 0x4b, 0xbb, 0x33, - 0x03, 0x5b, 0xda, 0x7d, 0x50, 0xed, 0xee, 0x60, 0x8c, 0x5d, 0xb9, 0x8f, 0xb6, 0xae, 0xf3, 0x54, - 0xb3, 0xcd, 0x80, 0xad, 0x3f, 0x80, 0xaa, 0x53, 0x2b, 0x05, 0xb8, 0x15, 0x31, 0x68, 0xea, 0x48, - 0x80, 0xdc, 0xc0, 0xd6, 0x09, 0xe0, 0x60, 0xcc, 0xaa, 0x00, 0x9b, 0x01, 0x37, 0x12, 0xc0, 0xe1, - 0x05, 0xe4, 0xe2, 0xb7, 0x0b, 0x70, 0x30, 0xe6, 0xa7, 0x00, 0x0e, 0x2e, 0xa0, 0x37, 0x7e, 0x9f, - 0xb7, 0xbd, 0xd9, 0xbc, 0xed, 0x7d, 0xce, 0xdb, 0x1e, 0x0a, 0xb8, 0x4c, 0x70, 0x11, 0x03, 0x28, - 0x6c, 0x6c, 0x03, 0x04, 0x2b, 0xfb, 0xca, 0xff, 0x1e, 0xba, 0x83, 0x34, 0xb6, 0xaf, 0x7f, 0xe0, - 0x3d, 0x1c, 0x25, 0x4c, 0x4f, 0xf2, 0x10, 0x47, 0x7c, 0x4a, 0x4c, 0x83, 0xb5, 0x1e, 0xe3, 0x31, - 0x89, 0x14, 0x51, 0x65, 0x46, 0x61, 0xdd, 0x58, 0xc7, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x1b, 0x54, 0x15, 0xbe, 0xa9, 0x04, 0x00, 0x00, + // 389 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xc1, 0x4a, 0xc3, 0x40, + 0x10, 0x6d, 0x3c, 0xb4, 0xb0, 0x14, 0xc1, 0x78, 0x10, 0x63, 0xa9, 0xb6, 0x1e, 0x14, 0x0f, 0xbb, + 0x56, 0x6f, 0x1e, 0x7b, 0x10, 0x84, 0x8a, 0xd2, 0x62, 0x0f, 0x5e, 0xca, 0x24, 0x59, 0xd3, 0x95, + 0x34, 0xbb, 0x66, 0x37, 0x01, 0xaf, 0xfe, 0x82, 0x3f, 0xe5, 0x51, 0xf0, 0x07, 0xa4, 0x78, 0xf0, + 0x33, 0x24, 0xbb, 0x4d, 0x69, 0x21, 0x4a, 0x2a, 0x3d, 0x25, 0xcc, 0x9b, 0x79, 0x6f, 0xe7, 0x31, + 0x3c, 0xb4, 0x0f, 0x82, 0x49, 0x22, 0x62, 0xae, 0x38, 0x49, 0x3b, 0x24, 0x85, 0xd0, 0x27, 0x0f, + 0x2c, 0x54, 0x34, 0xc6, 0xba, 0x68, 0xd7, 0xb2, 0x12, 0x4e, 0x3b, 0xce, 0xe1, 0x72, 0xa7, 0x80, + 0xe7, 0x90, 0x83, 0x9f, 0x7f, 0x4d, 0xb7, 0xd3, 0x08, 0x38, 0x0f, 0x42, 0x4a, 0x40, 0x30, 0x02, + 0x51, 0xc4, 0x15, 0x28, 0xc6, 0x23, 0x69, 0xd0, 0xb3, 0xef, 0x1a, 0xaa, 0x5e, 0x6a, 0x72, 0x7b, + 0x8c, 0xea, 0x03, 0x0a, 0xb1, 0x37, 0xbe, 0x71, 0x1f, 0xa9, 0xa7, 0xec, 0x03, 0x9c, 0x13, 0xa5, + 0x1d, 0x6c, 0x10, 0x6c, 0xa0, 0x3e, 0x7d, 0x4a, 0xa8, 0x54, 0xce, 0x5e, 0x41, 0x47, 0x9f, 0x4a, + 0xc1, 0x23, 0x49, 0xdb, 0xbb, 0x2f, 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a4, 0xb3, 0x27, 0x88, 0x85, + 0x97, 0x87, 0x94, 0x5b, 0xd5, 0x91, 0x72, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x96, 0xfc, 0x3a, + 0x3d, 0xc1, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -123,7 +124,7 @@ func (c *filterClient) StreamSearchObject(ctx context.Context, opts ...grpc.Call type Filter_StreamSearchObjectClient interface { Send(*payload.Search_ObjectRequest) error - Recv() (*payload.Search_Response, error) + Recv() (*payload.Search_StreamResponse, error) grpc.ClientStream } @@ -135,8 +136,8 @@ func (x *filterStreamSearchObjectClient) Send(m *payload.Search_ObjectRequest) e return x.ClientStream.SendMsg(m) } -func (x *filterStreamSearchObjectClient) Recv() (*payload.Search_Response, error) { - m := new(payload.Search_Response) +func (x *filterStreamSearchObjectClient) Recv() (*payload.Search_StreamResponse, error) { + m := new(payload.Search_StreamResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -163,7 +164,7 @@ func (c *filterClient) StreamInsertObject(ctx context.Context, opts ...grpc.Call type Filter_StreamInsertObjectClient interface { Send(*payload.Object_Blob) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -175,8 +176,8 @@ func (x *filterStreamInsertObjectClient) Send(m *payload.Object_Blob) error { return x.ClientStream.SendMsg(m) } -func (x *filterStreamInsertObjectClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *filterStreamInsertObjectClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -212,7 +213,7 @@ func (c *filterClient) StreamUpdateObject(ctx context.Context, opts ...grpc.Call type Filter_StreamUpdateObjectClient interface { Send(*payload.Object_Blob) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -224,8 +225,8 @@ func (x *filterStreamUpdateObjectClient) Send(m *payload.Object_Blob) error { return x.ClientStream.SendMsg(m) } -func (x *filterStreamUpdateObjectClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *filterStreamUpdateObjectClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -261,7 +262,7 @@ func (c *filterClient) StreamUpsertObject(ctx context.Context, opts ...grpc.Call type Filter_StreamUpsertObjectClient interface { Send(*payload.Object_Blob) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -273,8 +274,8 @@ func (x *filterStreamUpsertObjectClient) Send(m *payload.Object_Blob) error { return x.ClientStream.SendMsg(m) } -func (x *filterStreamUpsertObjectClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *filterStreamUpsertObjectClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -370,7 +371,7 @@ func _Filter_StreamSearchObject_Handler(srv interface{}, stream grpc.ServerStrea } type Filter_StreamSearchObjectServer interface { - Send(*payload.Search_Response) error + Send(*payload.Search_StreamResponse) error Recv() (*payload.Search_ObjectRequest, error) grpc.ServerStream } @@ -379,7 +380,7 @@ type filterStreamSearchObjectServer struct { grpc.ServerStream } -func (x *filterStreamSearchObjectServer) Send(m *payload.Search_Response) error { +func (x *filterStreamSearchObjectServer) Send(m *payload.Search_StreamResponse) error { return x.ServerStream.SendMsg(m) } @@ -414,7 +415,7 @@ func _Filter_StreamInsertObject_Handler(srv interface{}, stream grpc.ServerStrea } type Filter_StreamInsertObjectServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Object_Blob, error) grpc.ServerStream } @@ -423,7 +424,7 @@ type filterStreamInsertObjectServer struct { grpc.ServerStream } -func (x *filterStreamInsertObjectServer) Send(m *payload.Object_Location) error { +func (x *filterStreamInsertObjectServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } @@ -476,7 +477,7 @@ func _Filter_StreamUpdateObject_Handler(srv interface{}, stream grpc.ServerStrea } type Filter_StreamUpdateObjectServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Object_Blob, error) grpc.ServerStream } @@ -485,7 +486,7 @@ type filterStreamUpdateObjectServer struct { grpc.ServerStream } -func (x *filterStreamUpdateObjectServer) Send(m *payload.Object_Location) error { +func (x *filterStreamUpdateObjectServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } @@ -538,7 +539,7 @@ func _Filter_StreamUpsertObject_Handler(srv interface{}, stream grpc.ServerStrea } type Filter_StreamUpsertObjectServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Object_Blob, error) grpc.ServerStream } @@ -547,7 +548,7 @@ type filterStreamUpsertObjectServer struct { grpc.ServerStream } -func (x *filterStreamUpsertObjectServer) Send(m *payload.Object_Location) error { +func (x *filterStreamUpsertObjectServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/insert.pb.go b/apis/grpc/v1/vald/insert.pb.go index 36b8b268a83..83b2b1ccc7c 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -43,26 +43,27 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/insert.proto", fileDescriptor_7c50984be03265a6) } var fileDescriptor_7c50984be03265a6 = []byte{ - // 300 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x2c, 0xc8, 0x2c, - 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x33, 0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4, - 0x72, 0x8a, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xb9, - 0xa4, 0xf2, 0x8b, 0xd2, 0xf5, 0xca, 0x52, 0x12, 0x13, 0x8b, 0xf5, 0xc0, 0xe1, 0x9f, 0x58, 0x90, - 0x09, 0x32, 0x12, 0xc4, 0x76, 0xe2, 0x0a, 0x4b, 0xcc, 0x49, 0x81, 0xd8, 0x1e, 0xc0, 0x18, 0xa5, - 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0xd6, 0x00, 0x89, 0x43, - 0x70, 0x64, 0xa5, 0x17, 0x15, 0x24, 0xc3, 0x62, 0x35, 0x89, 0x0d, 0x1c, 0x07, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xc8, 0x14, 0x43, 0x96, 0xf2, 0x01, 0x00, 0x00, + // 307 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4a, 0xc4, 0x30, + 0x14, 0x86, 0xcd, 0x2c, 0x66, 0x20, 0xce, 0x42, 0x0a, 0x6e, 0x3a, 0x43, 0x07, 0xeb, 0x42, 0x99, + 0x45, 0x62, 0x75, 0x37, 0xcb, 0xd9, 0x09, 0x8a, 0xe2, 0xa0, 0x0b, 0x37, 0xf2, 0xda, 0x86, 0x1a, + 0x49, 0x9b, 0xd8, 0xa4, 0x05, 0xb7, 0x5e, 0xc1, 0x03, 0x78, 0x1d, 0x97, 0x82, 0x17, 0x90, 0xe2, + 0x41, 0xa4, 0x49, 0x3b, 0x28, 0x0c, 0xe2, 0x2a, 0xe1, 0xfd, 0xef, 0xff, 0xde, 0x0f, 0x3f, 0x9e, + 0x81, 0xe2, 0x9a, 0xaa, 0x52, 0x1a, 0x49, 0xeb, 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20, 0xe3, + 0xe6, 0xbe, 0x8a, 0x49, 0x22, 0x73, 0x6a, 0x0d, 0xae, 0x49, 0x5b, 0x59, 0x56, 0xaa, 0xa4, 0xef, + 0x36, 0x1e, 0xda, 0x26, 0x4e, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0x95, 0xe3, 0xf2, 0xc9, 0xf8, + 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -110,7 +111,7 @@ func (c *insertClient) StreamInsert(ctx context.Context, opts ...grpc.CallOption type Insert_StreamInsertClient interface { Send(*payload.Insert_Request) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -122,8 +123,8 @@ func (x *insertStreamInsertClient) Send(m *payload.Insert_Request) error { return x.ClientStream.SendMsg(m) } -func (x *insertStreamInsertClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *insertStreamInsertClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -187,7 +188,7 @@ func _Insert_StreamInsert_Handler(srv interface{}, stream grpc.ServerStream) err } type Insert_StreamInsertServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Insert_Request, error) grpc.ServerStream } @@ -196,7 +197,7 @@ type insertStreamInsertServer struct { grpc.ServerStream } -func (x *insertStreamInsertServer) Send(m *payload.Object_Location) error { +func (x *insertStreamInsertServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/object.pb.go b/apis/grpc/v1/vald/object.pb.go index 16fee7de051..ca1b6c69658 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -43,25 +43,25 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/object.proto", fileDescriptor_f3068a4c11e32302) } var fileDescriptor_f3068a4c11e32302 = []byte{ - // 276 bytes of a gzipped FileDescriptorProto + // 284 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x2c, 0xc8, 0x2c, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0x4b, 0xcc, 0x49, 0xd1, 0xcf, 0x4f, 0xca, 0x4a, 0x4d, 0x2e, 0xd1, 0x03, 0x0b, 0x0a, 0xb1, 0x83, 0x84, 0xf4, 0xca, 0x0c, 0xa5, 0x94, 0x51, 0x55, 0x16, 0x24, 0x56, 0xe6, 0xe4, 0x27, 0xa6, 0xc0, 0x68, 0x88, 0x6a, 0x29, 0x99, 0xf4, 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xfd, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, - 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0x88, 0xac, 0xd1, 0x37, 0x46, 0x2e, 0x36, 0x7f, 0xb0, 0xe1, + 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0x88, 0xac, 0xd1, 0x1f, 0x46, 0x2e, 0x36, 0x7f, 0xb0, 0xe1, 0x42, 0x3e, 0x5c, 0x6c, 0xae, 0x15, 0x99, 0xc5, 0x25, 0xc5, 0x42, 0xa2, 0x7a, 0x30, 0x23, 0xca, 0x0c, 0xf5, 0x20, 0xb2, 0x7a, 0x9e, 0x2e, 0x52, 0xd8, 0x85, 0x95, 0x44, 0x9a, 0x2e, 0x3f, 0x99, 0xcc, 0xc4, 0x27, 0xc4, 0xa3, 0x9f, 0x0a, 0xd6, 0xae, 0x5f, 0x9d, 0x99, 0x52, 0x2b, 0x14, 0xcc, 0xc5, 0xe9, 0x9e, 0x5a, 0x02, 0x35, 0x1a, 0x87, 0x81, 0x92, 0x58, 0x84, 0xc3, 0x52, 0x93, 0x4b, - 0xf2, 0x8b, 0x90, 0x0c, 0x85, 0x78, 0x1d, 0x62, 0xa8, 0x27, 0x17, 0x7f, 0x70, 0x49, 0x51, 0x6a, - 0x62, 0x2e, 0x25, 0x46, 0x33, 0x68, 0x30, 0x1a, 0x30, 0x3a, 0xc5, 0x9f, 0x78, 0x24, 0xc7, 0x78, - 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x5c, 0x52, 0xf9, 0x45, 0xe9, 0x7a, 0x65, 0x29, - 0x89, 0x89, 0xc5, 0x7a, 0xe0, 0xc0, 0x4d, 0x2c, 0xc8, 0x04, 0x69, 0x04, 0xb1, 0x9d, 0xb8, 0xc2, - 0x12, 0x73, 0x52, 0x20, 0x46, 0x04, 0x30, 0x46, 0xa9, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, - 0x25, 0xe7, 0xe7, 0xea, 0x83, 0x35, 0x40, 0x22, 0x08, 0x1c, 0x13, 0xe9, 0x45, 0x05, 0xc9, 0xb0, - 0x28, 0x4b, 0x62, 0x03, 0x07, 0xb0, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x83, 0x50, 0xc6, - 0xcf, 0x01, 0x00, 0x00, + 0xf2, 0x8b, 0x90, 0x0c, 0x85, 0x78, 0x1d, 0x62, 0xa8, 0x3f, 0x17, 0x7f, 0x70, 0x49, 0x51, 0x6a, + 0x62, 0x2e, 0x41, 0xa3, 0xe5, 0xb1, 0x08, 0x43, 0xb4, 0x42, 0x2d, 0x60, 0xd0, 0x60, 0x34, 0x60, + 0x74, 0x8a, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xb9, + 0xa4, 0xf2, 0x8b, 0xd2, 0xf5, 0xca, 0x52, 0x12, 0x13, 0x8b, 0xf5, 0xc0, 0x41, 0x9c, 0x58, 0x90, + 0x09, 0xd2, 0x0e, 0x62, 0x3b, 0x71, 0x85, 0x25, 0xe6, 0xa4, 0x40, 0x0c, 0x0a, 0x60, 0x8c, 0x52, + 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0x6b, 0x80, 0x44, 0x13, + 0x38, 0x3e, 0xd2, 0x8b, 0x0a, 0x92, 0x61, 0x11, 0x97, 0xc4, 0x06, 0x0e, 0x66, 0x63, 0x40, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xe9, 0x72, 0xbf, 0xf3, 0xd5, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -118,7 +118,7 @@ func (c *objectClient) StreamGetObject(ctx context.Context, opts ...grpc.CallOpt type Object_StreamGetObjectClient interface { Send(*payload.Object_ID) error - Recv() (*payload.Object_Vector, error) + Recv() (*payload.Object_StreamVector, error) grpc.ClientStream } @@ -130,8 +130,8 @@ func (x *objectStreamGetObjectClient) Send(m *payload.Object_ID) error { return x.ClientStream.SendMsg(m) } -func (x *objectStreamGetObjectClient) Recv() (*payload.Object_Vector, error) { - m := new(payload.Object_Vector) +func (x *objectStreamGetObjectClient) Recv() (*payload.Object_StreamVector, error) { + m := new(payload.Object_StreamVector) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -204,7 +204,7 @@ func _Object_StreamGetObject_Handler(srv interface{}, stream grpc.ServerStream) } type Object_StreamGetObjectServer interface { - Send(*payload.Object_Vector) error + Send(*payload.Object_StreamVector) error Recv() (*payload.Object_ID, error) grpc.ServerStream } @@ -213,7 +213,7 @@ type objectStreamGetObjectServer struct { grpc.ServerStream } -func (x *objectStreamGetObjectServer) Send(m *payload.Object_Vector) error { +func (x *objectStreamGetObjectServer) Send(m *payload.Object_StreamVector) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/remove.pb.go b/apis/grpc/v1/vald/remove.pb.go index 6c0e4f26aae..5d00bc3b12f 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -43,26 +43,27 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/remove.proto", fileDescriptor_5b638f34e0c25c81) } var fileDescriptor_5b638f34e0c25c81 = []byte{ - // 298 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x2c, 0xc8, 0x2c, - 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0x4b, 0xcc, 0x49, 0xd1, 0x2f, - 0x4a, 0xcd, 0xcd, 0x2f, 0x4b, 0xd5, 0x03, 0x0b, 0x0a, 0xb1, 0x83, 0x84, 0xf4, 0xca, 0x0c, 0xa5, - 0x94, 0x51, 0x55, 0x16, 0x24, 0x56, 0xe6, 0xe4, 0x27, 0xa6, 0xc0, 0x68, 0x88, 0x6a, 0x29, 0x99, - 0xf4, 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xfd, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92, - 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0x88, 0xac, 0xd1, 0x4c, 0x26, 0x2e, 0xb6, 0x20, 0xb0, 0xe1, - 0x42, 0xa1, 0x70, 0x96, 0x94, 0x1e, 0xcc, 0x88, 0x32, 0x43, 0x3d, 0x88, 0x98, 0x5e, 0x50, 0x6a, - 0x61, 0x69, 0x6a, 0x71, 0x89, 0x94, 0x34, 0xb2, 0x9c, 0x7f, 0x52, 0x56, 0x6a, 0x72, 0x89, 0x9e, - 0x4f, 0x7e, 0x32, 0xd8, 0x50, 0x25, 0xa1, 0xa6, 0xcb, 0x4f, 0x26, 0x33, 0xf1, 0x28, 0xb1, 0x43, - 0x1d, 0x6c, 0xc5, 0xa8, 0x25, 0xe4, 0xcb, 0xc5, 0x13, 0x5c, 0x52, 0x94, 0x9a, 0x98, 0x4b, 0xa9, - 0xe1, 0x0c, 0x1a, 0x8c, 0x06, 0x8c, 0x42, 0x99, 0x5c, 0xdc, 0xbe, 0xa5, 0x39, 0x25, 0x99, 0x50, - 0xd3, 0xe4, 0xb1, 0x98, 0x06, 0x95, 0x87, 0x18, 0x29, 0x83, 0xc7, 0xc8, 0x62, 0x25, 0x69, 0xb0, - 0x83, 0x45, 0x95, 0x04, 0xa0, 0x0e, 0xd6, 0xcf, 0x05, 0xe9, 0x2d, 0xc8, 0x01, 0xb9, 0xdc, 0x29, - 0xfe, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0xe4, 0x92, 0xca, - 0x2f, 0x4a, 0xd7, 0x2b, 0x4b, 0x49, 0x4c, 0x2c, 0xd6, 0x03, 0x87, 0x7f, 0x62, 0x41, 0x26, 0xc8, - 0x48, 0x10, 0xdb, 0x89, 0x2b, 0x2c, 0x31, 0x27, 0x05, 0x62, 0x7b, 0x00, 0x63, 0x94, 0x7a, 0x7a, - 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x58, 0x03, 0x24, 0x0e, 0xc1, 0x91, - 0x95, 0x5e, 0x54, 0x90, 0x0c, 0x8b, 0xd5, 0x24, 0x36, 0x70, 0x1c, 0x18, 0x03, 0x02, 0x00, 0x00, - 0xff, 0xff, 0x6d, 0x69, 0x44, 0xc8, 0xf2, 0x01, 0x00, 0x00, + // 305 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4a, 0xc3, 0x40, + 0x14, 0x86, 0x9d, 0x2e, 0x5a, 0x18, 0xbb, 0x90, 0x80, 0x9b, 0xb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+ 0x73, 0xba, 0x81, 0xd9, 0xea, 0x1e, 0x3c, 0xfe, 0x23, 0x75, 0x19, 0x8d, 0x5c, 0xec, 0xdd, 0x68, + 0xa7, 0x8d, 0xcd, 0xb3, 0xc6, 0xab, 0x55, 0x93, 0x7f, 0x7e, 0xf7, 0x56, 0x4f, 0xc8, 0x7b, 0x3d, + 0x21, 0x9f, 0xf5, 0x84, 0xd0, 0x10, 0x8b, 0x94, 0xd9, 0x04, 0xa0, 0x64, 0xae, 0x05, 0xd0, 0xb2, + 0x41, 0x36, 0xff, 0x39, 0xbd, 0x01, 0x95, 0xf8, 0xeb, 0x57, 0xe4, 0xf6, 0x20, 0x95, 0xe6, 0xbe, + 0x5a, 0xb1, 0x18, 0x33, 0xee, 0x0c, 0xbe, 0x49, 0x57, 0x59, 0x5a, 0xe8, 0xb8, 0xeb, 0x76, 0xd5, + 0x77, 0x4d, 0x9c, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x49, 0x1c, 0x2c, 0xd5, 0xf8, 0x01, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -110,7 +111,7 @@ func (c *removeClient) StreamRemove(ctx context.Context, opts ...grpc.CallOption type Remove_StreamRemoveClient interface { Send(*payload.Remove_Request) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -122,8 +123,8 @@ func (x *removeStreamRemoveClient) Send(m *payload.Remove_Request) error { return x.ClientStream.SendMsg(m) } -func (x *removeStreamRemoveClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *removeStreamRemoveClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -187,7 +188,7 @@ func _Remove_StreamRemove_Handler(srv interface{}, stream grpc.ServerStream) err } type Remove_StreamRemoveServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Remove_Request, error) grpc.ServerStream } @@ -196,7 +197,7 @@ type removeStreamRemoveServer struct { grpc.ServerStream } -func (x *removeStreamRemoveServer) Send(m *payload.Object_Location) error { +func (x *removeStreamRemoveServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/search.pb.go b/apis/grpc/v1/vald/search.pb.go index 278f86d1487..3c27844607d 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -43,29 +43,30 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/search.proto", fileDescriptor_f8168beed818734d) } var fileDescriptor_f8168beed818734d = []byte{ - // 350 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0x3b, 0x31, - 0x10, 0xc6, 0x9b, 0x3f, 0x7f, 0x5a, 0x88, 0x85, 0x96, 0x85, 0x5e, 0xb6, 0xa5, 0xc5, 0xf5, 0xa0, - 0x78, 0x48, 0xac, 0xde, 0x3c, 0x96, 0x5e, 0x7a, 0x28, 0x88, 0x55, 0x0f, 0x1e, 0x94, 0x69, 0x37, - 0x6c, 0x03, 0xe9, 0x26, 0x6e, 0xd2, 0x85, 0x5e, 0x7d, 0x05, 0x5f, 0xc1, 0x87, 0xf1, 0x28, 0xf8, - 0x02, 0x52, 0x7c, 0x10, 0x49, 0xd2, 0xd5, 0x0a, 0xb5, 0x08, 0x3d, 0x6d, 0x98, 0x99, 0xef, 0x37, - 0xdf, 0x0e, 0x1f, 0xee, 0x80, 0xe2, 0x9a, 0xaa, 0x4c, 0x1a, 0x49, 0xf3, 0x2e, 0xcd, 0x41, 0xc4, - 0x54, 0x33, 0xc8, 0x26, 0x53, 0xe2, 0x8a, 0x41, 0xc5, 0x96, 0x48, 0xde, 0x0d, 0x0f, 0x7e, 0x4e,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68, 0xe2, 0xa2, 0x08, 0x8a, 0x5b, 0x9d, 0x7d, 0xf7, - 0xf0, 0x0d, 0x88, 0xd8, 0x13, 0x2e, 0xd0, 0xed, 0x61, 0xc2, 0xcd, 0x74, 0x3e, 0x26, 0x13, 0x39, - 0xa3, 0x4e, 0xe0, 0xe3, 0xec, 0x72, 0x9b, 0x64, 0x6a, 0x52, 0x04, 0x7c, 0x5c, 0x76, 0x71, 0x3c, - 0xfb, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x97, 0xcc, 0x77, 0x5c, 0xfd, 0x02, 0x00, 0x00, + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4a, 0xc3, 0x40, + 0x14, 0xc6, 0x3b, 0x22, 0x2d, 0x8c, 0x85, 0x96, 0x40, 0x37, 0x69, 0x69, 0x69, 0x5c, 0x28, 0x2e, + 0x66, 0xac, 0xee, 0x5c, 0x96, 0x6e, 0xba, 0x10, 0xc4, 0xaa, 0xa0, 0x0b, 0xe5, 0xb5, 0x19, 0xd2, + 0x81, 0x34, 0x33, 0x66, 0xa6, 0x81, 0x6e, 0xbd, 0x82, 0x17, 0xf1, 0x18, 0x2e, 0x05, 0x2f, 0x20, + 0xc5, 0x83, 0x48, 0x66, 0x92, 0x5a, 0x21, 0x96, 0xac, 0x66, 0x78, 0xef, 0x7d, 0xbf, 0xf7, 0x87, + 0x0f, 0xf7, 0x40, 0x72, 0x45, 0x65, 0x2c, 0xb4, 0xa0, 0xc9, 0x80, 0x26, 0x10, 0xfa, 0x54, 0x31, + 0x88, 0x67, 0x73, 0x62, 0x82, 0x4e, 0x2d, 0x0d, 0x91, 0x64, 0xe0, 0x1e, 0xfe, 0xad, 0x94, 0xb0, + 0x0a, 0x05, 0xf8, 0xf9, 0x6b, 0xab, 0xdd, 0x4e, 0x20, 0x44, 0x10, 0x32, 0x0a, 0x92, 0x53, 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4, 0x77, 0x10, 0xfa, 0x96, 0x70, 0x85, 0x1e, 0x8e, 0x02, 0xae, + 0xe7, 0xcb, 0x29, 0x99, 0x89, 0x05, 0x35, 0x02, 0x6b, 0x6d, 0xe3, 0xe1, 0x20, 0x96, 0xb3, 0xdc, + 0xec, 0xd3, 0xaa, 0xb1, 0xe6, 0xf9, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x70, 0x1f, 0x76, + 0x09, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -125,7 +126,7 @@ func (c *searchClient) StreamSearch(ctx context.Context, opts ...grpc.CallOption type Search_StreamSearchClient interface { Send(*payload.Search_Request) error - Recv() (*payload.Search_Response, error) + Recv() (*payload.Search_StreamResponse, error) grpc.ClientStream } @@ -137,8 +138,8 @@ func (x *searchStreamSearchClient) Send(m *payload.Search_Request) error { return x.ClientStream.SendMsg(m) } -func (x *searchStreamSearchClient) Recv() (*payload.Search_Response, error) { - m := new(payload.Search_Response) +func (x *searchStreamSearchClient) Recv() (*payload.Search_StreamResponse, error) { + m := new(payload.Search_StreamResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -156,7 +157,7 @@ func (c *searchClient) StreamSearchByID(ctx context.Context, opts ...grpc.CallOp type Search_StreamSearchByIDClient interface { Send(*payload.Search_IDRequest) error - Recv() (*payload.Search_Response, error) + Recv() (*payload.Search_StreamResponse, error) grpc.ClientStream } @@ -168,8 +169,8 @@ func (x *searchStreamSearchByIDClient) Send(m *payload.Search_IDRequest) error { return x.ClientStream.SendMsg(m) } -func (x *searchStreamSearchByIDClient) Recv() (*payload.Search_Response, error) { - m := new(payload.Search_Response) +func (x *searchStreamSearchByIDClient) Recv() (*payload.Search_StreamResponse, error) { + m := new(payload.Search_StreamResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -272,7 +273,7 @@ func _Search_StreamSearch_Handler(srv interface{}, stream grpc.ServerStream) err } type Search_StreamSearchServer interface { - Send(*payload.Search_Response) error + Send(*payload.Search_StreamResponse) error Recv() (*payload.Search_Request, error) grpc.ServerStream } @@ -281,7 +282,7 @@ type searchStreamSearchServer struct { grpc.ServerStream } -func (x *searchStreamSearchServer) Send(m *payload.Search_Response) error { +func (x *searchStreamSearchServer) Send(m *payload.Search_StreamResponse) error { return x.ServerStream.SendMsg(m) } @@ -298,7 +299,7 @@ func _Search_StreamSearchByID_Handler(srv interface{}, stream grpc.ServerStream) } type Search_StreamSearchByIDServer interface { - Send(*payload.Search_Response) error + Send(*payload.Search_StreamResponse) error Recv() (*payload.Search_IDRequest, error) grpc.ServerStream } @@ -307,7 +308,7 @@ type searchStreamSearchByIDServer struct { grpc.ServerStream } -func (x *searchStreamSearchByIDServer) Send(m *payload.Search_Response) error { +func (x *searchStreamSearchByIDServer) Send(m *payload.Search_StreamResponse) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/update.pb.go b/apis/grpc/v1/vald/update.pb.go index a4281f7f6fd..66ffb5fa41b 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -43,26 +43,27 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/update.proto", fileDescriptor_a564bbf4b2600403) } var fileDescriptor_a564bbf4b2600403 = []byte{ - // 297 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xb1, 0x4a, 0xc4, 0x40, - 0x10, 0x86, 0xdd, 0x2b, 0xee, 0x60, 0xbd, 0x42, 0x02, 0x36, 0xb9, 0x23, 0x07, 0xb1, 0x50, 0x2c, - 0x76, 0x8d, 0x76, 0x96, 0x57, 0x7b, 0x28, 0xca, 0x59, 0xd8, 0xc8, 0x24, 0x59, 0xe2, 0xca, 0x26, - 0xb3, 0x26, 0x9b, 0x80, 0xad, 0xaf, 0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1f, 0xcb, 0x8c, - 0x35, 0x29, 0x40, 0xc5, 0xec, 0xfb, 0x83, 0x96, 0x1d, 0xb2, 0x9b, 0x97, 0xf4, 0x1a, 0x54, 0xea, - 0xfe, 0x7e, 0x41, 0x6e, 0xf6, 0x33, 0x69, 0xee, 0xea, 0x98, 0x25, 0x98, 0x73, 0x7b, 0xe0, 0x3a, - 0xb4, 0x65, 0x65, 0xa5, 0x4e, 0x86, 0x56, 0xe3, 0xb1, 0xed, 0xe0, 0xe4, 0x2b, 0x00, 0x00, 0xff, - 0xff, 0x08, 0x6a, 0x73, 0x66, 0xf2, 0x01, 0x00, 0x00, + // 305 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x31, 0x4a, 0xc4, 0x40, + 0x14, 0x86, 0x9d, 0x2d, 0x76, 0x61, 0xdc, 0x42, 0x02, 0x36, 0xd9, 0x65, 0x17, 0x63, 0xa1, 0x58, + 0xcc, 0x18, 0xed, 0x2c, 0xb7, 0x56, 0x14, 0x97, 0xb5, 0xb0, 0x91, 0x97, 0x64, 0x88, 0x23, 0x93, + 0xbc, 0x31, 0x99, 0x04, 0x6c, 0xbd, 0x82, 0x07, 0xf0, 0x3a, 0x96, 0x82, 0x17, 0x90, 0xe0, 0x41, + 0x24, 0x33, 0xc9, 0xa2, 0xb0, 0x88, 0xd5, 0x0c, 0xef, 0x7f, 0xff, 0xf7, 0x7e, 0xf8, 0xe9, 0x1c, + 0xb4, 0x2c, 0xb9, 0x2e, 0xd0, 0x20, 0xaf, 0x43, 0x5e, 0x83, 0x4a, 0x78, 0xa5, 0x13, 0x30, 0x82, + 0xd9, 0xa1, 0x37, 0x6a, 0x47, 0xac, 0x0e, 0xfd, 0xfd, 0xdf, 0x9b, 0x1a, 0x9e, 0x14, 0x42, 0xd2, + 0xbf, 0x6e, 0xdb, 0x9f, 0xa6, 0x88, 0xa9, 0x12, 0x1c, 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01, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -110,7 +111,7 @@ func (c *updateClient) StreamUpdate(ctx context.Context, opts ...grpc.CallOption type Update_StreamUpdateClient interface { Send(*payload.Update_Request) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -122,8 +123,8 @@ func (x *updateStreamUpdateClient) Send(m *payload.Update_Request) error { return x.ClientStream.SendMsg(m) } -func (x *updateStreamUpdateClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *updateStreamUpdateClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -187,7 +188,7 @@ func _Update_StreamUpdate_Handler(srv interface{}, stream grpc.ServerStream) err } type Update_StreamUpdateServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Update_Request, error) grpc.ServerStream } @@ -196,7 +197,7 @@ type updateStreamUpdateServer struct { grpc.ServerStream } -func (x *updateStreamUpdateServer) Send(m *payload.Object_Location) error { +func (x *updateStreamUpdateServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/grpc/v1/vald/upsert.pb.go b/apis/grpc/v1/vald/upsert.pb.go index c589275d08f..425996ce83a 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -43,26 +43,27 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("apis/proto/v1/vald/upsert.proto", fileDescriptor_792e000853e2404f) } var fileDescriptor_792e000853e2404f = []byte{ - // 300 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x2c, 0xc8, 0x2c, - 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x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 0xb5, 0x62, 0xd4, - 0x72, 0x8a, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xb9, - 0xa4, 0xf2, 0x8b, 0xd2, 0xf5, 0xca, 0x52, 0x12, 0x13, 0x8b, 0xf5, 0xc0, 0xe1, 0x9f, 0x58, 0x90, - 0x09, 0x32, 0x12, 0xc4, 0x76, 0xe2, 0x0a, 0x4b, 0xcc, 0x49, 0x81, 0xd8, 0x1e, 0xc0, 0x18, 0xa5, - 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0xd6, 0x00, 0x89, 0x43, - 0x70, 0x64, 0xa5, 0x17, 0x15, 0x24, 0xc3, 0x62, 0x35, 0x89, 0x0d, 0x1c, 0x07, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xc0, 0x0b, 0x33, 0x0f, 0xf2, 0x01, 0x00, 0x00, + // 306 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4a, 0xc3, 0x30, + 0x18, 0xc7, 0xcd, 0x0e, 0x1b, 0xc4, 0x1d, 0xa4, 0xe0, 0xa5, 0x1b, 0x1d, 0xd6, 0x83, 0xb2, 0x43, + 0x62, 0xf5, 0xb6, 0xe3, 0xce, 0x8a, 0xe2, 0x98, 0x07, 0x2f, 0xf2, 0xb5, 0x0d, 0x35, 0x92, 0x36, + 0xb1, 0x49, 0x0b, 0x5e, 0x7d, 0x05, 0x1f, 0xc0, 0xd7, 0xf1, 0x28, 0xf8, 0x02, 0x52, 0x7c, 0x10, + 0x69, 0xd2, 0x0e, 0x85, 0x21, 0x9e, 0x12, 0xbe, 0xff, 0xf7, 0xff, 0x7d, 0x7f, 0xf8, 0xe3, 0x19, + 0x28, 0xae, 0xa9, 0x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, 0x5f, 0xa1, 0xdb, 0xa3, 0x8c, 0x9b, + 0xfb, 0x2a, 0x26, 0x89, 0xcc, 0xa9, 0x35, 0xb8, 0x26, 0x6d, 0x65, 0x59, 0xa9, 0x92, 0xbe, 0xdb, + 0x78, 0x68, 0x9b, 0x38, 0xfb, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x92, 0xcb, 0x48, 0xf8, 0x01, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -110,7 +111,7 @@ func (c *upsertClient) StreamUpsert(ctx context.Context, opts ...grpc.CallOption type Upsert_StreamUpsertClient interface { Send(*payload.Upsert_Request) error - Recv() (*payload.Object_Location, error) + Recv() (*payload.Object_StreamLocation, error) grpc.ClientStream } @@ -122,8 +123,8 @@ func (x *upsertStreamUpsertClient) Send(m *payload.Upsert_Request) error { return x.ClientStream.SendMsg(m) } -func (x *upsertStreamUpsertClient) Recv() (*payload.Object_Location, error) { - m := new(payload.Object_Location) +func (x *upsertStreamUpsertClient) Recv() (*payload.Object_StreamLocation, error) { + m := new(payload.Object_StreamLocation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } @@ -187,7 +188,7 @@ func _Upsert_StreamUpsert_Handler(srv interface{}, stream grpc.ServerStream) err } type Upsert_StreamUpsertServer interface { - Send(*payload.Object_Location) error + Send(*payload.Object_StreamLocation) error Recv() (*payload.Upsert_Request, error) grpc.ServerStream } @@ -196,7 +197,7 @@ type upsertStreamUpsertServer struct { grpc.ServerStream } -func (x *upsertStreamUpsertServer) Send(m *payload.Object_Location) error { +func (x *upsertStreamUpsertServer) Send(m *payload.Object_StreamLocation) error { return x.ServerStream.SendMsg(m) } diff --git a/apis/proto/v1/filter/egress/egress_filter.proto b/apis/proto/v1/filter/egress/egress_filter.proto index 6b321e9094b..200b25e87f1 100644 --- a/apis/proto/v1/filter/egress/egress_filter.proto +++ b/apis/proto/v1/filter/egress/egress_filter.proto @@ -29,5 +29,5 @@ service EgressFilter { rpc Filter(payload.v1.Object.Distance) returns (payload.v1.Object.Distance) {} rpc StreamFilter(stream payload.v1.Object.Distance) - returns (stream payload.v1.Object.Distance) {} + returns (stream payload.v1.Object.StreamDistance) {} } diff --git a/apis/proto/v1/filter/ingress/ingress_filter.proto b/apis/proto/v1/filter/ingress/ingress_filter.proto index f479714dd82..60430349070 100644 --- a/apis/proto/v1/filter/ingress/ingress_filter.proto +++ b/apis/proto/v1/filter/ingress/ingress_filter.proto @@ -35,7 +35,7 @@ service IngressFilter { }; } rpc StreamGenVector(stream payload.v1.Object.Blob) - returns (stream payload.v1.Object.Vector) {} + returns (stream payload.v1.Object.StreamVector) {} rpc FilterVector(payload.v1.Object.Vector) returns (payload.v1.Object.Vector) { option (google.api.http) = { @@ -45,5 +45,5 @@ service IngressFilter { } rpc StreamFilterVector(stream payload.v1.Object.Vector) - returns (stream payload.v1.Object.Vector) {} + returns (stream payload.v1.Object.StreamVector) {} } diff --git a/apis/proto/v1/gateway/vald/vald.proto b/apis/proto/v1/gateway/vald/vald.proto index 6c2986d2bed..bd0ccccff26 100644 --- a/apis/proto/v1/gateway/vald/vald.proto +++ b/apis/proto/v1/gateway/vald/vald.proto @@ -87,7 +87,8 @@ service Vald { option (google.api.http).delete = "/remove/{id}"; } - rpc StreamRemove(stream payload.v1.Object.ID) returns (stream payload.v1.Object.Location) {} + rpc StreamRemove(stream payload.v1.Object.ID) + returns (stream payload.v1.Object.Location) {} rpc MultiRemove(payload.v1.Object.IDs) returns (payload.v1.Object.Locations) {} rpc GetObject(payload.v1.Object.ID) returns (payload.v1.Object.Vector) { diff --git a/apis/proto/v1/manager/compressor/compressor.proto b/apis/proto/v1/manager/compressor/compressor.proto index 757ea2c2ca2..8a236997e1d 100644 --- a/apis/proto/v1/manager/compressor/compressor.proto +++ b/apis/proto/v1/manager/compressor/compressor.proto @@ -34,10 +34,6 @@ service Backup { option (google.api.http).get = "/vector/{uuid}"; } - // rpc GetVectorsByOwner(payload.v1.Backup.GetVector.Owner) returns (stream payload.v1.Backup.Vector) { - // option (google.api.http).get = "/vector/{uuid}"; - // } - rpc Locations(payload.v1.Backup.Locations.Request) returns (payload.v1.Info.IPs) { option (google.api.http).get = "/locations/{uuid}"; } diff --git a/apis/proto/v1/payload/payload.proto b/apis/proto/v1/payload/payload.proto index e74fdcdf822..0579af0773b 100644 --- a/apis/proto/v1/payload/payload.proto +++ b/apis/proto/v1/payload/payload.proto @@ -23,6 +23,7 @@ option java_multiple_files = true; option java_package = "org.vdaas.vald.api.v1.payload"; option java_outer_classname = "ValdPayload"; +import "apis/proto/v1/errors/errors.proto"; import "github.com/envoyproxy/protoc-gen-validate/validate/validate.proto"; message Search { @@ -64,6 +65,13 @@ message Search { message Responses { repeated Response responses = 1; } + + message StreamResponse { + oneof payload{ + Response response = 1; + errors.v1.Errors.RPC error = 2; + } + } } message Filter { @@ -149,6 +157,13 @@ message Object { float distance = 2; } + message StreamDistance { + oneof payload{ + Distance distance = 1; + errors.v1.Errors.RPC error = 2; + } + } + message ID { string id = 1 [ (validate.rules).string.min_len = 1 ]; } message IDs { repeated string ids = 1; } @@ -158,17 +173,39 @@ message Object { } message Vectors { repeated Vector vectors = 1; } + message StreamVector { + oneof payload{ + Vector vector = 1; + errors.v1.Errors.RPC error = 2; + } + } + message Blob { string id = 1 [ (validate.rules).string.min_len = 1 ]; bytes object = 2; } + message StreamBlob { + oneof payload{ + Blob blob = 1; + errors.v1.Errors.RPC error = 2; + } + } + + message Location { string name = 1; string uuid = 2; repeated string ips = 3; } + message StreamLocation { + oneof payload{ + Location location = 1; + errors.v1.Errors.RPC error = 2; + } + } + message Locations { repeated Location locations = 1; } diff --git a/apis/proto/v1/vald/filter.proto b/apis/proto/v1/vald/filter.proto index 1891e0f318c..c4e10de95af 100644 --- a/apis/proto/v1/vald/filter.proto +++ b/apis/proto/v1/vald/filter.proto @@ -35,7 +35,7 @@ service Filter { }; } rpc StreamSearchObject(stream payload.v1.Search.ObjectRequest) - returns (stream payload.v1.Search.Response) {} + returns (stream payload.v1.Search.StreamResponse) {} rpc InsertObject(payload.v1.Object.Blob) returns (payload.v1.Object.Location) { option (google.api.http) = { @@ -45,7 +45,7 @@ service Filter { } rpc StreamInsertObject(stream payload.v1.Object.Blob) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiInsertObject(payload.v1.Object.Blob) returns (payload.v1.Object.Locations) {} rpc UpdateObject(payload.v1.Object.Blob) returns (payload.v1.Object.Location) { @@ -55,7 +55,7 @@ service Filter { }; } rpc StreamUpdateObject(stream payload.v1.Object.Blob) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiUpdateObject(payload.v1.Object.Blob) returns (payload.v1.Object.Locations) {} rpc UpsertObject(payload.v1.Object.Blob) returns (payload.v1.Object.Location) { @@ -65,6 +65,6 @@ service Filter { }; } rpc StreamUpsertObject(stream payload.v1.Object.Blob) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiUpsertObject(payload.v1.Object.Blob) returns (payload.v1.Object.Locations) {} } diff --git a/apis/proto/v1/vald/insert.proto b/apis/proto/v1/vald/insert.proto index ff590f8f50e..9357fcbbc76 100644 --- a/apis/proto/v1/vald/insert.proto +++ b/apis/proto/v1/vald/insert.proto @@ -37,7 +37,7 @@ service Insert { } rpc StreamInsert(stream payload.v1.Insert.Request) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations) { option (google.api.http) = { diff --git a/apis/proto/v1/vald/object.proto b/apis/proto/v1/vald/object.proto index 0ea2e93c7c2..2fd8fd29c15 100644 --- a/apis/proto/v1/vald/object.proto +++ b/apis/proto/v1/vald/object.proto @@ -36,5 +36,5 @@ service Object { option (google.api.http).get = "/object/{id}"; } rpc StreamGetObject(stream payload.v1.Object.ID) - returns (stream payload.v1.Object.Vector) {} + returns (stream payload.v1.Object.StreamVector) {} } diff --git a/apis/proto/v1/vald/remove.proto b/apis/proto/v1/vald/remove.proto index 041dd985d33..3ae567b8380 100644 --- a/apis/proto/v1/vald/remove.proto +++ b/apis/proto/v1/vald/remove.proto @@ -29,16 +29,19 @@ import "google/api/annotations.proto"; service Remove { rpc Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location) { - option (google.api.http) = { - post : "/remove" - body : "*" - }; + option (google.api.http) = { + post : "/remove" + body : "*" + }; } - rpc StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.Location) {} + + rpc StreamRemove(stream payload.v1.Remove.Request) + returns (stream payload.v1.Object.StreamLocation) {} + rpc MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations) { - option (google.api.http) = { - post : "/remove/multiple" - body : "*" - }; + option (google.api.http) = { + post : "/remove/multiple" + body : "*" + }; } } diff --git a/apis/proto/v1/vald/search.proto b/apis/proto/v1/vald/search.proto index 43544ac66d1..2d5c5692799 100644 --- a/apis/proto/v1/vald/search.proto +++ b/apis/proto/v1/vald/search.proto @@ -44,10 +44,10 @@ service Search { } rpc StreamSearch(stream payload.v1.Search.Request) - returns (stream payload.v1.Search.Response) {} + returns (stream payload.v1.Search.StreamResponse) {} rpc StreamSearchByID(stream payload.v1.Search.IDRequest) - returns (stream payload.v1.Search.Response) {} + returns (stream payload.v1.Search.StreamResponse) {} rpc MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses) { diff --git a/apis/proto/v1/vald/update.proto b/apis/proto/v1/vald/update.proto index e8437dc33e7..c8591bee90a 100644 --- a/apis/proto/v1/vald/update.proto +++ b/apis/proto/v1/vald/update.proto @@ -37,7 +37,7 @@ service Update { } rpc StreamUpdate(stream payload.v1.Update.Request) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations) { option (google.api.http) = { diff --git a/apis/proto/v1/vald/upsert.proto b/apis/proto/v1/vald/upsert.proto index 273bba00b3a..8cfc5b7988b 100644 --- a/apis/proto/v1/vald/upsert.proto +++ b/apis/proto/v1/vald/upsert.proto @@ -37,7 +37,7 @@ service Upsert { } rpc StreamUpsert(stream payload.v1.Upsert.Request) - returns (stream payload.v1.Object.Location) {} + returns (stream payload.v1.Object.StreamLocation) {} rpc MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations) { option (google.api.http) = { diff --git a/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json b/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json index 1cf8c542e1d..7d769acbefa 100644 --- a/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json +++ b/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json @@ -12,6 +12,39 @@ ], "paths": {}, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectDistance": { "type": "object", "properties": { @@ -24,6 +57,17 @@ } } }, + "ObjectStreamDistance": { + "type": "object", + "properties": { + "distance": { + "$ref": "#/definitions/ObjectDistance" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/filter/ingress/apis/proto/v1/filter/ingress/ingress_filter.swagger.json b/apis/swagger/v1/filter/ingress/apis/proto/v1/filter/ingress/ingress_filter.swagger.json index d9d1c0c9ce9..efd80b81c44 100644 --- a/apis/swagger/v1/filter/ingress/apis/proto/v1/filter/ingress/ingress_filter.swagger.json +++ b/apis/swagger/v1/filter/ingress/apis/proto/v1/filter/ingress/ingress_filter.swagger.json @@ -77,6 +77,39 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectBlob": { "type": "object", "properties": { @@ -89,6 +122,17 @@ } } }, + "ObjectStreamVector": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/v1ObjectVector" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json index 3c25d08fbee..0f1fcb22b90 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json @@ -141,6 +141,39 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectBlob": { "type": "object", "properties": { @@ -165,6 +198,17 @@ } } }, + "ObjectStreamLocation": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/v1ObjectLocation" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "SearchObjectRequest": { "type": "object", "properties": { @@ -191,6 +235,17 @@ } } }, + "SearchStreamResponse": { + "type": "object", + "properties": { + "response": { + "$ref": "#/definitions/SearchResponse" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json index f2d92fa5486..b137c97658b 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json @@ -77,6 +77,50 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, + "ObjectStreamLocation": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/v1ObjectLocation" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json index bc7d6fd874c..9cb1dd34a56 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json @@ -73,6 +73,39 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectID": { "type": "object", "properties": { @@ -81,6 +114,17 @@ } } }, + "ObjectStreamVector": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/v1ObjectVector" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json index af444ed494e..676d5dd1a51 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json @@ -77,6 +77,39 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectID": { "type": "object", "properties": { @@ -85,6 +118,17 @@ } } }, + "ObjectStreamLocation": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/v1ObjectLocation" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "payloadv1RemoveRequest": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json index 835e1df0684..77ad99b071d 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json @@ -109,6 +109,39 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, "ObjectDistance": { "type": "object", "properties": { @@ -157,6 +190,17 @@ } } }, + "SearchStreamResponse": { + "type": "object", + "properties": { + "response": { + "$ref": "#/definitions/SearchResponse" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json index 5edfccf6b4a..cbbce20dc07 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json @@ -77,6 +77,50 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, + "ObjectStreamLocation": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/v1ObjectLocation" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json index 73c7b4f03be..5ca7494f6d5 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json @@ -77,6 +77,50 @@ } }, "definitions": { + "ErrorsRPC": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance": { + "type": "string" + }, + "status": { + "type": "string", + "format": "int64" + }, + "error": { + "type": "string" + }, + "roots": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorsRPC" + } + } + } + }, + "ObjectStreamLocation": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/v1ObjectLocation" + }, + "error": { + "$ref": "#/definitions/ErrorsRPC" + } + } + }, "protobufAny": { "type": "object", "properties": { diff --git a/go.mod b/go.mod index 296abdbfd3a..4636991dc14 100755 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.15 replace ( cloud.google.com/go => cloud.google.com/go v0.75.0 github.com/Azure/go-autorest => github.com/Azure/go-autorest v14.2.0+incompatible - github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.36.24 + github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.36.26 github.com/boltdb/bolt => github.com/boltdb/bolt v1.3.1 github.com/chzyer/logex => github.com/chzyer/logex v1.1.11-0.20170329064859-445be9e134b2 github.com/coreos/etcd => go.etcd.io/etcd v3.3.25+incompatible @@ -16,21 +16,21 @@ replace ( github.com/gogo/googleapis => github.com/gogo/googleapis v1.4.0 github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2 github.com/google/go-cmp => github.com/google/go-cmp v0.5.4 - github.com/google/pprof => github.com/google/pprof v0.0.0-20210106224343-284c741746fe + github.com/google/pprof => github.com/google/pprof v0.0.0-20210113181839-3dbeb6209700 github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.5.3 github.com/gophercloud/gophercloud => github.com/gophercloud/gophercloud v0.15.0 github.com/gorilla/websocket => github.com/gorilla/websocket v1.4.2 github.com/hailocab/go-hostpool => github.com/monzo/go-hostpool v0.0.0-20200724120130-287edbb29340 - github.com/klauspost/compress => github.com/klauspost/compress v1.11.7-0.20210108121608-b45090ed3abc + github.com/klauspost/compress => github.com/klauspost/compress v1.11.7-0.20210113214823-85d8ebff245c github.com/tensorflow/tensorflow => github.com/tensorflow/tensorflow v2.1.2+incompatible golang.org/x/crypto => golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad - google.golang.org/grpc => google.golang.org/grpc v1.34.1 + google.golang.org/grpc => google.golang.org/grpc v1.35.0 google.golang.org/protobuf => google.golang.org/protobuf v1.25.0 - k8s.io/api => k8s.io/api v0.20.1 - k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.1 - k8s.io/apimachinery => k8s.io/apimachinery v0.20.1 - k8s.io/client-go => k8s.io/client-go v0.20.1 - k8s.io/metrics => k8s.io/metrics v0.20.1 + k8s.io/api => k8s.io/api v0.20.2 + k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2 + k8s.io/apimachinery => k8s.io/apimachinery v0.20.2 + k8s.io/client-go => k8s.io/client-go v0.20.2 + k8s.io/metrics => k8s.io/metrics v0.20.2 sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.7.0 ) @@ -70,16 +70,16 @@ require ( go.uber.org/goleak v1.1.10 golang.org/x/net v0.0.0-20201224014010-6772e930b67b golang.org/x/sync v0.0.0-20201207232520-09787c993a3a - golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061 + golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78 gonum.org/v1/hdf5 v0.0.0-20200504100616-496fefe91614 gonum.org/v1/plot v0.8.1 google.golang.org/api v0.36.0 - google.golang.org/genproto v0.0.0-20210111234610-22ae2b108f89 + google.golang.org/genproto v0.0.0-20210113195801-ae06605f4595 google.golang.org/grpc v1.34.0 gopkg.in/yaml.v2 v2.4.0 - k8s.io/api v0.20.1 - k8s.io/apimachinery v0.20.1 - k8s.io/client-go v0.20.1 + k8s.io/api v0.20.2 + k8s.io/apimachinery v0.20.2 + k8s.io/client-go v0.20.2 k8s.io/metrics v0.0.0-00010101000000-000000000000 sigs.k8s.io/controller-runtime v0.0.0-00010101000000-000000000000 ) diff --git a/go.sum b/go.sum index 0b970290c27..9d8a941b4ba 100644 --- a/go.sum +++ b/go.sum @@ -58,8 +58,8 @@ github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hC github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.36.24 h1:uVuio0zA5ideP3DGZDpIoExQJd0WcoNUVlNZaKwBnf8= -github.com/aws/aws-sdk-go v1.36.24/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go v1.36.26 h1:710u7Q1xpbzpigh/RPPUXwr/5X/VwCxTXSeam8icgos= +github.com/aws/aws-sdk-go v1.36.26/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -83,7 +83,7 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/chzyer/logex v1.1.11-0.20170329064859-445be9e134b2/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= @@ -111,7 +111,7 @@ github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25Kn github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.4.1 h1:7dLaJvASGRD7X49jSCSXXHwKPm0ZN9r9kJD+p+vS7dM= github.com/envoyproxy/protoc-gen-validate v0.4.1/go.mod h1:E+IEazqdaWv3FrnGtZIu3b9fPFMK8AzeTTrk9SfVwWs= github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= @@ -204,8 +204,8 @@ github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian/v3 v3.1.0 h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20210106224343-284c741746fe h1:axurMRwJ5nIHaHUIbpG5IHj/JMXTuLdAtQA4DySW3z4= -github.com/google/pprof v0.0.0-20210106224343-284c741746fe/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210113181839-3dbeb6209700 h1:5eAAJlGABV6Xn8t2YeivHi7tvJVaKrfSyFeL2e8f7c0= +github.com/google/pprof v0.0.0-20210113181839-3dbeb6209700/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -280,8 +280,8 @@ github.com/jung-kurt/gofpdf v1.16.2 h1:jgbatWHfRlPYiK85qgevsZTHviWXKwB1TTiKdz5Pt github.com/jung-kurt/gofpdf v1.16.2/go.mod h1:1hl7y57EsiPAkLbOwzpzqgx1A30nQCk/YmFV8S2vmK0= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.11.7-0.20210108121608-b45090ed3abc h1:Y37r2/o9wEUk+TJP+js+pIgeDhmdidxmfPaQ7HEbWTw= -github.com/klauspost/compress v1.11.7-0.20210108121608-b45090ed3abc/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.7-0.20210113214823-85d8ebff245c h1:aDlskYbNGh3VUDSCsmrtqIwJHoY3jJEBG2Rpr40Bars= +github.com/klauspost/compress v1.11.7-0.20210113214823-85d8ebff245c/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -656,8 +656,8 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061 h1:DQmQoKxQWtyybCtX/3dIuDBcAhFszqq8YiNeS6sNu1c= -golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78 h1:nVuTkr9L6Bq62qpUqKo/RnZCFfzDBL0bYo6w9OJUqZY= +golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -783,10 +783,10 @@ google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210111234610-22ae2b108f89 h1:R2owLnwrU3BdTJ5R9cnHDNsnEmBQ7n5lZjKShnbISe4= -google.golang.org/genproto v0.0.0-20210111234610-22ae2b108f89/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.34.1 h1:ugq+9++ZQPFzM2pKUMCIK8gj9M0pFyuUWO9Q8kwEDQw= -google.golang.org/grpc v1.34.1/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/genproto v0.0.0-20210113195801-ae06605f4595 h1:x7nk+/4+SvuTDI4wnzQUlhvi+DTpyfncXBo3QWTFs7U= +google.golang.org/genproto v0.0.0-20210113195801-ae06605f4595/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= @@ -828,19 +828,19 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -k8s.io/api v0.20.1 h1:ud1c3W3YNzGd6ABJlbFfKXBKXO+1KdGfcgGGNgFR03E= -k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo= -k8s.io/apiextensions-apiserver v0.20.1 h1:ZrXQeslal+6zKM/HjDXLzThlz/vPSxrfK3OqL8txgVQ= -k8s.io/apiextensions-apiserver v0.20.1/go.mod h1:ntnrZV+6a3dB504qwC5PN/Yg9PBiDNt1EVqbW2kORVk= -k8s.io/apimachinery v0.20.1 h1:LAhz8pKbgR8tUwn7boK+b2HZdt7MiTu2mkYtFMUjTRQ= -k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU= -k8s.io/client-go v0.20.1 h1:Qquik0xNFbK9aUG92pxHYsyfea5/RPO9o9bSywNor+M= -k8s.io/client-go v0.20.1/go.mod h1:/zcHdt1TeWSd5HoUe6elJmHSQ6uLLgp4bIJHVEuy+/Y= -k8s.io/code-generator v0.20.1/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= +k8s.io/api v0.20.2 h1:y/HR22XDZY3pniu9hIFDLpUCPq2w5eQ6aV/VFQ7uJMw= +k8s.io/api v0.20.2/go.mod h1:d7n6Ehyzx+S+cE3VhTGfVNNqtGc/oL9DCdYYahlurV8= +k8s.io/apiextensions-apiserver v0.20.2 h1:rfrMWQ87lhd8EzQWRnbQ4gXrniL/yTRBgYH1x1+BLlo= +k8s.io/apiextensions-apiserver v0.20.2/go.mod h1:F6TXp389Xntt+LUq3vw6HFOLttPa0V8821ogLGwb6Zs= +k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= +k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= +k8s.io/apiserver v0.20.2/go.mod h1:2nKd93WyMhZx4Hp3RfgH2K5PhwyTrprrkWYnI7id7jA= +k8s.io/client-go v0.20.2 h1:uuf+iIAbfnCSw8IGAv/Rg0giM+2bOzHLOsbbrwrdhNQ= +k8s.io/client-go v0.20.2/go.mod h1:kH5brqWqp7HDxUFKoEgiI4v8G1xzbe9giaCenUWJzgE= +k8s.io/code-generator v0.20.2/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= k8s.io/component-base v0.19.2/go.mod h1:g5LrsiTiabMLZ40AR6Hl45f088DevyGY+cCE2agEIVo= -k8s.io/component-base v0.20.1 h1:6OQaHr205NSl24t5wOF2IhdrlxZTWEZwuGlLvBgaeIg= -k8s.io/component-base v0.20.1/go.mod h1:guxkoJnNoh8LNrbtiQOlyp2Y2XFCZQmrcg2n/DeYNLk= +k8s.io/component-base v0.20.2 h1:LMmu5I0pLtwjpp5009KLuMGFqSc2S2isGw8t1hpYKLE= +k8s.io/component-base v0.20.2/go.mod h1:pzFtCiwe/ASD0iV7ySMu8SYVJjCapNM9bjvk7ptpKh0= k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= @@ -849,8 +849,8 @@ k8s.io/klog/v2 v2.4.0 h1:7+X0fUguPyrKEC4WjH8iGDg3laWgMo5tMnRTIGTTxGQ= k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= -k8s.io/metrics v0.20.1 h1:c03Mn9FpIOV3r5WSkF4VelFdlIGH9UYR4onIxrMBnHI= -k8s.io/metrics v0.20.1/go.mod h1:JhpBE/fad3yRGsgEpiZz5FQQM5wJ18OTLkD7Tv40c0s= +k8s.io/metrics v0.20.2 h1:o32EchiH4ukpUg86VLLAgkE9a9Ke0lijkzYxE+wSSRk= +k8s.io/metrics v0.20.2/go.mod h1:yTck5nl5wt/lIeLcU6g0b8/AKJf2girwe0PQiaM4Mwk= k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20200912215256-4140de9c8800/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw= diff --git a/hack/go.mod.default b/hack/go.mod.default index 49dfd2a432f..5ccb43d6bdb 100755 --- a/hack/go.mod.default +++ b/hack/go.mod.default @@ -26,11 +26,11 @@ replace ( golang.org/x/crypto => golang.org/x/crypto latest google.golang.org/grpc => google.golang.org/grpc latest google.golang.org/protobuf => google.golang.org/protobuf latest - k8s.io/api => k8s.io/api v0.20.1 - k8s.io/client-go => k8s.io/client-go v0.20.1 - k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.1 - k8s.io/apimachinery => k8s.io/apimachinery v0.20.1 - k8s.io/client-go => k8s.io/client-go v0.20.1 - k8s.io/metrics => k8s.io/metrics v0.20.1 + k8s.io/api => k8s.io/api v0.20.2 + k8s.io/client-go => k8s.io/client-go v0.20.2 + k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2 + k8s.io/apimachinery => k8s.io/apimachinery v0.20.2 + k8s.io/client-go => k8s.io/client-go v0.20.2 + k8s.io/metrics => k8s.io/metrics v0.20.2 sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.7.0 ) diff --git a/internal/net/grpc/addrs.go b/internal/net/grpc/addrs.go index 1ded6b1266a..a60ab2757fe 100644 --- a/internal/net/grpc/addrs.go +++ b/internal/net/grpc/addrs.go @@ -36,7 +36,6 @@ type atomicAddrs struct { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } func newAddr(addrList map[string]struct{}) AtomicAddrs { @@ -51,7 +50,6 @@ func newAddr(addrList map[string]struct{}) AtomicAddrs { addrs = append(addrs, addr) } a.addrs.Store(addrs) - atomic.StoreUint64(&a.l, uint64(len(addrs))) } return a } @@ -99,7 +97,6 @@ func (a *atomicAddrs) Add(addr string) { } a.dupCheck[addr] = true a.addrs.Store(append(addrs, addr)) - atomic.StoreUint64(&a.l, uint64(len(addrs))) } } @@ -113,17 +110,20 @@ func (a *atomicAddrs) Delete(addr string) { addrs = append(addrs, addr) } a.addrs.Store(addrs) - atomic.StoreUint64(&a.l, uint64(len(addrs))) } } func (a *atomicAddrs) Next() (string, bool) { addrs, ok := a.GetAll() - if !ok { + if !ok || len(addrs) == 0 { return "", false } + l := uint64(len(addrs)) + if l == 1 { + return addrs[0], true + } for range addrs { - addr := addrs[atomic.AddUint64(&a.addrSeeker, 1)%atomic.LoadUint64(&a.l)] + addr := addrs[atomic.AddUint64(&a.addrSeeker, 1)%l] if len(addr) != 0 { return addr, true } @@ -132,5 +132,9 @@ func (a *atomicAddrs) Next() (string, bool) { } func (a *atomicAddrs) Len() uint64 { - return atomic.LoadUint64(&a.l) + addrs, ok := a.GetAll() + if !ok { + return 0 + } + return uint64(len(addrs)) } diff --git a/internal/net/grpc/addrs_test.go b/internal/net/grpc/addrs_test.go index 71fec0fc2d8..12f005df793 100644 --- a/internal/net/grpc/addrs_test.go +++ b/internal/net/grpc/addrs_test.go @@ -107,7 +107,6 @@ func Test_atomicAddrs_GetAll(t *testing.T) { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } type want struct { want []string @@ -140,7 +139,6 @@ func Test_atomicAddrs_GetAll(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -157,7 +155,6 @@ func Test_atomicAddrs_GetAll(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -185,7 +182,6 @@ func Test_atomicAddrs_GetAll(t *testing.T) { dupCheck: test.fields.dupCheck, mu: test.fields.mu, addrSeeker: test.fields.addrSeeker, - l: test.fields.l, } got, got1 := a.GetAll() @@ -206,7 +202,6 @@ func Test_atomicAddrs_Range(t *testing.T) { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } type want struct{} type test struct { @@ -234,7 +229,6 @@ func Test_atomicAddrs_Range(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -254,7 +248,6 @@ func Test_atomicAddrs_Range(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -282,7 +275,6 @@ func Test_atomicAddrs_Range(t *testing.T) { dupCheck: test.fields.dupCheck, mu: test.fields.mu, addrSeeker: test.fields.addrSeeker, - l: test.fields.l, } a.Range(test.args.f) @@ -303,7 +295,6 @@ func Test_atomicAddrs_Add(t *testing.T) { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } type want struct{} type test struct { @@ -331,7 +322,6 @@ func Test_atomicAddrs_Add(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -351,7 +341,6 @@ func Test_atomicAddrs_Add(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -379,7 +368,6 @@ func Test_atomicAddrs_Add(t *testing.T) { dupCheck: test.fields.dupCheck, mu: test.fields.mu, addrSeeker: test.fields.addrSeeker, - l: test.fields.l, } a.Add(test.args.addr) @@ -400,7 +388,6 @@ func Test_atomicAddrs_Delete(t *testing.T) { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } type want struct{} type test struct { @@ -428,7 +415,6 @@ func Test_atomicAddrs_Delete(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -448,7 +434,6 @@ func Test_atomicAddrs_Delete(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -476,7 +461,6 @@ func Test_atomicAddrs_Delete(t *testing.T) { dupCheck: test.fields.dupCheck, mu: test.fields.mu, addrSeeker: test.fields.addrSeeker, - l: test.fields.l, } a.Delete(test.args.addr) @@ -494,7 +478,6 @@ func Test_atomicAddrs_Next(t *testing.T) { dupCheck map[string]bool mu sync.RWMutex addrSeeker uint64 - l uint64 } type want struct { want string @@ -527,7 +510,6 @@ func Test_atomicAddrs_Next(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -544,7 +526,6 @@ func Test_atomicAddrs_Next(t *testing.T) { dupCheck: nil, mu: sync.RWMutex{}, addrSeeker: 0, - l: 0, }, want: want{}, checkFunc: defaultCheckFunc, @@ -572,7 +553,6 @@ func Test_atomicAddrs_Next(t *testing.T) { dupCheck: test.fields.dupCheck, mu: test.fields.mu, addrSeeker: test.fields.addrSeeker, - l: test.fields.l, } got, got1 := a.Next() @@ -582,3 +562,91 @@ func Test_atomicAddrs_Next(t *testing.T) { }) } } + +func Test_atomicAddrs_Len(t *testing.T) { + t.Parallel() + type fields struct { + addrs atomic.Value + dupCheck map[string]bool + mu sync.RWMutex + addrSeeker uint64 + } + type want struct { + want uint64 + } + type test struct { + name string + fields fields + want want + checkFunc func(want, uint64) error + beforeFunc func() + afterFunc func() + } + defaultCheckFunc := func(w want, got uint64) error { + if !reflect.DeepEqual(got, w.want) { + return errors.Errorf("got: \"%#v\",\n\t\t\t\twant: \"%#v\"", got, w.want) + } + return nil + } + tests := []test{ + // TODO test cases + /* + { + name: "test_case_1", + fields: fields { + addrs: nil, + dupCheck: nil, + mu: sync.RWMutex{}, + addrSeeker: 0, + }, + want: want{}, + checkFunc: defaultCheckFunc, + }, + */ + + // TODO test cases + /* + func() test { + return test { + name: "test_case_2", + fields: fields { + addrs: nil, + dupCheck: nil, + mu: sync.RWMutex{}, + addrSeeker: 0, + }, + want: want{}, + checkFunc: defaultCheckFunc, + } + }(), + */ + } + + for _, tc := range tests { + test := tc + t.Run(test.name, func(tt *testing.T) { + tt.Parallel() + defer goleak.VerifyNone(tt) + if test.beforeFunc != nil { + test.beforeFunc() + } + if test.afterFunc != nil { + defer test.afterFunc() + } + if test.checkFunc == nil { + test.checkFunc = defaultCheckFunc + } + a := &atomicAddrs{ + addrs: test.fields.addrs, + dupCheck: test.fields.dupCheck, + mu: test.fields.mu, + addrSeeker: test.fields.addrSeeker, + } + + got := a.Len() + if err := test.checkFunc(test.want, got); err != nil { + tt.Errorf("error = %v", err) + } + }) + } +} diff --git a/internal/net/grpc/status/status.go b/internal/net/grpc/status/status.go index 398bb659f2e..4d9be311856 100644 --- a/internal/net/grpc/status/status.go +++ b/internal/net/grpc/status/status.go @@ -49,6 +49,10 @@ var ( Code = status.Code ) +func New(c codes.Code, msg string) *status.Status { + return status.New(c, msg) +} + func newStatus(code codes.Code, msg string, err error, details ...interface{}) (st *status.Status) { st = status.New(code, msg) @@ -158,6 +162,9 @@ func WrapWithUnauthenticated(msg string, err error, details ...interface{}) erro } func FromError(err error) *errors.Errors_RPC { + if err == nil { + return nil + } for _, detail := range status.Convert(err).Details() { if err, ok := detail.(*errors.Errors_RPC); ok { return err diff --git a/internal/net/grpc/status/status_test.go b/internal/net/grpc/status/status_test.go index f71f44b5b78..f50e3b2f501 100644 --- a/internal/net/grpc/status/status_test.go +++ b/internal/net/grpc/status/status_test.go @@ -1445,3 +1445,79 @@ func TestFromError(t *testing.T) { }) } } + +func TestNew(t *testing.T) { + t.Parallel() + type args struct { + c codes.Code + msg string + } + type want struct { + want *status.Status + } + type test struct { + name string + args args + want want + checkFunc func(want, *status.Status) error + beforeFunc func(args) + afterFunc func(args) + } + defaultCheckFunc := func(w want, got *status.Status) error { + if !reflect.DeepEqual(got, w.want) { + return errors.Errorf("got: \"%#v\",\n\t\t\t\twant: \"%#v\"", got, w.want) + } + return nil + } + tests := []test{ + // TODO test cases + /* + { + name: "test_case_1", + args: args { + c: nil, + msg: "", + }, + want: want{}, + checkFunc: defaultCheckFunc, + }, + */ + + // TODO test cases + /* + func() test { + return test { + name: "test_case_2", + args: args { + c: nil, + msg: "", + }, + want: want{}, + checkFunc: defaultCheckFunc, + } + }(), + */ + } + + for _, tc := range tests { + test := tc + t.Run(test.name, func(tt *testing.T) { + tt.Parallel() + defer goleak.VerifyNone(tt) + if test.beforeFunc != nil { + test.beforeFunc(test.args) + } + if test.afterFunc != nil { + defer test.afterFunc(test.args) + } + if test.checkFunc == nil { + test.checkFunc = defaultCheckFunc + } + + got := New(test.args.c, test.args.msg) + if err := test.checkFunc(test.want, got); err != nil { + tt.Errorf("error = %v", err) + } + }) + } +} diff --git a/internal/net/grpc/stream.go b/internal/net/grpc/stream.go index 40d7b9042b6..167c1d4d1d7 100644 --- a/internal/net/grpc/stream.go +++ b/internal/net/grpc/stream.go @@ -20,12 +20,14 @@ package grpc import ( "context" "io" + "os" "runtime" "sync" "github.com/vdaas/vald/internal/errgroup" "github.com/vdaas/vald/internal/errors" "github.com/vdaas/vald/internal/log" + "github.com/vdaas/vald/internal/net/grpc/status" "github.com/vdaas/vald/internal/safety" "google.golang.org/grpc" ) @@ -46,34 +48,65 @@ func BidirectionalStream(ctx context.Context, stream grpc.ServerStream, errMap := sync.Map{} + finalize := func() error { + var errs error + err = eg.Wait() + if err != nil { + errs = errors.Wrap(errs, err.Error()) + log.Error(err) + } + var gerrs *errors.Errors_RPC + errMap.Range(func(m, e interface{}) bool { + err, ok := e.(error) + if !ok || err == nil { + return true + } + errs = errors.Wrap(errs, err.Error()) + gerr := status.FromError(err) + if msg, ok := m.(string); ok && gerr == nil { + hostname, err := os.Hostname() + if err != nil { + log.Warn("failed to fetch hostname:", err) + } + gerr = &errors.Errors_RPC{ + Type: status.Unknown.String(), + Msg: msg, + Instance: hostname, + } + } + if gerr == nil { + return true + } + if gerrs == nil { + gerrs = gerr + return true + } + if gerrs.Roots == nil { + gerr.Roots = make([]*errors.Errors_RPC, concurrency) + } + gerrs.Roots = append(gerrs.Roots, gerr) + return true + }) + st, err := status.New(status.Unknown, errs.Error()).WithDetails(gerrs) + if err != nil { + log.Warn(err) + } + return st.Err() + } + for { select { case <-ctx.Done(): - err = eg.Wait() - if err != nil { - log.Error(err) - return err - } - return nil + return finalize() default: data := newData() err = stream.RecvMsg(data) if err != nil { if err == io.EOF { - err = eg.Wait() - if err != nil { - log.Error(err) - return err - } - var errs error - errMap.Range(func(_, err interface{}) bool { - errs = errors.Wrap(errs, err.(error).Error()) - return true - }) - return errs + return finalize() } log.Error(err) - return err + continue } if data != nil { eg.Go(safety.RecoverWithoutPanicFunc(func() (err error) { @@ -82,7 +115,6 @@ func BidirectionalStream(ctx context.Context, stream grpc.ServerStream, if err != nil { runtime.Gosched() errMap.Store(err.Error(), err) - return nil } if res != nil { mu.Lock() diff --git a/pkg/agent/core/ngt/handler/grpc/handler.go b/pkg/agent/core/ngt/handler/grpc/handler.go index b7bdf3e65de..0c161c3b387 100644 --- a/pkg/agent/core/ngt/handler/grpc/handler.go +++ b/pkg/agent/core/ngt/handler/grpc/handler.go @@ -165,7 +165,19 @@ func (s *server) StreamSearch(stream vald.Search_StreamSearchServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Search(ctx, data.(*payload.Search_Request)) + res, err := s.Search(ctx, data.(*payload.Search_Request)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -179,7 +191,19 @@ func (s *server) StreamSearchByID(stream vald.Search_StreamSearchByIDServer) err return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_IDRequest) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + res, err := s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -284,7 +308,19 @@ func (s *server) StreamInsert(stream vald.Insert_StreamInsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Insert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Insert(ctx, data.(*payload.Insert_Request)) + res, err := s.Insert(ctx, data.(*payload.Insert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -342,7 +378,19 @@ func (s *server) StreamUpdate(stream vald.Update_StreamUpdateServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Update_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Update(ctx, data.(*payload.Update_Request)) + res, err := s.Update(ctx, data.(*payload.Update_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -402,7 +450,19 @@ func (s *server) StreamUpsert(stream vald.Upsert_StreamUpsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Upsert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Upsert(ctx, data.(*payload.Upsert_Request)) + res, err := s.Upsert(ctx, data.(*payload.Upsert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -493,7 +553,19 @@ func (s *server) StreamRemove(stream vald.Remove_StreamRemoveServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Remove_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Remove(ctx, data.(*payload.Remove_Request)) + res, err := s.Remove(ctx, data.(*payload.Remove_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -551,7 +623,19 @@ func (s *server) StreamGetObject(stream vald.Object_StreamGetObjectServer) error return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Object_ID) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.GetObject(ctx, data.(*payload.Object_ID)) + res, err := s.GetObject(ctx, data.(*payload.Object_ID)) + if err != nil { + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Vector{ + Vector: res, + }, + }, nil }) } diff --git a/pkg/gateway/backup/handler/grpc/handler.go b/pkg/gateway/backup/handler/grpc/handler.go index 6f485f32fc1..97596e389e3 100644 --- a/pkg/gateway/backup/handler/grpc/handler.go +++ b/pkg/gateway/backup/handler/grpc/handler.go @@ -112,7 +112,19 @@ func (s *server) StreamSearch(stream vald.Search_StreamSearchServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Search(ctx, data.(*payload.Search_Request)) + res, err := s.Search(ctx, data.(*payload.Search_Request)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -126,7 +138,19 @@ func (s *server) StreamSearchByID(stream vald.Search_StreamSearchByIDServer) err return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_IDRequest) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + res, err := s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -233,7 +257,19 @@ func (s *server) StreamInsert(stream vald.Insert_StreamInsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Insert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Insert(ctx, data.(*payload.Insert_Request)) + res, err := s.Insert(ctx, data.(*payload.Insert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -364,7 +400,19 @@ func (s *server) StreamUpdate(stream vald.Update_StreamUpdateServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Update_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Update(ctx, data.(*payload.Update_Request)) + res, err := s.Update(ctx, data.(*payload.Update_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -467,7 +515,19 @@ func (s *server) StreamUpsert(stream vald.Upsert_StreamUpsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Upsert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Upsert(ctx, data.(*payload.Upsert_Request)) + res, err := s.Upsert(ctx, data.(*payload.Upsert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -621,7 +681,19 @@ func (s *server) StreamRemove(stream vald.Remove_StreamRemoveServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Remove_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Remove(ctx, data.(*payload.Remove_Request)) + res, err := s.Remove(ctx, data.(*payload.Remove_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -702,6 +774,18 @@ func (s *server) StreamGetObject(stream vald.Object_StreamGetObjectServer) error return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Object_ID) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.GetObject(ctx, data.(*payload.Object_ID)) + res, err := s.GetObject(ctx, data.(*payload.Object_ID)) + if err != nil { + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Vector{ + Vector: res, + }, + }, nil }) } diff --git a/pkg/gateway/lb/handler/grpc/handler.go b/pkg/gateway/lb/handler/grpc/handler.go index 0345e00d9b8..d290780f06f 100644 --- a/pkg/gateway/lb/handler/grpc/handler.go +++ b/pkg/gateway/lb/handler/grpc/handler.go @@ -315,7 +315,19 @@ func (s *server) StreamSearch(stream vald.Search_StreamSearchServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Search(ctx, data.(*payload.Search_Request)) + res, err := s.Search(ctx, data.(*payload.Search_Request)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -329,7 +341,19 @@ func (s *server) StreamSearchByID(stream vald.Search_StreamSearchByIDServer) err return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_IDRequest) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + res, err := s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -487,7 +511,19 @@ func (s *server) StreamInsert(stream vald.Insert_StreamInsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Insert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Insert(ctx, data.(*payload.Insert_Request)) + res, err := s.Insert(ctx, data.(*payload.Insert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -600,7 +636,19 @@ func (s *server) StreamUpdate(stream vald.Update_StreamUpdateServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Update_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Update(ctx, data.(*payload.Update_Request)) + res, err := s.Update(ctx, data.(*payload.Update_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -708,7 +756,19 @@ func (s *server) StreamUpsert(stream vald.Upsert_StreamUpsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Upsert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Upsert(ctx, data.(*payload.Upsert_Request)) + res, err := s.Upsert(ctx, data.(*payload.Upsert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -876,7 +936,19 @@ func (s *server) StreamRemove(stream vald.Remove_StreamRemoveServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Remove_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Remove(ctx, data.(*payload.Remove_Request)) + res, err := s.Remove(ctx, data.(*payload.Remove_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -989,6 +1061,18 @@ func (s *server) StreamGetObject(stream vald.Object_StreamGetObjectServer) error return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Object_ID) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.GetObject(ctx, data.(*payload.Object_ID)) + res, err := s.GetObject(ctx, data.(*payload.Object_ID)) + if err != nil { + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Vector{ + Vector: res, + }, + }, nil }) } diff --git a/pkg/gateway/meta/handler/grpc/handler.go b/pkg/gateway/meta/handler/grpc/handler.go index 07a39163b54..b4e98bc8868 100644 --- a/pkg/gateway/meta/handler/grpc/handler.go +++ b/pkg/gateway/meta/handler/grpc/handler.go @@ -175,7 +175,19 @@ func (s *server) StreamSearch(stream vald.Search_StreamSearchServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Search(ctx, data.(*payload.Search_Request)) + res, err := s.Search(ctx, data.(*payload.Search_Request)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -189,7 +201,19 @@ func (s *server) StreamSearchByID(stream vald.Search_StreamSearchByIDServer) err return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Search_IDRequest) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + res, err := s.SearchByID(ctx, data.(*payload.Search_IDRequest)) + if err != nil { + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Search_StreamResponse{ + Payload: &payload.Search_StreamResponse_Response{ + Response: res, + }, + }, nil }) } @@ -342,7 +366,19 @@ func (s *server) StreamInsert(stream vald.Insert_StreamInsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Insert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Insert(ctx, data.(*payload.Insert_Request)) + res, err := s.Insert(ctx, data.(*payload.Insert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -454,7 +490,19 @@ func (s *server) StreamUpdate(stream vald.Update_StreamUpdateServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Update_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Update(ctx, data.(*payload.Update_Request)) + res, err := s.Update(ctx, data.(*payload.Update_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -543,7 +591,19 @@ func (s *server) StreamUpsert(stream vald.Upsert_StreamUpsertServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Upsert_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Upsert(ctx, data.(*payload.Upsert_Request)) + res, err := s.Upsert(ctx, data.(*payload.Upsert_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -687,7 +747,19 @@ func (s *server) StreamRemove(stream vald.Remove_StreamRemoveServer) error { return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Remove_Request) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.Remove(ctx, data.(*payload.Remove_Request)) + res, err := s.Remove(ctx, data.(*payload.Remove_Request)) + if err != nil { + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamLocation{ + Payload: &payload.Object_StreamLocation_Location{ + Location: res, + }, + }, nil }) } @@ -767,6 +839,18 @@ func (s *server) StreamGetObject(stream vald.Object_StreamGetObjectServer) error return grpc.BidirectionalStream(ctx, stream, s.streamConcurrency, func() interface{} { return new(payload.Object_ID) }, func(ctx context.Context, data interface{}) (interface{}, error) { - return s.GetObject(ctx, data.(*payload.Object_ID)) + res, err := s.GetObject(ctx, data.(*payload.Object_ID)) + if err != nil { + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Error{ + Error: status.FromError(err), + }, + }, err + } + return &payload.Object_StreamVector{ + Payload: &payload.Object_StreamVector_Vector{ + Vector: res, + }, + }, nil }) }