Table of Contents

Struct HttpElementLocation

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The location of the API key. This enum is not supported in Gemini API.

[JsonConverter(typeof(HttpElementLocationConverter))]
public readonly record struct HttpElementLocation : IEquatable<HttpElementLocation>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<HttpElementLocation> AllValues { get; }

Property Value

IReadOnlyList<HttpElementLocation>

HttpInBody

Element is in the HTTP request body.

public static HttpElementLocation HttpInBody { get; }

Property Value

HttpElementLocation

HttpInCookie

Element is in the HTTP request cookie.

public static HttpElementLocation HttpInCookie { get; }

Property Value

HttpElementLocation

HttpInHeader

Element is in the HTTP request header.

public static HttpElementLocation HttpInHeader { get; }

Property Value

HttpElementLocation

HttpInPath

Element is in the HTTP request path.

public static HttpElementLocation HttpInPath { get; }

Property Value

HttpElementLocation

HttpInQuery

Element is in the HTTP request query.

public static HttpElementLocation HttpInQuery { get; }

Property Value

HttpElementLocation

HttpInUnspecified

public static HttpElementLocation HttpInUnspecified { get; }

Property Value

HttpElementLocation

Value

public string Value { get; }

Property Value

string

Methods

Equals(HttpElementLocation)

public bool Equals(HttpElementLocation other)

Parameters

other HttpElementLocation

Returns

bool

FromString(string)

public static HttpElementLocation FromString(string value)

Parameters

value string

Returns

HttpElementLocation

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator HttpElementLocation(string)

public static implicit operator HttpElementLocation(string value)

Parameters

value string

Returns

HttpElementLocation