|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType,Type>
public static final class GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>
Type used to represent generated extensions. The protocol compiler generates a static singleton instance of this class for each extension.
For example, imagine you have the .proto file:
option java_class = "MyProto";
message Foo {
extensions 1000 to max;
}
extend Foo {
optional int32 bar;
}
Then, MyProto.Foo.bar has type
GeneratedExtension<MyProto.Foo, Integer>.
In general, users should ignore the details of this type, and simply use
these static singletons as parameters to the extension accessors defined
in GeneratedMessage.ExtendableMessage and GeneratedMessage.ExtendableBuilder.
| Method Summary | |
|---|---|
Descriptors.FieldDescriptor |
getDescriptor()
|
Message |
getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default instance of the message. |
void |
internalInit(Descriptors.FieldDescriptor descriptor)
For use by generated code only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void internalInit(Descriptors.FieldDescriptor descriptor)
public Descriptors.FieldDescriptor getDescriptor()
public Message getMessageDefaultInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||