Class GrpcChannelOptions.CustomOption
A custom option, with a name and a value of either a 32-bit integer or a string.
Inheritance
System.Object
GrpcChannelOptions.CustomOption
Implements
System.IEquatable<GrpcChannelOptions.CustomOption>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api.Gax.Grpc
Assembly: Google.Api.Gax.Grpc.dll
Syntax
public class CustomOption : IEquatable<GrpcChannelOptions.CustomOption>
Constructors
CustomOption(String, Int32)
Creates a custom integer option.
Declaration
public CustomOption(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the option. Must not be null. |
System.Int32 | value | Value of the option. |
CustomOption(String, String)
Creates a custom string option.
Declaration
public CustomOption(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the option. Must not be null. |
System.String | value | Value of the option. Must not be null. |
Properties
IntegerValue
Value of the option, for integer options, or 0 for other options.
Declaration
public int IntegerValue { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
Name of the option. This is never null.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
StringValue
Value of the option, for string options. This is never null for string options, and always null for other options.
Declaration
public string StringValue { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of value represented within this option.
Declaration
public GrpcChannelOptions.CustomOption.OptionType Type { get; }
Property Value
Type | Description |
---|---|
GrpcChannelOptions.CustomOption.OptionType |
Methods
Equals(GrpcChannelOptions.CustomOption)
Declaration
public bool Equals(GrpcChannelOptions.CustomOption other)
Parameters
Type | Name | Description |
---|---|---|
GrpcChannelOptions.CustomOption | other |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()