public static final class DescriptorProtos.FileDescriptorProto.Builder extends GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder> implements DescriptorProtos.FileDescriptorProtoOrBuilder
addRepeatedField, clearField, getAllFields, getField, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsmergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasFieldpublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage.BuilderinternalGetFieldAccessorTable in class GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>public DescriptorProtos.FileDescriptorProto.Builder clear()
GeneratedMessage.Builderclear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>public DescriptorProtos.FileDescriptorProto.Builder clone()
MessageLite.Builderclone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>Object.clone()public Descriptors.Descriptor getDescriptorForType()
Message.BuilderMessageOrBuilder.getDescriptorForType().getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>public DescriptorProtos.FileDescriptorProto getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() 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 MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic DescriptorProtos.FileDescriptorProto build()
MessageLite.Builderbuild(), clone()
it first.build in interface Message.Builderbuild in interface MessageLite.Builderpublic DescriptorProtos.FileDescriptorProto buildPartial()
MessageLite.BuilderMessageLite.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.BuilderbuildPartial in interface MessageLite.Builderpublic DescriptorProtos.FileDescriptorProto.Builder mergeFrom(Message other)
Message.Builderother 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.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other)
public final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
MessageLite.BuilderMessageLite.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.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>IOExceptionpublic boolean hasName()
hasName in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic String getName()
getName in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setName(String value)
public DescriptorProtos.FileDescriptorProto.Builder clearName()
public boolean hasPackage()
hasPackage in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic String getPackage()
getPackage in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setPackage(String value)
public DescriptorProtos.FileDescriptorProto.Builder clearPackage()
public List<String> getDependencyList()
getDependencyList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic int getDependencyCount()
getDependencyCount in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic String getDependency(int index)
getDependency in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setDependency(int index, String value)
public DescriptorProtos.FileDescriptorProto.Builder addDependency(String value)
public DescriptorProtos.FileDescriptorProto.Builder addAllDependency(Iterable<String> values)
public DescriptorProtos.FileDescriptorProto.Builder clearDependency()
public List<DescriptorProtos.DescriptorProto> getMessageTypeList()
getMessageTypeList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic int getMessageTypeCount()
getMessageTypeCount in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto getMessageType(int index)
getMessageType in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values)
public DescriptorProtos.FileDescriptorProto.Builder clearMessageType()
public DescriptorProtos.FileDescriptorProto.Builder removeMessageType(int index)
public DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder(int index)
public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
getMessageTypeOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
getMessageTypeOrBuilderList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder()
public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder(int index)
public List<DescriptorProtos.DescriptorProto.Builder> getMessageTypeBuilderList()
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
getEnumTypeList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic int getEnumTypeCount()
getEnumTypeCount in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto getEnumType(int index)
getEnumType in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
public DescriptorProtos.FileDescriptorProto.Builder clearEnumType()
public DescriptorProtos.FileDescriptorProto.Builder removeEnumType(int index)
public DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder(int index)
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
getEnumTypeOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
getEnumTypeOrBuilderList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder()
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder(int index)
public List<DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList()
public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
getServiceList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic int getServiceCount()
getServiceCount in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.ServiceDescriptorProto getService(int index)
getService in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)
public DescriptorProtos.FileDescriptorProto.Builder clearService()
public DescriptorProtos.FileDescriptorProto.Builder removeService(int index)
public DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder(int index)
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
getServiceOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
getServiceOrBuilderList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder()
public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder(int index)
public List<DescriptorProtos.ServiceDescriptorProto.Builder> getServiceBuilderList()
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
getExtensionList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic int getExtensionCount()
getExtensionCount in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProto getExtension(int index)
getExtension in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
public DescriptorProtos.FileDescriptorProto.Builder clearExtension()
public DescriptorProtos.FileDescriptorProto.Builder removeExtension(int index)
public DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder(int index)
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
getExtensionOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
getExtensionOrBuilderList in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder()
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder(int index)
public List<DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList()
public boolean hasOptions()
hasOptions in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileOptions getOptions()
getOptions in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions value)
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value)
public DescriptorProtos.FileDescriptorProto.Builder clearOptions()
public DescriptorProtos.FileOptions.Builder getOptionsBuilder()
public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
getOptionsOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic boolean hasSourceCodeInfo()
hasSourceCodeInfo in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.SourceCodeInfo getSourceCodeInfo()
getSourceCodeInfo in interface DescriptorProtos.FileDescriptorProtoOrBuilderpublic DescriptorProtos.FileDescriptorProto.Builder setSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
public DescriptorProtos.FileDescriptorProto.Builder setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder mergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
public DescriptorProtos.FileDescriptorProto.Builder clearSourceCodeInfo()
public DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder()
public DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder()
getSourceCodeInfoOrBuilder in interface DescriptorProtos.FileDescriptorProtoOrBuilderCopyright © 2008–2013 Google. All rights reserved.