Google.Protobuf.Reflection.OneofDescriptor
Describes a "oneof" field collection in a message type: a set of
fields of which at most one can be set in any particular message.
namespace Google.Protobuf.Reflection
{
public sealed class OneofDescriptor : DescriptorBase
{
public MessageDescriptor ContainingType { get; }
public IList<FieldDescriptor> Fields { get; }
public bool IsSynthetic { get; }
public OneofAccessor Accessor { get; }
public CustomOptions CustomOptions { get; }
public OneofDescriptorProto ToProto();
public OneofOptions GetOptions();
public T GetOption<T>(Extension<OneofOptions, T> extension);
public RepeatedField<T> GetOption<T>(RepeatedExtension<OneofOptions, T> extension);
}
}