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

java.lang.Object
com.google.protobuf.ExtensionLite<ContainingType,Type>
com.google.protobuf.Extension<ContainingType,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 Details

    • Extension

      public Extension()
  • Method Details

    • 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>
    • getDescriptor

      public abstract Descriptors.FieldDescriptor getDescriptor()
      Returns the descriptor of the extension.
    • getExtensionType

      protected abstract Extension.ExtensionType getExtensionType()
    • 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 Object fromReflectionType(Object value)
    • singularFromReflectionType

      protected abstract Object singularFromReflectionType(Object value)
    • toReflectionType

      protected abstract Object toReflectionType(Object value)
    • singularToReflectionType

      protected abstract Object singularToReflectionType(Object value)