Class Extension<ContainingType extends com.google.protobuf.MessageLite,​Type>

  • Direct Known Subclasses:
    GeneratedMessage.GeneratedExtension

    public abstract class Extension<ContainingType extends com.google.protobuf.MessageLite,​Type>
    extends com.google.protobuf.ExtensionLite<ContainingType,​Type>
    Interface that generated extensions implement.
    • Constructor Detail

      • Extension

        public Extension()
    • Method Detail

      • getMessageDefaultInstance

        public abstract Message getMessageDefaultInstance()
        Overridden to return Message instead of MessageLite.
        Specified by:
        getMessageDefaultInstance in class com.google.protobuf.ExtensionLite<ContainingType extends com.google.protobuf.MessageLite,​Type>
      • getMessageType

        public Extension.MessageType getMessageType()
        If the extension is a message extension (i.e., getLiteType() == MESSAGE), returns the type of the message, otherwise undefined.
      • fromReflectionType

        protected abstract java.lang.Object fromReflectionType​(java.lang.Object value)
      • singularFromReflectionType

        protected abstract java.lang.Object singularFromReflectionType​(java.lang.Object value)
      • toReflectionType

        protected abstract java.lang.Object toReflectionType​(java.lang.Object value)
      • singularToReflectionType

        protected abstract java.lang.Object singularToReflectionType​(java.lang.Object value)