|
|||||||||
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.FieldDescriptorProto.Builder> com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder
public static final class DescriptorProtos.FieldDescriptorProto.Builder
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder |
---|
addRepeatedField, clearField, getAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, mergeUnknownFields, newBuilderForField, 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 |
Method Detail |
---|
protected DescriptorProtos.FieldDescriptorProto internalGetResult()
GeneratedMessage.Builder
internalGetResult
in class GeneratedMessage.Builder<DescriptorProtos.FieldDescriptorProto.Builder>
public DescriptorProtos.FieldDescriptorProto.Builder clear()
MessageLite.Builder
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class AbstractMessage.Builder<DescriptorProtos.FieldDescriptorProto.Builder>
public DescriptorProtos.FieldDescriptorProto.Builder clone()
MessageLite.Builder
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessage.Builder<DescriptorProtos.FieldDescriptorProto.Builder>
Object.clone()
public Descriptors.Descriptor getDescriptorForType()
Message.Builder
Message.getDescriptorForType()
.
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in class GeneratedMessage.Builder<DescriptorProtos.FieldDescriptorProto.Builder>
public DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType()
MessageLite.Builder
MessageLite.getDefaultInstanceForType()
.
public boolean isInitialized()
MessageLite.Builder
isInitialized
in interface MessageLite.Builder
isInitialized
in class GeneratedMessage.Builder<DescriptorProtos.FieldDescriptorProto.Builder>
public DescriptorProtos.FieldDescriptorProto build()
MessageLite.Builder
build()
, clone()
it first.
public DescriptorProtos.FieldDescriptorProto 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.
public DescriptorProtos.FieldDescriptorProto.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.FieldDescriptorProto.Builder>
public DescriptorProtos.FieldDescriptorProto.Builder mergeFrom(DescriptorProtos.FieldDescriptorProto other)
public DescriptorProtos.FieldDescriptorProto.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.FieldDescriptorProto.Builder>
java.io.IOException
public boolean hasName()
public java.lang.String getName()
public DescriptorProtos.FieldDescriptorProto.Builder setName(java.lang.String value)
public DescriptorProtos.FieldDescriptorProto.Builder clearName()
public boolean hasNumber()
public int getNumber()
public DescriptorProtos.FieldDescriptorProto.Builder setNumber(int value)
public DescriptorProtos.FieldDescriptorProto.Builder clearNumber()
public boolean hasLabel()
public DescriptorProtos.FieldDescriptorProto.Label getLabel()
public DescriptorProtos.FieldDescriptorProto.Builder setLabel(DescriptorProtos.FieldDescriptorProto.Label value)
public DescriptorProtos.FieldDescriptorProto.Builder clearLabel()
public boolean hasType()
public DescriptorProtos.FieldDescriptorProto.Type getType()
public DescriptorProtos.FieldDescriptorProto.Builder setType(DescriptorProtos.FieldDescriptorProto.Type value)
public DescriptorProtos.FieldDescriptorProto.Builder clearType()
public boolean hasTypeName()
public java.lang.String getTypeName()
public DescriptorProtos.FieldDescriptorProto.Builder setTypeName(java.lang.String value)
public DescriptorProtos.FieldDescriptorProto.Builder clearTypeName()
public boolean hasExtendee()
public java.lang.String getExtendee()
public DescriptorProtos.FieldDescriptorProto.Builder setExtendee(java.lang.String value)
public DescriptorProtos.FieldDescriptorProto.Builder clearExtendee()
public boolean hasDefaultValue()
public java.lang.String getDefaultValue()
public DescriptorProtos.FieldDescriptorProto.Builder setDefaultValue(java.lang.String value)
public DescriptorProtos.FieldDescriptorProto.Builder clearDefaultValue()
public boolean hasOptions()
public DescriptorProtos.FieldOptions getOptions()
public DescriptorProtos.FieldDescriptorProto.Builder setOptions(DescriptorProtos.FieldOptions value)
public DescriptorProtos.FieldDescriptorProto.Builder setOptions(DescriptorProtos.FieldOptions.Builder builderForValue)
public DescriptorProtos.FieldDescriptorProto.Builder mergeOptions(DescriptorProtos.FieldOptions value)
public DescriptorProtos.FieldDescriptorProto.Builder clearOptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |