com.google.transit.realtime
Class GtfsRealtime.FeedMessage
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage>
com.google.transit.realtime.GtfsRealtime.FeedMessage
- All Implemented Interfaces:
- com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedMessage>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.FeedMessageOrBuilder, Serializable
- Enclosing class:
- GtfsRealtime
public static final class GtfsRealtime.FeedMessage
- extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage>
- implements GtfsRealtime.FeedMessageOrBuilder
Protobuf type 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
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter |
| Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage |
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> |
| Fields inherited from class com.google.protobuf.GeneratedMessage |
alwaysUseFieldBuilders |
| Fields inherited from class com.google.protobuf.AbstractMessageLite |
memoizedHashCode |
| Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField |
| Methods inherited from class com.google.protobuf.GeneratedMessage |
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension |
| Methods inherited from class com.google.protobuf.AbstractMessage |
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString |
| Methods inherited from class com.google.protobuf.AbstractMessageLite |
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo |
| Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder |
getExtension, getExtension, getExtensionCount, hasExtension |
| Methods inherited from interface com.google.protobuf.MessageOrBuilder |
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof |
| Methods inherited from interface com.google.protobuf.MessageLite |
toByteArray, toByteString, writeDelimitedTo, writeTo |
PARSER
public static com.google.protobuf.Parser<GtfsRealtime.FeedMessage> PARSER
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
getDefaultInstance
public static GtfsRealtime.FeedMessage getDefaultInstance()
getDefaultInstanceForType
public GtfsRealtime.FeedMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedMessage>- Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
getParserForType
public com.google.protobuf.Parser<GtfsRealtime.FeedMessage> getParserForType()
- Specified by:
getParserForType in interface com.google.protobuf.Message- Specified by:
getParserForType in interface com.google.protobuf.MessageLite- Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage
hasHeader
public boolean hasHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
- Specified by:
hasHeader in interface GtfsRealtime.FeedMessageOrBuilder
getHeader
public GtfsRealtime.FeedHeader getHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
- Specified by:
getHeader in interface GtfsRealtime.FeedMessageOrBuilder
getHeaderOrBuilder
public GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
- Specified by:
getHeaderOrBuilder in interface GtfsRealtime.FeedMessageOrBuilder
getEntityList
public List<GtfsRealtime.FeedEntity> getEntityList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
- Specified by:
getEntityList in interface GtfsRealtime.FeedMessageOrBuilder
getEntityOrBuilderList
public List<? extends GtfsRealtime.FeedEntityOrBuilder> getEntityOrBuilderList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
- Specified by:
getEntityOrBuilderList in interface GtfsRealtime.FeedMessageOrBuilder
getEntityCount
public int getEntityCount()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
- Specified by:
getEntityCount in interface GtfsRealtime.FeedMessageOrBuilder
getEntity
public GtfsRealtime.FeedEntity getEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
- Specified by:
getEntity in interface GtfsRealtime.FeedMessageOrBuilder
getEntityOrBuilder
public GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
- Specified by:
getEntityOrBuilder in interface GtfsRealtime.FeedMessageOrBuilder
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage>
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
- Specified by:
writeTo in interface com.google.protobuf.MessageLite- Overrides:
writeTo in class com.google.protobuf.AbstractMessage
- Throws:
IOException
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite- Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage
writeReplace
protected Object writeReplace()
throws ObjectStreamException
- Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
- Throws:
ObjectStreamException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(InputStream input)
throws IOException
- Throws:
IOException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws IOException
- Throws:
IOException
parseDelimitedFrom
public static GtfsRealtime.FeedMessage parseDelimitedFrom(InputStream input)
throws IOException
- Throws:
IOException
parseDelimitedFrom
public static GtfsRealtime.FeedMessage parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws IOException
- Throws:
IOException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.CodedInputStream input)
throws IOException
- Throws:
IOException
parseFrom
public static GtfsRealtime.FeedMessage parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws IOException
- Throws:
IOException
newBuilder
public static GtfsRealtime.FeedMessage.Builder newBuilder()
newBuilderForType
public GtfsRealtime.FeedMessage.Builder newBuilderForType()
- Specified by:
newBuilderForType in interface com.google.protobuf.Message- Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite
newBuilder
public static GtfsRealtime.FeedMessage.Builder newBuilder(GtfsRealtime.FeedMessage prototype)
toBuilder
public GtfsRealtime.FeedMessage.Builder toBuilder()
- Specified by:
toBuilder in interface com.google.protobuf.Message- Specified by:
toBuilder in interface com.google.protobuf.MessageLite
newBuilderForType
protected GtfsRealtime.FeedMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
- Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage
Copyright © 2015. All Rights Reserved.