Struct ApiSpec
The API spec that the external API implements. This enum is not supported in Gemini API.
[JsonConverter(typeof(ApiSpecConverter))]
public readonly record struct ApiSpec : IEquatable<ApiSpec>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<ApiSpec> AllValues { get; }
Property Value
ApiSpecUnspecified
Unspecified API spec. This value should not be used.
public static ApiSpec ApiSpecUnspecified { get; }
Property Value
ElasticSearch
Elastic search API spec.
public static ApiSpec ElasticSearch { get; }
Property Value
SimpleSearch
Simple search API spec.
public static ApiSpec SimpleSearch { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(ApiSpec)
public bool Equals(ApiSpec other)
Parameters
otherApiSpec
Returns
FromString(string)
public static ApiSpec FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ApiSpec(string)
public static implicit operator ApiSpec(string value)
Parameters
valuestring