public static final class DescriptorProtos.FileDescriptorProto extends GeneratedMessage implements DescriptorProtos.FileDescriptorProtoOrBuilder
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.FileDescriptorProto.Builder |
GeneratedMessage.BuilderParent, GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
DEPENDENCY_FIELD_NUMBER |
static int |
ENUM_TYPE_FIELD_NUMBER |
static int |
EXTENSION_FIELD_NUMBER |
static int |
MESSAGE_TYPE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OPTIONS_FIELD_NUMBER |
static int |
PACKAGE_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
SOURCE_CODE_INFO_FIELD_NUMBER |
alwaysUseFieldBuilders
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
public static final int DEPENDENCY_FIELD_NUMBER
public static final int MESSAGE_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public static final int SOURCE_CODE_INFO_FIELD_NUMBER
public static DescriptorProtos.FileDescriptorProto getDefaultInstance()
public DescriptorProtos.FileDescriptorProto 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 static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
internalGetFieldAccessorTable
in class GeneratedMessage
public boolean hasName()
hasName
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public String getName()
getName
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public boolean hasPackage()
hasPackage
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public String getPackage()
getPackage
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<String> getDependencyList()
getDependencyList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public int getDependencyCount()
getDependencyCount
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public String getDependency(int index)
getDependency
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<DescriptorProtos.DescriptorProto> getMessageTypeList()
getMessageTypeList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
getMessageTypeOrBuilderList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public int getMessageTypeCount()
getMessageTypeCount
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto getMessageType(int index)
getMessageType
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
getMessageTypeOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
getEnumTypeList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
getEnumTypeOrBuilderList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public int getEnumTypeCount()
getEnumTypeCount
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
getEnumType
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
getEnumTypeOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
getServiceList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
getServiceOrBuilderList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public int getServiceCount()
getServiceCount
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.ServiceDescriptorProto getService(int index)
getService
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
getServiceOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
getExtensionList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
getExtensionOrBuilderList
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public int getExtensionCount()
getExtensionCount
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
getExtension
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
getExtensionOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public boolean hasOptions()
hasOptions
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.FileOptions getOptions()
getOptions
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
getOptionsOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public boolean hasSourceCodeInfo()
hasSourceCodeInfo
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.SourceCodeInfo getSourceCodeInfo()
getSourceCodeInfo
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder()
getSourceCodeInfoOrBuilder
in interface DescriptorProtos.FileDescriptorProtoOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage
public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
writeTo
in class AbstractMessage
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class AbstractMessage
protected Object writeReplace() throws ObjectStreamException
GeneratedMessage
return super.writeReplace();
writeReplace
in class GeneratedMessage
ObjectStreamException
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorProto parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder()
public DescriptorProtos.FileDescriptorProto.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder(DescriptorProtos.FileDescriptorProto prototype)
public DescriptorProtos.FileDescriptorProto.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DescriptorProtos.FileDescriptorProto.Builder newBuilderForType(GeneratedMessage.BuilderParent parent)
newBuilderForType
in class GeneratedMessage
Copyright © 2008-2013. All Rights Reserved.