|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.protobuf.AbstractMessageLite.Builder<BuilderType> com.google.protobuf.AbstractMessage.Builder<BuilderType> com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder> com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder
public static final class DescriptorProtos.EnumDescriptorProto.Builder
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder |
---|
addRepeatedField, clearField, getAllFields, getField, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields |
Methods inherited from class com.google.protobuf.AbstractMessage.Builder |
---|
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException |
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder |
---|
addAll, newUninitializedMessageException |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.protobuf.MessageOrBuilder |
---|
getAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField |
Method Detail |
---|
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage.Builder
internalGetFieldAccessorTable
in class GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto.Builder clear()
GeneratedMessage.Builder
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto.Builder clone()
MessageLite.Builder
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
Object.clone()
public Descriptors.Descriptor getDescriptorForType()
Message.Builder
MessageOrBuilder.getDescriptorForType()
.
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated message classes in that
this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific
class. They return the same thing.
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DescriptorProtos.EnumDescriptorProto build()
MessageLite.Builder
build()
, clone()
it first.
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DescriptorProtos.EnumDescriptorProto buildPartial()
MessageLite.Builder
MessageLite.Builder.build()
, but does not throw an exception if the message
is missing required fields. Instead, a partial message is returned.
Once this is called, the Builder is no longer valid, and calling any
will result in undefined behavior and may throw a NullPointerException.
If you need to continue working with the builder after calling
buildPartial()
, clone()
it first.
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(Message other)
Message.Builder
other
into the message being built. other
must
have the exact same type as this
(i.e.
getDescriptorForType() == other.getDescriptorForType()
).
Merging occurs as follows. For each field:other
,
then other
's value overwrites the value in this message.other
,
it is merged into the corresponding sub-message of this message
using the same merging rules.other
are concatenated
with the elements in this message.
This is equivalent to the Message::MergeFrom
method in C++.
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(DescriptorProtos.EnumDescriptorProto other)
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
MessageLite.Builder
MessageLite.Builder.mergeFrom(CodedInputStream)
, but also
parses extensions. The extensions that you want to be able to parse
must be registered in extensionRegistry
. Extensions not in
the registry will be treated as unknown fields.
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
java.io.IOException
public boolean hasName()
hasName
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public java.lang.String getName()
getName
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProto.Builder setName(java.lang.String value)
public DescriptorProtos.EnumDescriptorProto.Builder clearName()
public java.util.List<DescriptorProtos.EnumValueDescriptorProto> getValueList()
getValueList
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public int getValueCount()
getValueCount
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumValueDescriptorProto getValue(int index)
getValue
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto value)
public DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto value)
public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto value)
public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
public DescriptorProtos.EnumDescriptorProto.Builder addAllValue(java.lang.Iterable<? extends DescriptorProtos.EnumValueDescriptorProto> values)
public DescriptorProtos.EnumDescriptorProto.Builder clearValue()
public DescriptorProtos.EnumDescriptorProto.Builder removeValue(int index)
public DescriptorProtos.EnumValueDescriptorProto.Builder getValueBuilder(int index)
public DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder(int index)
getValueOrBuilder
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()
getValueOrBuilderList
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder()
public DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder(int index)
public java.util.List<DescriptorProtos.EnumValueDescriptorProto.Builder> getValueBuilderList()
public boolean hasOptions()
hasOptions
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumOptions getOptions()
getOptions
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProto.Builder setOptions(DescriptorProtos.EnumOptions value)
public DescriptorProtos.EnumDescriptorProto.Builder setOptions(DescriptorProtos.EnumOptions.Builder builderForValue)
public DescriptorProtos.EnumDescriptorProto.Builder mergeOptions(DescriptorProtos.EnumOptions value)
public DescriptorProtos.EnumDescriptorProto.Builder clearOptions()
public DescriptorProtos.EnumOptions.Builder getOptionsBuilder()
public DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder()
getOptionsOrBuilder
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |