diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 1927bfab2a..711965e165 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -177,10 +177,22 @@ func (m *Search_Config) CloneVT() *Search_Config { r.Radius = m.Radius r.Epsilon = m.Epsilon r.Timeout = m.Timeout - r.IngressFilters = m.IngressFilters.CloneVT() - r.EgressFilters = m.EgressFilters.CloneVT() r.MinNum = m.MinNum r.AggregationAlgorithm = m.AggregationAlgorithm + if rhs := m.IngressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.IngressFilters = tmpContainer + } + if rhs := m.EgressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EgressFilters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -318,17 +330,53 @@ func (m *Filter_Target) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Filter_Query) CloneVT() *Filter_Query { + if m == nil { + return (*Filter_Query)(nil) + } + r := new(Filter_Query) + r.Query = m.Query + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Filter_Config) CloneVT() *Filter_Config { if m == nil { return (*Filter_Config)(nil) } r := new(Filter_Config) - if rhs := m.Targets; rhs != nil { - tmpContainer := make([]*Filter_Target, len(rhs)) + r.Target = m.Target.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Config) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceRequest) CloneVT() *Filter_DistanceRequest { + if m == nil { + return (*Filter_DistanceRequest)(nil) + } + r := new(Filter_DistanceRequest) + r.Query = m.Query.CloneVT() + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } - r.Targets = tmpContainer + r.Distance = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -337,7 +385,65 @@ func (m *Filter_Config) CloneVT() *Filter_Config { return r } -func (m *Filter_Config) CloneMessageVT() proto.Message { +func (m *Filter_DistanceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceResponse) CloneVT() *Filter_DistanceResponse { + if m == nil { + return (*Filter_DistanceResponse)(nil) + } + r := new(Filter_DistanceResponse) + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Distance = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_DistanceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorRequest) CloneVT() *Filter_VectorRequest { + if m == nil { + return (*Filter_VectorRequest)(nil) + } + r := new(Filter_VectorRequest) + r.Vector = m.Vector.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorResponse) CloneVT() *Filter_VectorResponse { + if m == nil { + return (*Filter_VectorResponse)(nil) + } + r := new(Filter_VectorResponse) + r.Vector = m.Vector.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorResponse) CloneMessageVT() proto.Message { return m.CloneVT() } @@ -446,8 +552,14 @@ func (m *Insert_Config) CloneVT() *Insert_Config { } r := new(Insert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -564,9 +676,15 @@ func (m *Update_Config) CloneVT() *Update_Config { } r := new(Update_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -683,9 +801,15 @@ func (m *Upsert_Config) CloneVT() *Upsert_Config { } r := new(Upsert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -835,7 +959,13 @@ func (m *Object_VectorRequest) CloneVT() *Object_VectorRequest { } r := new(Object_VectorRequest) r.Id = m.Id.CloneVT() - r.Filters = m.Filters.CloneVT() + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -2058,12 +2188,40 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.Timeout != that.Timeout { return false } - if !this.IngressFilters.EqualVT(that.IngressFilters) { + if len(this.IngressFilters) != len(that.IngressFilters) { return false } - if !this.EgressFilters.EqualVT(that.EgressFilters) { + for i, vx := range this.IngressFilters { + vy := that.IngressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.EgressFilters) != len(that.EgressFilters) { return false } + for i, vx := range this.EgressFilters { + vy := that.EgressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.MinNum != that.MinNum { return false } @@ -2269,34 +2427,152 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } +func (this *Filter_Query) EqualVT(that *Filter_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query != that.Query { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Query) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true } else if this == nil || that == nil { return false } - if len(this.Targets) != len(that.Targets) { + if !this.Target.EqualVT(that.Target) { return false } - for i, vx := range this.Targets { - vy := that.Targets[i] + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Config) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceRequest) EqualVT(that *Filter_DistanceRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] if p, q := vx, vy; p != q { if p == nil { - p = &Filter_Target{} + p = &Object_Distance{} } if q == nil { - q = &Filter_Target{} + q = &Object_Distance{} } if !p.EqualVT(q) { return false } } } + if !this.Query.EqualVT(that.Query) { + return false + } return string(this.unknownFields) == string(that.unknownFields) } -func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Filter_Config) +func (this *Filter_DistanceRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceResponse) EqualVT(that *Filter_DistanceResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Object_Distance{} + } + if q == nil { + q = &Object_Distance{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_DistanceResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorRequest) EqualVT(that *Filter_VectorRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorResponse) EqualVT(that *Filter_VectorResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorResponse) if !ok { return false } @@ -2440,9 +2716,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2594,9 +2884,23 @@ func (this *Update_Config) EqualVT(that *Update_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2751,9 +3055,23 @@ func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2943,15 +3261,29 @@ func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if !this.Id.EqualVT(that.Id) { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } - return string(this.unknownFields) == string(that.unknownFields) -} - -func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Object_VectorRequest) - if !ok { + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Object_VectorRequest) + if !ok { return false } return this.EqualVT(that) @@ -4691,25 +5023,29 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if m.EgressFilters != nil { - size, err := m.EgressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.EgressFilters) > 0 { + for iNdEx := len(m.EgressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EgressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x3a } - if m.IngressFilters != nil { - size, err := m.IngressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IngressFilters) > 0 { + for iNdEx := len(m.IngressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.IngressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } if m.Timeout != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timeout)) @@ -5010,7 +5346,7 @@ func (m *Filter_Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5023,12 +5359,12 @@ func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5040,22 +5376,17 @@ func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Targets) > 0 { - for iNdEx := len(m.Targets) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Targets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Filter) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5068,12 +5399,12 @@ func (m *Filter) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5085,10 +5416,30 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5101,12 +5452,12 @@ func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5118,8 +5469,8 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5128,20 +5479,22 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5154,12 +5507,12 @@ func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5171,9 +5524,9 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5186,7 +5539,7 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5199,12 +5552,12 @@ func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5216,18 +5569,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5236,8 +5579,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5249,52 +5592,7 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5307,12 +5605,12 @@ func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5324,35 +5622,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Filter) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5365,12 +5648,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5385,7 +5668,7 @@ func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5398,12 +5681,12 @@ func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5438,7 +5721,7 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5451,12 +5734,12 @@ func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5483,7 +5766,7 @@ func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5496,12 +5779,12 @@ func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5546,7 +5829,7 @@ func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5559,12 +5842,12 @@ func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5591,7 +5874,7 @@ func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5604,12 +5887,12 @@ func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5621,30 +5904,22 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.DisableBalancedUpdate { - i-- - if m.DisableBalancedUpdate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5659,7 +5934,7 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update) MarshalVT() (dAtA []byte, err error) { +func (m *Insert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5672,12 +5947,12 @@ func (m *Update) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5692,7 +5967,7 @@ func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5705,12 +5980,12 @@ func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5745,7 +6020,7 @@ func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5758,12 +6033,12 @@ func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5790,7 +6065,7 @@ func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5803,12 +6078,12 @@ func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5853,7 +6128,7 @@ func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5866,12 +6141,12 @@ func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5898,7 +6173,7 @@ func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5911,12 +6186,12 @@ func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5943,15 +6218,17 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5966,7 +6243,7 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert) MarshalVT() (dAtA []byte, err error) { +func (m *Update) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5979,12 +6256,12 @@ func (m *Upsert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5999,7 +6276,7 @@ func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6012,12 +6289,12 @@ func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6039,8 +6316,8 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6052,7 +6329,7 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6065,12 +6342,12 @@ func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6097,7 +6374,7 @@ func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6110,12 +6387,12 @@ func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6127,22 +6404,40 @@ func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Timestamps) > 0 { - for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if m.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6155,12 +6450,12 @@ func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6172,20 +6467,22 @@ func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Operator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) - i-- - dAtA[i] = 0x10 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x8 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6198,12 +6495,12 @@ func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6215,11 +6512,33 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.DisableBalancedUpdate { + i-- + if m.DisableBalancedUpdate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.SkipStrictExistCheck { i-- if m.SkipStrictExistCheck { @@ -6233,7 +6552,7 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6246,12 +6565,12 @@ func (m *Remove) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6266,7 +6585,7 @@ func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6279,12 +6598,12 @@ func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6296,8 +6615,8 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6319,7 +6638,7 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6332,12 +6651,12 @@ func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6349,23 +6668,22 @@ func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Distance != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) - i-- - dAtA[i] = 0x15 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6378,12 +6696,12 @@ func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6395,87 +6713,40 @@ func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Timestamps) > 0 { + for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size } return len(dAtA) - i, nil } -func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Distance != nil { - size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { + +func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6487,17 +6758,20 @@ func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + if m.Operator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6510,12 +6784,12 @@ func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6527,19 +6801,25 @@ func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { +func (m *Remove) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6552,12 +6832,12 @@ func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6569,32 +6849,10 @@ func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if len(m.Vector) > 0 { - for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f1 := math.Float32bits(float32(m.Vector[iNdEx])) - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6607,12 +6865,12 @@ func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_GetTimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6624,6 +6882,18 @@ func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.Id != nil { size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { @@ -6637,7 +6907,7 @@ func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6650,12 +6920,12 @@ func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6667,10 +6937,11 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + if m.Distance != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x15 } if len(m.Id) > 0 { i -= len(m.Id) @@ -6682,52 +6953,7 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Vectors) > 0 { - for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6740,12 +6966,12 @@ func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6769,15 +6995,15 @@ func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Distance != nil { + size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6788,12 +7014,12 @@ func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -6819,7 +7045,7 @@ func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6832,12 +7058,12 @@ func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6849,38 +7075,17 @@ func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Shape) > 0 { - var pksize2 int - for _, num := range m.Shape { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.Shape { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6893,12 +7098,12 @@ func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6910,24 +7115,19 @@ func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6940,12 +7140,12 @@ func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6957,27 +7157,63 @@ func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if len(m.Vector) > 0 { + for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Vector[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } - i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_GetTimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Blob != nil { - size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6988,38 +7224,53 @@ func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { + +func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { + +func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7032,12 +7283,12 @@ func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7049,33 +7300,22 @@ func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - 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 = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + if len(m.Vectors) > 0 { + for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = protohelpers.EncodeVarint(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 = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7088,12 +7328,12 @@ func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7117,15 +7357,15 @@ func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Location != nil { - size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -7136,12 +7376,12 @@ func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -7167,7 +7407,7 @@ func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7180,12 +7420,12 @@ func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7197,22 +7437,38 @@ func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Locations) > 0 { - for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Shape) > 0 { + var pksize2 int + for _, num := range m.Shape { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.Shape { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA[j1] = uint8(num) + j1++ } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7225,12 +7481,12 @@ func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7242,10 +7498,24 @@ func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7258,12 +7528,12 @@ func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7287,16 +7557,16 @@ func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { + if m.Blob != nil { + size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { return 0, err } i -= size @@ -7306,12 +7576,12 @@ func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -7337,7 +7607,7 @@ func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7350,12 +7620,12 @@ func (m *Object_List) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7367,10 +7637,33 @@ func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + 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 = protohelpers.EncodeVarint(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 = protohelpers.EncodeVarint(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 = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7383,12 +7676,12 @@ func (m *Object) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7400,10 +7693,69 @@ func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } return len(dAtA) - i, nil } -func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Location != nil { + size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7416,12 +7768,12 @@ func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7433,15 +7785,22 @@ func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.PoolSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) - i-- - dAtA[i] = 0x8 + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Control) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7454,12 +7813,12 @@ func (m *Control) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Control) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7474,7 +7833,7 @@ func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7487,12 +7846,12 @@ func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7504,31 +7863,69 @@ func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Node) > 0 { - i -= len(m.Node) - copy(dAtA[i:], m.Node) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + return len(dAtA) - i, nil +} + +func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} -func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_List) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7541,12 +7938,12 @@ func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7561,7 +7958,7 @@ func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { +func (m *Object) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7574,12 +7971,12 @@ func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7591,40 +7988,10 @@ func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Saving { - i-- - if m.Saving { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Indexing { - i-- - if m.Indexing { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Uncommitted != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) - i-- - dAtA[i] = 0x10 - } - if m.Stored != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { +func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7637,12 +8004,12 @@ func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7654,8 +8021,229 @@ func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) + if m.PoolSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Control) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Control) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Node) > 0 { + i -= len(m.Node) + copy(dAtA[i:], m.Node) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) + i-- + dAtA[i] = 0x1a + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Saving { + i-- + if m.Saving { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Indexing { + i-- + if m.Indexing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Uncommitted != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) + i-- + dAtA[i] = 0x10 + } + if m.Stored != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) copy(dAtA[i:], m.Uuid) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) i-- @@ -8777,13 +9365,17 @@ func (m *Search_Config) SizeVT() (n int) { if m.Timeout != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timeout)) } - if m.IngressFilters != nil { - l = m.IngressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.IngressFilters) > 0 { + for _, e := range m.IngressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.EgressFilters != nil { - l = m.EgressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.EgressFilters) > 0 { + for _, e := range m.EgressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.MinNum != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNum)) @@ -8901,57 +9493,141 @@ func (m *Filter_Target) SizeVT() (n int) { return n } -func (m *Filter_Config) SizeVT() (n int) { +func (m *Filter_Query) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Targets) > 0 { - for _, e := range m.Targets { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Query) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Filter) SizeVT() (n int) { +func (m *Filter_Config) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *Insert_Request) SizeVT() (n int) { +func (m *Filter_DistanceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vector != nil { - l = m.Vector.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiRequest) SizeVT() (n int) { +func (m *Filter_DistanceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_VectorRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_VectorResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Insert_Request) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { for _, e := range m.Requests { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -9008,9 +9684,11 @@ func (m *Insert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9110,9 +9788,11 @@ func (m *Update_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9215,9 +9895,11 @@ func (m *Upsert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9341,9 +10023,11 @@ func (m *Object_VectorRequest) SizeVT() (n int) { l = m.Id.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -11062,10 +11746,8 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.IngressFilters = append(m.IngressFilters, &Filter_Config{}) + if err := m.IngressFilters[len(m.IngressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11083,52 +11765,554 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EgressFilters = append(m.EgressFilters, &Filter_Config{}) + if err := m.EgressFilters[len(m.EgressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) + } + m.MinNum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNum |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + } + m.AggregationAlgorithm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Response) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_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 protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Search_Response{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Response{Response: v} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { + if unmarshal, ok := interface{}(oneof.Status).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { + return err + } + } + } else { + v := &status.Status{} + if unmarshal, ok := interface{}(v).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } + } + m.Payload = &Search_StreamResponse_Status{Status: v} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.EgressFilters == nil { - m.EgressFilters = &Filter_Config{} - } - if err := m.EgressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Host = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) - } - m.MinNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinNum |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.AggregationAlgorithm = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11138,7 +12322,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + m.Port |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -11165,7 +12349,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Response) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11188,15 +12372,15 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Query: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11224,41 +12408,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11282,7 +12432,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11305,15 +12455,15 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11340,8 +12490,46 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Target == nil { + m.Target = &Filter_Target{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11367,7 +12555,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11390,15 +12578,15 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceRequest: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11425,21 +12613,14 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Search_Response{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11466,32 +12647,11 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { - if unmarshal, ok := interface{}(oneof.Status).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } - } - } else { - v := &status.Status{} - if unmarshal, ok := interface{}(v).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } - } - m.Payload = &Search_StreamResponse_Status{Status: v} + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -11516,7 +12676,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11539,12 +12699,46 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11567,7 +12761,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11590,17 +12784,17 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11610,29 +12804,33 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(dAtA[iNdEx:postIndex]) + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } - m.Port = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11642,11 +12840,28 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Port |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11669,7 +12884,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11692,15 +12907,15 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11727,8 +12942,10 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12335,10 +13552,8 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12964,10 +14179,8 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13613,10 +14826,8 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14349,10 +15560,8 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex