Interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType,BuilderType> (3.19.4)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
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.
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.
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 >
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-30 UTC."],[],[],null,[]]