PageRenderTime 56ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/java/src/com/google/publicalerts/cap/Info.java

https://code.google.com/p/cap-library/
Java | 1999 lines | 1849 code | 121 blank | 29 comment | 418 complexity | 91d1777c59c14ceda4c212bf830530bf MD5 | raw file
Possible License(s): Apache-2.0

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. package com.google.publicalerts.cap;
  3. public final class Info extends
  4. com.google.protobuf.GeneratedMessage
  5. implements InfoOrBuilder {
  6. // Use Info.newBuilder() to construct.
  7. private Info(Builder builder) {
  8. super(builder);
  9. }
  10. private Info(boolean noInit) {}
  11. private static final Info defaultInstance;
  12. public static Info getDefaultInstance() {
  13. return defaultInstance;
  14. }
  15. public Info getDefaultInstanceForType() {
  16. return defaultInstance;
  17. }
  18. public static final com.google.protobuf.Descriptors.Descriptor
  19. getDescriptor() {
  20. return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_descriptor;
  21. }
  22. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  23. internalGetFieldAccessorTable() {
  24. return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_fieldAccessorTable;
  25. }
  26. public enum Category
  27. implements com.google.protobuf.ProtocolMessageEnum {
  28. GEO(0, 0),
  29. MET(1, 1),
  30. SAFETY(2, 2),
  31. SECURITY(3, 3),
  32. RESCUE(4, 4),
  33. FIRE(5, 5),
  34. HEALTH(6, 6),
  35. ENV(7, 7),
  36. TRANSPORT(8, 8),
  37. INFRA(9, 9),
  38. CBRNE(10, 10),
  39. OTHER(11, 11),
  40. ;
  41. public static final int GEO_VALUE = 0;
  42. public static final int MET_VALUE = 1;
  43. public static final int SAFETY_VALUE = 2;
  44. public static final int SECURITY_VALUE = 3;
  45. public static final int RESCUE_VALUE = 4;
  46. public static final int FIRE_VALUE = 5;
  47. public static final int HEALTH_VALUE = 6;
  48. public static final int ENV_VALUE = 7;
  49. public static final int TRANSPORT_VALUE = 8;
  50. public static final int INFRA_VALUE = 9;
  51. public static final int CBRNE_VALUE = 10;
  52. public static final int OTHER_VALUE = 11;
  53. public final int getNumber() { return value; }
  54. public static Category valueOf(int value) {
  55. switch (value) {
  56. case 0: return GEO;
  57. case 1: return MET;
  58. case 2: return SAFETY;
  59. case 3: return SECURITY;
  60. case 4: return RESCUE;
  61. case 5: return FIRE;
  62. case 6: return HEALTH;
  63. case 7: return ENV;
  64. case 8: return TRANSPORT;
  65. case 9: return INFRA;
  66. case 10: return CBRNE;
  67. case 11: return OTHER;
  68. default: return null;
  69. }
  70. }
  71. public static com.google.protobuf.Internal.EnumLiteMap<Category>
  72. internalGetValueMap() {
  73. return internalValueMap;
  74. }
  75. private static com.google.protobuf.Internal.EnumLiteMap<Category>
  76. internalValueMap =
  77. new com.google.protobuf.Internal.EnumLiteMap<Category>() {
  78. public Category findValueByNumber(int number) {
  79. return Category.valueOf(number);
  80. }
  81. };
  82. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  83. getValueDescriptor() {
  84. return getDescriptor().getValues().get(index);
  85. }
  86. public final com.google.protobuf.Descriptors.EnumDescriptor
  87. getDescriptorForType() {
  88. return getDescriptor();
  89. }
  90. public static final com.google.protobuf.Descriptors.EnumDescriptor
  91. getDescriptor() {
  92. return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(0);
  93. }
  94. private static final Category[] VALUES = {
  95. GEO, MET, SAFETY, SECURITY, RESCUE, FIRE, HEALTH, ENV, TRANSPORT, INFRA, CBRNE, OTHER,
  96. };
  97. public static Category valueOf(
  98. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  99. if (desc.getType() != getDescriptor()) {
  100. throw new java.lang.IllegalArgumentException(
  101. "EnumValueDescriptor is not for this type.");
  102. }
  103. return VALUES[desc.getIndex()];
  104. }
  105. private final int index;
  106. private final int value;
  107. private Category(int index, int value) {
  108. this.index = index;
  109. this.value = value;
  110. }
  111. // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Category)
  112. }
  113. public enum ResponseType
  114. implements com.google.protobuf.ProtocolMessageEnum {
  115. SHELTER(0, 0),
  116. EVACUATE(1, 1),
  117. PREPARE(2, 2),
  118. EXECUTE(3, 3),
  119. AVOID(4, 4),
  120. MONITOR(5, 5),
  121. ASSESS(6, 6),
  122. ALL_CLEAR(7, 7),
  123. NONE(8, 8),
  124. ;
  125. public static final int SHELTER_VALUE = 0;
  126. public static final int EVACUATE_VALUE = 1;
  127. public static final int PREPARE_VALUE = 2;
  128. public static final int EXECUTE_VALUE = 3;
  129. public static final int AVOID_VALUE = 4;
  130. public static final int MONITOR_VALUE = 5;
  131. public static final int ASSESS_VALUE = 6;
  132. public static final int ALL_CLEAR_VALUE = 7;
  133. public static final int NONE_VALUE = 8;
  134. public final int getNumber() { return value; }
  135. public static ResponseType valueOf(int value) {
  136. switch (value) {
  137. case 0: return SHELTER;
  138. case 1: return EVACUATE;
  139. case 2: return PREPARE;
  140. case 3: return EXECUTE;
  141. case 4: return AVOID;
  142. case 5: return MONITOR;
  143. case 6: return ASSESS;
  144. case 7: return ALL_CLEAR;
  145. case 8: return NONE;
  146. default: return null;
  147. }
  148. }
  149. public static com.google.protobuf.Internal.EnumLiteMap<ResponseType>
  150. internalGetValueMap() {
  151. return internalValueMap;
  152. }
  153. private static com.google.protobuf.Internal.EnumLiteMap<ResponseType>
  154. internalValueMap =
  155. new com.google.protobuf.Internal.EnumLiteMap<ResponseType>() {
  156. public ResponseType findValueByNumber(int number) {
  157. return ResponseType.valueOf(number);
  158. }
  159. };
  160. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  161. getValueDescriptor() {
  162. return getDescriptor().getValues().get(index);
  163. }
  164. public final com.google.protobuf.Descriptors.EnumDescriptor
  165. getDescriptorForType() {
  166. return getDescriptor();
  167. }
  168. public static final com.google.protobuf.Descriptors.EnumDescriptor
  169. getDescriptor() {
  170. return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(1);
  171. }
  172. private static final ResponseType[] VALUES = {
  173. SHELTER, EVACUATE, PREPARE, EXECUTE, AVOID, MONITOR, ASSESS, ALL_CLEAR, NONE,
  174. };
  175. public static ResponseType valueOf(
  176. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  177. if (desc.getType() != getDescriptor()) {
  178. throw new java.lang.IllegalArgumentException(
  179. "EnumValueDescriptor is not for this type.");
  180. }
  181. return VALUES[desc.getIndex()];
  182. }
  183. private final int index;
  184. private final int value;
  185. private ResponseType(int index, int value) {
  186. this.index = index;
  187. this.value = value;
  188. }
  189. // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.ResponseType)
  190. }
  191. public enum Urgency
  192. implements com.google.protobuf.ProtocolMessageEnum {
  193. IMMEDIATE(0, 0),
  194. EXPECTED(1, 1),
  195. FUTURE(2, 2),
  196. PAST(3, 3),
  197. UNKNOWN_URGENCY(4, 4),
  198. ;
  199. public static final int IMMEDIATE_VALUE = 0;
  200. public static final int EXPECTED_VALUE = 1;
  201. public static final int FUTURE_VALUE = 2;
  202. public static final int PAST_VALUE = 3;
  203. public static final int UNKNOWN_URGENCY_VALUE = 4;
  204. public final int getNumber() { return value; }
  205. public static Urgency valueOf(int value) {
  206. switch (value) {
  207. case 0: return IMMEDIATE;
  208. case 1: return EXPECTED;
  209. case 2: return FUTURE;
  210. case 3: return PAST;
  211. case 4: return UNKNOWN_URGENCY;
  212. default: return null;
  213. }
  214. }
  215. public static com.google.protobuf.Internal.EnumLiteMap<Urgency>
  216. internalGetValueMap() {
  217. return internalValueMap;
  218. }
  219. private static com.google.protobuf.Internal.EnumLiteMap<Urgency>
  220. internalValueMap =
  221. new com.google.protobuf.Internal.EnumLiteMap<Urgency>() {
  222. public Urgency findValueByNumber(int number) {
  223. return Urgency.valueOf(number);
  224. }
  225. };
  226. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  227. getValueDescriptor() {
  228. return getDescriptor().getValues().get(index);
  229. }
  230. public final com.google.protobuf.Descriptors.EnumDescriptor
  231. getDescriptorForType() {
  232. return getDescriptor();
  233. }
  234. public static final com.google.protobuf.Descriptors.EnumDescriptor
  235. getDescriptor() {
  236. return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(2);
  237. }
  238. private static final Urgency[] VALUES = {
  239. IMMEDIATE, EXPECTED, FUTURE, PAST, UNKNOWN_URGENCY,
  240. };
  241. public static Urgency valueOf(
  242. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  243. if (desc.getType() != getDescriptor()) {
  244. throw new java.lang.IllegalArgumentException(
  245. "EnumValueDescriptor is not for this type.");
  246. }
  247. return VALUES[desc.getIndex()];
  248. }
  249. private final int index;
  250. private final int value;
  251. private Urgency(int index, int value) {
  252. this.index = index;
  253. this.value = value;
  254. }
  255. // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Urgency)
  256. }
  257. public enum Severity
  258. implements com.google.protobuf.ProtocolMessageEnum {
  259. EXTREME(0, 0),
  260. SEVERE(1, 1),
  261. MODERATE(2, 2),
  262. MINOR(3, 3),
  263. UNKNOWN_SEVERITY(4, 4),
  264. ;
  265. public static final int EXTREME_VALUE = 0;
  266. public static final int SEVERE_VALUE = 1;
  267. public static final int MODERATE_VALUE = 2;
  268. public static final int MINOR_VALUE = 3;
  269. public static final int UNKNOWN_SEVERITY_VALUE = 4;
  270. public final int getNumber() { return value; }
  271. public static Severity valueOf(int value) {
  272. switch (value) {
  273. case 0: return EXTREME;
  274. case 1: return SEVERE;
  275. case 2: return MODERATE;
  276. case 3: return MINOR;
  277. case 4: return UNKNOWN_SEVERITY;
  278. default: return null;
  279. }
  280. }
  281. public static com.google.protobuf.Internal.EnumLiteMap<Severity>
  282. internalGetValueMap() {
  283. return internalValueMap;
  284. }
  285. private static com.google.protobuf.Internal.EnumLiteMap<Severity>
  286. internalValueMap =
  287. new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
  288. public Severity findValueByNumber(int number) {
  289. return Severity.valueOf(number);
  290. }
  291. };
  292. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  293. getValueDescriptor() {
  294. return getDescriptor().getValues().get(index);
  295. }
  296. public final com.google.protobuf.Descriptors.EnumDescriptor
  297. getDescriptorForType() {
  298. return getDescriptor();
  299. }
  300. public static final com.google.protobuf.Descriptors.EnumDescriptor
  301. getDescriptor() {
  302. return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(3);
  303. }
  304. private static final Severity[] VALUES = {
  305. EXTREME, SEVERE, MODERATE, MINOR, UNKNOWN_SEVERITY,
  306. };
  307. public static Severity valueOf(
  308. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  309. if (desc.getType() != getDescriptor()) {
  310. throw new java.lang.IllegalArgumentException(
  311. "EnumValueDescriptor is not for this type.");
  312. }
  313. return VALUES[desc.getIndex()];
  314. }
  315. private final int index;
  316. private final int value;
  317. private Severity(int index, int value) {
  318. this.index = index;
  319. this.value = value;
  320. }
  321. // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Severity)
  322. }
  323. public enum Certainty
  324. implements com.google.protobuf.ProtocolMessageEnum {
  325. OBSERVED(0, 0),
  326. VERY_LIKELY(1, 1),
  327. LIKELY(2, 2),
  328. POSSIBLE(3, 3),
  329. UNLIKELY(4, 4),
  330. UNKNOWN_CERTAINTY(5, 5),
  331. ;
  332. public static final int OBSERVED_VALUE = 0;
  333. public static final int VERY_LIKELY_VALUE = 1;
  334. public static final int LIKELY_VALUE = 2;
  335. public static final int POSSIBLE_VALUE = 3;
  336. public static final int UNLIKELY_VALUE = 4;
  337. public static final int UNKNOWN_CERTAINTY_VALUE = 5;
  338. public final int getNumber() { return value; }
  339. public static Certainty valueOf(int value) {
  340. switch (value) {
  341. case 0: return OBSERVED;
  342. case 1: return VERY_LIKELY;
  343. case 2: return LIKELY;
  344. case 3: return POSSIBLE;
  345. case 4: return UNLIKELY;
  346. case 5: return UNKNOWN_CERTAINTY;
  347. default: return null;
  348. }
  349. }
  350. public static com.google.protobuf.Internal.EnumLiteMap<Certainty>
  351. internalGetValueMap() {
  352. return internalValueMap;
  353. }
  354. private static com.google.protobuf.Internal.EnumLiteMap<Certainty>
  355. internalValueMap =
  356. new com.google.protobuf.Internal.EnumLiteMap<Certainty>() {
  357. public Certainty findValueByNumber(int number) {
  358. return Certainty.valueOf(number);
  359. }
  360. };
  361. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  362. getValueDescriptor() {
  363. return getDescriptor().getValues().get(index);
  364. }
  365. public final com.google.protobuf.Descriptors.EnumDescriptor
  366. getDescriptorForType() {
  367. return getDescriptor();
  368. }
  369. public static final com.google.protobuf.Descriptors.EnumDescriptor
  370. getDescriptor() {
  371. return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(4);
  372. }
  373. private static final Certainty[] VALUES = {
  374. OBSERVED, VERY_LIKELY, LIKELY, POSSIBLE, UNLIKELY, UNKNOWN_CERTAINTY,
  375. };
  376. public static Certainty valueOf(
  377. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  378. if (desc.getType() != getDescriptor()) {
  379. throw new java.lang.IllegalArgumentException(
  380. "EnumValueDescriptor is not for this type.");
  381. }
  382. return VALUES[desc.getIndex()];
  383. }
  384. private final int index;
  385. private final int value;
  386. private Certainty(int index, int value) {
  387. this.index = index;
  388. this.value = value;
  389. }
  390. // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Certainty)
  391. }
  392. private int bitField0_;
  393. // optional string language = 1 [default = "en-US"];
  394. public static final int LANGUAGE_FIELD_NUMBER = 1;
  395. private java.lang.Object language_;
  396. public boolean hasLanguage() {
  397. return ((bitField0_ & 0x00000001) == 0x00000001);
  398. }
  399. public String getLanguage() {
  400. java.lang.Object ref = language_;
  401. if (ref instanceof String) {
  402. return (String) ref;
  403. } else {
  404. com.google.protobuf.ByteString bs =
  405. (com.google.protobuf.ByteString) ref;
  406. String s = bs.toStringUtf8();
  407. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  408. language_ = s;
  409. }
  410. return s;
  411. }
  412. }
  413. private com.google.protobuf.ByteString getLanguageBytes() {
  414. java.lang.Object ref = language_;
  415. if (ref instanceof String) {
  416. com.google.protobuf.ByteString b =
  417. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  418. language_ = b;
  419. return b;
  420. } else {
  421. return (com.google.protobuf.ByteString) ref;
  422. }
  423. }
  424. // repeated .publicalerts.cap.Info.Category category = 2;
  425. public static final int CATEGORY_FIELD_NUMBER = 2;
  426. private java.util.List<com.google.publicalerts.cap.Info.Category> category_;
  427. public java.util.List<com.google.publicalerts.cap.Info.Category> getCategoryList() {
  428. return category_;
  429. }
  430. public int getCategoryCount() {
  431. return category_.size();
  432. }
  433. public com.google.publicalerts.cap.Info.Category getCategory(int index) {
  434. return category_.get(index);
  435. }
  436. // required string event = 3;
  437. public static final int EVENT_FIELD_NUMBER = 3;
  438. private java.lang.Object event_;
  439. public boolean hasEvent() {
  440. return ((bitField0_ & 0x00000002) == 0x00000002);
  441. }
  442. public String getEvent() {
  443. java.lang.Object ref = event_;
  444. if (ref instanceof String) {
  445. return (String) ref;
  446. } else {
  447. com.google.protobuf.ByteString bs =
  448. (com.google.protobuf.ByteString) ref;
  449. String s = bs.toStringUtf8();
  450. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  451. event_ = s;
  452. }
  453. return s;
  454. }
  455. }
  456. private com.google.protobuf.ByteString getEventBytes() {
  457. java.lang.Object ref = event_;
  458. if (ref instanceof String) {
  459. com.google.protobuf.ByteString b =
  460. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  461. event_ = b;
  462. return b;
  463. } else {
  464. return (com.google.protobuf.ByteString) ref;
  465. }
  466. }
  467. // repeated .publicalerts.cap.Info.ResponseType response_type = 4;
  468. public static final int RESPONSE_TYPE_FIELD_NUMBER = 4;
  469. private java.util.List<com.google.publicalerts.cap.Info.ResponseType> responseType_;
  470. public java.util.List<com.google.publicalerts.cap.Info.ResponseType> getResponseTypeList() {
  471. return responseType_;
  472. }
  473. public int getResponseTypeCount() {
  474. return responseType_.size();
  475. }
  476. public com.google.publicalerts.cap.Info.ResponseType getResponseType(int index) {
  477. return responseType_.get(index);
  478. }
  479. // required .publicalerts.cap.Info.Urgency urgency = 5;
  480. public static final int URGENCY_FIELD_NUMBER = 5;
  481. private com.google.publicalerts.cap.Info.Urgency urgency_;
  482. public boolean hasUrgency() {
  483. return ((bitField0_ & 0x00000004) == 0x00000004);
  484. }
  485. public com.google.publicalerts.cap.Info.Urgency getUrgency() {
  486. return urgency_;
  487. }
  488. // required .publicalerts.cap.Info.Severity severity = 6;
  489. public static final int SEVERITY_FIELD_NUMBER = 6;
  490. private com.google.publicalerts.cap.Info.Severity severity_;
  491. public boolean hasSeverity() {
  492. return ((bitField0_ & 0x00000008) == 0x00000008);
  493. }
  494. public com.google.publicalerts.cap.Info.Severity getSeverity() {
  495. return severity_;
  496. }
  497. // required .publicalerts.cap.Info.Certainty certainty = 7;
  498. public static final int CERTAINTY_FIELD_NUMBER = 7;
  499. private com.google.publicalerts.cap.Info.Certainty certainty_;
  500. public boolean hasCertainty() {
  501. return ((bitField0_ & 0x00000010) == 0x00000010);
  502. }
  503. public com.google.publicalerts.cap.Info.Certainty getCertainty() {
  504. return certainty_;
  505. }
  506. // optional string audience = 8;
  507. public static final int AUDIENCE_FIELD_NUMBER = 8;
  508. private java.lang.Object audience_;
  509. public boolean hasAudience() {
  510. return ((bitField0_ & 0x00000020) == 0x00000020);
  511. }
  512. public String getAudience() {
  513. java.lang.Object ref = audience_;
  514. if (ref instanceof String) {
  515. return (String) ref;
  516. } else {
  517. com.google.protobuf.ByteString bs =
  518. (com.google.protobuf.ByteString) ref;
  519. String s = bs.toStringUtf8();
  520. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  521. audience_ = s;
  522. }
  523. return s;
  524. }
  525. }
  526. private com.google.protobuf.ByteString getAudienceBytes() {
  527. java.lang.Object ref = audience_;
  528. if (ref instanceof String) {
  529. com.google.protobuf.ByteString b =
  530. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  531. audience_ = b;
  532. return b;
  533. } else {
  534. return (com.google.protobuf.ByteString) ref;
  535. }
  536. }
  537. // repeated .publicalerts.cap.ValuePair event_code = 9;
  538. public static final int EVENT_CODE_FIELD_NUMBER = 9;
  539. private java.util.List<com.google.publicalerts.cap.ValuePair> eventCode_;
  540. public java.util.List<com.google.publicalerts.cap.ValuePair> getEventCodeList() {
  541. return eventCode_;
  542. }
  543. public java.util.List<? extends com.google.publicalerts.cap.ValuePairOrBuilder>
  544. getEventCodeOrBuilderList() {
  545. return eventCode_;
  546. }
  547. public int getEventCodeCount() {
  548. return eventCode_.size();
  549. }
  550. public com.google.publicalerts.cap.ValuePair getEventCode(int index) {
  551. return eventCode_.get(index);
  552. }
  553. public com.google.publicalerts.cap.ValuePairOrBuilder getEventCodeOrBuilder(
  554. int index) {
  555. return eventCode_.get(index);
  556. }
  557. // optional string effective = 10;
  558. public static final int EFFECTIVE_FIELD_NUMBER = 10;
  559. private java.lang.Object effective_;
  560. public boolean hasEffective() {
  561. return ((bitField0_ & 0x00000040) == 0x00000040);
  562. }
  563. public String getEffective() {
  564. java.lang.Object ref = effective_;
  565. if (ref instanceof String) {
  566. return (String) ref;
  567. } else {
  568. com.google.protobuf.ByteString bs =
  569. (com.google.protobuf.ByteString) ref;
  570. String s = bs.toStringUtf8();
  571. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  572. effective_ = s;
  573. }
  574. return s;
  575. }
  576. }
  577. private com.google.protobuf.ByteString getEffectiveBytes() {
  578. java.lang.Object ref = effective_;
  579. if (ref instanceof String) {
  580. com.google.protobuf.ByteString b =
  581. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  582. effective_ = b;
  583. return b;
  584. } else {
  585. return (com.google.protobuf.ByteString) ref;
  586. }
  587. }
  588. // optional string onset = 11;
  589. public static final int ONSET_FIELD_NUMBER = 11;
  590. private java.lang.Object onset_;
  591. public boolean hasOnset() {
  592. return ((bitField0_ & 0x00000080) == 0x00000080);
  593. }
  594. public String getOnset() {
  595. java.lang.Object ref = onset_;
  596. if (ref instanceof String) {
  597. return (String) ref;
  598. } else {
  599. com.google.protobuf.ByteString bs =
  600. (com.google.protobuf.ByteString) ref;
  601. String s = bs.toStringUtf8();
  602. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  603. onset_ = s;
  604. }
  605. return s;
  606. }
  607. }
  608. private com.google.protobuf.ByteString getOnsetBytes() {
  609. java.lang.Object ref = onset_;
  610. if (ref instanceof String) {
  611. com.google.protobuf.ByteString b =
  612. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  613. onset_ = b;
  614. return b;
  615. } else {
  616. return (com.google.protobuf.ByteString) ref;
  617. }
  618. }
  619. // optional string expires = 12;
  620. public static final int EXPIRES_FIELD_NUMBER = 12;
  621. private java.lang.Object expires_;
  622. public boolean hasExpires() {
  623. return ((bitField0_ & 0x00000100) == 0x00000100);
  624. }
  625. public String getExpires() {
  626. java.lang.Object ref = expires_;
  627. if (ref instanceof String) {
  628. return (String) ref;
  629. } else {
  630. com.google.protobuf.ByteString bs =
  631. (com.google.protobuf.ByteString) ref;
  632. String s = bs.toStringUtf8();
  633. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  634. expires_ = s;
  635. }
  636. return s;
  637. }
  638. }
  639. private com.google.protobuf.ByteString getExpiresBytes() {
  640. java.lang.Object ref = expires_;
  641. if (ref instanceof String) {
  642. com.google.protobuf.ByteString b =
  643. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  644. expires_ = b;
  645. return b;
  646. } else {
  647. return (com.google.protobuf.ByteString) ref;
  648. }
  649. }
  650. // optional string sender_name = 13;
  651. public static final int SENDER_NAME_FIELD_NUMBER = 13;
  652. private java.lang.Object senderName_;
  653. public boolean hasSenderName() {
  654. return ((bitField0_ & 0x00000200) == 0x00000200);
  655. }
  656. public String getSenderName() {
  657. java.lang.Object ref = senderName_;
  658. if (ref instanceof String) {
  659. return (String) ref;
  660. } else {
  661. com.google.protobuf.ByteString bs =
  662. (com.google.protobuf.ByteString) ref;
  663. String s = bs.toStringUtf8();
  664. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  665. senderName_ = s;
  666. }
  667. return s;
  668. }
  669. }
  670. private com.google.protobuf.ByteString getSenderNameBytes() {
  671. java.lang.Object ref = senderName_;
  672. if (ref instanceof String) {
  673. com.google.protobuf.ByteString b =
  674. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  675. senderName_ = b;
  676. return b;
  677. } else {
  678. return (com.google.protobuf.ByteString) ref;
  679. }
  680. }
  681. // optional string headline = 14;
  682. public static final int HEADLINE_FIELD_NUMBER = 14;
  683. private java.lang.Object headline_;
  684. public boolean hasHeadline() {
  685. return ((bitField0_ & 0x00000400) == 0x00000400);
  686. }
  687. public String getHeadline() {
  688. java.lang.Object ref = headline_;
  689. if (ref instanceof String) {
  690. return (String) ref;
  691. } else {
  692. com.google.protobuf.ByteString bs =
  693. (com.google.protobuf.ByteString) ref;
  694. String s = bs.toStringUtf8();
  695. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  696. headline_ = s;
  697. }
  698. return s;
  699. }
  700. }
  701. private com.google.protobuf.ByteString getHeadlineBytes() {
  702. java.lang.Object ref = headline_;
  703. if (ref instanceof String) {
  704. com.google.protobuf.ByteString b =
  705. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  706. headline_ = b;
  707. return b;
  708. } else {
  709. return (com.google.protobuf.ByteString) ref;
  710. }
  711. }
  712. // optional string description = 15;
  713. public static final int DESCRIPTION_FIELD_NUMBER = 15;
  714. private java.lang.Object description_;
  715. public boolean hasDescription() {
  716. return ((bitField0_ & 0x00000800) == 0x00000800);
  717. }
  718. public String getDescription() {
  719. java.lang.Object ref = description_;
  720. if (ref instanceof String) {
  721. return (String) ref;
  722. } else {
  723. com.google.protobuf.ByteString bs =
  724. (com.google.protobuf.ByteString) ref;
  725. String s = bs.toStringUtf8();
  726. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  727. description_ = s;
  728. }
  729. return s;
  730. }
  731. }
  732. private com.google.protobuf.ByteString getDescriptionBytes() {
  733. java.lang.Object ref = description_;
  734. if (ref instanceof String) {
  735. com.google.protobuf.ByteString b =
  736. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  737. description_ = b;
  738. return b;
  739. } else {
  740. return (com.google.protobuf.ByteString) ref;
  741. }
  742. }
  743. // optional string instruction = 16;
  744. public static final int INSTRUCTION_FIELD_NUMBER = 16;
  745. private java.lang.Object instruction_;
  746. public boolean hasInstruction() {
  747. return ((bitField0_ & 0x00001000) == 0x00001000);
  748. }
  749. public String getInstruction() {
  750. java.lang.Object ref = instruction_;
  751. if (ref instanceof String) {
  752. return (String) ref;
  753. } else {
  754. com.google.protobuf.ByteString bs =
  755. (com.google.protobuf.ByteString) ref;
  756. String s = bs.toStringUtf8();
  757. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  758. instruction_ = s;
  759. }
  760. return s;
  761. }
  762. }
  763. private com.google.protobuf.ByteString getInstructionBytes() {
  764. java.lang.Object ref = instruction_;
  765. if (ref instanceof String) {
  766. com.google.protobuf.ByteString b =
  767. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  768. instruction_ = b;
  769. return b;
  770. } else {
  771. return (com.google.protobuf.ByteString) ref;
  772. }
  773. }
  774. // optional string web = 17;
  775. public static final int WEB_FIELD_NUMBER = 17;
  776. private java.lang.Object web_;
  777. public boolean hasWeb() {
  778. return ((bitField0_ & 0x00002000) == 0x00002000);
  779. }
  780. public String getWeb() {
  781. java.lang.Object ref = web_;
  782. if (ref instanceof String) {
  783. return (String) ref;
  784. } else {
  785. com.google.protobuf.ByteString bs =
  786. (com.google.protobuf.ByteString) ref;
  787. String s = bs.toStringUtf8();
  788. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  789. web_ = s;
  790. }
  791. return s;
  792. }
  793. }
  794. private com.google.protobuf.ByteString getWebBytes() {
  795. java.lang.Object ref = web_;
  796. if (ref instanceof String) {
  797. com.google.protobuf.ByteString b =
  798. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  799. web_ = b;
  800. return b;
  801. } else {
  802. return (com.google.protobuf.ByteString) ref;
  803. }
  804. }
  805. // optional string contact = 18;
  806. public static final int CONTACT_FIELD_NUMBER = 18;
  807. private java.lang.Object contact_;
  808. public boolean hasContact() {
  809. return ((bitField0_ & 0x00004000) == 0x00004000);
  810. }
  811. public String getContact() {
  812. java.lang.Object ref = contact_;
  813. if (ref instanceof String) {
  814. return (String) ref;
  815. } else {
  816. com.google.protobuf.ByteString bs =
  817. (com.google.protobuf.ByteString) ref;
  818. String s = bs.toStringUtf8();
  819. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  820. contact_ = s;
  821. }
  822. return s;
  823. }
  824. }
  825. private com.google.protobuf.ByteString getContactBytes() {
  826. java.lang.Object ref = contact_;
  827. if (ref instanceof String) {
  828. com.google.protobuf.ByteString b =
  829. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  830. contact_ = b;
  831. return b;
  832. } else {
  833. return (com.google.protobuf.ByteString) ref;
  834. }
  835. }
  836. // repeated .publicalerts.cap.ValuePair parameter = 19;
  837. public static final int PARAMETER_FIELD_NUMBER = 19;
  838. private java.util.List<com.google.publicalerts.cap.ValuePair> parameter_;
  839. public java.util.List<com.google.publicalerts.cap.ValuePair> getParameterList() {
  840. return parameter_;
  841. }
  842. public java.util.List<? extends com.google.publicalerts.cap.ValuePairOrBuilder>
  843. getParameterOrBuilderList() {
  844. return parameter_;
  845. }
  846. public int getParameterCount() {
  847. return parameter_.size();
  848. }
  849. public com.google.publicalerts.cap.ValuePair getParameter(int index) {
  850. return parameter_.get(index);
  851. }
  852. public com.google.publicalerts.cap.ValuePairOrBuilder getParameterOrBuilder(
  853. int index) {
  854. return parameter_.get(index);
  855. }
  856. // repeated .publicalerts.cap.Resource resource = 20;
  857. public static final int RESOURCE_FIELD_NUMBER = 20;
  858. private java.util.List<com.google.publicalerts.cap.Resource> resource_;
  859. public java.util.List<com.google.publicalerts.cap.Resource> getResourceList() {
  860. return resource_;
  861. }
  862. public java.util.List<? extends com.google.publicalerts.cap.ResourceOrBuilder>
  863. getResourceOrBuilderList() {
  864. return resource_;
  865. }
  866. public int getResourceCount() {
  867. return resource_.size();
  868. }
  869. public com.google.publicalerts.cap.Resource getResource(int index) {
  870. return resource_.get(index);
  871. }
  872. public com.google.publicalerts.cap.ResourceOrBuilder getResourceOrBuilder(
  873. int index) {
  874. return resource_.get(index);
  875. }
  876. // repeated .publicalerts.cap.Area area = 21;
  877. public static final int AREA_FIELD_NUMBER = 21;
  878. private java.util.List<com.google.publicalerts.cap.Area> area_;
  879. public java.util.List<com.google.publicalerts.cap.Area> getAreaList() {
  880. return area_;
  881. }
  882. public java.util.List<? extends com.google.publicalerts.cap.AreaOrBuilder>
  883. getAreaOrBuilderList() {
  884. return area_;
  885. }
  886. public int getAreaCount() {
  887. return area_.size();
  888. }
  889. public com.google.publicalerts.cap.Area getArea(int index) {
  890. return area_.get(index);
  891. }
  892. public com.google.publicalerts.cap.AreaOrBuilder getAreaOrBuilder(
  893. int index) {
  894. return area_.get(index);
  895. }
  896. private void initFields() {
  897. language_ = "en-US";
  898. category_ = java.util.Collections.emptyList();
  899. event_ = "";
  900. responseType_ = java.util.Collections.emptyList();
  901. urgency_ = com.google.publicalerts.cap.Info.Urgency.IMMEDIATE;
  902. severity_ = com.google.publicalerts.cap.Info.Severity.EXTREME;
  903. certainty_ = com.google.publicalerts.cap.Info.Certainty.OBSERVED;
  904. audience_ = "";
  905. eventCode_ = java.util.Collections.emptyList();
  906. effective_ = "";
  907. onset_ = "";
  908. expires_ = "";
  909. senderName_ = "";
  910. headline_ = "";
  911. description_ = "";
  912. instruction_ = "";
  913. web_ = "";
  914. contact_ = "";
  915. parameter_ = java.util.Collections.emptyList();
  916. resource_ = java.util.Collections.emptyList();
  917. area_ = java.util.Collections.emptyList();
  918. }
  919. private byte memoizedIsInitialized = -1;
  920. public final boolean isInitialized() {
  921. byte isInitialized = memoizedIsInitialized;
  922. if (isInitialized != -1) return isInitialized == 1;
  923. if (!hasEvent()) {
  924. memoizedIsInitialized = 0;
  925. return false;
  926. }
  927. if (!hasUrgency()) {
  928. memoizedIsInitialized = 0;
  929. return false;
  930. }
  931. if (!hasSeverity()) {
  932. memoizedIsInitialized = 0;
  933. return false;
  934. }
  935. if (!hasCertainty()) {
  936. memoizedIsInitialized = 0;
  937. return false;
  938. }
  939. for (int i = 0; i < getEventCodeCount(); i++) {
  940. if (!getEventCode(i).isInitialized()) {
  941. memoizedIsInitialized = 0;
  942. return false;
  943. }
  944. }
  945. for (int i = 0; i < getParameterCount(); i++) {
  946. if (!getParameter(i).isInitialized()) {
  947. memoizedIsInitialized = 0;
  948. return false;
  949. }
  950. }
  951. for (int i = 0; i < getResourceCount(); i++) {
  952. if (!getResource(i).isInitialized()) {
  953. memoizedIsInitialized = 0;
  954. return false;
  955. }
  956. }
  957. for (int i = 0; i < getAreaCount(); i++) {
  958. if (!getArea(i).isInitialized()) {
  959. memoizedIsInitialized = 0;
  960. return false;
  961. }
  962. }
  963. memoizedIsInitialized = 1;
  964. return true;
  965. }
  966. public void writeTo(com.google.protobuf.CodedOutputStream output)
  967. throws java.io.IOException {
  968. getSerializedSize();
  969. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  970. output.writeBytes(1, getLanguageBytes());
  971. }
  972. for (int i = 0; i < category_.size(); i++) {
  973. output.writeEnum(2, category_.get(i).getNumber());
  974. }
  975. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  976. output.writeBytes(3, getEventBytes());
  977. }
  978. for (int i = 0; i < responseType_.size(); i++) {
  979. output.writeEnum(4, responseType_.get(i).getNumber());
  980. }
  981. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  982. output.writeEnum(5, urgency_.getNumber());
  983. }
  984. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  985. output.writeEnum(6, severity_.getNumber());
  986. }
  987. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  988. output.writeEnum(7, certainty_.getNumber());
  989. }
  990. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  991. output.writeBytes(8, getAudienceBytes());
  992. }
  993. for (int i = 0; i < eventCode_.size(); i++) {
  994. output.writeMessage(9, eventCode_.get(i));
  995. }
  996. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  997. output.writeBytes(10, getEffectiveBytes());
  998. }
  999. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  1000. output.writeBytes(11, getOnsetBytes());
  1001. }
  1002. if (((bitField0_ & 0x00000100) == 0x00000100)) {
  1003. output.writeBytes(12, getExpiresBytes());
  1004. }
  1005. if (((bitField0_ & 0x00000200) == 0x00000200)) {
  1006. output.writeBytes(13, getSenderNameBytes());
  1007. }
  1008. if (((bitField0_ & 0x00000400) == 0x00000400)) {
  1009. output.writeBytes(14, getHeadlineBytes());
  1010. }
  1011. if (((bitField0_ & 0x00000800) == 0x00000800)) {
  1012. output.writeBytes(15, getDescriptionBytes());
  1013. }
  1014. if (((bitField0_ & 0x00001000) == 0x00001000)) {
  1015. output.writeBytes(16, getInstructionBytes());
  1016. }
  1017. if (((bitField0_ & 0x00002000) == 0x00002000)) {
  1018. output.writeBytes(17, getWebBytes());
  1019. }
  1020. if (((bitField0_ & 0x00004000) == 0x00004000)) {
  1021. output.writeBytes(18, getContactBytes());
  1022. }
  1023. for (int i = 0; i < parameter_.size(); i++) {
  1024. output.writeMessage(19, parameter_.get(i));
  1025. }
  1026. for (int i = 0; i < resource_.size(); i++) {
  1027. output.writeMessage(20, resource_.get(i));
  1028. }
  1029. for (int i = 0; i < area_.size(); i++) {
  1030. output.writeMessage(21, area_.get(i));
  1031. }
  1032. getUnknownFields().writeTo(output);
  1033. }
  1034. private int memoizedSerializedSize = -1;
  1035. public int getSerializedSize() {
  1036. int size = memoizedSerializedSize;
  1037. if (size != -1) return size;
  1038. size = 0;
  1039. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  1040. size += com.google.protobuf.CodedOutputStream
  1041. .computeBytesSize(1, getLanguageBytes());
  1042. }
  1043. {
  1044. int dataSize = 0;
  1045. for (int i = 0; i < category_.size(); i++) {
  1046. dataSize += com.google.protobuf.CodedOutputStream
  1047. .computeEnumSizeNoTag(category_.get(i).getNumber());
  1048. }
  1049. size += dataSize;
  1050. size += 1 * category_.size();
  1051. }
  1052. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  1053. size += com.google.protobuf.CodedOutputStream
  1054. .computeBytesSize(3, getEventBytes());
  1055. }
  1056. {
  1057. int dataSize = 0;
  1058. for (int i = 0; i < responseType_.size(); i++) {
  1059. dataSize += com.google.protobuf.CodedOutputStream
  1060. .computeEnumSizeNoTag(responseType_.get(i).getNumber());
  1061. }
  1062. size += dataSize;
  1063. size += 1 * responseType_.size();
  1064. }
  1065. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1066. size += com.google.protobuf.CodedOutputStream
  1067. .computeEnumSize(5, urgency_.getNumber());
  1068. }
  1069. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  1070. size += com.google.protobuf.CodedOutputStream
  1071. .computeEnumSize(6, severity_.getNumber());
  1072. }
  1073. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  1074. size += com.google.protobuf.CodedOutputStream
  1075. .computeEnumSize(7, certainty_.getNumber());
  1076. }
  1077. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  1078. size += com.google.protobuf.CodedOutputStream
  1079. .computeBytesSize(8, getAudienceBytes());
  1080. }
  1081. for (int i = 0; i < eventCode_.size(); i++) {
  1082. size += com.google.protobuf.CodedOutputStream
  1083. .computeMessageSize(9, eventCode_.get(i));
  1084. }
  1085. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  1086. size += com.google.protobuf.CodedOutputStream
  1087. .computeBytesSize(10, getEffectiveBytes());
  1088. }
  1089. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  1090. size += com.google.protobuf.CodedOutputStream
  1091. .computeBytesSize(11, getOnsetBytes());
  1092. }
  1093. if (((bitField0_ & 0x00000100) == 0x00000100)) {
  1094. size += com.google.protobuf.CodedOutputStream
  1095. .computeBytesSize(12, getExpiresBytes());
  1096. }
  1097. if (((bitField0_ & 0x00000200) == 0x00000200)) {
  1098. size += com.google.protobuf.CodedOutputStream
  1099. .computeBytesSize(13, getSenderNameBytes());
  1100. }
  1101. if (((bitField0_ & 0x00000400) == 0x00000400)) {
  1102. size += com.google.protobuf.CodedOutputStream
  1103. .computeBytesSize(14, getHeadlineBytes());
  1104. }
  1105. if (((bitField0_ & 0x00000800) == 0x00000800)) {
  1106. size += com.google.protobuf.CodedOutputStream
  1107. .computeBytesSize(15, getDescriptionBytes());
  1108. }
  1109. if (((bitField0_ & 0x00001000) == 0x00001000)) {
  1110. size += com.google.protobuf.CodedOutputStream
  1111. .computeBytesSize(16, getInstructionBytes());
  1112. }
  1113. if (((bitField0_ & 0x00002000) == 0x00002000)) {
  1114. size += com.google.protobuf.CodedOutputStream
  1115. .computeBytesSize(17, getWebBytes());
  1116. }
  1117. if (((bitField0_ & 0x00004000) == 0x00004000)) {
  1118. size += com.google.protobuf.CodedOutputStream
  1119. .computeBytesSize(18, getContactBytes());
  1120. }
  1121. for (int i = 0; i < parameter_.size(); i++) {
  1122. size += com.google.protobuf.CodedOutputStream
  1123. .computeMessageSize(19, parameter_.get(i));
  1124. }
  1125. for (int i = 0; i < resource_.size(); i++) {
  1126. size += com.google.protobuf.CodedOutputStream
  1127. .computeMessageSize(20, resource_.get(i));
  1128. }
  1129. for (int i = 0; i < area_.size(); i++) {
  1130. size += com.google.protobuf.CodedOutputStream
  1131. .computeMessageSize(21, area_.get(i));
  1132. }
  1133. size += getUnknownFields().getSerializedSize();
  1134. memoizedSerializedSize = size;
  1135. return size;
  1136. }
  1137. private static final long serialVersionUID = 0L;
  1138. @java.lang.Override
  1139. protected java.lang.Object writeReplace()
  1140. throws java.io.ObjectStreamException {
  1141. return super.writeReplace();
  1142. }
  1143. @java.lang.Override
  1144. public boolean equals(final java.lang.Object obj) {
  1145. if (obj == this) {
  1146. return true;
  1147. }
  1148. if (!(obj instanceof com.google.publicalerts.cap.Info)) {
  1149. return super.equals(obj);
  1150. }
  1151. com.google.publicalerts.cap.Info other = (com.google.publicalerts.cap.Info) obj;
  1152. boolean result = true;
  1153. result = result && (hasLanguage() == other.hasLanguage());
  1154. if (hasLanguage()) {
  1155. result = result && getLanguage()
  1156. .equals(other.getLanguage());
  1157. }
  1158. result = result && getCategoryList()
  1159. .equals(other.getCategoryList());
  1160. result = result && (hasEvent() == other.hasEvent());
  1161. if (hasEvent()) {
  1162. result = result && getEvent()
  1163. .equals(other.getEvent());
  1164. }
  1165. result = result && getResponseTypeList()
  1166. .equals(other.getResponseTypeList());
  1167. result = result && (hasUrgency() == other.hasUrgency());
  1168. if (hasUrgency()) {
  1169. result = result &&
  1170. (getUrgency() == other.getUrgency());
  1171. }
  1172. result = result && (hasSeverity() == other.hasSeverity());
  1173. if (hasSeverity()) {
  1174. result = result &&
  1175. (getSeverity() == other.getSeverity());
  1176. }
  1177. result = result && (hasCertainty() == other.hasCertainty());
  1178. if (hasCertainty()) {
  1179. result = result &&
  1180. (getCertainty() == other.getCertainty());
  1181. }
  1182. result = result && (hasAudience() == other.hasAudience());
  1183. if (hasAudience()) {
  1184. result = result && getAudience()
  1185. .equals(other.getAudience());
  1186. }
  1187. result = result && getEventCodeList()
  1188. .equals(other.getEventCodeList());
  1189. result = result && (hasEffective() == other.hasEffective());
  1190. if (hasEffective()) {
  1191. result = result && getEffective()
  1192. .equals(other.getEffective());
  1193. }
  1194. result = result && (hasOnset() == other.hasOnset());
  1195. if (hasOnset()) {
  1196. result = result && getOnset()
  1197. .equals(other.getOnset());
  1198. }
  1199. result = result && (hasExpires() == other.hasExpires());
  1200. if (hasExpires()) {
  1201. result = result && getExpires()
  1202. .equals(other.getExpires());
  1203. }
  1204. result = result && (hasSenderName() == other.hasSenderName());
  1205. if (hasSenderName()) {
  1206. result = result && getSenderName()
  1207. .equals(other.getSenderName());
  1208. }
  1209. result = result && (hasHeadline() == other.hasHeadline());
  1210. if (hasHeadline()) {
  1211. result = result && getHeadline()
  1212. .equals(other.getHeadline());
  1213. }
  1214. result = result && (hasDescription() == other.hasDescription());
  1215. if (hasDescription()) {
  1216. result = result && getDescription()
  1217. .equals(other.getDescription());
  1218. }
  1219. result = result && (hasInstruction() == other.hasInstruction());
  1220. if (hasInstruction()) {
  1221. result = result && getInstruction()
  1222. .equals(other.getInstruction());
  1223. }
  1224. result = result && (hasWeb() == other.hasWeb());
  1225. if (hasWeb()) {
  1226. result = result && getWeb()
  1227. .equals(other.getWeb());
  1228. }
  1229. result = result && (hasContact() == other.hasContact());
  1230. if (hasContact()) {
  1231. result = result && getContact()
  1232. .equals(other.getContact());
  1233. }
  1234. result = result && getParameterList()
  1235. .equals(other.getParameterList());
  1236. result = result && getResourceList()
  1237. .equals(other.getResourceList());
  1238. result = result && getAreaList()
  1239. .equals(other.getAreaList());
  1240. result = result &&
  1241. getUnknownFields().equals(other.getUnknownFields());
  1242. return result;
  1243. }
  1244. @java.lang.Override
  1245. public int hashCode() {
  1246. int hash = 41;
  1247. hash = (19 * hash) + getDescriptorForType().hashCode();
  1248. if (hasLanguage()) {
  1249. hash = (37 * hash) + LANGUAGE_FIELD_NUMBER;
  1250. hash = (53 * hash) + getLanguage().hashCode();
  1251. }
  1252. if (getCategoryCount() > 0) {
  1253. hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
  1254. hash = (53 * hash) + hashEnumList(getCategoryList());
  1255. }
  1256. if (hasEvent()) {
  1257. hash = (37 * hash) + EVENT_FIELD_NUMBER;
  1258. hash = (53 * hash) + getEvent().hashCode();
  1259. }
  1260. if (getResponseTypeCount() > 0) {
  1261. hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER;
  1262. hash = (53 * hash) + hashEnumList(getResponseTypeList());
  1263. }
  1264. if (hasUrgency()) {
  1265. hash = (37 * hash) + URGENCY_FIELD_NUMBER;
  1266. hash = (53 * hash) + hashEnum(getUrgency());
  1267. }
  1268. if (hasSeverity()) {
  1269. hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
  1270. hash = (53 * hash) + hashEnum(getSeverity());
  1271. }
  1272. if (hasCertainty()) {
  1273. hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
  1274. hash = (53 * hash) + hashEnum(getCertainty());
  1275. }
  1276. if (hasAudience()) {
  1277. hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
  1278. hash = (53 * hash) + getAudience().hashCode();
  1279. }
  1280. if (getEventCodeCount() > 0) {
  1281. hash = (37 * hash) + EVENT_CODE_FIELD_NUMBER;
  1282. hash = (53 * hash) + getEventCodeList().hashCode();
  1283. }
  1284. if (hasEffective()) {
  1285. hash = (37 * hash) + EFFECTIVE_FIELD_NUMBER;
  1286. hash = (53 * hash) + getEffective().hashCode();
  1287. }
  1288. if (hasOnset()) {
  1289. hash = (37 * hash) + ONSET_FIELD_NUMBER;
  1290. hash = (53 * hash) + getOnset().hashCode();
  1291. }
  1292. if (hasExpires()) {
  1293. hash = (37 * hash) + EXPIRES_FIELD_NUMBER;
  1294. hash = (53 * hash) + getExpires().hashCode();
  1295. }
  1296. if (hasSenderName()) {
  1297. hash = (37 * hash) + SENDER_NAME_FIELD_NUMBER;
  1298. hash = (53 * hash) + getSenderName().hashCode();
  1299. }
  1300. if (hasHeadline()) {
  1301. hash = (37 * hash) + HEADLINE_FIELD_NUMBER;
  1302. hash = (53 * hash) + getHeadline().hashCode();
  1303. }
  1304. if (hasDescription()) {
  1305. hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
  1306. hash = (53 * hash) + getDescription().hashCode();
  1307. }
  1308. if (hasInstruction()) {
  1309. hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER;
  1310. hash = (53 * hash) + getInstruction().hashCode();
  1311. }
  1312. if (hasWeb()) {
  1313. hash = (37 * hash) + WEB_FIELD_NUMBER;
  1314. hash = (53 * hash) + getWeb().hashCode();
  1315. }
  1316. if (hasContact()) {
  1317. hash = (37 * hash) + CONTACT_FIELD_NUMBER;
  1318. hash = (53 * hash) + getContact().hashCode();
  1319. }
  1320. if (getParameterCount() > 0) {
  1321. hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
  1322. hash = (53 * hash) + getParameterList().hashCode();
  1323. }
  1324. if (getResourceCount() > 0) {
  1325. hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
  1326. hash = (53 * hash) + getResourceList().hashCode();
  1327. }
  1328. if (getAreaCount() > 0) {
  1329. hash = (37 * hash) + AREA_FIELD_NUMBER;
  1330. hash = (53 * hash) + getAreaList().hashCode();
  1331. }
  1332. hash = (29 * hash) + getUnknownFields().hashCode();
  1333. return hash;
  1334. }
  1335. public static com.google.publicalerts.cap.Info parseFrom(
  1336. com.google.protobuf.ByteString data)
  1337. throws com.google.protobuf.InvalidProtocolBufferException {
  1338. return newBuilder().mergeFrom(data).buildParsed();
  1339. }
  1340. public static com.google.publicalerts.cap.Info parseFrom(
  1341. com.google.protobuf.ByteString data,
  1342. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1343. throws com.google.protobuf.InvalidProtocolBufferException {
  1344. return newBuilder().mergeFrom(data, extensionRegistry)
  1345. .buildParsed();
  1346. }
  1347. public static com.google.publicalerts.cap.Info parseFrom(byte[] data)
  1348. throws com.google.protobuf.InvalidProtocolBufferException {
  1349. return newBuilder().mergeFrom(data).buildParsed();
  1350. }
  1351. public static com.google.publicalerts.cap.Info parseFrom(
  1352. byte[] data,
  1353. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1354. throws com.google.protobuf.InvalidProtocolBufferException {
  1355. return newBuilder().mergeFrom(data, extensionRegistry)
  1356. .buildParsed();
  1357. }
  1358. public static com.google.publicalerts.cap.Info parseFrom(java.io.InputStream input)
  1359. throws java.io.IOException {
  1360. return newBuilder().mergeFrom(input).buildParsed();
  1361. }
  1362. public static com.google.publicalerts.cap.Info parseFrom(
  1363. java.io.InputStream input,
  1364. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1365. throws java.io.IOException {
  1366. return newBuilder().mergeFrom(input, extensionRegistry)
  1367. .buildParsed();
  1368. }
  1369. public static com.google.publicalerts.cap.Info parseDelimitedFrom(java.io.InputStream input)
  1370. throws java.io.IOException {
  1371. Builder builder = newBuilder();
  1372. if (builder.mergeDelimitedFrom(input)) {
  1373. return builder.buildParsed();
  1374. } else {
  1375. return null;
  1376. }
  1377. }
  1378. public static com.google.publicalerts.cap.Info parseDelimitedFrom(
  1379. java.io.InputStream input,
  1380. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1381. throws java.io.IOException {
  1382. Builder builder = newBuilder();
  1383. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1384. return builder.buildParsed();
  1385. } else {
  1386. return null;
  1387. }
  1388. }
  1389. public static com.google.publicalerts.cap.Info parseFrom(
  1390. com.google.protobuf.CodedInputStream input)
  1391. throws java.io.IOException {
  1392. return newBuilder().mergeFrom(input).buildParsed();
  1393. }
  1394. public static com.google.publicalerts.cap.Info parseFrom(
  1395. com.google.protobuf.CodedInputStream input,
  1396. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1397. throws java.io.IOException {
  1398. return newBuilder().mergeFrom(input, extensionRegistry)
  1399. .buildParsed();
  1400. }
  1401. public static Builder newBuilder() { return Builder.create(); }
  1402. public Builder newBuilderForType() { return newBuilder(); }
  1403. public static Builder newBuilder(com.google.publicalerts.cap.Info prototype) {
  1404. return newBuilder().mergeFrom(prototype);
  1405. }
  1406. public Builder toBuilder() { return newBuilder(this); }
  1407. @java.lang.Override
  1408. protected Builder newBuilderForType(
  1409. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  1410. Builder builder = new Builder(parent);
  1411. return builder;
  1412. }
  1413. public static final class Builder extends
  1414. com.google.protobuf.GeneratedMessage.Builder<Builder>
  1415. implements com.google.publicalerts.cap.InfoOrBuilder {
  1416. public static final com.google.protobuf.Descriptors.Descriptor
  1417. getDescriptor() {
  1418. return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_descriptor;
  1419. }
  1420. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1421. internalGetFieldAccessorTable() {
  1422. return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_fieldAccessorTable;
  1423. }
  1424. // Construct using com.google.publicalerts.cap.Info.newBuilder()
  1425. private Builder() {
  1426. maybeForceBuilderInitialization();
  1427. }
  1428. private Builder(BuilderPar

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