Skip to content

Commit c11b145

Browse files
committed
Regenerate Protos
1 parent 8407d90 commit c11b145

4 files changed

Lines changed: 34 additions & 3 deletions

File tree

proto/points.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
syntax = "proto3";
22

33
package qdrant;
4+
option csharp_namespace = "Qdrant.Client.Grpc";
45

56
import "collections.proto";
7+
import "qdrant_common.proto";
68
import "google/protobuf/timestamp.proto";
79
import "json_with_int.proto";
8-
import "qdrant_common.proto";
9-
10-
option csharp_namespace = "Qdrant.Client.Grpc";
1110

1211
enum WriteOrderingType {
1312
// Write operations may be reordered, works faster, default
@@ -392,6 +391,8 @@ message CreateVectorNameRequest {
392391
}
393392
// If set, overrides global timeout setting for this request. Unit is seconds.
394393
optional uint64 timeout = 6;
394+
// Write ordering guarantees
395+
optional WriteOrdering ordering = 7;
395396
}
396397

397398
message DeleteVectorNameRequest {
@@ -403,6 +404,8 @@ message DeleteVectorNameRequest {
403404
string vector_name = 3;
404405
// If set, overrides global timeout setting for this request. Unit is seconds.
405406
optional uint64 timeout = 4;
407+
// Write ordering guarantees
408+
optional WriteOrdering ordering = 5;
406409
}
407410

408411
message PayloadIncludeSelector {

src/builders/create_vector_name_request_builder.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub struct CreateVectorNameRequestBuilder {
1414
vector_config: Option<create_vector_name_request::VectorConfig>,
1515
/// If set, overrides global timeout setting for this request. Unit is seconds.
1616
pub(crate) timeout: Option<Option<u64>>,
17+
/// Write ordering guarantees
18+
pub(crate) ordering: Option<Option<WriteOrdering>>,
1719
}
1820

1921
impl CreateVectorNameRequestBuilder {
@@ -58,6 +60,13 @@ impl CreateVectorNameRequestBuilder {
5860
new
5961
}
6062

63+
/// Write ordering guarantees
64+
pub fn ordering<VALUE: core::convert::Into<WriteOrdering>>(self, value: VALUE) -> Self {
65+
let mut new = self;
66+
new.ordering = Option::Some(Option::Some(value.into()));
67+
new
68+
}
69+
6170
fn build_inner(self) -> Result<CreateVectorNameRequest, CreateVectorNameRequestBuilderError> {
6271
Ok(CreateVectorNameRequest {
6372
collection_name: match self.collection_name {
@@ -78,6 +87,7 @@ impl CreateVectorNameRequestBuilder {
7887
}
7988
},
8089
timeout: self.timeout.unwrap_or_default(),
90+
ordering: self.ordering.unwrap_or_default(),
8191
vector_config: { convert_option(&self.vector_config) },
8292
})
8393
}
@@ -89,6 +99,7 @@ impl CreateVectorNameRequestBuilder {
8999
vector_name: core::default::Default::default(),
90100
vector_config: core::default::Default::default(),
91101
timeout: core::default::Default::default(),
102+
ordering: core::default::Default::default(),
92103
}
93104
}
94105
}

src/builders/delete_vector_name_request_builder.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pub struct DeleteVectorNameRequestBuilder {
1111
pub(crate) vector_name: Option<String>,
1212
/// If set, overrides global timeout setting for this request. Unit is seconds.
1313
pub(crate) timeout: Option<Option<u64>>,
14+
/// Write ordering guarantees
15+
pub(crate) ordering: Option<Option<WriteOrdering>>,
1416
}
1517

1618
impl DeleteVectorNameRequestBuilder {
@@ -42,6 +44,13 @@ impl DeleteVectorNameRequestBuilder {
4244
new
4345
}
4446

47+
/// Write ordering guarantees
48+
pub fn ordering<VALUE: core::convert::Into<WriteOrdering>>(self, value: VALUE) -> Self {
49+
let mut new = self;
50+
new.ordering = Option::Some(Option::Some(value.into()));
51+
new
52+
}
53+
4554
fn build_inner(self) -> Result<DeleteVectorNameRequest, DeleteVectorNameRequestBuilderError> {
4655
Ok(DeleteVectorNameRequest {
4756
collection_name: match self.collection_name {
@@ -62,6 +71,7 @@ impl DeleteVectorNameRequestBuilder {
6271
}
6372
},
6473
timeout: self.timeout.unwrap_or_default(),
74+
ordering: self.ordering.unwrap_or_default(),
6575
})
6676
}
6777
/// Create an empty builder, with all fields set to `None` or `PhantomData`.
@@ -71,6 +81,7 @@ impl DeleteVectorNameRequestBuilder {
7181
wait: core::default::Default::default(),
7282
vector_name: core::default::Default::default(),
7383
timeout: core::default::Default::default(),
84+
ordering: core::default::Default::default(),
7485
}
7586
}
7687
}

src/qdrant.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4070,6 +4070,9 @@ pub struct CreateVectorNameRequest {
40704070
/// If set, overrides global timeout setting for this request. Unit is seconds.
40714071
#[prost(uint64, optional, tag = "6")]
40724072
pub timeout: ::core::option::Option<u64>,
4073+
/// Write ordering guarantees
4074+
#[prost(message, optional, tag = "7")]
4075+
pub ordering: ::core::option::Option<WriteOrdering>,
40734076
/// Configuration for the new vector - either dense or sparse
40744077
#[prost(oneof = "create_vector_name_request::VectorConfig", tags = "4, 5")]
40754078
pub vector_config: ::core::option::Option<create_vector_name_request::VectorConfig>,
@@ -4101,6 +4104,9 @@ pub struct DeleteVectorNameRequest {
41014104
/// If set, overrides global timeout setting for this request. Unit is seconds.
41024105
#[prost(uint64, optional, tag = "4")]
41034106
pub timeout: ::core::option::Option<u64>,
4107+
/// Write ordering guarantees
4108+
#[prost(message, optional, tag = "5")]
4109+
pub ordering: ::core::option::Option<WriteOrdering>,
41044110
}
41054111
#[derive(Clone, PartialEq, ::prost::Message)]
41064112
pub struct PayloadIncludeSelector {

0 commit comments

Comments
 (0)