public static final class DescriptorProtos.FileDescriptorSet extends GeneratedMessage implements DescriptorProtos.FileDescriptorSetOrBuilder
google.protobuf.FileDescriptorSet
The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.FileDescriptorSet.Builder
Protobuf type
google.protobuf.FileDescriptorSet |
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 |
FILE_FIELD_NUMBER |
static Parser<DescriptorProtos.FileDescriptorSet> |
PARSER |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, hasField
toByteArray, toByteString, writeDelimitedTo, writeTo
public static Parser<DescriptorProtos.FileDescriptorSet> PARSER
public static final int FILE_FIELD_NUMBER
public static DescriptorProtos.FileDescriptorSet getDefaultInstance()
public DescriptorProtos.FileDescriptorSet 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 final UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessage
public static final Descriptors.Descriptor getDescriptor()
public Parser<DescriptorProtos.FileDescriptorSet> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessage
public java.util.List<DescriptorProtos.FileDescriptorProto> getFileList()
repeated .google.protobuf.FileDescriptorProto file = 1;
getFileList
in interface DescriptorProtos.FileDescriptorSetOrBuilder
public java.util.List<? extends DescriptorProtos.FileDescriptorProtoOrBuilder> getFileOrBuilderList()
repeated .google.protobuf.FileDescriptorProto file = 1;
getFileOrBuilderList
in interface DescriptorProtos.FileDescriptorSetOrBuilder
public int getFileCount()
repeated .google.protobuf.FileDescriptorProto file = 1;
getFileCount
in interface DescriptorProtos.FileDescriptorSetOrBuilder
public DescriptorProtos.FileDescriptorProto getFile(int index)
repeated .google.protobuf.FileDescriptorProto file = 1;
getFile
in interface DescriptorProtos.FileDescriptorSetOrBuilder
public DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder(int index)
repeated .google.protobuf.FileDescriptorProto file = 1;
getFileOrBuilder
in interface DescriptorProtos.FileDescriptorSetOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage
public void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
writeTo
in class AbstractMessage
java.io.IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class AbstractMessage
public static DescriptorProtos.FileDescriptorSet parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorSet parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.FileDescriptorSet.Builder newBuilder()
public DescriptorProtos.FileDescriptorSet.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.FileDescriptorSet.Builder newBuilder(DescriptorProtos.FileDescriptorSet prototype)
public DescriptorProtos.FileDescriptorSet.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite