/traces/old/traceGen/src/com/google/protobuf/DescriptorProtos.java
Java | 1604 lines | 1437 code | 123 blank | 44 comment | 179 complexity | 8d86a09abf89e98311540f8650103a27 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/descriptor.proto
- package com.google.protobuf;
- public final class DescriptorProtos {
- private DescriptorProtos() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class FileDescriptorSet extends
- com.google.protobuf.GeneratedMessage {
- // Use FileDescriptorSet.newBuilder() to construct.
- private FileDescriptorSet() {
- initFields();
- }
- private FileDescriptorSet(boolean noInit) {}
-
- private static final FileDescriptorSet defaultInstance;
- public static FileDescriptorSet getDefaultInstance() {
- return defaultInstance;
- }
-
- public FileDescriptorSet getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- 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;
- }
-
- // repeated .google.protobuf.FileDescriptorProto file = 1;
- public static final int FILE_FIELD_NUMBER = 1;
- private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_ =
- java.util.Collections.emptyList();
- public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() {
- return file_;
- }
- public int getFileCount() { return file_.size(); }
- public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) {
- return file_.get(index);
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
- if (!element.isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
- output.writeMessage(1, element);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, element);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorSet prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private com.google.protobuf.DescriptorProtos.FileDescriptorSet result;
-
- // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet();
- return builder;
- }
-
- protected com.google.protobuf.DescriptorProtos.FileDescriptorSet internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDescriptor();
- }
-
- public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() {
- return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private com.google.protobuf.DescriptorProtos.FileDescriptorSet buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.file_ != java.util.Collections.EMPTY_LIST) {
- result.file_ =
- java.util.Collections.unmodifiableList(result.file_);
- }
- com.google.protobuf.DescriptorProtos.FileDescriptorSet returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) {
- return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorSet)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorSet other) {
- if (other == com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this;
- if (!other.file_.isEmpty()) {
- if (result.file_.isEmpty()) {
- result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
- }
- result.file_.addAll(other.file_);
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addFile(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // repeated .google.protobuf.FileDescriptorProto file = 1;
- public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() {
- return java.util.Collections.unmodifiableList(result.file_);
- }
- public int getFileCount() {
- return result.getFileCount();
- }
- public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) {
- return result.getFile(index);
- }
- public Builder setFile(int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.file_.set(index, value);
- return this;
- }
- public Builder setFile(int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
- result.file_.set(index, builderForValue.build());
- return this;
- }
- public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.file_.isEmpty()) {
- result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
- }
- result.file_.add(value);
- return this;
- }
- public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
- if (result.file_.isEmpty()) {
- result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
- }
- result.file_.add(builderForValue.build());
- return this;
- }
- public Builder addAllFile(
- java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
- if (result.file_.isEmpty()) {
- result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
- }
- super.addAll(values, result.file_);
- return this;
- }
- public Builder clearFile() {
- result.file_ = java.util.Collections.emptyList();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet)
- }
-
- static {
- defaultInstance = new FileDescriptorSet(true);
- com.google.protobuf.DescriptorProtos.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
- }
-
- public static final class FileDescriptorProto extends
- com.google.protobuf.GeneratedMessage {
- // Use FileDescriptorProto.newBuilder() to construct.
- private FileDescriptorProto() {
- initFields();
- }
- private FileDescriptorProto(boolean noInit) {}
-
- private static final FileDescriptorProto defaultInstance;
- public static FileDescriptorProto getDefaultInstance() {
- return defaultInstance;
- }
-
- public FileDescriptorProto getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable;
- }
-
- // optional string name = 1;
- public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
-
- // optional string package = 2;
- public static final int PACKAGE_FIELD_NUMBER = 2;
- private boolean hasPackage;
- private java.lang.String package_ = "";
- public boolean hasPackage() { return hasPackage; }
- public java.lang.String getPackage() { return package_; }
-
- // repeated string dependency = 3;
- public static final int DEPENDENCY_FIELD_NUMBER = 3;
- private java.util.List<java.lang.String> dependency_ =
- java.util.Collections.emptyList();
- public java.util.List<java.lang.String> getDependencyList() {
- return dependency_;
- }
- public int getDependencyCount() { return dependency_.size(); }
- public java.lang.String getDependency(int index) {
- return dependency_.get(index);
- }
-
- // repeated .google.protobuf.DescriptorProto message_type = 4;
- public static final int MESSAGE_TYPE_FIELD_NUMBER = 4;
- private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_ =
- java.util.Collections.emptyList();
- public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() {
- return messageType_;
- }
- public int getMessageTypeCount() { return messageType_.size(); }
- public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) {
- return messageType_.get(index);
- }
-
- // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- public static final int ENUM_TYPE_FIELD_NUMBER = 5;
- private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ =
- java.util.Collections.emptyList();
- public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() {
- return enumType_;
- }
- public int getEnumTypeCount() { return enumType_.size(); }
- public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) {
- return enumType_.get(index);
- }
-
- // repeated .google.protobuf.ServiceDescriptorProto service = 6;
- public static final int SERVICE_FIELD_NUMBER = 6;
- private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_ =
- java.util.Collections.emptyList();
- public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() {
- return service_;
- }
- public int getServiceCount() { return service_.size(); }
- public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) {
- return service_.get(index);
- }
-
- // repeated .google.protobuf.FieldDescriptorProto extension = 7;
- public static final int EXTENSION_FIELD_NUMBER = 7;
- private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ =
- java.util.Collections.emptyList();
- public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() {
- return extension_;
- }
- public int getExtensionCount() { return extension_.size(); }
- public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) {
- return extension_.get(index);
- }
-
- // optional .google.protobuf.FileOptions options = 8;
- public static final int OPTIONS_FIELD_NUMBER = 8;
- private boolean hasOptions;
- private com.google.protobuf.DescriptorProtos.FileOptions options_;
- public boolean hasOptions() { return hasOptions; }
- public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { return options_; }
-
- private void initFields() {
- options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();
- }
- public final boolean isInitialized() {
- for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
- if (!element.isInitialized()) return false;
- }
- for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
- if (!element.isInitialized()) return false;
- }
- for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
- if (!element.isInitialized()) return false;
- }
- for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
- if (!element.isInitialized()) return false;
- }
- if (hasOptions()) {
- if (!getOptions().isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
- }
- if (hasPackage()) {
- output.writeString(2, getPackage());
- }
- for (java.lang.String element : getDependencyList()) {
- output.writeString(3, element);
- }
- for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
- output.writeMessage(4, element);
- }
- for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
- output.writeMessage(5, element);
- }
- for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
- output.writeMessage(6, element);
- }
- for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
- output.writeMessage(7, element);
- }
- if (hasOptions()) {
- output.writeMessage(8, getOptions());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasName()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
- }
- if (hasPackage()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getPackage());
- }
- {
- int dataSize = 0;
- for (java.lang.String element : getDependencyList()) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * getDependencyList().size();
- }
- for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, element);
- }
- for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, element);
- }
- for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, element);
- }
- for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, element);
- }
- if (hasOptions()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, getOptions());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private com.google.protobuf.DescriptorProtos.FileDescriptorProto result;
-
- // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto();
- return builder;
- }
-
- protected com.google.protobuf.DescriptorProtos.FileDescriptorProto internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDescriptor();
- }
-
- public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() {
- return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private com.google.protobuf.DescriptorProtos.FileDescriptorProto buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.dependency_ != java.util.Collections.EMPTY_LIST) {
- result.dependency_ =
- java.util.Collections.unmodifiableList(result.dependency_);
- }
- if (result.messageType_ != java.util.Collections.EMPTY_LIST) {
- result.messageType_ =
- java.util.Collections.unmodifiableList(result.messageType_);
- }
- if (result.enumType_ != java.util.Collections.EMPTY_LIST) {
- result.enumType_ =
- java.util.Collections.unmodifiableList(result.enumType_);
- }
- if (result.service_ != java.util.Collections.EMPTY_LIST) {
- result.service_ =
- java.util.Collections.unmodifiableList(result.service_);
- }
- if (result.extension_ != java.util.Collections.EMPTY_LIST) {
- result.extension_ =
- java.util.Collections.unmodifiableList(result.extension_);
- }
- com.google.protobuf.DescriptorProtos.FileDescriptorProto returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
- return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) {
- if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this;
- if (other.hasName()) {
- setName(other.getName());
- }
- if (other.hasPackage()) {
- setPackage(other.getPackage());
- }
- if (!other.dependency_.isEmpty()) {
- if (result.dependency_.isEmpty()) {
- result.dependency_ = new java.util.ArrayList<java.lang.String>();
- }
- result.dependency_.addAll(other.dependency_);
- }
- if (!other.messageType_.isEmpty()) {
- if (result.messageType_.isEmpty()) {
- result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
- }
- result.messageType_.addAll(other.messageType_);
- }
- if (!other.enumType_.isEmpty()) {
- if (result.enumType_.isEmpty()) {
- result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
- }
- result.enumType_.addAll(other.enumType_);
- }
- if (!other.service_.isEmpty()) {
- if (result.service_.isEmpty()) {
- result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
- }
- result.service_.addAll(other.service_);
- }
- if (!other.extension_.isEmpty()) {
- if (result.extension_.isEmpty()) {
- result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
- }
- result.extension_.addAll(other.extension_);
- }
- if (other.hasOptions()) {
- mergeOptions(other.getOptions());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setName(input.readString());
- break;
- }
- case 18: {
- setPackage(input.readString());
- break;
- }
- case 26: {
- addDependency(input.readString());
- break;
- }
- case 34: {
- com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addMessageType(subBuilder.buildPartial());
- break;
- }
- case 42: {
- com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addEnumType(subBuilder.buildPartial());
- break;
- }
- case 50: {
- com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addService(subBuilder.buildPartial());
- break;
- }
- case 58: {
- com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addExtension(subBuilder.buildPartial());
- break;
- }
- case 66: {
- com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder();
- if (hasOptions()) {
- subBuilder.mergeFrom(getOptions());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setOptions(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // optional string name = 1;
- public boolean hasName() {
- return result.hasName();
- }
- public java.lang.String getName() {
- return result.getName();
- }
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasName = true;
- result.name_ = value;
- return this;
- }
- public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
- return this;
- }
-
- // optional string package = 2;
- public boolean hasPackage() {
- return result.hasPackage();
- }
- public java.lang.String getPackage() {
- return result.getPackage();
- }
- public Builder setPackage(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasPackage = true;
- result.package_ = value;
- return this;
- }
- public Builder clearPackage() {
- result.hasPackage = false;
- result.package_ = getDefaultInstance().getPackage();
- return this;
- }
-
- // repeated string dependency = 3;
- public java.util.List<java.lang.String> getDependencyList() {
- return java.util.Collections.unmodifiableList(result.dependency_);
- }
- public int getDependencyCount() {
- return result.getDependencyCount();
- }
- public java.lang.String getDependency(int index) {
- return result.getDependency(index);
- }
- public Builder setDependency(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.dependency_.set(index, value);
- return this;
- }
- public Builder addDependency(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.dependency_.isEmpty()) {
- result.dependency_ = new java.util.ArrayList<java.lang.String>();
- }
- result.dependency_.add(value);
- return this;
- }
- public Builder addAllDependency(
- java.lang.Iterable<? extends java.lang.String> values) {
- if (result.dependency_.isEmpty()) {
- result.dependency_ = new java.util.ArrayList<java.lang.String>();
- }
- super.addAll(values, result.dependency_);
- return this;
- }
- public Builder clearDependency() {
- result.dependency_ = java.util.Collections.emptyList();
- return this;
- }
-
- // repeated .google.protobuf.DescriptorProto message_type = 4;
- public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() {
- return java.util.Collections.unmodifiableList(result.messageType_);
- }
- public int getMessageTypeCount() {
- return result.getMessageTypeCount();
- }
- public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) {
- return result.getMessageType(index);
- }
- public Builder setMessageType(int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.messageType_.set(index, value);
- return this;
- }
- public Builder setMessageType(int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) {
- result.messageType_.set(index, builderForValue.build());
- return this;
- }
- public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.messageType_.isEmpty()) {
- result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
- }
- result.messageType_.add(value);
- return this;
- }
- public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) {
- if (result.messageType_.isEmpty()) {
- result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
- }
- result.messageType_.add(builderForValue.build());
- return this;
- }
- public Builder addAllMessageType(
- java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> values) {
- if (result.messageType_.isEmpty()) {
- result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
- }
- super.addAll(values, result.messageType_);
- return this;
- }
- public Builder clearMessageType() {
- result.messageType_ = java.util.Collections.emptyList();
- return this;
- }
-
- // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() {
- return java.util.Collections.unmodifiableList(result.enumType_);
- }
- public int getEnumTypeCount() {
- return result.getEnumTypeCount();
- }
- public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) {
- return result.getEnumType(index);
- }
- public Builder setEnumType(int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.enumType_.set(index, value);
- return this;
- }
- public Builder setEnumType(int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
- result.enumType_.set(index, builderForValue.build());
- return this;
- }
- public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.enumType_.isEmpty()) {
- result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
- }
- result.enumType_.add(value);
- return this;
- }
- public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
- if (result.enumType_.isEmpty()) {
- result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
- }
- result.enumType_.add(builderForValue.build());
- return this;
- }
- public Builder addAllEnumType(
- java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> values) {
- if (result.enumType_.isEmpty()) {
- result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
- }
- super.addAll(values, result.enumType_);
- return this;
- }
- public Builder clearEnumType() {
- result.enumType_ = java.util.Collections.emptyList();
- return this;
- }
-
- // repeated .google.protobuf.ServiceDescriptorProto service = 6;
- public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() {
- return java.util.Collections.unmodifiableList(result.service_);
- }
- public int getServiceCount() {
- return result.getServiceCount();
- }
- public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) {
- return result.getService(index);
- }
- public Builder setService(int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.service_.set(index, value);
- return this;
- }
- public Builder setService(int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
- result.service_.set(index, builderForValue.build());
- return this;
- }
- public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.service_.isEmpty()) {
- result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
- }
- result.service_.add(value);
- return this;
- }
- public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
- if (result.service_.isEmpty()) {
- result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
- }
- result.service_.add(builderForValue.build());
- return this;
- }
- public Builder addAllService(
- java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> values) {
- if (result.service_.isEmpty()) {
- result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
- }
- super.addAll(values, result.service_);
- return this;
- }
- public Builder clearService() {
- result.service_ = java.util.Collections.emptyList();
- return this;
- }
-
- // repeated .google.protobuf.FieldDescriptorProto extension = 7;
- public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() {
- return java.util.Collections.unmodifiableList(result.extension_);
- }
- public int getExtensionCount() {
- return result.getExtensionCount();
- }
- public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) {
- return result.getExtension(index);
- }
- public Builder setExtension(int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.extension_.set(index, value);
- return this;
- }
- public Builder setExtension(int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
- result.extension_.set(index, builderForValue.build());
- return this;
- }
- public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
- if (result.extension_.isEmpty()) {
- result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
- }
- result.extension_.add(value);
- return this;
- }
- public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
- if (result.extension_.isEmpty()) {
- result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
- }
- result.extension_.add(builderForValue.build());
- return this;
- }
- public Builder addAllExtension(
- java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> values) {
- if (result.extension_.isEmpty()) {
- result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
- }
- super.addAll(values, result.extension_);
- return this;
- }
- public Builder clearExtension() {
- result.extension_ = java.util.Collections.emptyList();
- return this;
- }
-
- // optional .google.protobuf.FileOptions options = 8;
- public boolean hasOptions() {
- return result.hasOptions();
- }
- public com.google.protobuf.DescriptorProtos.FileOptions getOptions() {
- return result.getOptions();
- }
- public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasOptions = true;
- result.options_ = value;
- return this;
- }
- public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) {
- result.hasOptions = true;
- result.options_ = builderForValue.build();
- return this;
- }
- public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) {
- if (result.hasOptions() &&
- result.options_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) {
- result.options_ =
- com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(result.options_).mergeFrom(value).buildPartial();
- } else {
- result.options_ = value;
- }
- result.hasOptions = true;
- return this;
- }
- public Builder clearOptions() {
- result.hasOptions = false;
- result.options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto)
- }
-
- static {
- defaultInstance = new FileDescriptorProto(true);
- com.google.protobuf.DescriptorProtos.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
- }
-
- public static final class DescriptorProto extends
- com.google.protobuf.GeneratedMessage {
- // Use DescriptorProto.newBuilder() to construct.
- private DescriptorProto() {
- initFields();
- }
- private DescriptorProto(boolean noInit) {}
-
- private static final DescriptorProto defaultInstance;
- public static DescriptorProto getDefaultInstance() {
- return defaultInstance;
- }
-
- public DescriptorProto getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable;
- }
-
- public static final class ExtensionRange extends
- com.google.protobuf.GeneratedMessage {
- // Use ExtensionRange.newBuilder() to construct.
- private ExtensionRange() {
- initFields();
- }
- private ExtensionRange(boolean noInit) {}
-
- private static final ExtensionRange defaultInstance;
- public static ExtensionRange getDefaultInstance() {
- return defaultInstance;
- }
-
- public ExtensionRange getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto…
Large files files are truncated, but you can click here to view the full file