public static interface GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage> extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Message |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
<Type> Type |
getExtension(Extension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
getExtension(Extension<MessageType,Type> extension)
Get the value of an extension.
|
<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> Type |
getExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
getExtensionCount(Extension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
getExtensionCount(ExtensionLite<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
hasExtension(Extension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
hasExtension(ExtensionLite<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
hasExtension(GeneratedMessage.GeneratedExtension<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)
<Type> boolean hasExtension(Extension<MessageType,Type> extension)
<Type> boolean hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
<Type> int getExtensionCount(Extension<MessageType,java.util.List<Type>> extension)
<Type> int getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension)
<Type> Type getExtension(Extension<MessageType,Type> extension)
<Type> Type getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
<Type> Type getExtension(Extension<MessageType,java.util.List<Type>> extension, int index)
<Type> Type getExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension, int index)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.