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, 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.FeedEntity.Builder>
public GtfsRealtime.FeedEntity.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.FeedEntity,GtfsRealtime.FeedEntity.Builder>
public GtfsRealtime.FeedEntity.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.FeedEntity,GtfsRealtime.FeedEntity.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.FeedEntity.Builder>
public GtfsRealtime.FeedEntity getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedEntity>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GtfsRealtime.FeedEntity build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.FeedEntity buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedEntity.Builder>
IOException
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public boolean hasVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;
hasVehicle
in interface GtfsRealtime.FeedEntityOrBuilder
public GtfsRealtime.VehiclePosition getVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;
getVehicle
in interface GtfsRealtime.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
public boolean hasAlert()
optional .transit_realtime.Alert alert = 5;
hasAlert
in interface GtfsRealtime.FeedEntityOrBuilder
public GtfsRealtime.Alert getAlert()
optional .transit_realtime.Alert alert = 5;
getAlert
in interface GtfsRealtime.FeedEntityOrBuilder
public 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.FeedEntityOrBuilder
Copyright © 2018. All rights reserved.