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(ExtensionLite<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
getExtension(ExtensionLite<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
getExtensionCount(ExtensionLite<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
hasExtension(ExtensionLite<MessageType,Type> extension)
Check if a singular extension is present.
|
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
Message getDefaultInstanceForType()
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.getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
<Type> boolean hasExtension(ExtensionLite<MessageType,Type> extension)
<Type> int getExtensionCount(ExtensionLite<MessageType,java.util.List<Type>> extension)
<Type> Type getExtension(ExtensionLite<MessageType,Type> extension)
<Type> Type getExtension(ExtensionLite<MessageType,java.util.List<Type>> extension, int index)