Package com.google.protobuf
Interface GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
GeneratedMessage.ExtendableBuilder,GeneratedMessage.ExtendableMessage
- Enclosing class:
- GeneratedMessage
public static interface GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>
extends MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionGet an instance of the type with no fields set.<Type> TypegetExtension(Extension<MessageType, List<Type>> extension, int index) Get one element of a repeated extension.<Type> TypegetExtension(Extension<MessageType, Type> extension) Get the value of an extension.<Type> TypegetExtension(ExtensionLite<MessageType, List<Type>> extension, int index) Get one element of a repeated extension.<Type> TypegetExtension(ExtensionLite<MessageType, Type> extension) Get the value of an extension.<Type> TypegetExtension(GeneratedMessage.GeneratedExtension<MessageType, List<Type>> extension, int index) Get one element of a repeated extension.<Type> TypegetExtension(GeneratedMessage.GeneratedExtension<MessageType, Type> extension) Get the value of an extension.<Type> intgetExtensionCount(Extension<MessageType, List<Type>> extension) Get the number of elements in a repeated extension.<Type> intgetExtensionCount(ExtensionLite<MessageType, List<Type>> extension) Get the number of elements in a repeated extension.<Type> intgetExtensionCount(GeneratedMessage.GeneratedExtension<MessageType, List<Type>> extension) Get the number of elements in a repeated extension.<Type> booleanhasExtension(Extension<MessageType, Type> extension) Check if a singular extension is present.<Type> booleanhasExtension(ExtensionLite<MessageType, Type> extension) Check if a singular extension is present.<Type> booleanhasExtension(GeneratedMessage.GeneratedExtension<MessageType, Type> extension) Check if a singular extension is present.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDefaultInstanceForType
Message getDefaultInstanceForType()Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
hasExtension
Check if a singular extension is present. -
getExtensionCount
Get the number of elements in a repeated extension. -
getExtension
Get the value of an extension. -
getExtension
Get one element of a repeated extension. -
hasExtension
Check if a singular extension is present. -
hasExtension
Check if a singular extension is present. -
getExtensionCount
Get the number of elements in a repeated extension. -
getExtensionCount
Get the number of elements in a repeated extension. -
getExtension
Get the value of an extension. -
getExtension
Get the value of an extension. -
getExtension
Get one element of a repeated extension. -
getExtension
<Type> Type getExtension(GeneratedMessage.GeneratedExtension<MessageType, List<Type>> extension, int index) Get one element of a repeated extension.
-