com.google.transit.realtime
Class GtfsRealtime.FeedMessage

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.FeedMessage>
                  extended by 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 Class Summary
static class GtfsRealtime.FeedMessage.Builder
          Protobuf type transit_realtime.FeedMessage
 
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>
 
Field Summary
static int ENTITY_FIELD_NUMBER
           
static int HEADER_FIELD_NUMBER
           
static com.google.protobuf.Parser<GtfsRealtime.FeedMessage> PARSER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
 
Method Summary
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)
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

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
Method Detail

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.