public static final class GtfsRealtime.FeedEntity.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder> implements GtfsRealtime.FeedEntityOrBuilder
transit_realtime.FeedEntity
A definition (or update) of an entity in the transit feed.
| Modifier and Type | Method and Description |
|---|---|
GtfsRealtime.FeedEntity |
build() |
GtfsRealtime.FeedEntity |
buildPartial() |
GtfsRealtime.FeedEntity.Builder |
clear() |
GtfsRealtime.FeedEntity.Builder |
clearAlert()
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.FeedEntity.Builder |
clearId()
required string id = 1; |
GtfsRealtime.FeedEntity.Builder |
clearIsDeleted()
optional bool is_deleted = 2 [default = false]; |
GtfsRealtime.FeedEntity.Builder |
clearTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.FeedEntity.Builder |
clearVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4; |
GtfsRealtime.FeedEntity.Builder |
clone() |
GtfsRealtime.Alert |
getAlert()
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.Alert.Builder |
getAlertBuilder()
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.AlertOrBuilder |
getAlertOrBuilder()
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.FeedEntity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getId()
required string id = 1; |
com.google.protobuf.ByteString |
getIdBytes()
required string id = 1; |
boolean |
getIsDeleted()
optional bool is_deleted = 2 [default = false]; |
GtfsRealtime.TripUpdate |
getTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.TripUpdate.Builder |
getTripUpdateBuilder()
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.TripUpdateOrBuilder |
getTripUpdateOrBuilder()
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.VehiclePosition |
getVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4; |
GtfsRealtime.VehiclePosition.Builder |
getVehicleBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4; |
GtfsRealtime.VehiclePositionOrBuilder |
getVehicleOrBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4; |
boolean |
hasAlert()
optional .transit_realtime.Alert alert = 5; |
boolean |
hasId()
required string id = 1; |
boolean |
hasIsDeleted()
optional bool is_deleted = 2 [default = false]; |
boolean |
hasTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3; |
boolean |
hasVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.FeedEntity.Builder |
mergeAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.FeedEntity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.FeedEntity.Builder |
mergeFrom(GtfsRealtime.FeedEntity other) |
GtfsRealtime.FeedEntity.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.FeedEntity.Builder |
mergeTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.FeedEntity.Builder |
mergeVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4; |
GtfsRealtime.FeedEntity.Builder |
setAlert(GtfsRealtime.Alert.Builder builderForValue)
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.FeedEntity.Builder |
setAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5; |
GtfsRealtime.FeedEntity.Builder |
setId(String value)
required string id = 1; |
GtfsRealtime.FeedEntity.Builder |
setIdBytes(com.google.protobuf.ByteString value)
required string id = 1; |
GtfsRealtime.FeedEntity.Builder |
setIsDeleted(boolean value)
optional bool is_deleted = 2 [default = false]; |
GtfsRealtime.FeedEntity.Builder |
setTripUpdate(GtfsRealtime.TripUpdate.Builder builderForValue)
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.FeedEntity.Builder |
setTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3; |
GtfsRealtime.FeedEntity.Builder |
setVehicle(GtfsRealtime.VehiclePosition.Builder builderForValue)
optional .transit_realtime.VehiclePosition vehicle = 4; |
GtfsRealtime.FeedEntity.Builder |
setVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4; |
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedFieldclearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.FeedEntity.Builder>public GtfsRealtime.FeedEntity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>public GtfsRealtime.FeedEntity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.FeedEntity.Builder>public GtfsRealtime.FeedEntity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedEntity>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GtfsRealtime.FeedEntity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.FeedEntity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedEntity.Builder>public GtfsRealtime.FeedEntity.Builder mergeFrom(GtfsRealtime.FeedEntity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>public GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedEntity.Builder>IOExceptionpublic boolean hasId()
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
hasId in interface GtfsRealtime.FeedEntityOrBuilderpublic String getId()
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
getId in interface GtfsRealtime.FeedEntityOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
getIdBytes in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.FeedEntity.Builder setId(String value)
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
public GtfsRealtime.FeedEntity.Builder clearId()
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
public GtfsRealtime.FeedEntity.Builder setIdBytes(com.google.protobuf.ByteString value)
required string id = 1;
The ids are used only to provide incrementality support. The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).
public boolean hasIsDeleted()
optional bool is_deleted = 2 [default = false];
Whether this entity is to be deleted. Relevant only for incremental fetches.
hasIsDeleted in interface GtfsRealtime.FeedEntityOrBuilderpublic boolean getIsDeleted()
optional bool is_deleted = 2 [default = false];
Whether this entity is to be deleted. Relevant only for incremental fetches.
getIsDeleted in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.FeedEntity.Builder setIsDeleted(boolean value)
optional bool is_deleted = 2 [default = false];
Whether this entity is to be deleted. Relevant only for incremental fetches.
public GtfsRealtime.FeedEntity.Builder clearIsDeleted()
optional bool is_deleted = 2 [default = false];
Whether this entity is to be deleted. Relevant only for incremental fetches.
public boolean hasTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
hasTripUpdate in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.TripUpdate getTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
getTripUpdate in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
public GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate.Builder builderForValue)
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
public GtfsRealtime.FeedEntity.Builder mergeTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
public GtfsRealtime.FeedEntity.Builder clearTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
public GtfsRealtime.TripUpdate.Builder getTripUpdateBuilder()
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
public GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder()
optional .transit_realtime.TripUpdate trip_update = 3;
Data about the entity itself. Exactly one of the following fields must be present (unless the entity is being deleted).
getTripUpdateOrBuilder in interface GtfsRealtime.FeedEntityOrBuilderpublic boolean hasVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;hasVehicle in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.VehiclePosition getVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;getVehicle in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4;public GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition.Builder builderForValue)
optional .transit_realtime.VehiclePosition vehicle = 4;public GtfsRealtime.FeedEntity.Builder mergeVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4;public GtfsRealtime.FeedEntity.Builder clearVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;public GtfsRealtime.VehiclePosition.Builder getVehicleBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4;public GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4;getVehicleOrBuilder in interface GtfsRealtime.FeedEntityOrBuilderpublic boolean hasAlert()
optional .transit_realtime.Alert alert = 5;hasAlert in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.Alert getAlert()
optional .transit_realtime.Alert alert = 5;getAlert in interface GtfsRealtime.FeedEntityOrBuilderpublic GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5;public GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert.Builder builderForValue)
optional .transit_realtime.Alert alert = 5;public GtfsRealtime.FeedEntity.Builder mergeAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5;public GtfsRealtime.FeedEntity.Builder clearAlert()
optional .transit_realtime.Alert alert = 5;public GtfsRealtime.Alert.Builder getAlertBuilder()
optional .transit_realtime.Alert alert = 5;public GtfsRealtime.AlertOrBuilder getAlertOrBuilder()
optional .transit_realtime.Alert alert = 5;getAlertOrBuilder in interface GtfsRealtime.FeedEntityOrBuilderCopyright © 2018. All rights reserved.