Class GrpcChannelOptions.CustomOption (4.4.0)

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

Google.Api.Gax.Grpc

Assembly

Google.Api.Gax.Grpc.dll

Constructors

CustomOption(string, int)

public CustomOption(string name, int value)

Creates a custom integer option.

Parameters
Name Description
name string

The name of the option. Must not be null.

value int

Value of the option.

CustomOption(string, string)

public CustomOption(string name, string value)

Creates a custom string option.

Parameters
Name Description
name string

The name of the option. Must not be null.

value string

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
Type Description
int

Name

public string Name { get; }

Name of the option. This is never null.

Property Value
Type Description
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
Type Description
string

Type

public GrpcChannelOptions.CustomOption.OptionType Type { get; }

The type of value represented within this option.

Property Value
Type Description
GrpcChannelOptionsCustomOptionOptionType

Methods

Equals(CustomOption)

public bool Equals(GrpcChannelOptions.CustomOption other)
Parameter
Name Description
other GrpcChannelOptionsCustomOption
Returns
Type Description
bool

Equals(object)

public override bool Equals(object obj)
Parameter
Name Description
obj object
Returns
Type Description
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
Type Description
int
Overrides