/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
Large files are truncated click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- package com.google.publicalerts.cap;
- public final class Info extends
- com.google.protobuf.GeneratedMessage
- implements InfoOrBuilder {
- // Use Info.newBuilder() to construct.
- private Info(Builder builder) {
- super(builder);
- }
- private Info(boolean noInit) {}
-
- private static final Info defaultInstance;
- public static Info getDefaultInstance() {
- return defaultInstance;
- }
-
- public Info getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_fieldAccessorTable;
- }
-
- public enum Category
- implements com.google.protobuf.ProtocolMessageEnum {
- GEO(0, 0),
- MET(1, 1),
- SAFETY(2, 2),
- SECURITY(3, 3),
- RESCUE(4, 4),
- FIRE(5, 5),
- HEALTH(6, 6),
- ENV(7, 7),
- TRANSPORT(8, 8),
- INFRA(9, 9),
- CBRNE(10, 10),
- OTHER(11, 11),
- ;
-
- public static final int GEO_VALUE = 0;
- public static final int MET_VALUE = 1;
- public static final int SAFETY_VALUE = 2;
- public static final int SECURITY_VALUE = 3;
- public static final int RESCUE_VALUE = 4;
- public static final int FIRE_VALUE = 5;
- public static final int HEALTH_VALUE = 6;
- public static final int ENV_VALUE = 7;
- public static final int TRANSPORT_VALUE = 8;
- public static final int INFRA_VALUE = 9;
- public static final int CBRNE_VALUE = 10;
- public static final int OTHER_VALUE = 11;
-
-
- public final int getNumber() { return value; }
-
- public static Category valueOf(int value) {
- switch (value) {
- case 0: return GEO;
- case 1: return MET;
- case 2: return SAFETY;
- case 3: return SECURITY;
- case 4: return RESCUE;
- case 5: return FIRE;
- case 6: return HEALTH;
- case 7: return ENV;
- case 8: return TRANSPORT;
- case 9: return INFRA;
- case 10: return CBRNE;
- case 11: return OTHER;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<Category>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<Category>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<Category>() {
- public Category findValueByNumber(int number) {
- return Category.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final Category[] VALUES = {
- GEO, MET, SAFETY, SECURITY, RESCUE, FIRE, HEALTH, ENV, TRANSPORT, INFRA, CBRNE, OTHER,
- };
-
- public static Category valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private Category(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Category)
- }
-
- public enum ResponseType
- implements com.google.protobuf.ProtocolMessageEnum {
- SHELTER(0, 0),
- EVACUATE(1, 1),
- PREPARE(2, 2),
- EXECUTE(3, 3),
- AVOID(4, 4),
- MONITOR(5, 5),
- ASSESS(6, 6),
- ALL_CLEAR(7, 7),
- NONE(8, 8),
- ;
-
- public static final int SHELTER_VALUE = 0;
- public static final int EVACUATE_VALUE = 1;
- public static final int PREPARE_VALUE = 2;
- public static final int EXECUTE_VALUE = 3;
- public static final int AVOID_VALUE = 4;
- public static final int MONITOR_VALUE = 5;
- public static final int ASSESS_VALUE = 6;
- public static final int ALL_CLEAR_VALUE = 7;
- public static final int NONE_VALUE = 8;
-
-
- public final int getNumber() { return value; }
-
- public static ResponseType valueOf(int value) {
- switch (value) {
- case 0: return SHELTER;
- case 1: return EVACUATE;
- case 2: return PREPARE;
- case 3: return EXECUTE;
- case 4: return AVOID;
- case 5: return MONITOR;
- case 6: return ASSESS;
- case 7: return ALL_CLEAR;
- case 8: return NONE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<ResponseType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<ResponseType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<ResponseType>() {
- public ResponseType findValueByNumber(int number) {
- return ResponseType.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final ResponseType[] VALUES = {
- SHELTER, EVACUATE, PREPARE, EXECUTE, AVOID, MONITOR, ASSESS, ALL_CLEAR, NONE,
- };
-
- public static ResponseType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private ResponseType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.ResponseType)
- }
-
- public enum Urgency
- implements com.google.protobuf.ProtocolMessageEnum {
- IMMEDIATE(0, 0),
- EXPECTED(1, 1),
- FUTURE(2, 2),
- PAST(3, 3),
- UNKNOWN_URGENCY(4, 4),
- ;
-
- public static final int IMMEDIATE_VALUE = 0;
- public static final int EXPECTED_VALUE = 1;
- public static final int FUTURE_VALUE = 2;
- public static final int PAST_VALUE = 3;
- public static final int UNKNOWN_URGENCY_VALUE = 4;
-
-
- public final int getNumber() { return value; }
-
- public static Urgency valueOf(int value) {
- switch (value) {
- case 0: return IMMEDIATE;
- case 1: return EXPECTED;
- case 2: return FUTURE;
- case 3: return PAST;
- case 4: return UNKNOWN_URGENCY;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<Urgency>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<Urgency>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<Urgency>() {
- public Urgency findValueByNumber(int number) {
- return Urgency.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(2);
- }
-
- private static final Urgency[] VALUES = {
- IMMEDIATE, EXPECTED, FUTURE, PAST, UNKNOWN_URGENCY,
- };
-
- public static Urgency valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private Urgency(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Urgency)
- }
-
- public enum Severity
- implements com.google.protobuf.ProtocolMessageEnum {
- EXTREME(0, 0),
- SEVERE(1, 1),
- MODERATE(2, 2),
- MINOR(3, 3),
- UNKNOWN_SEVERITY(4, 4),
- ;
-
- public static final int EXTREME_VALUE = 0;
- public static final int SEVERE_VALUE = 1;
- public static final int MODERATE_VALUE = 2;
- public static final int MINOR_VALUE = 3;
- public static final int UNKNOWN_SEVERITY_VALUE = 4;
-
-
- public final int getNumber() { return value; }
-
- public static Severity valueOf(int value) {
- switch (value) {
- case 0: return EXTREME;
- case 1: return SEVERE;
- case 2: return MODERATE;
- case 3: return MINOR;
- case 4: return UNKNOWN_SEVERITY;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<Severity>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<Severity>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
- public Severity findValueByNumber(int number) {
- return Severity.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(3);
- }
-
- private static final Severity[] VALUES = {
- EXTREME, SEVERE, MODERATE, MINOR, UNKNOWN_SEVERITY,
- };
-
- public static Severity valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private Severity(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Severity)
- }
-
- public enum Certainty
- implements com.google.protobuf.ProtocolMessageEnum {
- OBSERVED(0, 0),
- VERY_LIKELY(1, 1),
- LIKELY(2, 2),
- POSSIBLE(3, 3),
- UNLIKELY(4, 4),
- UNKNOWN_CERTAINTY(5, 5),
- ;
-
- public static final int OBSERVED_VALUE = 0;
- public static final int VERY_LIKELY_VALUE = 1;
- public static final int LIKELY_VALUE = 2;
- public static final int POSSIBLE_VALUE = 3;
- public static final int UNLIKELY_VALUE = 4;
- public static final int UNKNOWN_CERTAINTY_VALUE = 5;
-
-
- public final int getNumber() { return value; }
-
- public static Certainty valueOf(int value) {
- switch (value) {
- case 0: return OBSERVED;
- case 1: return VERY_LIKELY;
- case 2: return LIKELY;
- case 3: return POSSIBLE;
- case 4: return UNLIKELY;
- case 5: return UNKNOWN_CERTAINTY;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<Certainty>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<Certainty>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<Certainty>() {
- public Certainty findValueByNumber(int number) {
- return Certainty.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Info.getDescriptor().getEnumTypes().get(4);
- }
-
- private static final Certainty[] VALUES = {
- OBSERVED, VERY_LIKELY, LIKELY, POSSIBLE, UNLIKELY, UNKNOWN_CERTAINTY,
- };
-
- public static Certainty valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private Certainty(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:publicalerts.cap.Info.Certainty)
- }
-
- private int bitField0_;
- // optional string language = 1 [default = "en-US"];
- public static final int LANGUAGE_FIELD_NUMBER = 1;
- private java.lang.Object language_;
- public boolean hasLanguage() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getLanguage() {
- java.lang.Object ref = language_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- language_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getLanguageBytes() {
- java.lang.Object ref = language_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- language_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated .publicalerts.cap.Info.Category category = 2;
- public static final int CATEGORY_FIELD_NUMBER = 2;
- private java.util.List<com.google.publicalerts.cap.Info.Category> category_;
- public java.util.List<com.google.publicalerts.cap.Info.Category> getCategoryList() {
- return category_;
- }
- public int getCategoryCount() {
- return category_.size();
- }
- public com.google.publicalerts.cap.Info.Category getCategory(int index) {
- return category_.get(index);
- }
-
- // required string event = 3;
- public static final int EVENT_FIELD_NUMBER = 3;
- private java.lang.Object event_;
- public boolean hasEvent() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getEvent() {
- java.lang.Object ref = event_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- event_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getEventBytes() {
- java.lang.Object ref = event_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- event_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated .publicalerts.cap.Info.ResponseType response_type = 4;
- public static final int RESPONSE_TYPE_FIELD_NUMBER = 4;
- private java.util.List<com.google.publicalerts.cap.Info.ResponseType> responseType_;
- public java.util.List<com.google.publicalerts.cap.Info.ResponseType> getResponseTypeList() {
- return responseType_;
- }
- public int getResponseTypeCount() {
- return responseType_.size();
- }
- public com.google.publicalerts.cap.Info.ResponseType getResponseType(int index) {
- return responseType_.get(index);
- }
-
- // required .publicalerts.cap.Info.Urgency urgency = 5;
- public static final int URGENCY_FIELD_NUMBER = 5;
- private com.google.publicalerts.cap.Info.Urgency urgency_;
- public boolean hasUrgency() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public com.google.publicalerts.cap.Info.Urgency getUrgency() {
- return urgency_;
- }
-
- // required .publicalerts.cap.Info.Severity severity = 6;
- public static final int SEVERITY_FIELD_NUMBER = 6;
- private com.google.publicalerts.cap.Info.Severity severity_;
- public boolean hasSeverity() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- public com.google.publicalerts.cap.Info.Severity getSeverity() {
- return severity_;
- }
-
- // required .publicalerts.cap.Info.Certainty certainty = 7;
- public static final int CERTAINTY_FIELD_NUMBER = 7;
- private com.google.publicalerts.cap.Info.Certainty certainty_;
- public boolean hasCertainty() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public com.google.publicalerts.cap.Info.Certainty getCertainty() {
- return certainty_;
- }
-
- // optional string audience = 8;
- public static final int AUDIENCE_FIELD_NUMBER = 8;
- private java.lang.Object audience_;
- public boolean hasAudience() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- public String getAudience() {
- java.lang.Object ref = audience_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- audience_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getAudienceBytes() {
- java.lang.Object ref = audience_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- audience_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated .publicalerts.cap.ValuePair event_code = 9;
- public static final int EVENT_CODE_FIELD_NUMBER = 9;
- private java.util.List<com.google.publicalerts.cap.ValuePair> eventCode_;
- public java.util.List<com.google.publicalerts.cap.ValuePair> getEventCodeList() {
- return eventCode_;
- }
- public java.util.List<? extends com.google.publicalerts.cap.ValuePairOrBuilder>
- getEventCodeOrBuilderList() {
- return eventCode_;
- }
- public int getEventCodeCount() {
- return eventCode_.size();
- }
- public com.google.publicalerts.cap.ValuePair getEventCode(int index) {
- return eventCode_.get(index);
- }
- public com.google.publicalerts.cap.ValuePairOrBuilder getEventCodeOrBuilder(
- int index) {
- return eventCode_.get(index);
- }
-
- // optional string effective = 10;
- public static final int EFFECTIVE_FIELD_NUMBER = 10;
- private java.lang.Object effective_;
- public boolean hasEffective() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- public String getEffective() {
- java.lang.Object ref = effective_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- effective_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getEffectiveBytes() {
- java.lang.Object ref = effective_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- effective_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string onset = 11;
- public static final int ONSET_FIELD_NUMBER = 11;
- private java.lang.Object onset_;
- public boolean hasOnset() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
- public String getOnset() {
- java.lang.Object ref = onset_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- onset_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getOnsetBytes() {
- java.lang.Object ref = onset_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- onset_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string expires = 12;
- public static final int EXPIRES_FIELD_NUMBER = 12;
- private java.lang.Object expires_;
- public boolean hasExpires() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
- public String getExpires() {
- java.lang.Object ref = expires_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- expires_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getExpiresBytes() {
- java.lang.Object ref = expires_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- expires_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string sender_name = 13;
- public static final int SENDER_NAME_FIELD_NUMBER = 13;
- private java.lang.Object senderName_;
- public boolean hasSenderName() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- public String getSenderName() {
- java.lang.Object ref = senderName_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- senderName_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getSenderNameBytes() {
- java.lang.Object ref = senderName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- senderName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string headline = 14;
- public static final int HEADLINE_FIELD_NUMBER = 14;
- private java.lang.Object headline_;
- public boolean hasHeadline() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
- }
- public String getHeadline() {
- java.lang.Object ref = headline_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- headline_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getHeadlineBytes() {
- java.lang.Object ref = headline_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- headline_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string description = 15;
- public static final int DESCRIPTION_FIELD_NUMBER = 15;
- private java.lang.Object description_;
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- public String getDescription() {
- java.lang.Object ref = description_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- description_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string instruction = 16;
- public static final int INSTRUCTION_FIELD_NUMBER = 16;
- private java.lang.Object instruction_;
- public boolean hasInstruction() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
- public String getInstruction() {
- java.lang.Object ref = instruction_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- instruction_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getInstructionBytes() {
- java.lang.Object ref = instruction_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- instruction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string web = 17;
- public static final int WEB_FIELD_NUMBER = 17;
- private java.lang.Object web_;
- public boolean hasWeb() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- public String getWeb() {
- java.lang.Object ref = web_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- web_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getWebBytes() {
- java.lang.Object ref = web_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- web_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string contact = 18;
- public static final int CONTACT_FIELD_NUMBER = 18;
- private java.lang.Object contact_;
- public boolean hasContact() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
- }
- public String getContact() {
- java.lang.Object ref = contact_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- contact_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getContactBytes() {
- java.lang.Object ref = contact_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- contact_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // repeated .publicalerts.cap.ValuePair parameter = 19;
- public static final int PARAMETER_FIELD_NUMBER = 19;
- private java.util.List<com.google.publicalerts.cap.ValuePair> parameter_;
- public java.util.List<com.google.publicalerts.cap.ValuePair> getParameterList() {
- return parameter_;
- }
- public java.util.List<? extends com.google.publicalerts.cap.ValuePairOrBuilder>
- getParameterOrBuilderList() {
- return parameter_;
- }
- public int getParameterCount() {
- return parameter_.size();
- }
- public com.google.publicalerts.cap.ValuePair getParameter(int index) {
- return parameter_.get(index);
- }
- public com.google.publicalerts.cap.ValuePairOrBuilder getParameterOrBuilder(
- int index) {
- return parameter_.get(index);
- }
-
- // repeated .publicalerts.cap.Resource resource = 20;
- public static final int RESOURCE_FIELD_NUMBER = 20;
- private java.util.List<com.google.publicalerts.cap.Resource> resource_;
- public java.util.List<com.google.publicalerts.cap.Resource> getResourceList() {
- return resource_;
- }
- public java.util.List<? extends com.google.publicalerts.cap.ResourceOrBuilder>
- getResourceOrBuilderList() {
- return resource_;
- }
- public int getResourceCount() {
- return resource_.size();
- }
- public com.google.publicalerts.cap.Resource getResource(int index) {
- return resource_.get(index);
- }
- public com.google.publicalerts.cap.ResourceOrBuilder getResourceOrBuilder(
- int index) {
- return resource_.get(index);
- }
-
- // repeated .publicalerts.cap.Area area = 21;
- public static final int AREA_FIELD_NUMBER = 21;
- private java.util.List<com.google.publicalerts.cap.Area> area_;
- public java.util.List<com.google.publicalerts.cap.Area> getAreaList() {
- return area_;
- }
- public java.util.List<? extends com.google.publicalerts.cap.AreaOrBuilder>
- getAreaOrBuilderList() {
- return area_;
- }
- public int getAreaCount() {
- return area_.size();
- }
- public com.google.publicalerts.cap.Area getArea(int index) {
- return area_.get(index);
- }
- public com.google.publicalerts.cap.AreaOrBuilder getAreaOrBuilder(
- int index) {
- return area_.get(index);
- }
-
- private void initFields() {
- language_ = "en-US";
- category_ = java.util.Collections.emptyList();
- event_ = "";
- responseType_ = java.util.Collections.emptyList();
- urgency_ = com.google.publicalerts.cap.Info.Urgency.IMMEDIATE;
- severity_ = com.google.publicalerts.cap.Info.Severity.EXTREME;
- certainty_ = com.google.publicalerts.cap.Info.Certainty.OBSERVED;
- audience_ = "";
- eventCode_ = java.util.Collections.emptyList();
- effective_ = "";
- onset_ = "";
- expires_ = "";
- senderName_ = "";
- headline_ = "";
- description_ = "";
- instruction_ = "";
- web_ = "";
- contact_ = "";
- parameter_ = java.util.Collections.emptyList();
- resource_ = java.util.Collections.emptyList();
- area_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasEvent()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasUrgency()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSeverity()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasCertainty()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getEventCodeCount(); i++) {
- if (!getEventCode(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getParameterCount(); i++) {
- if (!getParameter(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getResourceCount(); i++) {
- if (!getResource(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getAreaCount(); i++) {
- if (!getArea(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getLanguageBytes());
- }
- for (int i = 0; i < category_.size(); i++) {
- output.writeEnum(2, category_.get(i).getNumber());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(3, getEventBytes());
- }
- for (int i = 0; i < responseType_.size(); i++) {
- output.writeEnum(4, responseType_.get(i).getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(5, urgency_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(6, severity_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeEnum(7, certainty_.getNumber());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(8, getAudienceBytes());
- }
- for (int i = 0; i < eventCode_.size(); i++) {
- output.writeMessage(9, eventCode_.get(i));
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBytes(10, getEffectiveBytes());
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(11, getOnsetBytes());
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeBytes(12, getExpiresBytes());
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBytes(13, getSenderNameBytes());
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeBytes(14, getHeadlineBytes());
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeBytes(15, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeBytes(16, getInstructionBytes());
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeBytes(17, getWebBytes());
- }
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeBytes(18, getContactBytes());
- }
- for (int i = 0; i < parameter_.size(); i++) {
- output.writeMessage(19, parameter_.get(i));
- }
- for (int i = 0; i < resource_.size(); i++) {
- output.writeMessage(20, resource_.get(i));
- }
- for (int i = 0; i < area_.size(); i++) {
- output.writeMessage(21, area_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getLanguageBytes());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < category_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(category_.get(i).getNumber());
- }
- size += dataSize;
- size += 1 * category_.size();
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getEventBytes());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < responseType_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(responseType_.get(i).getNumber());
- }
- size += dataSize;
- size += 1 * responseType_.size();
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, urgency_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(6, severity_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(7, certainty_.getNumber());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getAudienceBytes());
- }
- for (int i = 0; i < eventCode_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, eventCode_.get(i));
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(10, getEffectiveBytes());
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(11, getOnsetBytes());
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(12, getExpiresBytes());
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(13, getSenderNameBytes());
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(14, getHeadlineBytes());
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(15, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(16, getInstructionBytes());
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(17, getWebBytes());
- }
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(18, getContactBytes());
- }
- for (int i = 0; i < parameter_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(19, parameter_.get(i));
- }
- for (int i = 0; i < resource_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(20, resource_.get(i));
- }
- for (int i = 0; i < area_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(21, area_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.publicalerts.cap.Info)) {
- return super.equals(obj);
- }
- com.google.publicalerts.cap.Info other = (com.google.publicalerts.cap.Info) obj;
-
- boolean result = true;
- result = result && (hasLanguage() == other.hasLanguage());
- if (hasLanguage()) {
- result = result && getLanguage()
- .equals(other.getLanguage());
- }
- result = result && getCategoryList()
- .equals(other.getCategoryList());
- result = result && (hasEvent() == other.hasEvent());
- if (hasEvent()) {
- result = result && getEvent()
- .equals(other.getEvent());
- }
- result = result && getResponseTypeList()
- .equals(other.getResponseTypeList());
- result = result && (hasUrgency() == other.hasUrgency());
- if (hasUrgency()) {
- result = result &&
- (getUrgency() == other.getUrgency());
- }
- result = result && (hasSeverity() == other.hasSeverity());
- if (hasSeverity()) {
- result = result &&
- (getSeverity() == other.getSeverity());
- }
- result = result && (hasCertainty() == other.hasCertainty());
- if (hasCertainty()) {
- result = result &&
- (getCertainty() == other.getCertainty());
- }
- result = result && (hasAudience() == other.hasAudience());
- if (hasAudience()) {
- result = result && getAudience()
- .equals(other.getAudience());
- }
- result = result && getEventCodeList()
- .equals(other.getEventCodeList());
- result = result && (hasEffective() == other.hasEffective());
- if (hasEffective()) {
- result = result && getEffective()
- .equals(other.getEffective());
- }
- result = result && (hasOnset() == other.hasOnset());
- if (hasOnset()) {
- result = result && getOnset()
- .equals(other.getOnset());
- }
- result = result && (hasExpires() == other.hasExpires());
- if (hasExpires()) {
- result = result && getExpires()
- .equals(other.getExpires());
- }
- result = result && (hasSenderName() == other.hasSenderName());
- if (hasSenderName()) {
- result = result && getSenderName()
- .equals(other.getSenderName());
- }
- result = result && (hasHeadline() == other.hasHeadline());
- if (hasHeadline()) {
- result = result && getHeadline()
- .equals(other.getHeadline());
- }
- result = result && (hasDescription() == other.hasDescription());
- if (hasDescription()) {
- result = result && getDescription()
- .equals(other.getDescription());
- }
- result = result && (hasInstruction() == other.hasInstruction());
- if (hasInstruction()) {
- result = result && getInstruction()
- .equals(other.getInstruction());
- }
- result = result && (hasWeb() == other.hasWeb());
- if (hasWeb()) {
- result = result && getWeb()
- .equals(other.getWeb());
- }
- result = result && (hasContact() == other.hasContact());
- if (hasContact()) {
- result = result && getContact()
- .equals(other.getContact());
- }
- result = result && getParameterList()
- .equals(other.getParameterList());
- result = result && getResourceList()
- .equals(other.getResourceList());
- result = result && getAreaList()
- .equals(other.getAreaList());
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasLanguage()) {
- hash = (37 * hash) + LANGUAGE_FIELD_NUMBER;
- hash = (53 * hash) + getLanguage().hashCode();
- }
- if (getCategoryCount() > 0) {
- hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
- hash = (53 * hash) + hashEnumList(getCategoryList());
- }
- if (hasEvent()) {
- hash = (37 * hash) + EVENT_FIELD_NUMBER;
- hash = (53 * hash) + getEvent().hashCode();
- }
- if (getResponseTypeCount() > 0) {
- hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnumList(getResponseTypeList());
- }
- if (hasUrgency()) {
- hash = (37 * hash) + URGENCY_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getUrgency());
- }
- if (hasSeverity()) {
- hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getSeverity());
- }
- if (hasCertainty()) {
- hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getCertainty());
- }
- if (hasAudience()) {
- hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
- hash = (53 * hash) + getAudience().hashCode();
- }
- if (getEventCodeCount() > 0) {
- hash = (37 * hash) + EVENT_CODE_FIELD_NUMBER;
- hash = (53 * hash) + getEventCodeList().hashCode();
- }
- if (hasEffective()) {
- hash = (37 * hash) + EFFECTIVE_FIELD_NUMBER;
- hash = (53 * hash) + getEffective().hashCode();
- }
- if (hasOnset()) {
- hash = (37 * hash) + ONSET_FIELD_NUMBER;
- hash = (53 * hash) + getOnset().hashCode();
- }
- if (hasExpires()) {
- hash = (37 * hash) + EXPIRES_FIELD_NUMBER;
- hash = (53 * hash) + getExpires().hashCode();
- }
- if (hasSenderName()) {
- hash = (37 * hash) + SENDER_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getSenderName().hashCode();
- }
- if (hasHeadline()) {
- hash = (37 * hash) + HEADLINE_FIELD_NUMBER;
- hash = (53 * hash) + getHeadline().hashCode();
- }
- if (hasDescription()) {
- hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
- hash = (53 * hash) + getDescription().hashCode();
- }
- if (hasInstruction()) {
- hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER;
- hash = (53 * hash) + getInstruction().hashCode();
- }
- if (hasWeb()) {
- hash = (37 * hash) + WEB_FIELD_NUMBER;
- hash = (53 * hash) + getWeb().hashCode();
- }
- if (hasContact()) {
- hash = (37 * hash) + CONTACT_FIELD_NUMBER;
- hash = (53 * hash) + getContact().hashCode();
- }
- if (getParameterCount() > 0) {
- hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
- hash = (53 * hash) + getParameterList().hashCode();
- }
- if (getResourceCount() > 0) {
- hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
- hash = (53 * hash) + getResourceList().hashCode();
- }
- if (getAreaCount() > 0) {
- hash = (37 * hash) + AREA_FIELD_NUMBER;
- hash = (53 * hash) + getAreaList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static com.google.publicalerts.cap.Info parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.publicalerts.cap.Info parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.google.publicalerts.cap.Info parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.google.publicalerts.cap.Info parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.google.publicalerts.cap.Info prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements com.google.publicalerts.cap.InfoOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.publicalerts.cap.Cap.internal_static_publicalerts_cap_Info_fieldAccessorTable;
- }
-
- // Construct using com.google.publicalerts.cap.Info.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderPar…