Classes | Public Member Functions | Protected Member Functions | List of all members
com.google.protobuf.Extension< ContainingType extends MessageLite, Type > Class Template Referenceabstract
Inheritance diagram for com.google.protobuf.Extension< ContainingType extends MessageLite, Type >:
Inheritance graph
[legend]

Classes

enum  ExtensionType
 
enum  MessageType
 

Public Member Functions

abstract Descriptors.FieldDescriptor getDescriptor ()
 
abstract Message getMessageDefaultInstance ()
 
MessageType getMessageType ()
 
- Public Member Functions inherited from com.google.protobuf.ExtensionLite< ContainingType, Type >
abstract Type getDefaultValue ()
 
abstract WireFormat.FieldType getLiteType ()
 
abstract MessageLite getMessageDefaultInstance ()
 
abstract int getNumber ()
 
abstract boolean isRepeated ()
 

Protected Member Functions

abstract Object fromReflectionType (Object value)
 
abstract ExtensionType getExtensionType ()
 
abstract Object singularFromReflectionType (Object value)
 
abstract Object singularToReflectionType (Object value)
 
abstract Object toReflectionType (Object value)
 

Detailed Description

Interface that generated extensions implement.

Author
liuji.nosp@m.si@g.nosp@m.oogle.nosp@m..com (Jisi Liu)

Definition at line 39 of file Extension.java.

Member Function Documentation

◆ fromReflectionType()

abstract Object com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.fromReflectionType ( Object  value)
abstractprotected

◆ getDescriptor()

abstract Descriptors.FieldDescriptor com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.getDescriptor ( )
abstract

Returns the descriptor of the extension.

◆ getExtensionType()

abstract ExtensionType com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.getExtensionType ( )
abstractprotected

◆ getMessageDefaultInstance()

abstract Message com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.getMessageDefaultInstance ( )
abstract

Overridden to return Message instead of MessageLite.

◆ getMessageType()

MessageType com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.getMessageType ( )
inline

If the extension is a message extension (i.e., getLiteType() == MESSAGE), returns the type of the message, otherwise undefined.

Definition at line 77 of file Extension.java.

◆ singularFromReflectionType()

abstract Object com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.singularFromReflectionType ( Object  value)
abstractprotected

◆ singularToReflectionType()

abstract Object com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.singularToReflectionType ( Object  value)
abstractprotected

◆ toReflectionType()

abstract Object com.google.protobuf.Extension< ContainingType extends MessageLite, Type >.toReflectionType ( Object  value)
abstractprotected

The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07