// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/google/protobuf/descriptor.proto
package com.google.protobuf;
public final class DescriptorProtos {
private DescriptorProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface FileDescriptorSetOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .google.protobuf.FileDescriptorProto file = 1;
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto>
getFileList();
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index);
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
int getFileCount();
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>
getFileOrBuilderList();
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder(
int index);
}
/**
* Protobuf type {@code google.protobuf.FileDescriptorSet}
*
* <pre>
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
* </pre>
*/
public static final class FileDescriptorSet extends
com.google.protobuf.GeneratedMessage
implements FileDescriptorSetOrBuilder {
// Use FileDescriptorSet.newBuilder() to construct.
private FileDescriptorSet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FileDescriptorSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FileDescriptorSet defaultInstance;
public static FileDescriptorSet getDefaultInstance() {
return defaultInstance;
}
public FileDescriptorSet getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileDescriptorSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
mutable_bitField0_ |= 0x00000001;
}
file_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
file_ = java.util.Collections.unmodifiableList(file_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class);
}
public static com.google.protobuf.Parser<FileDescriptorSet> PARSER =
new com.google.protobuf.AbstractParser<FileDescriptorSet>() {
public FileDescriptorSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileDescriptorSet(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<FileDescriptorSet> getParserForType() {
return PARSER;
}
// repeated .google.protobuf.FileDescriptorProto file = 1;
public static final int FILE_FIELD_NUMBER = 1;
private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_;
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() {
return file_;
}
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>
getFileOrBuilderList() {
return file_;
}
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
public int getFileCount() {
return file_.size();
}
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) {
return file_.get(index);
}
/**
* <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder(
int index) {
return file_.get(index);
}
private void initFields() {
file_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getFileCount(); i++) {
if (!getFile(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < file_.size(); i++) {
output.writeMessage(1, file_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < file_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
评论0
最新资源