public static final class GtfsRealtime.FeedMessage.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedMessage,GtfsRealtime.FeedMessage.Builder> 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 | Method and Description |
---|---|
GtfsRealtime.FeedMessage.Builder |
addAllEntity(Iterable<? extends GtfsRealtime.FeedEntity> values)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
addEntity(GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
addEntity(GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
addEntity(int index,
GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
addEntity(int index,
GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedEntity.Builder |
addEntityBuilder()
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedEntity.Builder |
addEntityBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage |
build() |
GtfsRealtime.FeedMessage |
buildPartial() |
GtfsRealtime.FeedMessage.Builder |
clear() |
GtfsRealtime.FeedMessage.Builder |
clearEntity()
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
clearHeader()
required .transit_realtime.FeedHeader header = 1; |
GtfsRealtime.FeedMessage.Builder |
clone() |
GtfsRealtime.FeedMessage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GtfsRealtime.FeedEntity |
getEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedEntity.Builder |
getEntityBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
List<GtfsRealtime.FeedEntity.Builder> |
getEntityBuilderList()
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.FeedHeader.Builder |
getHeaderBuilder()
required .transit_realtime.FeedHeader header = 1; |
GtfsRealtime.FeedHeaderOrBuilder |
getHeaderOrBuilder()
required .transit_realtime.FeedHeader header = 1; |
boolean |
hasHeader()
required .transit_realtime.FeedHeader header = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.FeedMessage.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.FeedMessage.Builder |
mergeFrom(GtfsRealtime.FeedMessage other) |
GtfsRealtime.FeedMessage.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.FeedMessage.Builder |
mergeHeader(GtfsRealtime.FeedHeader value)
required .transit_realtime.FeedHeader header = 1; |
GtfsRealtime.FeedMessage.Builder |
removeEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
setEntity(int index,
GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
setEntity(int index,
GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2; |
GtfsRealtime.FeedMessage.Builder |
setHeader(GtfsRealtime.FeedHeader.Builder builderForValue)
required .transit_realtime.FeedHeader header = 1; |
GtfsRealtime.FeedMessage.Builder |
setHeader(GtfsRealtime.FeedHeader value)
required .transit_realtime.FeedHeader header = 1; |
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.FeedMessage.Builder>
public GtfsRealtime.FeedMessage.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedMessage,GtfsRealtime.FeedMessage.Builder>
public GtfsRealtime.FeedMessage.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedMessage,GtfsRealtime.FeedMessage.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.FeedMessage.Builder>
public GtfsRealtime.FeedMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedMessage>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GtfsRealtime.FeedMessage build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.FeedMessage buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.FeedMessage.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedMessage.Builder>
public GtfsRealtime.FeedMessage.Builder mergeFrom(GtfsRealtime.FeedMessage other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedMessage,GtfsRealtime.FeedMessage.Builder>
public GtfsRealtime.FeedMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedMessage.Builder>
IOException
public boolean hasHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
hasHeader
in interface GtfsRealtime.FeedMessageOrBuilder
public GtfsRealtime.FeedHeader getHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
getHeader
in interface GtfsRealtime.FeedMessageOrBuilder
public GtfsRealtime.FeedMessage.Builder setHeader(GtfsRealtime.FeedHeader value)
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
public GtfsRealtime.FeedMessage.Builder setHeader(GtfsRealtime.FeedHeader.Builder builderForValue)
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
public GtfsRealtime.FeedMessage.Builder mergeHeader(GtfsRealtime.FeedHeader value)
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
public GtfsRealtime.FeedMessage.Builder clearHeader()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
public GtfsRealtime.FeedHeader.Builder getHeaderBuilder()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
public GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder()
required .transit_realtime.FeedHeader header = 1;
Metadata about this feed and feed message.
getHeaderOrBuilder
in interface GtfsRealtime.FeedMessageOrBuilder
public List<GtfsRealtime.FeedEntity> getEntityList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityList
in interface GtfsRealtime.FeedMessageOrBuilder
public int getEntityCount()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityCount
in interface GtfsRealtime.FeedMessageOrBuilder
public GtfsRealtime.FeedEntity getEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntity
in interface GtfsRealtime.FeedMessageOrBuilder
public GtfsRealtime.FeedMessage.Builder setEntity(int index, GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder setEntity(int index, GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder addEntity(GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder addEntity(int index, GtfsRealtime.FeedEntity value)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder addEntity(GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder addEntity(int index, GtfsRealtime.FeedEntity.Builder builderForValue)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder addAllEntity(Iterable<? extends GtfsRealtime.FeedEntity> values)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder clearEntity()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedMessage.Builder removeEntity(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedEntity.Builder getEntityBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityOrBuilder
in interface GtfsRealtime.FeedMessageOrBuilder
public List<? extends GtfsRealtime.FeedEntityOrBuilder> getEntityOrBuilderList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
getEntityOrBuilderList
in interface GtfsRealtime.FeedMessageOrBuilder
public GtfsRealtime.FeedEntity.Builder addEntityBuilder()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public GtfsRealtime.FeedEntity.Builder addEntityBuilder(int index)
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
public List<GtfsRealtime.FeedEntity.Builder> getEntityBuilderList()
repeated .transit_realtime.FeedEntity entity = 2;
Contents of the feed.
Copyright © 2018. All rights reserved.