Interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType,BuilderType> (3.19.4)

public static interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType,BuilderType> extends MessageLiteOrBuilder

Type Parameters

NameDescription
MessageType
BuilderType

Methods

<Type>getExtension(ExtensionLite<MessageType,Type> extension)

public abstract Type <Type>getExtension(ExtensionLite<MessageType,Type> extension)

Get the value of an extension.

Parameter
NameDescription
extensionExtensionLite<MessageType,Type>
Returns
TypeDescription
Type

<Type>getExtension(ExtensionLite<MessageType,List<Type>> extension, int index)

public abstract Type <Type>getExtension(ExtensionLite<MessageType,List<Type>> extension, int index)

Get one element of a repeated extension.

Parameters
NameDescription
extensionExtensionLite<MessageType,List<Type>>
indexint
Returns
TypeDescription
Type

<Type>getExtensionCount(ExtensionLite<MessageType,List<Type>> extension)

public abstract int <Type>getExtensionCount(ExtensionLite<MessageType,List<Type>> extension)

Get the number of elements in a repeated extension.

Parameter
NameDescription
extensionExtensionLite<MessageType,List<Type>>
Returns
TypeDescription
int

<Type>hasExtension(ExtensionLite<MessageType,Type> extension)

public abstract boolean <Type>hasExtension(ExtensionLite<MessageType,Type> extension)

Check if a singular extension is present.

Parameter
NameDescription
extensionExtensionLite<MessageType,Type>
Returns
TypeDescription
boolean