Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Field and Description |
---|---|
Descriptors.FieldDescriptor |
ExtensionRegistry.ExtensionInfo.descriptor
The extension's descriptor.
|
Modifier and Type | Method and Description |
---|---|
Descriptors.FieldDescriptor |
Descriptors.FileDescriptor.findExtensionByName(java.lang.String name)
Find an extension in the file by name.
|
Descriptors.FieldDescriptor |
Descriptors.Descriptor.findFieldByName(java.lang.String name)
Finds a field by name.
|
Descriptors.FieldDescriptor |
Descriptors.Descriptor.findFieldByNumber(int number)
Finds a field by field number.
|
Descriptors.FieldDescriptor |
GeneratedMessage.GeneratedExtension.getDescriptor() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
MessageOrBuilder.getAllFields()
Returns a collection of all the fields in this message which are set
and their corresponding values.
|
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
GeneratedMessage.getAllFields() |
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
GeneratedMessage.Builder.getAllFields() |
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
GeneratedMessage.ExtendableMessage.getAllFields() |
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
GeneratedMessage.ExtendableBuilder.getAllFields() |
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
DynamicMessage.getAllFields() |
java.util.Map<Descriptors.FieldDescriptor,java.lang.Object> |
DynamicMessage.Builder.getAllFields() |
java.util.List<Descriptors.FieldDescriptor> |
Descriptors.FileDescriptor.getExtensions()
Get a list of top-level extensions declared in this file.
|
java.util.List<Descriptors.FieldDescriptor> |
Descriptors.Descriptor.getExtensions()
Get a list of this message type's extensions.
|
java.util.List<Descriptors.FieldDescriptor> |
Descriptors.Descriptor.getFields()
Get a list of this message type's fields.
|
Modifier and Type | Method and 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.
|
Message.Builder |
Message.Builder.addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value)
Like
setRepeatedField , but appends the value as a new element. |
BuilderType |
GeneratedMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
BuilderType |
GeneratedMessage.ExtendableBuilder.addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DynamicMessage.Builder |
DynamicMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Message.Builder |
Message.Builder.clearField(Descriptors.FieldDescriptor field)
Clears the field.
|
BuilderType |
GeneratedMessage.Builder.clearField(Descriptors.FieldDescriptor field) |
BuilderType |
GeneratedMessage.ExtendableBuilder.clearField(Descriptors.FieldDescriptor field) |
DynamicMessage.Builder |
DynamicMessage.Builder.clearField(Descriptors.FieldDescriptor field) |
int |
Descriptors.FieldDescriptor.compareTo(Descriptors.FieldDescriptor other)
Compare with another
FieldDescriptor . |
java.lang.Object |
MessageOrBuilder.getField(Descriptors.FieldDescriptor field)
Obtains the value of the given field, or the default value if it is
not set.
|
java.lang.Object |
GeneratedMessage.getField(Descriptors.FieldDescriptor field) |
java.lang.Object |
GeneratedMessage.Builder.getField(Descriptors.FieldDescriptor field) |
java.lang.Object |
GeneratedMessage.ExtendableMessage.getField(Descriptors.FieldDescriptor field) |
java.lang.Object |
GeneratedMessage.ExtendableBuilder.getField(Descriptors.FieldDescriptor field) |
java.lang.Object |
DynamicMessage.getField(Descriptors.FieldDescriptor field) |
java.lang.Object |
DynamicMessage.Builder.getField(Descriptors.FieldDescriptor field) |
Message.Builder |
Message.Builder.getFieldBuilder(Descriptors.FieldDescriptor field)
Get a nested builder instance for the given field.
|
Message.Builder |
GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
Message.Builder |
DynamicMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
Message.Builder |
AbstractMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor field) |
java.lang.Object |
MessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor field,
int index)
Gets an element of a repeated field.
|
java.lang.Object |
GeneratedMessage.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
java.lang.Object |
GeneratedMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
java.lang.Object |
GeneratedMessage.ExtendableMessage.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
java.lang.Object |
GeneratedMessage.ExtendableBuilder.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
java.lang.Object |
DynamicMessage.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
java.lang.Object |
DynamicMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor field,
int index) |
int |
MessageOrBuilder.getRepeatedFieldCount(Descriptors.FieldDescriptor field)
Gets the number of elements of a repeated field.
|
int |
GeneratedMessage.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
int |
GeneratedMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
int |
GeneratedMessage.ExtendableMessage.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
int |
GeneratedMessage.ExtendableBuilder.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
int |
DynamicMessage.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
int |
DynamicMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor field) |
boolean |
MessageOrBuilder.hasField(Descriptors.FieldDescriptor field)
Returns true if the given field is set.
|
boolean |
GeneratedMessage.hasField(Descriptors.FieldDescriptor field) |
boolean |
GeneratedMessage.Builder.hasField(Descriptors.FieldDescriptor field) |
boolean |
GeneratedMessage.ExtendableMessage.hasField(Descriptors.FieldDescriptor field) |
boolean |
GeneratedMessage.ExtendableBuilder.hasField(Descriptors.FieldDescriptor field) |
boolean |
DynamicMessage.hasField(Descriptors.FieldDescriptor field) |
boolean |
DynamicMessage.Builder.hasField(Descriptors.FieldDescriptor field) |
void |
GeneratedMessage.GeneratedExtension.internalInit(Descriptors.FieldDescriptor descriptor)
For use by generated code only.
|
Message.Builder |
Message.Builder.newBuilderForField(Descriptors.FieldDescriptor field)
Create a Builder for messages of the appropriate type for the given
field.
|
Message.Builder |
GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor field) |
DynamicMessage.Builder |
DynamicMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor field) |
static void |
TextFormat.printField(Descriptors.FieldDescriptor field,
java.lang.Object value,
java.lang.Appendable output) |
static java.lang.String |
TextFormat.printFieldToString(Descriptors.FieldDescriptor field,
java.lang.Object value) |
static void |
TextFormat.printFieldValue(Descriptors.FieldDescriptor field,
java.lang.Object value,
java.lang.Appendable output)
Outputs a textual representation of the value of given field value.
|
Message.Builder |
Message.Builder.setField(Descriptors.FieldDescriptor field,
java.lang.Object value)
Sets a field to the given value.
|
BuilderType |
GeneratedMessage.Builder.setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
BuilderType |
GeneratedMessage.ExtendableBuilder.setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DynamicMessage.Builder |
DynamicMessage.Builder.setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Message.Builder |
Message.Builder.setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value)
Sets an element of a repeated field to the given value.
|
BuilderType |
GeneratedMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
BuilderType |
GeneratedMessage.ExtendableBuilder.setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
DynamicMessage.Builder |
DynamicMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |