/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder() { return getTranslationFieldBuilder().addBuilder( com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder( int index) { return getTranslationFieldBuilder().addBuilder( index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder() { return getTranslationFieldBuilder().addBuilder( com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other) { if (other == com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()) return this; if (other.hasText()) { bitField0_ |= 0x00000001; text_ = other.text_; onChanged(); } if (other.hasLanguage()) { bitField0_ |= 0x00000002; language_ = other.language_; onChanged(); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional string language = 2;</code> * * <pre> * BCP-47 language code. Can be omitted if the language is unknown or if * no i18n is done at all for the feed. At most one translation is * allowed to have an unspecified language tag. * </pre> */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000002); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /**
/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000001); text_ = getDefaultInstance().getText(); onChanged(); return this; } /**
public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance(); }
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder( int index) { return getTranslationFieldBuilder().addBuilder( index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); } /**
/** * <code>optional string language = 2;</code> * * <pre> * BCP-47 language code. Can be omitted if the language is unknown or if * no i18n is done at all for the feed. At most one translation is * allowed to have an unspecified language tag. * </pre> */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000002); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /**
/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000001); text_ = getDefaultInstance().getText(); onChanged(); return this; } /**
public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance(); }
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other) { if (other == com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()) return this; if (other.hasText()) { bitField0_ |= 0x00000001; text_ = other.text_; onChanged(); } if (other.hasLanguage()) { bitField0_ |= 0x00000002; language_ = other.language_; onChanged(); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }