Google.Protobuf.Reflection.OneofAccessor

Reflection access for a oneof, allowing clear and "get case" actions.

Summary

Properties

Descriptor
Gets the descriptor for this oneof.

Public functions

Clear(IMessage message)
void
Clears the oneof in the specified message.
GetCaseFieldDescriptor(IMessage message)
Indicates which field in the oneof is set for specified message

Properties

Descriptor

OneofDescriptor Descriptor

Gets the descriptor for this oneof.

The descriptor of the oneof.

Public functions

Clear

void Clear(
  IMessage message
)

Clears the oneof in the specified message.

GetCaseFieldDescriptor

FieldDescriptor GetCaseFieldDescriptor(
  IMessage message
)

Indicates which field in the oneof is set for specified message