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.ExtensionWriter
com.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, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<GtfsRealtime.TranslatedString> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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 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 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.TranslationOrBuilder getTranslationOrBuilder(int index)
repeated .transit_realtime.TranslatedString.Translation translation = 1;
At least one translation must be provided.
getTranslationOrBuilder
in interface GtfsRealtime.TranslatedStringOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
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.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TranslatedString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TranslatedString parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TranslatedString parseFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.TranslatedString parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TranslatedString parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.TranslatedString parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static GtfsRealtime.TranslatedString parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TranslatedString.Builder newBuilder()
public GtfsRealtime.TranslatedString.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static GtfsRealtime.TranslatedString.Builder newBuilder(GtfsRealtime.TranslatedString prototype)
public GtfsRealtime.TranslatedString.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected GtfsRealtime.TranslatedString.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2018. All rights reserved.