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

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

Type Parameters

Name Description
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
Name Description
extension ExtensionLite<MessageType,Type>
Returns
Type Description
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
Name Description
extension ExtensionLite<MessageType,List<Type>>
index int
Returns
Type Description
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
Name Description
extension ExtensionLite<MessageType,List<Type>>
Returns
Type Description
int

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

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

Check if a singular extension is present.

Parameter
Name Description
extension ExtensionLite<MessageType,Type>
Returns
Type Description
boolean