public static final class GtfsRealtime.FeedMessage extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage> implements GtfsRealtime.FeedMessageOrBuilder
transit_realtime.FeedMessage
The contents of a feed message. A feed is a continuous stream of feed messages. Each message in the stream is obtained as a response to an appropriate HTTP GET request. A realtime feed is always defined with relation to an existing GTFS feed. All the entity ids are resolved with respect to the GTFS feed. A feed depends on some external configuration: - The corresponding GTFS feed. - Feed application (updates, positions or alerts). A feed should contain only items of one specified application; all the other entities will be ignored. - Polling frequency
| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.FeedMessage.Builder
Protobuf type
transit_realtime.FeedMessage |
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 int |
ENTITY_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static com.google.protobuf.Parser<GtfsRealtime.FeedMessage> |
PARSER |
| Modifier and Type | Method and Description |
|---|---|
static GtfsRealtime.FeedMessage |
getDefaultInstance() |
GtfsRealtime.FeedMessage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GtfsRealtime.FeedEntity |
getEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
int |
getEntityCount()
repeated .transit_realtime.FeedEntity entity = 2; |
List<GtfsRealtime.FeedEntity> |
getEntityList()
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedEntityOrBuilder |
getEntityOrBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
List<? extends GtfsRealtime.FeedEntityOrBuilder> |
getEntityOrBuilderList()
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedHeader |
getHeader()
required .transit_realtime.FeedHeader header = 1; |
GtfsRealtime.FeedHeaderOrBuilder |
getHeaderOrBuilder()
required .transit_realtime.FeedHeader header = 1; |
com.google.protobuf.Parser<GtfsRealtime.FeedMessage> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasHeader()
required .transit_realtime.FeedHeader header = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GtfsRealtime.FeedMessage.Builder |
newBuilder() |
static GtfsRealtime.FeedMessage.Builder |
newBuilder(GtfsRealtime.FeedMessage prototype) |
GtfsRealtime.FeedMessage.Builder |
newBuilderForType() |
protected GtfsRealtime.FeedMessage.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static GtfsRealtime.FeedMessage |
parseDelimitedFrom(InputStream input) |
static GtfsRealtime.FeedMessage |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.FeedMessage |
parseFrom(byte[] data) |
static GtfsRealtime.FeedMessage |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.FeedMessage |
parseFrom(com.google.protobuf.ByteString data) |
static GtfsRealtime.FeedMessage |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.FeedMessage |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GtfsRealtime.FeedMessage |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.FeedMessage |
parseFrom(InputStream input) |
static GtfsRealtime.FeedMessage |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.FeedMessage.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.FeedMessage> PARSER
public static final int HEADER_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
public static GtfsRealtime.FeedMessage getDefaultInstance()
public GtfsRealtime.FeedMessage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedMessage>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.FeedMessage> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
hasHeader in interface GtfsRealtime.FeedMessageOrBuilderpublic GtfsRealtime.FeedHeader getHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
getHeader in interface GtfsRealtime.FeedMessageOrBuilderpublic GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
getHeaderOrBuilder in interface GtfsRealtime.FeedMessageOrBuilderpublic List<GtfsRealtime.FeedEntity> getEntityList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityList in interface GtfsRealtime.FeedMessageOrBuilderpublic List<? extends GtfsRealtime.FeedEntityOrBuilder> getEntityOrBuilderList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityOrBuilderList in interface GtfsRealtime.FeedMessageOrBuilderpublic int getEntityCount()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityCount in interface GtfsRealtime.FeedMessageOrBuilderpublic GtfsRealtime.FeedEntity getEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntity in interface GtfsRealtime.FeedMessageOrBuilderpublic GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityOrBuilder in interface GtfsRealtime.FeedMessageOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage>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.FeedMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.FeedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.FeedMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.FeedMessage parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.FeedMessage.Builder newBuilder()
public GtfsRealtime.FeedMessage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.FeedMessage.Builder newBuilder(GtfsRealtime.FeedMessage prototype)
public GtfsRealtime.FeedMessage.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.FeedMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2018. All rights reserved.