PageRenderTime 49ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/bie-profile/src/test/java/org/ala/io/CommonNamesProto.java

http://ala-bie.googlecode.com/
Java | 860 lines | 762 code | 75 blank | 23 comment | 83 complexity | 6b212883d6b113ca78e4b01d99140886 MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: org/ala/io/CommonNamesProto.proto
  3. package org.ala.io;
  4. public final class CommonNamesProto {
  5. private CommonNamesProto() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class CommonNames extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use CommonNames.newBuilder() to construct.
  12. private CommonNames() {
  13. initFields();
  14. }
  15. private CommonNames(boolean noInit) {}
  16. private static final CommonNames defaultInstance;
  17. public static CommonNames getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public CommonNames getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return org.ala.io.CommonNamesProto.internal_static_CommonNames_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return org.ala.io.CommonNamesProto.internal_static_CommonNames_fieldAccessorTable;
  30. }
  31. public static final class CommonName extends
  32. com.google.protobuf.GeneratedMessage {
  33. // Use CommonName.newBuilder() to construct.
  34. private CommonName() {
  35. initFields();
  36. }
  37. private CommonName(boolean noInit) {}
  38. private static final CommonName defaultInstance;
  39. public static CommonName getDefaultInstance() {
  40. return defaultInstance;
  41. }
  42. public CommonName getDefaultInstanceForType() {
  43. return defaultInstance;
  44. }
  45. public static final com.google.protobuf.Descriptors.Descriptor
  46. getDescriptor() {
  47. return org.ala.io.CommonNamesProto.internal_static_CommonNames_CommonName_descriptor;
  48. }
  49. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  50. internalGetFieldAccessorTable() {
  51. return org.ala.io.CommonNamesProto.internal_static_CommonNames_CommonName_fieldAccessorTable;
  52. }
  53. // optional string guid = 1;
  54. public static final int GUID_FIELD_NUMBER = 1;
  55. private boolean hasGuid;
  56. private java.lang.String guid_ = "";
  57. public boolean hasGuid() { return hasGuid; }
  58. public java.lang.String getGuid() { return guid_; }
  59. // required string nameString = 2;
  60. public static final int NAMESTRING_FIELD_NUMBER = 2;
  61. private boolean hasNameString;
  62. private java.lang.String nameString_ = "";
  63. public boolean hasNameString() { return hasNameString; }
  64. public java.lang.String getNameString() { return nameString_; }
  65. // optional string locality = 3;
  66. public static final int LOCALITY_FIELD_NUMBER = 3;
  67. private boolean hasLocality;
  68. private java.lang.String locality_ = "";
  69. public boolean hasLocality() { return hasLocality; }
  70. public java.lang.String getLocality() { return locality_; }
  71. // optional string documentId = 4;
  72. public static final int DOCUMENTID_FIELD_NUMBER = 4;
  73. private boolean hasDocumentId;
  74. private java.lang.String documentId_ = "";
  75. public boolean hasDocumentId() { return hasDocumentId; }
  76. public java.lang.String getDocumentId() { return documentId_; }
  77. // optional string infoSourceId = 5;
  78. public static final int INFOSOURCEID_FIELD_NUMBER = 5;
  79. private boolean hasInfoSourceId;
  80. private java.lang.String infoSourceId_ = "";
  81. public boolean hasInfoSourceId() { return hasInfoSourceId; }
  82. public java.lang.String getInfoSourceId() { return infoSourceId_; }
  83. private void initFields() {
  84. }
  85. public final boolean isInitialized() {
  86. if (!hasNameString) return false;
  87. return true;
  88. }
  89. public void writeTo(com.google.protobuf.CodedOutputStream output)
  90. throws java.io.IOException {
  91. getSerializedSize();
  92. if (hasGuid()) {
  93. output.writeString(1, getGuid());
  94. }
  95. if (hasNameString()) {
  96. output.writeString(2, getNameString());
  97. }
  98. if (hasLocality()) {
  99. output.writeString(3, getLocality());
  100. }
  101. if (hasDocumentId()) {
  102. output.writeString(4, getDocumentId());
  103. }
  104. if (hasInfoSourceId()) {
  105. output.writeString(5, getInfoSourceId());
  106. }
  107. getUnknownFields().writeTo(output);
  108. }
  109. private int memoizedSerializedSize = -1;
  110. public int getSerializedSize() {
  111. int size = memoizedSerializedSize;
  112. if (size != -1) return size;
  113. size = 0;
  114. if (hasGuid()) {
  115. size += com.google.protobuf.CodedOutputStream
  116. .computeStringSize(1, getGuid());
  117. }
  118. if (hasNameString()) {
  119. size += com.google.protobuf.CodedOutputStream
  120. .computeStringSize(2, getNameString());
  121. }
  122. if (hasLocality()) {
  123. size += com.google.protobuf.CodedOutputStream
  124. .computeStringSize(3, getLocality());
  125. }
  126. if (hasDocumentId()) {
  127. size += com.google.protobuf.CodedOutputStream
  128. .computeStringSize(4, getDocumentId());
  129. }
  130. if (hasInfoSourceId()) {
  131. size += com.google.protobuf.CodedOutputStream
  132. .computeStringSize(5, getInfoSourceId());
  133. }
  134. size += getUnknownFields().getSerializedSize();
  135. memoizedSerializedSize = size;
  136. return size;
  137. }
  138. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  139. com.google.protobuf.ByteString data)
  140. throws com.google.protobuf.InvalidProtocolBufferException {
  141. return newBuilder().mergeFrom(data).buildParsed();
  142. }
  143. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  144. com.google.protobuf.ByteString data,
  145. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  146. throws com.google.protobuf.InvalidProtocolBufferException {
  147. return newBuilder().mergeFrom(data, extensionRegistry)
  148. .buildParsed();
  149. }
  150. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(byte[] data)
  151. throws com.google.protobuf.InvalidProtocolBufferException {
  152. return newBuilder().mergeFrom(data).buildParsed();
  153. }
  154. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  155. byte[] data,
  156. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  157. throws com.google.protobuf.InvalidProtocolBufferException {
  158. return newBuilder().mergeFrom(data, extensionRegistry)
  159. .buildParsed();
  160. }
  161. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(java.io.InputStream input)
  162. throws java.io.IOException {
  163. return newBuilder().mergeFrom(input).buildParsed();
  164. }
  165. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  166. java.io.InputStream input,
  167. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  168. throws java.io.IOException {
  169. return newBuilder().mergeFrom(input, extensionRegistry)
  170. .buildParsed();
  171. }
  172. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseDelimitedFrom(java.io.InputStream input)
  173. throws java.io.IOException {
  174. Builder builder = newBuilder();
  175. if (builder.mergeDelimitedFrom(input)) {
  176. return builder.buildParsed();
  177. } else {
  178. return null;
  179. }
  180. }
  181. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseDelimitedFrom(
  182. java.io.InputStream input,
  183. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  184. throws java.io.IOException {
  185. Builder builder = newBuilder();
  186. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  187. return builder.buildParsed();
  188. } else {
  189. return null;
  190. }
  191. }
  192. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  193. com.google.protobuf.CodedInputStream input)
  194. throws java.io.IOException {
  195. return newBuilder().mergeFrom(input).buildParsed();
  196. }
  197. public static org.ala.io.CommonNamesProto.CommonNames.CommonName parseFrom(
  198. com.google.protobuf.CodedInputStream input,
  199. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  200. throws java.io.IOException {
  201. return newBuilder().mergeFrom(input, extensionRegistry)
  202. .buildParsed();
  203. }
  204. public static Builder newBuilder() { return Builder.create(); }
  205. public Builder newBuilderForType() { return newBuilder(); }
  206. public static Builder newBuilder(org.ala.io.CommonNamesProto.CommonNames.CommonName prototype) {
  207. return newBuilder().mergeFrom(prototype);
  208. }
  209. public Builder toBuilder() { return newBuilder(this); }
  210. public static final class Builder extends
  211. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  212. private org.ala.io.CommonNamesProto.CommonNames.CommonName result;
  213. // Construct using org.ala.io.CommonNamesProto.CommonNames.CommonName.newBuilder()
  214. private Builder() {}
  215. private static Builder create() {
  216. Builder builder = new Builder();
  217. builder.result = new org.ala.io.CommonNamesProto.CommonNames.CommonName();
  218. return builder;
  219. }
  220. protected org.ala.io.CommonNamesProto.CommonNames.CommonName internalGetResult() {
  221. return result;
  222. }
  223. public Builder clear() {
  224. if (result == null) {
  225. throw new IllegalStateException(
  226. "Cannot call clear() after build().");
  227. }
  228. result = new org.ala.io.CommonNamesProto.CommonNames.CommonName();
  229. return this;
  230. }
  231. public Builder clone() {
  232. return create().mergeFrom(result);
  233. }
  234. public com.google.protobuf.Descriptors.Descriptor
  235. getDescriptorForType() {
  236. return org.ala.io.CommonNamesProto.CommonNames.CommonName.getDescriptor();
  237. }
  238. public org.ala.io.CommonNamesProto.CommonNames.CommonName getDefaultInstanceForType() {
  239. return org.ala.io.CommonNamesProto.CommonNames.CommonName.getDefaultInstance();
  240. }
  241. public boolean isInitialized() {
  242. return result.isInitialized();
  243. }
  244. public org.ala.io.CommonNamesProto.CommonNames.CommonName build() {
  245. if (result != null && !isInitialized()) {
  246. throw newUninitializedMessageException(result);
  247. }
  248. return buildPartial();
  249. }
  250. private org.ala.io.CommonNamesProto.CommonNames.CommonName buildParsed()
  251. throws com.google.protobuf.InvalidProtocolBufferException {
  252. if (!isInitialized()) {
  253. throw newUninitializedMessageException(
  254. result).asInvalidProtocolBufferException();
  255. }
  256. return buildPartial();
  257. }
  258. public org.ala.io.CommonNamesProto.CommonNames.CommonName buildPartial() {
  259. if (result == null) {
  260. throw new IllegalStateException(
  261. "build() has already been called on this Builder.");
  262. }
  263. org.ala.io.CommonNamesProto.CommonNames.CommonName returnMe = result;
  264. result = null;
  265. return returnMe;
  266. }
  267. public Builder mergeFrom(com.google.protobuf.Message other) {
  268. if (other instanceof org.ala.io.CommonNamesProto.CommonNames.CommonName) {
  269. return mergeFrom((org.ala.io.CommonNamesProto.CommonNames.CommonName)other);
  270. } else {
  271. super.mergeFrom(other);
  272. return this;
  273. }
  274. }
  275. public Builder mergeFrom(org.ala.io.CommonNamesProto.CommonNames.CommonName other) {
  276. if (other == org.ala.io.CommonNamesProto.CommonNames.CommonName.getDefaultInstance()) return this;
  277. if (other.hasGuid()) {
  278. setGuid(other.getGuid());
  279. }
  280. if (other.hasNameString()) {
  281. setNameString(other.getNameString());
  282. }
  283. if (other.hasLocality()) {
  284. setLocality(other.getLocality());
  285. }
  286. if (other.hasDocumentId()) {
  287. setDocumentId(other.getDocumentId());
  288. }
  289. if (other.hasInfoSourceId()) {
  290. setInfoSourceId(other.getInfoSourceId());
  291. }
  292. this.mergeUnknownFields(other.getUnknownFields());
  293. return this;
  294. }
  295. public Builder mergeFrom(
  296. com.google.protobuf.CodedInputStream input,
  297. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  298. throws java.io.IOException {
  299. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  300. com.google.protobuf.UnknownFieldSet.newBuilder(
  301. this.getUnknownFields());
  302. while (true) {
  303. int tag = input.readTag();
  304. switch (tag) {
  305. case 0:
  306. this.setUnknownFields(unknownFields.build());
  307. return this;
  308. default: {
  309. if (!parseUnknownField(input, unknownFields,
  310. extensionRegistry, tag)) {
  311. this.setUnknownFields(unknownFields.build());
  312. return this;
  313. }
  314. break;
  315. }
  316. case 10: {
  317. setGuid(input.readString());
  318. break;
  319. }
  320. case 18: {
  321. setNameString(input.readString());
  322. break;
  323. }
  324. case 26: {
  325. setLocality(input.readString());
  326. break;
  327. }
  328. case 34: {
  329. setDocumentId(input.readString());
  330. break;
  331. }
  332. case 42: {
  333. setInfoSourceId(input.readString());
  334. break;
  335. }
  336. }
  337. }
  338. }
  339. // optional string guid = 1;
  340. public boolean hasGuid() {
  341. return result.hasGuid();
  342. }
  343. public java.lang.String getGuid() {
  344. return result.getGuid();
  345. }
  346. public Builder setGuid(java.lang.String value) {
  347. if (value == null) {
  348. throw new NullPointerException();
  349. }
  350. result.hasGuid = true;
  351. result.guid_ = value;
  352. return this;
  353. }
  354. public Builder clearGuid() {
  355. result.hasGuid = false;
  356. result.guid_ = getDefaultInstance().getGuid();
  357. return this;
  358. }
  359. // required string nameString = 2;
  360. public boolean hasNameString() {
  361. return result.hasNameString();
  362. }
  363. public java.lang.String getNameString() {
  364. return result.getNameString();
  365. }
  366. public Builder setNameString(java.lang.String value) {
  367. if (value == null) {
  368. throw new NullPointerException();
  369. }
  370. result.hasNameString = true;
  371. result.nameString_ = value;
  372. return this;
  373. }
  374. public Builder clearNameString() {
  375. result.hasNameString = false;
  376. result.nameString_ = getDefaultInstance().getNameString();
  377. return this;
  378. }
  379. // optional string locality = 3;
  380. public boolean hasLocality() {
  381. return result.hasLocality();
  382. }
  383. public java.lang.String getLocality() {
  384. return result.getLocality();
  385. }
  386. public Builder setLocality(java.lang.String value) {
  387. if (value == null) {
  388. throw new NullPointerException();
  389. }
  390. result.hasLocality = true;
  391. result.locality_ = value;
  392. return this;
  393. }
  394. public Builder clearLocality() {
  395. result.hasLocality = false;
  396. result.locality_ = getDefaultInstance().getLocality();
  397. return this;
  398. }
  399. // optional string documentId = 4;
  400. public boolean hasDocumentId() {
  401. return result.hasDocumentId();
  402. }
  403. public java.lang.String getDocumentId() {
  404. return result.getDocumentId();
  405. }
  406. public Builder setDocumentId(java.lang.String value) {
  407. if (value == null) {
  408. throw new NullPointerException();
  409. }
  410. result.hasDocumentId = true;
  411. result.documentId_ = value;
  412. return this;
  413. }
  414. public Builder clearDocumentId() {
  415. result.hasDocumentId = false;
  416. result.documentId_ = getDefaultInstance().getDocumentId();
  417. return this;
  418. }
  419. // optional string infoSourceId = 5;
  420. public boolean hasInfoSourceId() {
  421. return result.hasInfoSourceId();
  422. }
  423. public java.lang.String getInfoSourceId() {
  424. return result.getInfoSourceId();
  425. }
  426. public Builder setInfoSourceId(java.lang.String value) {
  427. if (value == null) {
  428. throw new NullPointerException();
  429. }
  430. result.hasInfoSourceId = true;
  431. result.infoSourceId_ = value;
  432. return this;
  433. }
  434. public Builder clearInfoSourceId() {
  435. result.hasInfoSourceId = false;
  436. result.infoSourceId_ = getDefaultInstance().getInfoSourceId();
  437. return this;
  438. }
  439. // @@protoc_insertion_point(builder_scope:CommonNames.CommonName)
  440. }
  441. static {
  442. defaultInstance = new CommonName(true);
  443. org.ala.io.CommonNamesProto.internalForceInit();
  444. defaultInstance.initFields();
  445. }
  446. // @@protoc_insertion_point(class_scope:CommonNames.CommonName)
  447. }
  448. // repeated .CommonNames.CommonName names = 4;
  449. public static final int NAMES_FIELD_NUMBER = 4;
  450. private java.util.List<org.ala.io.CommonNamesProto.CommonNames.CommonName> names_ =
  451. java.util.Collections.emptyList();
  452. public java.util.List<org.ala.io.CommonNamesProto.CommonNames.CommonName> getNamesList() {
  453. return names_;
  454. }
  455. public int getNamesCount() { return names_.size(); }
  456. public org.ala.io.CommonNamesProto.CommonNames.CommonName getNames(int index) {
  457. return names_.get(index);
  458. }
  459. private void initFields() {
  460. }
  461. public final boolean isInitialized() {
  462. for (org.ala.io.CommonNamesProto.CommonNames.CommonName element : getNamesList()) {
  463. if (!element.isInitialized()) return false;
  464. }
  465. return true;
  466. }
  467. public void writeTo(com.google.protobuf.CodedOutputStream output)
  468. throws java.io.IOException {
  469. getSerializedSize();
  470. for (org.ala.io.CommonNamesProto.CommonNames.CommonName element : getNamesList()) {
  471. output.writeMessage(4, element);
  472. }
  473. getUnknownFields().writeTo(output);
  474. }
  475. private int memoizedSerializedSize = -1;
  476. public int getSerializedSize() {
  477. int size = memoizedSerializedSize;
  478. if (size != -1) return size;
  479. size = 0;
  480. for (org.ala.io.CommonNamesProto.CommonNames.CommonName element : getNamesList()) {
  481. size += com.google.protobuf.CodedOutputStream
  482. .computeMessageSize(4, element);
  483. }
  484. size += getUnknownFields().getSerializedSize();
  485. memoizedSerializedSize = size;
  486. return size;
  487. }
  488. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  489. com.google.protobuf.ByteString data)
  490. throws com.google.protobuf.InvalidProtocolBufferException {
  491. return newBuilder().mergeFrom(data).buildParsed();
  492. }
  493. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  494. com.google.protobuf.ByteString data,
  495. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  496. throws com.google.protobuf.InvalidProtocolBufferException {
  497. return newBuilder().mergeFrom(data, extensionRegistry)
  498. .buildParsed();
  499. }
  500. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(byte[] data)
  501. throws com.google.protobuf.InvalidProtocolBufferException {
  502. return newBuilder().mergeFrom(data).buildParsed();
  503. }
  504. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  505. byte[] data,
  506. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  507. throws com.google.protobuf.InvalidProtocolBufferException {
  508. return newBuilder().mergeFrom(data, extensionRegistry)
  509. .buildParsed();
  510. }
  511. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(java.io.InputStream input)
  512. throws java.io.IOException {
  513. return newBuilder().mergeFrom(input).buildParsed();
  514. }
  515. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  516. java.io.InputStream input,
  517. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  518. throws java.io.IOException {
  519. return newBuilder().mergeFrom(input, extensionRegistry)
  520. .buildParsed();
  521. }
  522. public static org.ala.io.CommonNamesProto.CommonNames parseDelimitedFrom(java.io.InputStream input)
  523. throws java.io.IOException {
  524. Builder builder = newBuilder();
  525. if (builder.mergeDelimitedFrom(input)) {
  526. return builder.buildParsed();
  527. } else {
  528. return null;
  529. }
  530. }
  531. public static org.ala.io.CommonNamesProto.CommonNames parseDelimitedFrom(
  532. java.io.InputStream input,
  533. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  534. throws java.io.IOException {
  535. Builder builder = newBuilder();
  536. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  537. return builder.buildParsed();
  538. } else {
  539. return null;
  540. }
  541. }
  542. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  543. com.google.protobuf.CodedInputStream input)
  544. throws java.io.IOException {
  545. return newBuilder().mergeFrom(input).buildParsed();
  546. }
  547. public static org.ala.io.CommonNamesProto.CommonNames parseFrom(
  548. com.google.protobuf.CodedInputStream input,
  549. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  550. throws java.io.IOException {
  551. return newBuilder().mergeFrom(input, extensionRegistry)
  552. .buildParsed();
  553. }
  554. public static Builder newBuilder() { return Builder.create(); }
  555. public Builder newBuilderForType() { return newBuilder(); }
  556. public static Builder newBuilder(org.ala.io.CommonNamesProto.CommonNames prototype) {
  557. return newBuilder().mergeFrom(prototype);
  558. }
  559. public Builder toBuilder() { return newBuilder(this); }
  560. public static final class Builder extends
  561. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  562. private org.ala.io.CommonNamesProto.CommonNames result;
  563. // Construct using org.ala.io.CommonNamesProto.CommonNames.newBuilder()
  564. private Builder() {}
  565. private static Builder create() {
  566. Builder builder = new Builder();
  567. builder.result = new org.ala.io.CommonNamesProto.CommonNames();
  568. return builder;
  569. }
  570. protected org.ala.io.CommonNamesProto.CommonNames internalGetResult() {
  571. return result;
  572. }
  573. public Builder clear() {
  574. if (result == null) {
  575. throw new IllegalStateException(
  576. "Cannot call clear() after build().");
  577. }
  578. result = new org.ala.io.CommonNamesProto.CommonNames();
  579. return this;
  580. }
  581. public Builder clone() {
  582. return create().mergeFrom(result);
  583. }
  584. public com.google.protobuf.Descriptors.Descriptor
  585. getDescriptorForType() {
  586. return org.ala.io.CommonNamesProto.CommonNames.getDescriptor();
  587. }
  588. public org.ala.io.CommonNamesProto.CommonNames getDefaultInstanceForType() {
  589. return org.ala.io.CommonNamesProto.CommonNames.getDefaultInstance();
  590. }
  591. public boolean isInitialized() {
  592. return result.isInitialized();
  593. }
  594. public org.ala.io.CommonNamesProto.CommonNames build() {
  595. if (result != null && !isInitialized()) {
  596. throw newUninitializedMessageException(result);
  597. }
  598. return buildPartial();
  599. }
  600. private org.ala.io.CommonNamesProto.CommonNames buildParsed()
  601. throws com.google.protobuf.InvalidProtocolBufferException {
  602. if (!isInitialized()) {
  603. throw newUninitializedMessageException(
  604. result).asInvalidProtocolBufferException();
  605. }
  606. return buildPartial();
  607. }
  608. public org.ala.io.CommonNamesProto.CommonNames buildPartial() {
  609. if (result == null) {
  610. throw new IllegalStateException(
  611. "build() has already been called on this Builder.");
  612. }
  613. if (result.names_ != java.util.Collections.EMPTY_LIST) {
  614. result.names_ =
  615. java.util.Collections.unmodifiableList(result.names_);
  616. }
  617. org.ala.io.CommonNamesProto.CommonNames returnMe = result;
  618. result = null;
  619. return returnMe;
  620. }
  621. public Builder mergeFrom(com.google.protobuf.Message other) {
  622. if (other instanceof org.ala.io.CommonNamesProto.CommonNames) {
  623. return mergeFrom((org.ala.io.CommonNamesProto.CommonNames)other);
  624. } else {
  625. super.mergeFrom(other);
  626. return this;
  627. }
  628. }
  629. public Builder mergeFrom(org.ala.io.CommonNamesProto.CommonNames other) {
  630. if (other == org.ala.io.CommonNamesProto.CommonNames.getDefaultInstance()) return this;
  631. if (!other.names_.isEmpty()) {
  632. if (result.names_.isEmpty()) {
  633. result.names_ = new java.util.ArrayList<org.ala.io.CommonNamesProto.CommonNames.CommonName>();
  634. }
  635. result.names_.addAll(other.names_);
  636. }
  637. this.mergeUnknownFields(other.getUnknownFields());
  638. return this;
  639. }
  640. public Builder mergeFrom(
  641. com.google.protobuf.CodedInputStream input,
  642. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  643. throws java.io.IOException {
  644. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  645. com.google.protobuf.UnknownFieldSet.newBuilder(
  646. this.getUnknownFields());
  647. while (true) {
  648. int tag = input.readTag();
  649. switch (tag) {
  650. case 0:
  651. this.setUnknownFields(unknownFields.build());
  652. return this;
  653. default: {
  654. if (!parseUnknownField(input, unknownFields,
  655. extensionRegistry, tag)) {
  656. this.setUnknownFields(unknownFields.build());
  657. return this;
  658. }
  659. break;
  660. }
  661. case 34: {
  662. org.ala.io.CommonNamesProto.CommonNames.CommonName.Builder subBuilder = org.ala.io.CommonNamesProto.CommonNames.CommonName.newBuilder();
  663. input.readMessage(subBuilder, extensionRegistry);
  664. addNames(subBuilder.buildPartial());
  665. break;
  666. }
  667. }
  668. }
  669. }
  670. // repeated .CommonNames.CommonName names = 4;
  671. public java.util.List<org.ala.io.CommonNamesProto.CommonNames.CommonName> getNamesList() {
  672. return java.util.Collections.unmodifiableList(result.names_);
  673. }
  674. public int getNamesCount() {
  675. return result.getNamesCount();
  676. }
  677. public org.ala.io.CommonNamesProto.CommonNames.CommonName getNames(int index) {
  678. return result.getNames(index);
  679. }
  680. public Builder setNames(int index, org.ala.io.CommonNamesProto.CommonNames.CommonName value) {
  681. if (value == null) {
  682. throw new NullPointerException();
  683. }
  684. result.names_.set(index, value);
  685. return this;
  686. }
  687. public Builder setNames(int index, org.ala.io.CommonNamesProto.CommonNames.CommonName.Builder builderForValue) {
  688. result.names_.set(index, builderForValue.build());
  689. return this;
  690. }
  691. public Builder addNames(org.ala.io.CommonNamesProto.CommonNames.CommonName value) {
  692. if (value == null) {
  693. throw new NullPointerException();
  694. }
  695. if (result.names_.isEmpty()) {
  696. result.names_ = new java.util.ArrayList<org.ala.io.CommonNamesProto.CommonNames.CommonName>();
  697. }
  698. result.names_.add(value);
  699. return this;
  700. }
  701. public Builder addNames(org.ala.io.CommonNamesProto.CommonNames.CommonName.Builder builderForValue) {
  702. if (result.names_.isEmpty()) {
  703. result.names_ = new java.util.ArrayList<org.ala.io.CommonNamesProto.CommonNames.CommonName>();
  704. }
  705. result.names_.add(builderForValue.build());
  706. return this;
  707. }
  708. public Builder addAllNames(
  709. java.lang.Iterable<? extends org.ala.io.CommonNamesProto.CommonNames.CommonName> values) {
  710. if (result.names_.isEmpty()) {
  711. result.names_ = new java.util.ArrayList<org.ala.io.CommonNamesProto.CommonNames.CommonName>();
  712. }
  713. super.addAll(values, result.names_);
  714. return this;
  715. }
  716. public Builder clearNames() {
  717. result.names_ = java.util.Collections.emptyList();
  718. return this;
  719. }
  720. // @@protoc_insertion_point(builder_scope:CommonNames)
  721. }
  722. static {
  723. defaultInstance = new CommonNames(true);
  724. org.ala.io.CommonNamesProto.internalForceInit();
  725. defaultInstance.initFields();
  726. }
  727. // @@protoc_insertion_point(class_scope:CommonNames)
  728. }
  729. private static com.google.protobuf.Descriptors.Descriptor
  730. internal_static_CommonNames_descriptor;
  731. private static
  732. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  733. internal_static_CommonNames_fieldAccessorTable;
  734. private static com.google.protobuf.Descriptors.Descriptor
  735. internal_static_CommonNames_CommonName_descriptor;
  736. private static
  737. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  738. internal_static_CommonNames_CommonName_fieldAccessorTable;
  739. public static com.google.protobuf.Descriptors.FileDescriptor
  740. getDescriptor() {
  741. return descriptor;
  742. }
  743. private static com.google.protobuf.Descriptors.FileDescriptor
  744. descriptor;
  745. static {
  746. java.lang.String[] descriptorData = {
  747. "\n!org/ala/io/CommonNamesProto.proto\"\241\001\n\013" +
  748. "CommonNames\022&\n\005names\030\004 \003(\0132\027.CommonNames" +
  749. ".CommonName\032j\n\nCommonName\022\014\n\004guid\030\001 \001(\t\022" +
  750. "\022\n\nnameString\030\002 \002(\t\022\020\n\010locality\030\003 \001(\t\022\022\n" +
  751. "\ndocumentId\030\004 \001(\t\022\024\n\014infoSourceId\030\005 \001(\tB" +
  752. "\014\n\norg.ala.io"
  753. };
  754. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  755. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  756. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  757. com.google.protobuf.Descriptors.FileDescriptor root) {
  758. descriptor = root;
  759. internal_static_CommonNames_descriptor =
  760. getDescriptor().getMessageTypes().get(0);
  761. internal_static_CommonNames_fieldAccessorTable = new
  762. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  763. internal_static_CommonNames_descriptor,
  764. new java.lang.String[] { "Names", },
  765. org.ala.io.CommonNamesProto.CommonNames.class,
  766. org.ala.io.CommonNamesProto.CommonNames.Builder.class);
  767. internal_static_CommonNames_CommonName_descriptor =
  768. internal_static_CommonNames_descriptor.getNestedTypes().get(0);
  769. internal_static_CommonNames_CommonName_fieldAccessorTable = new
  770. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  771. internal_static_CommonNames_CommonName_descriptor,
  772. new java.lang.String[] { "Guid", "NameString", "Locality", "DocumentId", "InfoSourceId", },
  773. org.ala.io.CommonNamesProto.CommonNames.CommonName.class,
  774. org.ala.io.CommonNamesProto.CommonNames.CommonName.Builder.class);
  775. return null;
  776. }
  777. };
  778. com.google.protobuf.Descriptors.FileDescriptor
  779. .internalBuildGeneratedFileFrom(descriptorData,
  780. new com.google.protobuf.Descriptors.FileDescriptor[] {
  781. }, assigner);
  782. }
  783. public static void internalForceInit() {}
  784. // @@protoc_insertion_point(outer_class_scope)
  785. }