public static final class GtfsRealtime.TranslatedString extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.TranslatedString> 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 | Class and Description |
|---|---|
static class |
GtfsRealtime.TranslatedString.Builder
Protobuf type
transit_realtime.TranslatedString |
static class |
GtfsRealtime.TranslatedString.Translation
Protobuf type
transit_realtime.TranslatedString.Translation |
static interface |
GtfsRealtime.TranslatedString.TranslationOrBuilder |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static com.google.protobuf.Parser<GtfsRealtime.TranslatedString> |
PARSER |
static int |
TRANSLATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static GtfsRealtime.TranslatedString |
getDefaultInstance() |
GtfsRealtime.TranslatedString |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<GtfsRealtime.TranslatedString> |
getParserForType() |
int |
getSerializedSize() |
GtfsRealtime.TranslatedString.Translation |
getTranslation(int index)
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; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GtfsRealtime.TranslatedString.Builder |
newBuilder() |
static GtfsRealtime.TranslatedString.Builder |
newBuilder(GtfsRealtime.TranslatedString prototype) |
GtfsRealtime.TranslatedString.Builder |
newBuilderForType() |
protected GtfsRealtime.TranslatedString.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static GtfsRealtime.TranslatedString |
parseDelimitedFrom(InputStream input) |
static GtfsRealtime.TranslatedString |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TranslatedString |
parseFrom(byte[] data) |
static GtfsRealtime.TranslatedString |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TranslatedString |
parseFrom(com.google.protobuf.ByteString data) |
static GtfsRealtime.TranslatedString |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TranslatedString |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GtfsRealtime.TranslatedString |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TranslatedString |
parseFrom(InputStream input) |
static GtfsRealtime.TranslatedString |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.TranslatedString.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic static com.google.protobuf.Parser<GtfsRealtime.TranslatedString> PARSER
public static final int TRANSLATION_FIELD_NUMBER
public static GtfsRealtime.TranslatedString getDefaultInstance()
public GtfsRealtime.TranslatedString getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TranslatedString>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<GtfsRealtime.TranslatedString> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic List<GtfsRealtime.TranslatedString.Translation> getTranslationList()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationList in interface GtfsRealtime.TranslatedStringOrBuilderpublic List<? extends GtfsRealtime.TranslatedString.TranslationOrBuilder> getTranslationOrBuilderList()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationOrBuilderList in interface GtfsRealtime.TranslatedStringOrBuilderpublic int getTranslationCount()
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationCount in interface GtfsRealtime.TranslatedStringOrBuilderpublic GtfsRealtime.TranslatedString.Translation getTranslation(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslation in interface GtfsRealtime.TranslatedStringOrBuilderpublic GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationOrBuilder in interface GtfsRealtime.TranslatedStringOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.TranslatedString>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TranslatedString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TranslatedString parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TranslatedString parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TranslatedString.Builder newBuilder()
public GtfsRealtime.TranslatedString.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.TranslatedString.Builder newBuilder(GtfsRealtime.TranslatedString prototype)
public GtfsRealtime.TranslatedString.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.TranslatedString.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2018. All rights reserved.