private void initFields() { activePeriod_ = java.util.Collections.emptyList(); informedEntity_ = java.util.Collections.emptyList(); cause_ = com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE; effect_ = com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT; url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
bitField0_ = (bitField0_ & ~0x00000008); if (urlBuilder_ == null) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { urlBuilder_.clear(); headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { headerTextBuilder_.clear(); descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { descriptionTextBuilder_.clear();
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString other) { if (other == com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) return this; if (translationBuilder_ == null) { if (!other.translation_.isEmpty()) {
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString other) { if (other == com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) return this; if (translationBuilder_ == null) { if (!other.translation_.isEmpty()) {
bitField0_ = (bitField0_ & ~0x00000008); if (urlBuilder_ == null) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { urlBuilder_.clear(); headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { headerTextBuilder_.clear(); descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } else { descriptionTextBuilder_.clear();
/** * <code>optional .transit_realtime.TranslatedString description_text = 11;</code> * * <pre> * Full description for the alert as plain-text. The information in the * description should add to the information of the header. * </pre> */ public Builder mergeDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (descriptionTextBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && descriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(descriptionText_).mergeFrom(value).buildPartial(); } else { descriptionText_ = value; } onChanged(); } else { descriptionTextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString header_text = 10;</code> * * <pre> * Alert header. Contains a short summary of the alert text as plain-text. * </pre> */ public Builder mergeHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (headerTextBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && headerText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(headerText_).mergeFrom(value).buildPartial(); } else { headerText_ = value; } onChanged(); } else { headerTextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString url = 8;</code> * * <pre> * The URL which provides additional information about the alert. * </pre> */ public Builder mergeUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (urlBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && url_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(url_).mergeFrom(value).buildPartial(); } else { url_ = value; } onChanged(); } else { urlBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString description_text = 11;</code> * * <pre> * Full description for the alert as plain-text. The information in the * description should add to the information of the header. * </pre> */ public Builder clearDescriptionText() { if (descriptionTextBuilder_ == null) { descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { descriptionTextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /**
/** * <code>optional .transit_realtime.TranslatedString url = 8;</code> * * <pre> * The URL which provides additional information about the alert. * </pre> */ public Builder clearUrl() { if (urlBuilder_ == null) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional .transit_realtime.TranslatedString header_text = 10;</code> * * <pre> * Alert header. Contains a short summary of the alert text as plain-text. * </pre> */ public Builder clearHeaderText() { if (headerTextBuilder_ == null) { headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { headerTextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /**
public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); }
private void initFields() { activePeriod_ = java.util.Collections.emptyList(); informedEntity_ = java.util.Collections.emptyList(); cause_ = com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE; effect_ = com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT; url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional .transit_realtime.TranslatedString description_text = 11;</code> * * <pre> * Full description for the alert as plain-text. The information in the * description should add to the information of the header. * </pre> */ public Builder mergeDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (descriptionTextBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && descriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(descriptionText_).mergeFrom(value).buildPartial(); } else { descriptionText_ = value; } onChanged(); } else { descriptionTextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString header_text = 10;</code> * * <pre> * Alert header. Contains a short summary of the alert text as plain-text. * </pre> */ public Builder mergeHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (headerTextBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && headerText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(headerText_).mergeFrom(value).buildPartial(); } else { headerText_ = value; } onChanged(); } else { headerTextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString url = 8;</code> * * <pre> * The URL which provides additional information about the alert. * </pre> */ public Builder mergeUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { if (urlBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && url_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder(url_).mergeFrom(value).buildPartial(); } else { url_ = value; } onChanged(); } else { urlBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .transit_realtime.TranslatedString description_text = 11;</code> * * <pre> * Full description for the alert as plain-text. The information in the * description should add to the information of the header. * </pre> */ public Builder clearDescriptionText() { if (descriptionTextBuilder_ == null) { descriptionText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { descriptionTextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /**
/** * <code>optional .transit_realtime.TranslatedString header_text = 10;</code> * * <pre> * Alert header. Contains a short summary of the alert text as plain-text. * </pre> */ public Builder clearHeaderText() { if (headerTextBuilder_ == null) { headerText_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { headerTextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /**
/** * <code>optional .transit_realtime.TranslatedString url = 8;</code> * * <pre> * The URL which provides additional information about the alert. * </pre> */ public Builder clearUrl() { if (urlBuilder_ == null) { url_ = com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); onChanged(); } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); }