public static final class GtfsRealtime.TranslatedString.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TranslatedString,GtfsRealtime.TranslatedString.Builder> implements GtfsRealtime.TranslatedStringOrBuilder
transit_realtime.TranslatedString
An internationalized message containing per-language versions of a snippet of text or a URL. One of the strings from a message will be picked up. The resolution proceeds as follows: 1. If the UI language matches the language code of a translation, the first matching translation is picked. 2. If a default UI language (e.g., English) matches the language code of a translation, the first matching translation is picked. 3. If some translation has an unspecified language code, that translation is picked.
Modifier and Type | Method and Description |
---|---|
GtfsRealtime.TranslatedString.Builder |
addAllTranslation(Iterable<? extends GtfsRealtime.TranslatedString.Translation> values)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
addTranslation(GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
addTranslation(GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
addTranslation(int index,
GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
addTranslation(int index,
GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Translation.Builder |
addTranslationBuilder()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Translation.Builder |
addTranslationBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString |
build() |
GtfsRealtime.TranslatedString |
buildPartial() |
GtfsRealtime.TranslatedString.Builder |
clear() |
GtfsRealtime.TranslatedString.Builder |
clearTranslation()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
clone() |
GtfsRealtime.TranslatedString |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GtfsRealtime.TranslatedString.Translation |
getTranslation(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Translation.Builder |
getTranslationBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
List<GtfsRealtime.TranslatedString.Translation.Builder> |
getTranslationBuilderList()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
int |
getTranslationCount()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
List<GtfsRealtime.TranslatedString.Translation> |
getTranslationList()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.TranslationOrBuilder |
getTranslationOrBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
List<? extends GtfsRealtime.TranslatedString.TranslationOrBuilder> |
getTranslationOrBuilderList()
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.TranslatedString.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.TranslatedString.Builder |
mergeFrom(GtfsRealtime.TranslatedString other) |
GtfsRealtime.TranslatedString.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.TranslatedString.Builder |
removeTranslation(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
setTranslation(int index,
GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
GtfsRealtime.TranslatedString.Builder |
setTranslation(int index,
GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1; |
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TranslatedString.Builder>
public GtfsRealtime.TranslatedString.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TranslatedString,GtfsRealtime.TranslatedString.Builder>
public GtfsRealtime.TranslatedString.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TranslatedString,GtfsRealtime.TranslatedString.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TranslatedString.Builder>
public GtfsRealtime.TranslatedString getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TranslatedString>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GtfsRealtime.TranslatedString build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.TranslatedString buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.TranslatedString.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TranslatedString.Builder>
public GtfsRealtime.TranslatedString.Builder mergeFrom(GtfsRealtime.TranslatedString other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TranslatedString,GtfsRealtime.TranslatedString.Builder>
public GtfsRealtime.TranslatedString.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TranslatedString.Builder>
IOException
public List<GtfsRealtime.TranslatedString.Translation> getTranslationList()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationList
in interface GtfsRealtime.TranslatedStringOrBuilder
public int getTranslationCount()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationCount
in interface GtfsRealtime.TranslatedStringOrBuilder
public GtfsRealtime.TranslatedString.Translation getTranslation(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslation
in interface GtfsRealtime.TranslatedStringOrBuilder
public GtfsRealtime.TranslatedString.Builder setTranslation(int index, GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder setTranslation(int index, GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder addTranslation(GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder addTranslation(int index, GtfsRealtime.TranslatedString.Translation value)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder addTranslation(GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder addTranslation(int index, GtfsRealtime.TranslatedString.Translation.Builder builderForValue)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder addAllTranslation(Iterable<? extends GtfsRealtime.TranslatedString.Translation> values)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder clearTranslation()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Builder removeTranslation(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Translation.Builder getTranslationBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationOrBuilder
in interface GtfsRealtime.TranslatedStringOrBuilder
public List<? extends GtfsRealtime.TranslatedString.TranslationOrBuilder> getTranslationOrBuilderList()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationOrBuilderList
in interface GtfsRealtime.TranslatedStringOrBuilder
public GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
public List<GtfsRealtime.TranslatedString.Translation.Builder> getTranslationBuilderList()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
Copyright © 2019. All rights reserved.