public abstract class ExtensionLite<ContainingType extends MessageLite,Type>
extends java.lang.Object
Methods are for use by generated code only. You can hold a reference to extensions using this type name.
Constructor and Description |
---|
ExtensionLite() |
Modifier and Type | Method and Description |
---|---|
abstract Type |
getDefaultValue()
Returns the default value of the extension field.
|
abstract WireFormat.FieldType |
getLiteType()
Returns the type of the field.
|
abstract MessageLite |
getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message extension.
|
abstract int |
getNumber()
Returns the field number of the extension.
|
abstract boolean |
isRepeated()
Returns whether it is a repeated field.
|
public abstract int getNumber()
public abstract WireFormat.FieldType getLiteType()
public abstract boolean isRepeated()
public abstract Type getDefaultValue()
public abstract MessageLite getMessageDefaultInstance()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.