/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder clearTranslation() { if (translationBuilder_ == null) { translation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { translationBuilder_.clear(); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.add(value); onChanged(); } else { translationBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.add(index, value); onChanged(); } else { translationBuilder_.addMessage(index, value); } return this; } /**
translation_.addAll(other.translation_); onChanged();
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.add(index, value); onChanged(); } else { translationBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder setTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.set(index, value); onChanged(); } else { translationBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.add(value); onChanged(); } else { translationBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addAllTranslation( java.lang.Iterable<? extends com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation> values) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); super.addAll(values, translation_); onChanged(); } else { translationBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder setTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.set(index, builderForValue.build()); onChanged(); } else { translationBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder clearTranslation() { if (translationBuilder_ == null) { translation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { translationBuilder_.clear(); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder removeTranslation(int index) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.remove(index); onChanged(); } else { translationBuilder_.remove(index); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.add(index, builderForValue.build()); onChanged(); } else { translationBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.add(builderForValue.build()); onChanged(); } else { translationBuilder_.addMessage(builderForValue.build()); } return this; } /**
translation_.addAll(other.translation_); onChanged();
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder setTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTranslationIsMutable(); translation_.set(index, value); onChanged(); } else { translationBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.add(index, builderForValue.build()); onChanged(); } else { translationBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder setTranslation( int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.set(index, builderForValue.build()); onChanged(); } else { translationBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addAllTranslation( java.lang.Iterable<? extends com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation> values) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); super.addAll(values, translation_); onChanged(); } else { translationBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder removeTranslation(int index) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.remove(index); onChanged(); } else { translationBuilder_.remove(index); } return this; } /**
/** * <code>repeated .transit_realtime.TranslatedString.Translation translation = 1;</code> * * <pre> * At least one translation must be provided. * </pre> */ public Builder addTranslation( com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { if (translationBuilder_ == null) { ensureTranslationIsMutable(); translation_.add(builderForValue.build()); onChanged(); } else { translationBuilder_.addMessage(builderForValue.build()); } return this; } /**