public static interface GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage > extends MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Message |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
<Type> Type |
getExtension(Extension
Get one element of a repeated extension.
|
<Type> Type |
getExtension(Extension
Get the value of an extension.
|
<Type> int |
getExtensionCount(Extension
Get the number of elements in a repeated extension.
|
<Type> boolean |
hasExtension(Extension
Check if a singular extension is present.
|
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedMessagegetDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance() method of generated message classes in that this method is an abstract method of the
MessageLite interface whereas
getDefaultInstance() is a static method of a specific class. They return the same thing.
<Type> boolean hasExtension(Extension<MessageType ,Type> extension)
<Type> int getExtensionCount(Extension<MessageType ,List <Type>> extension)
<Type> Type getExtension(Extension<MessageType ,Type> extension)
<Type> Type getExtension(Extension<MessageType ,List <Type>> extension, int index)