Class Descriptors.OneofDescriptor (3.19.4)

public static final class Descriptors.OneofDescriptor extends Descriptors.GenericDescriptor

Describes an oneof of a message type.

Inheritance

java.lang.Object > Descriptors.GenericDescriptor > Descriptors.OneofDescriptor

Methods

getContainingType()

public Descriptors.Descriptor getContainingType()
Returns
TypeDescription
Descriptors.Descriptor

getField(int index)

public Descriptors.FieldDescriptor getField(int index)
Parameter
NameDescription
indexint
Returns
TypeDescription
Descriptors.FieldDescriptor

getFieldCount()

public int getFieldCount()
Returns
TypeDescription
int

getFields()

public List<Descriptors.FieldDescriptor> getFields()

Get a list of this message type's fields.

Returns
TypeDescription
List<FieldDescriptor>

getFile()

public Descriptors.FileDescriptor getFile()
Returns
TypeDescription
Descriptors.FileDescriptor
Overrides

getFullName()

public String getFullName()
Returns
TypeDescription
String
Overrides

getIndex()

public int getIndex()

Get the index of this descriptor within its parent.

Returns
TypeDescription
int

getName()

public String getName()
Returns
TypeDescription
String
Overrides

getOptions()

public DescriptorProtos.OneofOptions getOptions()
Returns
TypeDescription
DescriptorProtos.OneofOptions

isSynthetic()

public boolean isSynthetic()
Returns
TypeDescription
boolean

toProto()

public DescriptorProtos.OneofDescriptorProto toProto()
Returns
TypeDescription
DescriptorProtos.OneofDescriptorProto
Overrides