/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; text_ = value; onChanged(); return this; }
/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; text_ = value; onChanged(); 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 setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; language_ = value; onChanged(); 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 setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; language_ = value; onChanged(); 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 setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; language_ = value; onChanged(); return this; }
/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; text_ = value; onChanged(); return this; }
/** * <code>required string text = 1;</code> * * <pre> * A UTF-8 string containing the message. * </pre> */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; text_ = value; onChanged(); 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; } /**
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>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; } /**
/** * <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 setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; language_ = value; onChanged(); 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; } /**
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>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; } /**