Table of Contents

Struct PhishBlockThreshold

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

Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API.

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

Properties

AllValues

public static IReadOnlyList<PhishBlockThreshold> AllValues { get; }

Property Value

IReadOnlyList<PhishBlockThreshold>

BlockHighAndAbove

Blocks High and above confidence URL that is risky.

public static PhishBlockThreshold BlockHighAndAbove { get; }

Property Value

PhishBlockThreshold

BlockHigherAndAbove

Blocks Higher and above confidence URL that is risky.

public static PhishBlockThreshold BlockHigherAndAbove { get; }

Property Value

PhishBlockThreshold

BlockLowAndAbove

Blocks Low and above confidence URL that is risky.

public static PhishBlockThreshold BlockLowAndAbove { get; }

Property Value

PhishBlockThreshold

BlockMediumAndAbove

Blocks Medium and above confidence URL that is risky.

public static PhishBlockThreshold BlockMediumAndAbove { get; }

Property Value

PhishBlockThreshold

BlockOnlyExtremelyHigh

Blocks Extremely high confidence URL that is risky.

public static PhishBlockThreshold BlockOnlyExtremelyHigh { get; }

Property Value

PhishBlockThreshold

BlockVeryHighAndAbove

Blocks Very high and above confidence URL that is risky.

public static PhishBlockThreshold BlockVeryHighAndAbove { get; }

Property Value

PhishBlockThreshold

PhishBlockThresholdUnspecified

Defaults to unspecified.

public static PhishBlockThreshold PhishBlockThresholdUnspecified { get; }

Property Value

PhishBlockThreshold

Value

public string Value { get; }

Property Value

string

Methods

Equals(PhishBlockThreshold)

public bool Equals(PhishBlockThreshold other)

Parameters

other PhishBlockThreshold

Returns

bool

FromString(string)

public static PhishBlockThreshold FromString(string value)

Parameters

value string

Returns

PhishBlockThreshold

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator PhishBlockThreshold(string)

public static implicit operator PhishBlockThreshold(string value)

Parameters

value string

Returns

PhishBlockThreshold