/** * <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 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 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 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; } /**
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) {
private TranslatedString convertTranslatedString( ServiceAlertLocalizedString ts) { TranslatedString.Builder translated = TranslatedString.newBuilder(); Translation.Builder builder = Translation.newBuilder(); builder.setText(ts.getValue()); if (ts.getLanguage() != null) builder.setLanguage(ts.getLanguage()); translated.addTranslation(builder); return translated.build(); }
public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) {
public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }