# Uses of Class
com.google.protobuf.Descriptors.OneofDescriptor

Packages that use Descriptors.OneofDescriptor
Package
Description
com.google.protobuf

## Uses of Descriptors.OneofDescriptor in com.google.protobuf

Methods in com.google.protobuf that return Descriptors.OneofDescriptor
Modifier and Type
Method
Description
`Descriptors.OneofDescriptor`
Descriptors.FieldDescriptor.`getContainingOneof()`
Get the field's containing oneof.
`Descriptors.OneofDescriptor`
Descriptors.FieldDescriptor.`getRealContainingOneof()`
Get the field's containing oneof, only if non-synthetic.
Methods in com.google.protobuf that return types with arguments of type Descriptors.OneofDescriptor
Modifier and Type
Method
Description
`List<Descriptors.OneofDescriptor>`
Descriptors.Descriptor.`getOneofs()`
Get a list of this message type's oneofs.
`List<Descriptors.OneofDescriptor>`
Descriptors.Descriptor.`getRealOneofs()`
Get a list of this message type's real oneofs.
Methods in com.google.protobuf with parameters of type Descriptors.OneofDescriptor
Modifier and Type
Method
Description
`BuilderType`
AbstractMessage.Builder.`clearOneof(Descriptors.OneofDescriptor oneof)`
TODO: Clear it when all subclasses have implemented this method.
`DynamicMessage.Builder`
DynamicMessage.Builder.`clearOneof(Descriptors.OneofDescriptor oneof)`
`BuilderT`
GeneratedMessage.Builder.`clearOneof(Descriptors.OneofDescriptor oneof)`
`BuilderT`
GeneratedMessageV3.Builder.`clearOneof(Descriptors.OneofDescriptor oneof)`
Deprecated.
`BuilderT`
GeneratedMessageV3.ExtendableBuilder.`clearOneof(Descriptors.OneofDescriptor oneof)`
Deprecated.
`Message.Builder`
Message.Builder.`clearOneof(Descriptors.OneofDescriptor oneof)`
Clears the oneof.
`Descriptors.FieldDescriptor`
AbstractMessage.Builder.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
TODO: Clear it when all subclasses have implemented this method.
`Descriptors.FieldDescriptor`
AbstractMessage.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
`Descriptors.FieldDescriptor`
DynamicMessage.Builder.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
`Descriptors.FieldDescriptor`
DynamicMessage.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
`Descriptors.FieldDescriptor`
GeneratedMessage.Builder.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
`Descriptors.FieldDescriptor`
GeneratedMessage.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
`Descriptors.FieldDescriptor`
MessageOrBuilder.`getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)`
Obtains the FieldDescriptor if the given oneof is set.
`boolean`
AbstractMessage.Builder.`hasOneof(Descriptors.OneofDescriptor oneof)`
TODO: Clear it when all subclasses have implemented this method.
`boolean`
AbstractMessage.`hasOneof(Descriptors.OneofDescriptor oneof)`
`boolean`
DynamicMessage.Builder.`hasOneof(Descriptors.OneofDescriptor oneof)`
`boolean`
DynamicMessage.`hasOneof(Descriptors.OneofDescriptor oneof)`
`boolean`
GeneratedMessage.Builder.`hasOneof(Descriptors.OneofDescriptor oneof)`
`boolean`
GeneratedMessage.`hasOneof(Descriptors.OneofDescriptor oneof)`
`boolean`
MessageOrBuilder.`hasOneof(Descriptors.OneofDescriptor oneof)`
Returns true if the given oneof is set.