PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/DataExtractionOSM/src/com/google/protobuf/DescriptorProtos.java

https://code.google.com/
Java | 1646 lines | 1480 code | 122 blank | 44 comment | 177 complexity | 3e45357df1fa86cd6fc0daa89d8c1546 MD5 | raw file
Possible License(s): MIT

Large files files are truncated, but you can click here to view the full file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. package com.google.protobuf;
  4. public final class DescriptorProtos {
  5. private DescriptorProtos() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class FileDescriptorSet extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use FileDescriptorSet.newBuilder() to construct.
  12. private FileDescriptorSet() {
  13. initFields();
  14. }
  15. private FileDescriptorSet(boolean noInit) {}
  16. private static final FileDescriptorSet defaultInstance;
  17. public static FileDescriptorSet getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. @Override
  21. public FileDescriptorSet getDefaultInstanceForType() {
  22. return defaultInstance;
  23. }
  24. public static final com.google.protobuf.Descriptors.Descriptor
  25. getDescriptor() {
  26. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor;
  27. }
  28. @Override
  29. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  30. internalGetFieldAccessorTable() {
  31. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable;
  32. }
  33. // repeated .google.protobuf.FileDescriptorProto file = 1;
  34. public static final int FILE_FIELD_NUMBER = 1;
  35. private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_ =
  36. java.util.Collections.emptyList();
  37. public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() {
  38. return file_;
  39. }
  40. public int getFileCount() { return file_.size(); }
  41. public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) {
  42. return file_.get(index);
  43. }
  44. private void initFields() {
  45. }
  46. @Override
  47. public final boolean isInitialized() {
  48. for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
  49. if (!element.isInitialized()) return false;
  50. }
  51. return true;
  52. }
  53. @Override
  54. public void writeTo(com.google.protobuf.CodedOutputStream output)
  55. throws java.io.IOException {
  56. getSerializedSize();
  57. for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
  58. output.writeMessage(1, element);
  59. }
  60. getUnknownFields().writeTo(output);
  61. }
  62. private int memoizedSerializedSize = -1;
  63. @Override
  64. public int getSerializedSize() {
  65. int size = memoizedSerializedSize;
  66. if (size != -1) return size;
  67. size = 0;
  68. for (com.google.protobuf.DescriptorProtos.FileDescriptorProto element : getFileList()) {
  69. size += com.google.protobuf.CodedOutputStream
  70. .computeMessageSize(1, element);
  71. }
  72. size += getUnknownFields().getSerializedSize();
  73. memoizedSerializedSize = size;
  74. return size;
  75. }
  76. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  77. com.google.protobuf.ByteString data)
  78. throws com.google.protobuf.InvalidProtocolBufferException {
  79. return newBuilder().mergeFrom(data).buildParsed();
  80. }
  81. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  82. com.google.protobuf.ByteString data,
  83. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  84. throws com.google.protobuf.InvalidProtocolBufferException {
  85. return newBuilder().mergeFrom(data, extensionRegistry)
  86. .buildParsed();
  87. }
  88. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data)
  89. throws com.google.protobuf.InvalidProtocolBufferException {
  90. return newBuilder().mergeFrom(data).buildParsed();
  91. }
  92. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  93. byte[] data,
  94. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  95. throws com.google.protobuf.InvalidProtocolBufferException {
  96. return newBuilder().mergeFrom(data, extensionRegistry)
  97. .buildParsed();
  98. }
  99. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input)
  100. throws java.io.IOException {
  101. return newBuilder().mergeFrom(input).buildParsed();
  102. }
  103. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  104. java.io.InputStream input,
  105. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  106. throws java.io.IOException {
  107. return newBuilder().mergeFrom(input, extensionRegistry)
  108. .buildParsed();
  109. }
  110. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input)
  111. throws java.io.IOException {
  112. Builder builder = newBuilder();
  113. if (builder.mergeDelimitedFrom(input)) {
  114. return builder.buildParsed();
  115. } else {
  116. return null;
  117. }
  118. }
  119. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(
  120. java.io.InputStream input,
  121. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  122. throws java.io.IOException {
  123. Builder builder = newBuilder();
  124. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  125. return builder.buildParsed();
  126. } else {
  127. return null;
  128. }
  129. }
  130. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  131. com.google.protobuf.CodedInputStream input)
  132. throws java.io.IOException {
  133. return newBuilder().mergeFrom(input).buildParsed();
  134. }
  135. public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(
  136. com.google.protobuf.CodedInputStream input,
  137. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  138. throws java.io.IOException {
  139. return newBuilder().mergeFrom(input, extensionRegistry)
  140. .buildParsed();
  141. }
  142. public static Builder newBuilder() { return Builder.create(); }
  143. @Override
  144. public Builder newBuilderForType() { return newBuilder(); }
  145. public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorSet prototype) {
  146. return newBuilder().mergeFrom(prototype);
  147. }
  148. @Override
  149. public Builder toBuilder() { return newBuilder(this); }
  150. public static final class Builder extends
  151. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  152. private com.google.protobuf.DescriptorProtos.FileDescriptorSet result;
  153. // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder()
  154. private Builder() {}
  155. private static Builder create() {
  156. Builder builder = new Builder();
  157. builder.result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet();
  158. return builder;
  159. }
  160. @Override
  161. protected com.google.protobuf.DescriptorProtos.FileDescriptorSet internalGetResult() {
  162. return result;
  163. }
  164. @Override
  165. public Builder clear() {
  166. if (result == null) {
  167. throw new IllegalStateException(
  168. "Cannot call clear() after build().");
  169. }
  170. result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet();
  171. return this;
  172. }
  173. @Override
  174. public Builder clone() {
  175. return create().mergeFrom(result);
  176. }
  177. @Override
  178. public com.google.protobuf.Descriptors.Descriptor
  179. getDescriptorForType() {
  180. return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDescriptor();
  181. }
  182. @Override
  183. public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() {
  184. return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance();
  185. }
  186. @Override
  187. public boolean isInitialized() {
  188. return result.isInitialized();
  189. }
  190. @Override
  191. public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() {
  192. if (result != null && !isInitialized()) {
  193. throw newUninitializedMessageException(result);
  194. }
  195. return buildPartial();
  196. }
  197. private com.google.protobuf.DescriptorProtos.FileDescriptorSet buildParsed()
  198. throws com.google.protobuf.InvalidProtocolBufferException {
  199. if (!isInitialized()) {
  200. throw newUninitializedMessageException(
  201. result).asInvalidProtocolBufferException();
  202. }
  203. return buildPartial();
  204. }
  205. @Override
  206. public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() {
  207. if (result == null) {
  208. throw new IllegalStateException(
  209. "build() has already been called on this Builder.");
  210. }
  211. if (result.file_ != java.util.Collections.EMPTY_LIST) {
  212. result.file_ =
  213. java.util.Collections.unmodifiableList(result.file_);
  214. }
  215. com.google.protobuf.DescriptorProtos.FileDescriptorSet returnMe = result;
  216. result = null;
  217. return returnMe;
  218. }
  219. @Override
  220. public Builder mergeFrom(com.google.protobuf.Message other) {
  221. if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) {
  222. return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorSet)other);
  223. } else {
  224. super.mergeFrom(other);
  225. return this;
  226. }
  227. }
  228. public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorSet other) {
  229. if (other == com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this;
  230. if (!other.file_.isEmpty()) {
  231. if (result.file_.isEmpty()) {
  232. result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
  233. }
  234. result.file_.addAll(other.file_);
  235. }
  236. this.mergeUnknownFields(other.getUnknownFields());
  237. return this;
  238. }
  239. @Override
  240. public Builder mergeFrom(
  241. com.google.protobuf.CodedInputStream input,
  242. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  243. throws java.io.IOException {
  244. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  245. com.google.protobuf.UnknownFieldSet.newBuilder(
  246. this.getUnknownFields());
  247. while (true) {
  248. int tag = input.readTag();
  249. switch (tag) {
  250. case 0:
  251. this.setUnknownFields(unknownFields.build());
  252. return this;
  253. default: {
  254. if (!parseUnknownField(input, unknownFields,
  255. extensionRegistry, tag)) {
  256. this.setUnknownFields(unknownFields.build());
  257. return this;
  258. }
  259. break;
  260. }
  261. case 10: {
  262. com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder();
  263. input.readMessage(subBuilder, extensionRegistry);
  264. addFile(subBuilder.buildPartial());
  265. break;
  266. }
  267. }
  268. }
  269. }
  270. // repeated .google.protobuf.FileDescriptorProto file = 1;
  271. public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() {
  272. return java.util.Collections.unmodifiableList(result.file_);
  273. }
  274. public int getFileCount() {
  275. return result.getFileCount();
  276. }
  277. public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) {
  278. return result.getFile(index);
  279. }
  280. public Builder setFile(int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
  281. if (value == null) {
  282. throw new NullPointerException();
  283. }
  284. result.file_.set(index, value);
  285. return this;
  286. }
  287. public Builder setFile(int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  288. result.file_.set(index, builderForValue.build());
  289. return this;
  290. }
  291. public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
  292. if (value == null) {
  293. throw new NullPointerException();
  294. }
  295. if (result.file_.isEmpty()) {
  296. result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
  297. }
  298. result.file_.add(value);
  299. return this;
  300. }
  301. public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  302. if (result.file_.isEmpty()) {
  303. result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
  304. }
  305. result.file_.add(builderForValue.build());
  306. return this;
  307. }
  308. public Builder addAllFile(
  309. java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
  310. if (result.file_.isEmpty()) {
  311. result.file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>();
  312. }
  313. super.addAll(values, result.file_);
  314. return this;
  315. }
  316. public Builder clearFile() {
  317. result.file_ = java.util.Collections.emptyList();
  318. return this;
  319. }
  320. // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet)
  321. }
  322. static {
  323. defaultInstance = new FileDescriptorSet(true);
  324. com.google.protobuf.DescriptorProtos.internalForceInit();
  325. defaultInstance.initFields();
  326. }
  327. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  328. }
  329. public static final class FileDescriptorProto extends
  330. com.google.protobuf.GeneratedMessage {
  331. // Use FileDescriptorProto.newBuilder() to construct.
  332. private FileDescriptorProto() {
  333. initFields();
  334. }
  335. private FileDescriptorProto(boolean noInit) {}
  336. private static final FileDescriptorProto defaultInstance;
  337. public static FileDescriptorProto getDefaultInstance() {
  338. return defaultInstance;
  339. }
  340. @Override
  341. public FileDescriptorProto getDefaultInstanceForType() {
  342. return defaultInstance;
  343. }
  344. public static final com.google.protobuf.Descriptors.Descriptor
  345. getDescriptor() {
  346. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor;
  347. }
  348. @Override
  349. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  350. internalGetFieldAccessorTable() {
  351. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable;
  352. }
  353. // optional string name = 1;
  354. public static final int NAME_FIELD_NUMBER = 1;
  355. private boolean hasName;
  356. private java.lang.String name_ = "";
  357. public boolean hasName() { return hasName; }
  358. public java.lang.String getName() { return name_; }
  359. // optional string package = 2;
  360. public static final int PACKAGE_FIELD_NUMBER = 2;
  361. private boolean hasPackage;
  362. private java.lang.String package_ = "";
  363. public boolean hasPackage() { return hasPackage; }
  364. public java.lang.String getPackage() { return package_; }
  365. // repeated string dependency = 3;
  366. public static final int DEPENDENCY_FIELD_NUMBER = 3;
  367. private java.util.List<java.lang.String> dependency_ =
  368. java.util.Collections.emptyList();
  369. public java.util.List<java.lang.String> getDependencyList() {
  370. return dependency_;
  371. }
  372. public int getDependencyCount() { return dependency_.size(); }
  373. public java.lang.String getDependency(int index) {
  374. return dependency_.get(index);
  375. }
  376. // repeated .google.protobuf.DescriptorProto message_type = 4;
  377. public static final int MESSAGE_TYPE_FIELD_NUMBER = 4;
  378. private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_ =
  379. java.util.Collections.emptyList();
  380. public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() {
  381. return messageType_;
  382. }
  383. public int getMessageTypeCount() { return messageType_.size(); }
  384. public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) {
  385. return messageType_.get(index);
  386. }
  387. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  388. public static final int ENUM_TYPE_FIELD_NUMBER = 5;
  389. private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ =
  390. java.util.Collections.emptyList();
  391. public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() {
  392. return enumType_;
  393. }
  394. public int getEnumTypeCount() { return enumType_.size(); }
  395. public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) {
  396. return enumType_.get(index);
  397. }
  398. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  399. public static final int SERVICE_FIELD_NUMBER = 6;
  400. private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_ =
  401. java.util.Collections.emptyList();
  402. public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() {
  403. return service_;
  404. }
  405. public int getServiceCount() { return service_.size(); }
  406. public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) {
  407. return service_.get(index);
  408. }
  409. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  410. public static final int EXTENSION_FIELD_NUMBER = 7;
  411. private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ =
  412. java.util.Collections.emptyList();
  413. public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() {
  414. return extension_;
  415. }
  416. public int getExtensionCount() { return extension_.size(); }
  417. public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) {
  418. return extension_.get(index);
  419. }
  420. // optional .google.protobuf.FileOptions options = 8;
  421. public static final int OPTIONS_FIELD_NUMBER = 8;
  422. private boolean hasOptions;
  423. private com.google.protobuf.DescriptorProtos.FileOptions options_;
  424. public boolean hasOptions() { return hasOptions; }
  425. public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { return options_; }
  426. private void initFields() {
  427. options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();
  428. }
  429. @Override
  430. public final boolean isInitialized() {
  431. for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
  432. if (!element.isInitialized()) return false;
  433. }
  434. for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
  435. if (!element.isInitialized()) return false;
  436. }
  437. for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
  438. if (!element.isInitialized()) return false;
  439. }
  440. for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
  441. if (!element.isInitialized()) return false;
  442. }
  443. if (hasOptions()) {
  444. if (!getOptions().isInitialized()) return false;
  445. }
  446. return true;
  447. }
  448. @Override
  449. public void writeTo(com.google.protobuf.CodedOutputStream output)
  450. throws java.io.IOException {
  451. getSerializedSize();
  452. if (hasName()) {
  453. output.writeString(1, getName());
  454. }
  455. if (hasPackage()) {
  456. output.writeString(2, getPackage());
  457. }
  458. for (java.lang.String element : getDependencyList()) {
  459. output.writeString(3, element);
  460. }
  461. for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
  462. output.writeMessage(4, element);
  463. }
  464. for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
  465. output.writeMessage(5, element);
  466. }
  467. for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
  468. output.writeMessage(6, element);
  469. }
  470. for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
  471. output.writeMessage(7, element);
  472. }
  473. if (hasOptions()) {
  474. output.writeMessage(8, getOptions());
  475. }
  476. getUnknownFields().writeTo(output);
  477. }
  478. private int memoizedSerializedSize = -1;
  479. @Override
  480. public int getSerializedSize() {
  481. int size = memoizedSerializedSize;
  482. if (size != -1) return size;
  483. size = 0;
  484. if (hasName()) {
  485. size += com.google.protobuf.CodedOutputStream
  486. .computeStringSize(1, getName());
  487. }
  488. if (hasPackage()) {
  489. size += com.google.protobuf.CodedOutputStream
  490. .computeStringSize(2, getPackage());
  491. }
  492. {
  493. int dataSize = 0;
  494. for (java.lang.String element : getDependencyList()) {
  495. dataSize += com.google.protobuf.CodedOutputStream
  496. .computeStringSizeNoTag(element);
  497. }
  498. size += dataSize;
  499. size += 1 * getDependencyList().size();
  500. }
  501. for (com.google.protobuf.DescriptorProtos.DescriptorProto element : getMessageTypeList()) {
  502. size += com.google.protobuf.CodedOutputStream
  503. .computeMessageSize(4, element);
  504. }
  505. for (com.google.protobuf.DescriptorProtos.EnumDescriptorProto element : getEnumTypeList()) {
  506. size += com.google.protobuf.CodedOutputStream
  507. .computeMessageSize(5, element);
  508. }
  509. for (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto element : getServiceList()) {
  510. size += com.google.protobuf.CodedOutputStream
  511. .computeMessageSize(6, element);
  512. }
  513. for (com.google.protobuf.DescriptorProtos.FieldDescriptorProto element : getExtensionList()) {
  514. size += com.google.protobuf.CodedOutputStream
  515. .computeMessageSize(7, element);
  516. }
  517. if (hasOptions()) {
  518. size += com.google.protobuf.CodedOutputStream
  519. .computeMessageSize(8, getOptions());
  520. }
  521. size += getUnknownFields().getSerializedSize();
  522. memoizedSerializedSize = size;
  523. return size;
  524. }
  525. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  526. com.google.protobuf.ByteString data)
  527. throws com.google.protobuf.InvalidProtocolBufferException {
  528. return newBuilder().mergeFrom(data).buildParsed();
  529. }
  530. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  531. com.google.protobuf.ByteString data,
  532. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  533. throws com.google.protobuf.InvalidProtocolBufferException {
  534. return newBuilder().mergeFrom(data, extensionRegistry)
  535. .buildParsed();
  536. }
  537. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data)
  538. throws com.google.protobuf.InvalidProtocolBufferException {
  539. return newBuilder().mergeFrom(data).buildParsed();
  540. }
  541. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  542. byte[] data,
  543. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  544. throws com.google.protobuf.InvalidProtocolBufferException {
  545. return newBuilder().mergeFrom(data, extensionRegistry)
  546. .buildParsed();
  547. }
  548. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input)
  549. throws java.io.IOException {
  550. return newBuilder().mergeFrom(input).buildParsed();
  551. }
  552. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  553. java.io.InputStream input,
  554. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  555. throws java.io.IOException {
  556. return newBuilder().mergeFrom(input, extensionRegistry)
  557. .buildParsed();
  558. }
  559. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input)
  560. throws java.io.IOException {
  561. Builder builder = newBuilder();
  562. if (builder.mergeDelimitedFrom(input)) {
  563. return builder.buildParsed();
  564. } else {
  565. return null;
  566. }
  567. }
  568. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(
  569. java.io.InputStream input,
  570. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  571. throws java.io.IOException {
  572. Builder builder = newBuilder();
  573. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  574. return builder.buildParsed();
  575. } else {
  576. return null;
  577. }
  578. }
  579. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  580. com.google.protobuf.CodedInputStream input)
  581. throws java.io.IOException {
  582. return newBuilder().mergeFrom(input).buildParsed();
  583. }
  584. public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(
  585. com.google.protobuf.CodedInputStream input,
  586. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  587. throws java.io.IOException {
  588. return newBuilder().mergeFrom(input, extensionRegistry)
  589. .buildParsed();
  590. }
  591. public static Builder newBuilder() { return Builder.create(); }
  592. @Override
  593. public Builder newBuilderForType() { return newBuilder(); }
  594. public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) {
  595. return newBuilder().mergeFrom(prototype);
  596. }
  597. @Override
  598. public Builder toBuilder() { return newBuilder(this); }
  599. public static final class Builder extends
  600. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  601. private com.google.protobuf.DescriptorProtos.FileDescriptorProto result;
  602. // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder()
  603. private Builder() {}
  604. private static Builder create() {
  605. Builder builder = new Builder();
  606. builder.result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto();
  607. return builder;
  608. }
  609. @Override
  610. protected com.google.protobuf.DescriptorProtos.FileDescriptorProto internalGetResult() {
  611. return result;
  612. }
  613. @Override
  614. public Builder clear() {
  615. if (result == null) {
  616. throw new IllegalStateException(
  617. "Cannot call clear() after build().");
  618. }
  619. result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto();
  620. return this;
  621. }
  622. @Override
  623. public Builder clone() {
  624. return create().mergeFrom(result);
  625. }
  626. @Override
  627. public com.google.protobuf.Descriptors.Descriptor
  628. getDescriptorForType() {
  629. return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDescriptor();
  630. }
  631. @Override
  632. public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() {
  633. return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance();
  634. }
  635. @Override
  636. public boolean isInitialized() {
  637. return result.isInitialized();
  638. }
  639. @Override
  640. public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() {
  641. if (result != null && !isInitialized()) {
  642. throw newUninitializedMessageException(result);
  643. }
  644. return buildPartial();
  645. }
  646. private com.google.protobuf.DescriptorProtos.FileDescriptorProto buildParsed()
  647. throws com.google.protobuf.InvalidProtocolBufferException {
  648. if (!isInitialized()) {
  649. throw newUninitializedMessageException(
  650. result).asInvalidProtocolBufferException();
  651. }
  652. return buildPartial();
  653. }
  654. @Override
  655. public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() {
  656. if (result == null) {
  657. throw new IllegalStateException(
  658. "build() has already been called on this Builder.");
  659. }
  660. if (result.dependency_ != java.util.Collections.EMPTY_LIST) {
  661. result.dependency_ =
  662. java.util.Collections.unmodifiableList(result.dependency_);
  663. }
  664. if (result.messageType_ != java.util.Collections.EMPTY_LIST) {
  665. result.messageType_ =
  666. java.util.Collections.unmodifiableList(result.messageType_);
  667. }
  668. if (result.enumType_ != java.util.Collections.EMPTY_LIST) {
  669. result.enumType_ =
  670. java.util.Collections.unmodifiableList(result.enumType_);
  671. }
  672. if (result.service_ != java.util.Collections.EMPTY_LIST) {
  673. result.service_ =
  674. java.util.Collections.unmodifiableList(result.service_);
  675. }
  676. if (result.extension_ != java.util.Collections.EMPTY_LIST) {
  677. result.extension_ =
  678. java.util.Collections.unmodifiableList(result.extension_);
  679. }
  680. com.google.protobuf.DescriptorProtos.FileDescriptorProto returnMe = result;
  681. result = null;
  682. return returnMe;
  683. }
  684. @Override
  685. public Builder mergeFrom(com.google.protobuf.Message other) {
  686. if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
  687. return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other);
  688. } else {
  689. super.mergeFrom(other);
  690. return this;
  691. }
  692. }
  693. public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) {
  694. if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this;
  695. if (other.hasName()) {
  696. setName(other.getName());
  697. }
  698. if (other.hasPackage()) {
  699. setPackage(other.getPackage());
  700. }
  701. if (!other.dependency_.isEmpty()) {
  702. if (result.dependency_.isEmpty()) {
  703. result.dependency_ = new java.util.ArrayList<java.lang.String>();
  704. }
  705. result.dependency_.addAll(other.dependency_);
  706. }
  707. if (!other.messageType_.isEmpty()) {
  708. if (result.messageType_.isEmpty()) {
  709. result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
  710. }
  711. result.messageType_.addAll(other.messageType_);
  712. }
  713. if (!other.enumType_.isEmpty()) {
  714. if (result.enumType_.isEmpty()) {
  715. result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
  716. }
  717. result.enumType_.addAll(other.enumType_);
  718. }
  719. if (!other.service_.isEmpty()) {
  720. if (result.service_.isEmpty()) {
  721. result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
  722. }
  723. result.service_.addAll(other.service_);
  724. }
  725. if (!other.extension_.isEmpty()) {
  726. if (result.extension_.isEmpty()) {
  727. result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
  728. }
  729. result.extension_.addAll(other.extension_);
  730. }
  731. if (other.hasOptions()) {
  732. mergeOptions(other.getOptions());
  733. }
  734. this.mergeUnknownFields(other.getUnknownFields());
  735. return this;
  736. }
  737. @Override
  738. public Builder mergeFrom(
  739. com.google.protobuf.CodedInputStream input,
  740. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  741. throws java.io.IOException {
  742. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  743. com.google.protobuf.UnknownFieldSet.newBuilder(
  744. this.getUnknownFields());
  745. while (true) {
  746. int tag = input.readTag();
  747. switch (tag) {
  748. case 0:
  749. this.setUnknownFields(unknownFields.build());
  750. return this;
  751. default: {
  752. if (!parseUnknownField(input, unknownFields,
  753. extensionRegistry, tag)) {
  754. this.setUnknownFields(unknownFields.build());
  755. return this;
  756. }
  757. break;
  758. }
  759. case 10: {
  760. setName(input.readString());
  761. break;
  762. }
  763. case 18: {
  764. setPackage(input.readString());
  765. break;
  766. }
  767. case 26: {
  768. addDependency(input.readString());
  769. break;
  770. }
  771. case 34: {
  772. com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder();
  773. input.readMessage(subBuilder, extensionRegistry);
  774. addMessageType(subBuilder.buildPartial());
  775. break;
  776. }
  777. case 42: {
  778. com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder();
  779. input.readMessage(subBuilder, extensionRegistry);
  780. addEnumType(subBuilder.buildPartial());
  781. break;
  782. }
  783. case 50: {
  784. com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder();
  785. input.readMessage(subBuilder, extensionRegistry);
  786. addService(subBuilder.buildPartial());
  787. break;
  788. }
  789. case 58: {
  790. com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder();
  791. input.readMessage(subBuilder, extensionRegistry);
  792. addExtension(subBuilder.buildPartial());
  793. break;
  794. }
  795. case 66: {
  796. com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder();
  797. if (hasOptions()) {
  798. subBuilder.mergeFrom(getOptions());
  799. }
  800. input.readMessage(subBuilder, extensionRegistry);
  801. setOptions(subBuilder.buildPartial());
  802. break;
  803. }
  804. }
  805. }
  806. }
  807. // optional string name = 1;
  808. public boolean hasName() {
  809. return result.hasName();
  810. }
  811. public java.lang.String getName() {
  812. return result.getName();
  813. }
  814. public Builder setName(java.lang.String value) {
  815. if (value == null) {
  816. throw new NullPointerException();
  817. }
  818. result.hasName = true;
  819. result.name_ = value;
  820. return this;
  821. }
  822. public Builder clearName() {
  823. result.hasName = false;
  824. result.name_ = getDefaultInstance().getName();
  825. return this;
  826. }
  827. // optional string package = 2;
  828. public boolean hasPackage() {
  829. return result.hasPackage();
  830. }
  831. public java.lang.String getPackage() {
  832. return result.getPackage();
  833. }
  834. public Builder setPackage(java.lang.String value) {
  835. if (value == null) {
  836. throw new NullPointerException();
  837. }
  838. result.hasPackage = true;
  839. result.package_ = value;
  840. return this;
  841. }
  842. public Builder clearPackage() {
  843. result.hasPackage = false;
  844. result.package_ = getDefaultInstance().getPackage();
  845. return this;
  846. }
  847. // repeated string dependency = 3;
  848. public java.util.List<java.lang.String> getDependencyList() {
  849. return java.util.Collections.unmodifiableList(result.dependency_);
  850. }
  851. public int getDependencyCount() {
  852. return result.getDependencyCount();
  853. }
  854. public java.lang.String getDependency(int index) {
  855. return result.getDependency(index);
  856. }
  857. public Builder setDependency(int index, java.lang.String value) {
  858. if (value == null) {
  859. throw new NullPointerException();
  860. }
  861. result.dependency_.set(index, value);
  862. return this;
  863. }
  864. public Builder addDependency(java.lang.String value) {
  865. if (value == null) {
  866. throw new NullPointerException();
  867. }
  868. if (result.dependency_.isEmpty()) {
  869. result.dependency_ = new java.util.ArrayList<java.lang.String>();
  870. }
  871. result.dependency_.add(value);
  872. return this;
  873. }
  874. public Builder addAllDependency(
  875. java.lang.Iterable<? extends java.lang.String> values) {
  876. if (result.dependency_.isEmpty()) {
  877. result.dependency_ = new java.util.ArrayList<java.lang.String>();
  878. }
  879. super.addAll(values, result.dependency_);
  880. return this;
  881. }
  882. public Builder clearDependency() {
  883. result.dependency_ = java.util.Collections.emptyList();
  884. return this;
  885. }
  886. // repeated .google.protobuf.DescriptorProto message_type = 4;
  887. public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() {
  888. return java.util.Collections.unmodifiableList(result.messageType_);
  889. }
  890. public int getMessageTypeCount() {
  891. return result.getMessageTypeCount();
  892. }
  893. public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) {
  894. return result.getMessageType(index);
  895. }
  896. public Builder setMessageType(int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) {
  897. if (value == null) {
  898. throw new NullPointerException();
  899. }
  900. result.messageType_.set(index, value);
  901. return this;
  902. }
  903. public Builder setMessageType(int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  904. result.messageType_.set(index, builderForValue.build());
  905. return this;
  906. }
  907. public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
  908. if (value == null) {
  909. throw new NullPointerException();
  910. }
  911. if (result.messageType_.isEmpty()) {
  912. result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
  913. }
  914. result.messageType_.add(value);
  915. return this;
  916. }
  917. public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  918. if (result.messageType_.isEmpty()) {
  919. result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
  920. }
  921. result.messageType_.add(builderForValue.build());
  922. return this;
  923. }
  924. public Builder addAllMessageType(
  925. java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> values) {
  926. if (result.messageType_.isEmpty()) {
  927. result.messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>();
  928. }
  929. super.addAll(values, result.messageType_);
  930. return this;
  931. }
  932. public Builder clearMessageType() {
  933. result.messageType_ = java.util.Collections.emptyList();
  934. return this;
  935. }
  936. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  937. public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() {
  938. return java.util.Collections.unmodifiableList(result.enumType_);
  939. }
  940. public int getEnumTypeCount() {
  941. return result.getEnumTypeCount();
  942. }
  943. public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) {
  944. return result.getEnumType(index);
  945. }
  946. public Builder setEnumType(int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) {
  947. if (value == null) {
  948. throw new NullPointerException();
  949. }
  950. result.enumType_.set(index, value);
  951. return this;
  952. }
  953. public Builder setEnumType(int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  954. result.enumType_.set(index, builderForValue.build());
  955. return this;
  956. }
  957. public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) {
  958. if (value == null) {
  959. throw new NullPointerException();
  960. }
  961. if (result.enumType_.isEmpty()) {
  962. result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
  963. }
  964. result.enumType_.add(value);
  965. return this;
  966. }
  967. public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  968. if (result.enumType_.isEmpty()) {
  969. result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
  970. }
  971. result.enumType_.add(builderForValue.build());
  972. return this;
  973. }
  974. public Builder addAllEnumType(
  975. java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> values) {
  976. if (result.enumType_.isEmpty()) {
  977. result.enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>();
  978. }
  979. super.addAll(values, result.enumType_);
  980. return this;
  981. }
  982. public Builder clearEnumType() {
  983. result.enumType_ = java.util.Collections.emptyList();
  984. return this;
  985. }
  986. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  987. public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() {
  988. return java.util.Collections.unmodifiableList(result.service_);
  989. }
  990. public int getServiceCount() {
  991. return result.getServiceCount();
  992. }
  993. public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) {
  994. return result.getService(index);
  995. }
  996. public Builder setService(int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) {
  997. if (value == null) {
  998. throw new NullPointerException();
  999. }
  1000. result.service_.set(index, value);
  1001. return this;
  1002. }
  1003. public Builder setService(int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  1004. result.service_.set(index, builderForValue.build());
  1005. return this;
  1006. }
  1007. public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) {
  1008. if (value == null) {
  1009. throw new NullPointerException();
  1010. }
  1011. if (result.service_.isEmpty()) {
  1012. result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
  1013. }
  1014. result.service_.add(value);
  1015. return this;
  1016. }
  1017. public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  1018. if (result.service_.isEmpty()) {
  1019. result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
  1020. }
  1021. result.service_.add(builderForValue.build());
  1022. return this;
  1023. }
  1024. public Builder addAllService(
  1025. java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> values) {
  1026. if (result.service_.isEmpty()) {
  1027. result.service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>();
  1028. }
  1029. super.addAll(values, result.service_);
  1030. return this;
  1031. }
  1032. public Builder clearService() {
  1033. result.service_ = java.util.Collections.emptyList();
  1034. return this;
  1035. }
  1036. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1037. public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() {
  1038. return java.util.Collections.unmodifiableList(result.extension_);
  1039. }
  1040. public int getExtensionCount() {
  1041. return result.getExtensionCount();
  1042. }
  1043. public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) {
  1044. return result.getExtension(index);
  1045. }
  1046. public Builder setExtension(int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
  1047. if (value == null) {
  1048. throw new NullPointerException();
  1049. }
  1050. result.extension_.set(index, value);
  1051. return this;
  1052. }
  1053. public Builder setExtension(int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1054. result.extension_.set(index, builderForValue.build());
  1055. return this;
  1056. }
  1057. public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
  1058. if (value == null) {
  1059. throw new NullPointerException();
  1060. }
  1061. if (result.extension_.isEmpty()) {
  1062. result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
  1063. }
  1064. result.extension_.add(value);
  1065. return this;
  1066. }
  1067. public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1068. if (result.extension_.isEmpty()) {
  1069. result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
  1070. }
  1071. result.extension_.add(builderForValue.build());
  1072. return this;
  1073. }
  1074. public Builder addAllExtension(
  1075. java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> values) {
  1076. if (result.extension_.isEmpty()) {
  1077. result.extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>();
  1078. }
  1079. super.addAll(values, result.extension_);
  1080. return this;
  1081. }
  1082. public Builder clearExtension() {
  1083. result.extension_ = java.util.Collections.emptyList();
  1084. return this;
  1085. }
  1086. // optional .google.protobuf.FileOptions options = 8;
  1087. public boolean hasOptions() {
  1088. return result.hasOptions();
  1089. }
  1090. public com.google.protobuf.DescriptorProtos.FileOptions getOptions() {
  1091. return result.getOptions();
  1092. }
  1093. public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions value) {
  1094. if (value == null) {
  1095. throw new NullPointerException();
  1096. }
  1097. result.hasOptions = true;
  1098. result.options_ = value;
  1099. return this;
  1100. }
  1101. public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) {
  1102. result.hasOptions = true;
  1103. result.options_ = builderForValue.build();
  1104. return this;
  1105. }
  1106. public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) {
  1107. if (result.hasOptions() &&
  1108. result.options_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) {
  1109. result.options_ =
  1110. com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(result.options_).mergeFrom(value).buildPartial();
  1111. } else {
  1112. result.options_ = value;
  1113. }
  1114. result.hasOptions = true;
  1115. return this;
  1116. }
  1117. public Builder clearOptions() {
  1118. result.hasOptions = false;
  1119. result.options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();
  1120. return this;
  1121. }
  1122. // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto)
  1123. }
  1124. static {
  1125. defaultInstance = new FileDescriptorProto(true);
  1126. com.google.protobuf.DescriptorProtos.internalForceInit();
  1127. defaultInstance.initFields();
  1128. }
  1129. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  1130. }
  1131. public static final class DescriptorProto extends
  1132. com.google.protobuf.GeneratedMessage {
  1133. // Use DescriptorProto.newBuilder() to construct.
  1134. private DescriptorProto() {
  1135. initFields();
  1136. }
  1137. private DescriptorProto(boolean noInit) {}
  1138. private static final DescriptorProto defaultInstance;
  1139. public static DescriptorProto getDefaultInstance() {
  1140. return defaultInstance;
  1141. }
  1142. @Override
  1143. public DescriptorProto getDefaultInstanceForType() {
  1144. return defaultInstance;
  1145. }
  1146. public static final com.google.protobuf.Descriptors.Descriptor
  1147. getDescriptor() {
  1148. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor;
  1149. }
  1150. @Override
  1151. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1152. internalGetFieldAccessorTable() {
  1153. return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable;
  1154. }
  1155. public static final class ExtensionRange extends
  1156. com.google.protobuf.GeneratedMessage {
  1157. // Use ExtensionRange.newBuilder() to construct.
  1158. private ExtensionRange() {
  1159. initFields();
  1160. }
  1161. private ExtensionRange(boolean noInit) {}
  1162. private static final ExtensionRange defaultInstance;
  1163. public static ExtensionRange getDefaultInstance() {
  1164. return defaultInstance;
  1165. }
  1166. @Override
  1167. public ExtensionRange getDefaultInstanceForType() {
  1168. return defaultInstance;
  1169. }
  1170. public static final com.google.protobuf.D

Large files files are truncated, but you can click here to view the full file