<PackageReference Include="Google.Protobuf" Version="3.35.0" />

Google.Protobuf.Reflection.CustomOptions

public sealed class CustomOptions
Container for a set of custom options specified within a message, field etc.
public bool TryGetBool(int field, out bool value)

Retrieves a Boolean value for the specified option field.

public bool TryGetBytes(int field, out ByteString value)

Retrieves a bytes value for the specified option field.

public bool TryGetDouble(int field, out double value)

Retrieves a 64-bit floating point value for the specified option field.

public bool TryGetFixed32(int field, out uint value)

Retrieves an unsigned 32-bit integer value for the specified option field, assuming a fixed-length representation.

public bool TryGetFixed64(int field, out ulong value)

Retrieves an unsigned 64-bit integer value for the specified option field, assuming a fixed-length representation.

public bool TryGetFloat(int field, out float value)

Retrieves a 32-bit floating point value for the specified option field.

public bool TryGetInt32(int field, out int value)

Retrieves a signed 32-bit integer value for the specified option field.

public bool TryGetInt64(int field, out long value)

Retrieves a signed 64-bit integer value for the specified option field.

public bool TryGetMessage<T>(int field, out T value) where T : IMessage

Retrieves a message value for the specified option field.

public bool TryGetSFixed32(int field, out int value)

Retrieves a signed 32-bit integer value for the specified option field, assuming a fixed-length representation.

public bool TryGetSFixed64(int field, out long value)

Retrieves a signed 64-bit integer value for the specified option field, assuming a fixed-length representation.

public bool TryGetSInt32(int field, out int value)

Retrieves a signed 32-bit integer value for the specified option field, assuming a zigzag encoding.

public bool TryGetSInt64(int field, out long value)

Retrieves a signed 64-bit integer value for the specified option field, assuming a zigzag encoding.

public bool TryGetString(int field, out string value)

Retrieves a string value for the specified option field.

public bool TryGetUInt32(int field, out uint value)

Retrieves an unsigned 32-bit integer value for the specified option field.

public bool TryGetUInt64(int field, out ulong value)

Retrieves an unsigned 64-bit integer value for the specified option field.