Top Description Inners Constructors Methods
com.google.protobuf

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

extends ExtensionLite<ContainingType extends MessageLite, Type>
Class Inheritance
Known Direct Subclasses
com.google.protobuf.GeneratedMessage.GeneratedExtension

Interface that generated extensions implement.
Author
[email protected] (Jisi Liu)

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static enum
Extension.ExtensionType

The API type that the extension is used for.

public static enum
Extension.MessageType

Type of a message extension.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract Object
public abstract Descriptors.FieldDescriptor
getDescriptor()

Returns the descriptor of the extension.

protected abstract Extension.ExtensionType
public Extension.MessageType
getMessageType()

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

pack-priv final boolean
isLite()

Overrides com.google.protobuf.ExtensionLite.isLite.

Returns whether or not this extension is a Lite Extension.
protected abstract Object
protected abstract Object
protected abstract Object
Inherited from com.google.protobuf.ExtensionLite:
getDefaultValuegetLiteTypegetMessageDefaultInstancegetNumberisRepeated

Constructor Detail

Extensionback to summary
public Extension()

Method Detail

fromReflectionTypeback to summary
protected abstract Object fromReflectionType(Object value)
getDescriptorback to summary
public abstract Descriptors.FieldDescriptor getDescriptor()

Returns the descriptor of the extension.

getExtensionTypeback to summary
protected abstract Extension.ExtensionType getExtensionType()
getMessageTypeback to summary
public Extension.MessageType getMessageType()

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

isLiteback to summary
pack-priv final boolean isLite()

Overrides com.google.protobuf.ExtensionLite.isLite.

Returns whether or not this extension is a Lite Extension.

Annotations
@Override
singularFromReflectionTypeback to summary
protected abstract Object singularFromReflectionType(Object value)
singularToReflectionTypeback to summary
protected abstract Object singularToReflectionType(Object value)
toReflectionTypeback to summary
protected abstract Object toReflectionType(Object value)
com.google.protobuf back to summary

protected final Enum Extension.ExtensionType

extends Enum<Extension.ExtensionType>
Class Inheritance

The API type that the extension is used for.

Field Summary

Modifier and TypeField and Description
public static final Extension.ExtensionType
public static final Extension.ExtensionType
public static final Extension.ExtensionType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Extension.ExtensionType
public static Extension.ExtensionType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

IMMUTABLEback to summary
public static final Extension.ExtensionType IMMUTABLE
MUTABLEback to summary
public static final Extension.ExtensionType MUTABLE
PROTO1back to summary
public static final Extension.ExtensionType PROTO1

Constructor Detail

ExtensionTypeback to summary
private ExtensionType()

Method Detail

valueOfback to summary
public static Extension.ExtensionType valueOf(String name)
valuesback to summary
public static Extension.ExtensionType[] values()
com.google.protobuf back to summary

public final Enum Extension.MessageType

extends Enum<Extension.MessageType>
Class Inheritance

Type of a message extension.

Field Summary

Modifier and TypeField and Description
public static final Extension.MessageType
public static final Extension.MessageType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Extension.MessageType
public static Extension.MessageType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

PROTO1back to summary
public static final Extension.MessageType PROTO1
PROTO2back to summary
public static final Extension.MessageType PROTO2

Constructor Detail

MessageTypeback to summary
private MessageType()

Method Detail

valueOfback to summary
public static Extension.MessageType valueOf(String name)
valuesback to summary
public static Extension.MessageType[] values()