public abstract static class GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>> extends GeneratedMessageLite.Builder<MessageType,BuilderType> implements GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType>
GeneratedMessage.ExtendableBuilder
.Modifier and Type | Method and Description |
---|---|
<Type> BuilderType |
addExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
Type value)
Append a value to a repeated extension.
|
BuilderType |
clear()
Resets all fields to their default values.
|
<Type> BuilderType |
clearExtension(GeneratedMessageLite.GeneratedExtension<MessageType,?> extension)
Clear an extension.
|
BuilderType |
clone()
Clones the Builder.
|
<Type> Type |
getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> BuilderType |
setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index,
Type value)
Set the value of one element of a repeated extension.
|
<Type> BuilderType |
setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension,
Type value)
Set the value of an extension.
|
getDefaultInstanceForType, mergeFrom
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
build, buildPartial
public BuilderType clear()
MessageLite.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>
public final <Type> boolean hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
hasExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> int getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension)
getExtensionCount
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> Type getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
getExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> Type getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension, int index)
getExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public BuilderType clone()
MessageLite.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>
Object.clone()
public final <Type> BuilderType setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension, Type value)
public final <Type> BuilderType setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension, int index, Type value)
public final <Type> BuilderType addExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension, Type value)
public final <Type> BuilderType clearExtension(GeneratedMessageLite.GeneratedExtension<MessageType,?> extension)