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
Type Description
Descriptors.Descriptor

getField(int index)

public Descriptors.FieldDescriptor getField(int index)
Parameter
Name Description
index int
Returns
Type Description
Descriptors.FieldDescriptor

getFieldCount()

public int getFieldCount()
Returns
Type Description
int

getFields()

public List<Descriptors.FieldDescriptor> getFields()

Get a list of this message type's fields.

Returns
Type Description
List<FieldDescriptor>

getFile()

public Descriptors.FileDescriptor getFile()
Returns
Type Description
Descriptors.FileDescriptor
Overrides

getFullName()

public String getFullName()
Returns
Type Description
String
Overrides

getIndex()

public int getIndex()

Get the index of this descriptor within its parent.

Returns
Type Description
int

getName()

public String getName()
Returns
Type Description
String
Overrides

getOptions()

public DescriptorProtos.OneofOptions getOptions()
Returns
Type Description
DescriptorProtos.OneofOptions

isSynthetic()

public boolean isSynthetic()
Returns
Type Description
boolean

toProto()

public DescriptorProtos.OneofDescriptorProto toProto()
Returns
Type Description
DescriptorProtos.OneofDescriptorProto
Overrides