-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v1.8.0 * chore: typo fix * chore: StartFrom conversions * chore: bump to v1.8.0
- Loading branch information
Showing
8 changed files
with
198 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Qdrant.Client.Grpc; | ||
|
||
/// <summary> | ||
/// Order the records by a payload field | ||
/// </summary> | ||
public partial class OrderBy | ||
{ | ||
/// <summary> | ||
/// Implicitly converts a string to a new instance of <see cref="OrderBy"/> | ||
/// </summary> | ||
/// <param name="key">key</param> | ||
/// <returns>a new instance of <see cref="OrderBy"/></returns> | ||
public static implicit operator OrderBy(string key) => new() { Key = key }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
namespace Qdrant.Client.Grpc; | ||
|
||
/// <summary> | ||
/// Start ordered records from the specified value | ||
/// </summary> | ||
public partial class StartFrom | ||
{ | ||
/// <summary> | ||
/// Implicitly converts a datetime string to a new instance of <see cref="StartFrom"/> | ||
/// </summary> | ||
/// <param name="value">Datetime string value</param> | ||
/// <returns>a new instance of <see cref="StartFrom"/></returns> | ||
public static implicit operator StartFrom(string value) => new() { Datetime = value }; | ||
|
||
/// <summary> | ||
/// Implicitly converts a double to a new instance of <see cref="StartFrom"/> | ||
/// </summary> | ||
/// <param name="value">Double value</param> | ||
/// <returns>a new instance of <see cref="StartFrom"/></returns> | ||
public static implicit operator StartFrom(double value) => new() { Float = value }; | ||
|
||
/// <summary> | ||
/// Implicitly converts an integer to a new instance of <see cref="StartFrom"/> | ||
/// </summary> | ||
/// <param name="value">Integer value</param> | ||
/// <returns>a new instance of <see cref="StartFrom"/></returns> | ||
public static implicit operator StartFrom(int value) => new() { Integer = value }; | ||
|
||
/// <summary> | ||
/// Implicitly converts <see cref="Datetime"/> to a new instance of <see cref="StartFrom"/> | ||
/// </summary> | ||
/// <param name="value">Integer value</param> | ||
/// <returns>a new instance of <see cref="StartFrom"/></returns> | ||
public static implicit operator StartFrom(DateTime value) => new() { Timestamp = Timestamp.FromDateTime(value) }; | ||
|
||
/// <summary> | ||
/// Implicitly converts <see cref="Timestamp"/> to a new instance of <see cref="StartFrom"/> | ||
/// </summary> | ||
/// <param name="value">Integer value</param> | ||
/// <returns>a new instance of <see cref="StartFrom"/></returns> | ||
public static implicit operator StartFrom(Timestamp value) => new() { Timestamp = value }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.