Class GrpcChannelOptions.CustomOption (4.3.1)

public class GrpcChannelOptions.CustomOption : IEquatable<GrpcChannelOptions.CustomOption>

A custom option, with a name and a value of either a 32-bit integer or a string.

Inheritance

object > GrpcChannelOptions.CustomOption

Namespace

GoogleGoogle.ApiGaxGrpc

Assembly

Google.Api.Gax.Grpc.dll

Constructors

CustomOption(string, int)

public CustomOption(string name, int value)

Creates a custom integer option.

Parameters
NameDescription
namestring

The name of the option. Must not be null.

valueint

Value of the option.

CustomOption(string, string)

public CustomOption(string name, string value)

Creates a custom string option.

Parameters
NameDescription
namestring

The name of the option. Must not be null.

valuestring

Value of the option. Must not be null.

Properties

IntegerValue

public int IntegerValue { get; }

Value of the option, for integer options, or 0 for other options.

Property Value
TypeDescription
int

Name

public string Name { get; }

Name of the option. This is never null.

Property Value
TypeDescription
string

StringValue

public string StringValue { get; }

Value of the option, for string options. This is never null for string options, and always null for other options.

Property Value
TypeDescription
string

Type

public GrpcChannelOptions.CustomOption.OptionType Type { get; }

The type of value represented within this option.

Property Value
TypeDescription
GrpcChannelOptionsCustomOptionOptionType

Methods

Equals(CustomOption)

public bool Equals(GrpcChannelOptions.CustomOption other)
Parameter
NameDescription
otherGrpcChannelOptionsCustomOption
Returns
TypeDescription
bool

Equals(object)

public override bool Equals(object obj)
Parameter
NameDescription
objobject
Returns
TypeDescription
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides