public static final class DescriptorProtos.FileDescriptorProto extends GeneratedMessage
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.FileDescriptorProto.Builder |
GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<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 |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, newGeneratedExtension
equals, hashCode, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 DescriptorProtos.FileDescriptorProto getDefaultInstance()
public DescriptorProtos.FileDescriptorProto getDefaultInstanceForType()
MessageLite
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.public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
internalGetFieldAccessorTable
in class GeneratedMessage
public boolean hasName()
public String getName()
public boolean hasPackage()
public String getPackage()
public int getDependencyCount()
public String getDependency(int index)
public List<DescriptorProtos.DescriptorProto> getMessageTypeList()
public int getMessageTypeCount()
public DescriptorProtos.DescriptorProto getMessageType(int index)
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
public int getEnumTypeCount()
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
public int getServiceCount()
public DescriptorProtos.ServiceDescriptorProto getService(int index)
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
public int getExtensionCount()
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
public boolean hasOptions()
public DescriptorProtos.FileOptions getOptions()
public final boolean isInitialized()
MessageLite
isInitialized
in interface MessageLite
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
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
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder(DescriptorProtos.FileDescriptorProto prototype)
public DescriptorProtos.FileDescriptorProto.Builder toBuilder()
MessageLite
Copyright © 2008-2012. All Rights Reserved.