Package com.google.protobuf
Class Descriptors.OneofDescriptor
- java.lang.Object
-
- com.google.protobuf.Descriptors.GenericDescriptor
-
- com.google.protobuf.Descriptors.OneofDescriptor
-
- Enclosing class:
- Descriptors
public static final class Descriptors.OneofDescriptor extends Descriptors.GenericDescriptor
Describes a oneof of a message type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptors.Descriptor
getContainingType()
Descriptors.FieldDescriptor
getField(int index)
int
getFieldCount()
java.util.List<Descriptors.FieldDescriptor>
getFields()
Get a list of this message type's fields.Descriptors.FileDescriptor
getFile()
java.lang.String
getFullName()
int
getIndex()
Get the index of this descriptor within its parent.java.lang.String
getName()
DescriptorProtos.OneofOptions
getOptions()
DescriptorProtos.OneofDescriptorProto
toProto()
-
-
-
Method Detail
-
getIndex
public int getIndex()
Get the index of this descriptor within its parent.
-
getName
public java.lang.String getName()
- Specified by:
getName
in classDescriptors.GenericDescriptor
-
getFile
public Descriptors.FileDescriptor getFile()
- Specified by:
getFile
in classDescriptors.GenericDescriptor
-
getFullName
public java.lang.String getFullName()
- Specified by:
getFullName
in classDescriptors.GenericDescriptor
-
getContainingType
public Descriptors.Descriptor getContainingType()
-
getFieldCount
public int getFieldCount()
-
getOptions
public DescriptorProtos.OneofOptions getOptions()
-
getFields
public java.util.List<Descriptors.FieldDescriptor> getFields()
Get a list of this message type's fields.
-
getField
public Descriptors.FieldDescriptor getField(int index)
-
toProto
public DescriptorProtos.OneofDescriptorProto toProto()
- Specified by:
toProto
in classDescriptors.GenericDescriptor
-
-