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

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

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

Fields in com.google.protobuf declared as Descriptors.FieldDescriptor
Modifier and Type
Field
Description
`final Descriptors.FieldDescriptor`
ExtensionRegistry.ExtensionInfo.`descriptor`
The extension's descriptor.
Methods in com.google.protobuf that return Descriptors.FieldDescriptor
Modifier and Type
Method
Description
`Descriptors.FieldDescriptor`
Descriptors.FileDescriptor.`findExtensionByName(String name)`
Find an extension in the file by name.
`Descriptors.FieldDescriptor`
Descriptors.Descriptor.`findFieldByName(String name)`
Finds a field by name.
`Descriptors.FieldDescriptor`
Descriptors.Descriptor.`findFieldByNumber(int number)`
Finds a field by field number.
`abstract Descriptors.FieldDescriptor`
Extension.`getDescriptor()`
Returns the descriptor of the extension.
`Descriptors.FieldDescriptor`
GeneratedMessage.GeneratedExtension.`getDescriptor()`
`Descriptors.FieldDescriptor`
Descriptors.OneofDescriptor.`getField(int index)`
`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.
Methods in com.google.protobuf that return types with arguments of type Descriptors.FieldDescriptor
Modifier and Type
Method
Description
`Map<Descriptors.FieldDescriptor,Object>`
DynamicMessage.Builder.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
DynamicMessage.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.Builder.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.ExtendableBuilder.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.ExtendableMessage.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
MapEntry.Builder.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
MapEntry.`getAllFields()`
`Map<Descriptors.FieldDescriptor,Object>`
MessageOrBuilder.`getAllFields()`
Returns a collection of all the fields in this message which are set and their corresponding values.
`Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.ExtendableMessage.`getAllFieldsRaw()`
`protected Map<Descriptors.FieldDescriptor,Object>`
GeneratedMessage.ExtendableMessage.`getExtensionFields()`
`List<Descriptors.FieldDescriptor>`
Descriptors.Descriptor.`getExtensions()`
Get a list of this message type's extensions.
`List<Descriptors.FieldDescriptor>`
Descriptors.FileDescriptor.`getExtensions()`
Get a list of top-level extensions declared in this file.
`List<Descriptors.FieldDescriptor>`
Descriptors.Descriptor.`getFields()`
Get a list of this message type's fields.
`List<Descriptors.FieldDescriptor>`
Descriptors.OneofDescriptor.`getFields()`
Get a list of this message type's fields.
Methods in com.google.protobuf with parameters of type Descriptors.FieldDescriptor
Modifier and Type
Method
Description
`void`
ExtensionRegistry.`add(Descriptors.FieldDescriptor type)`
Add a non-message-type extension to the registry by descriptor.
`void`
ExtensionRegistry.`add(Descriptors.FieldDescriptor type, Message defaultInstance)`
Add a message-type extension to the registry by descriptor.
`DynamicMessage.Builder`
DynamicMessage.Builder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessage.Builder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessage.ExtendableBuilder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessageV3.Builder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
Deprecated.
`BuilderT`
GeneratedMessageV3.ExtendableBuilder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
Deprecated.
`MapEntry.Builder<K,V>`
MapEntry.Builder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
`Message.Builder`
Message.Builder.`addRepeatedField(Descriptors.FieldDescriptor field, Object value)`
Like `setRepeatedField`, but appends the value as a new element.
`DynamicMessage.Builder`
DynamicMessage.Builder.`clearField(Descriptors.FieldDescriptor field)`
`BuilderT`
GeneratedMessage.Builder.`clearField(Descriptors.FieldDescriptor field)`
`BuilderT`
GeneratedMessage.ExtendableBuilder.`clearField(Descriptors.FieldDescriptor field)`
`BuilderT`
GeneratedMessageV3.Builder.`clearField(Descriptors.FieldDescriptor field)`
Deprecated.
`BuilderT`
GeneratedMessageV3.ExtendableBuilder.`clearField(Descriptors.FieldDescriptor field)`
Deprecated.
`MapEntry.Builder<K,V>`
MapEntry.Builder.`clearField(Descriptors.FieldDescriptor field)`
`Message.Builder`
Message.Builder.`clearField(Descriptors.FieldDescriptor field)`
Clears the field.
`int`
Descriptors.FieldDescriptor.`compareTo(Descriptors.FieldDescriptor other)`
Compare with another `FieldDescriptor`.
`TextFormatParseInfoTree.Builder`
TextFormatParseInfoTree.Builder.`getBuilderForSubMessageField(Descriptors.FieldDescriptor fieldDescriptor)`
Set for a sub message.
`Object`
DynamicMessage.Builder.`getField(Descriptors.FieldDescriptor field)`
`Object`
DynamicMessage.`getField(Descriptors.FieldDescriptor field)`
`Object`
GeneratedMessage.Builder.`getField(Descriptors.FieldDescriptor field)`
`Object`
GeneratedMessage.ExtendableBuilder.`getField(Descriptors.FieldDescriptor field)`
`Object`
GeneratedMessage.ExtendableMessage.`getField(Descriptors.FieldDescriptor field)`
`Object`
GeneratedMessage.`getField(Descriptors.FieldDescriptor field)`
`Object`
MapEntry.Builder.`getField(Descriptors.FieldDescriptor field)`
`Object`
MapEntry.`getField(Descriptors.FieldDescriptor field)`
`Object`
MessageOrBuilder.`getField(Descriptors.FieldDescriptor field)`
Obtains the value of the given field, or the default value if it is not set.
`Message.Builder`
AbstractMessage.Builder.`getFieldBuilder(Descriptors.FieldDescriptor field)`
`Message.Builder`
DynamicMessage.Builder.`getFieldBuilder(Descriptors.FieldDescriptor field)`
`Message.Builder`
GeneratedMessage.Builder.`getFieldBuilder(Descriptors.FieldDescriptor field)`
`Message.Builder`
GeneratedMessage.ExtendableBuilder.`getFieldBuilder(Descriptors.FieldDescriptor field)`
`Message.Builder`
Message.Builder.`getFieldBuilder(Descriptors.FieldDescriptor field)`
Get a nested builder instance for the given field.
`TextFormatParseLocation`
TextFormatParseInfoTree.`getLocation(Descriptors.FieldDescriptor fieldDescriptor, int index)`
Get the location in the source of a field's value.
`List<TextFormatParseLocation>`
TextFormatParseInfoTree.`getLocations(Descriptors.FieldDescriptor fieldDescriptor)`
Retrieve all the locations of a field.
`TextFormatParseInfoTree`
TextFormatParseInfoTree.`getNestedTree(Descriptors.FieldDescriptor fieldDescriptor, int index)`
Returns the parse info tree for the given field, which must be a message type.
`List<TextFormatParseInfoTree>`
TextFormatParseInfoTree.`getNestedTrees(Descriptors.FieldDescriptor fieldDescriptor)`
Retrieve a list of all the location information trees for a sub message field.
`Object`
DynamicMessage.Builder.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
DynamicMessage.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
GeneratedMessage.Builder.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
GeneratedMessage.ExtendableBuilder.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
GeneratedMessage.ExtendableMessage.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
GeneratedMessage.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
MapEntry.Builder.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
MapEntry.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
`Object`
MessageOrBuilder.`getRepeatedField(Descriptors.FieldDescriptor field, int index)`
Gets an element of a repeated field.
`Message.Builder`
AbstractMessage.Builder.`getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, int index)`
`Message.Builder`
DynamicMessage.Builder.`getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, int index)`
`Message.Builder`
GeneratedMessage.Builder.`getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, int index)`
`Message.Builder`
GeneratedMessage.ExtendableBuilder.`getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, int index)`
`Message.Builder`
Message.Builder.`getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, int index)`
Get a nested builder instance for the given repeated field instance.
`int`
DynamicMessage.Builder.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
DynamicMessage.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
GeneratedMessage.Builder.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
GeneratedMessage.ExtendableBuilder.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
GeneratedMessage.ExtendableMessage.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
GeneratedMessage.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
MapEntry.Builder.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
MapEntry.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
`int`
MessageOrBuilder.`getRepeatedFieldCount(Descriptors.FieldDescriptor field)`
Gets the number of elements of a repeated field.
`boolean`
DynamicMessage.Builder.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
DynamicMessage.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
GeneratedMessage.Builder.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
GeneratedMessage.ExtendableBuilder.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
GeneratedMessage.ExtendableMessage.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
GeneratedMessage.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
MapEntry.Builder.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
MapEntry.`hasField(Descriptors.FieldDescriptor field)`
`boolean`
MessageOrBuilder.`hasField(Descriptors.FieldDescriptor field)`
Returns true if the given field is set.
`void`
GeneratedMessage.GeneratedExtension.`internalInit(Descriptors.FieldDescriptor descriptor)`
For use by generated code only.
`DynamicMessage.Builder`
DynamicMessage.Builder.`newBuilderForField(Descriptors.FieldDescriptor field)`
`Message.Builder`
GeneratedMessage.Builder.`newBuilderForField(Descriptors.FieldDescriptor field)`
`Message.Builder`
GeneratedMessage.ExtendableBuilder.`newBuilderForField(Descriptors.FieldDescriptor field)`
`Message.Builder`
MapEntry.Builder.`newBuilderForField(Descriptors.FieldDescriptor field)`
`Message.Builder`
Message.Builder.`newBuilderForField(Descriptors.FieldDescriptor field)`
Create a builder for messages of the appropriate type for the given field.
`void`
TextFormat.Printer.`printField(Descriptors.FieldDescriptor field, Object value, Appendable output)`
`String`
TextFormat.Printer.`printFieldToString(Descriptors.FieldDescriptor field, Object value)`
`void`
TextFormat.Printer.`printFieldValue(Descriptors.FieldDescriptor field, Object value, Appendable output)`
Outputs a textual representation of the value of given field value.
`DynamicMessage.Builder`
DynamicMessage.Builder.`setField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessage.Builder.`setField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessage.ExtendableBuilder.`setField(Descriptors.FieldDescriptor field, Object value)`
`BuilderT`
GeneratedMessageV3.Builder.`setField(Descriptors.FieldDescriptor field, Object value)`
Deprecated.
`BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setField(Descriptors.FieldDescriptor field, Object value)`
Deprecated.
`MapEntry.Builder<K,V>`
MapEntry.Builder.`setField(Descriptors.FieldDescriptor field, Object value)`
`Message.Builder`
Message.Builder.`setField(Descriptors.FieldDescriptor field, Object value)`
Sets a field to the given value.
`TextFormatParseInfoTree.Builder`
TextFormatParseInfoTree.Builder.`setLocation(Descriptors.FieldDescriptor fieldDescriptor, TextFormatParseLocation location)`
Record the starting location of a single value for a field.
`DynamicMessage.Builder`
DynamicMessage.Builder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
`BuilderT`
GeneratedMessage.Builder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
`BuilderT`
GeneratedMessage.ExtendableBuilder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
`BuilderT`
GeneratedMessageV3.Builder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
Deprecated.
`BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
Deprecated.
`MapEntry.Builder<K,V>`
MapEntry.Builder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
`Message.Builder`
Message.Builder.`setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)`
Sets an element of a repeated field to the given value.
`String`
TextFormat.Printer.`shortDebugString(Descriptors.FieldDescriptor field, Object value)`
Deprecated.
Use `this.emittingSingleLine(true).printFieldToString(FieldDescriptor, Object)`
`String`
DebugFormat.`toString(Descriptors.FieldDescriptor field, Object value)`
Method parameters in com.google.protobuf with type arguments of type Descriptors.FieldDescriptor
Modifier and Type
Method
Description
`protected static int`
AbstractMessage.`hashFields(int hash, Map<Descriptors.FieldDescriptor,Object> map)`
Get a hash code for given fields and values, using the given seed.