public static final class GtfsRealtime.TripDescriptor extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.TripDescriptor> implements GtfsRealtime.TripDescriptorOrBuilder
transit_realtime.TripDescriptor
A descriptor that identifies an instance of a GTFS trip, or all instances of a trip along a route. - To specify a single trip instance, the trip_id (and if necessary, start_time) is set. If route_id is also set, then it should be same as one that the given trip corresponds to. - To specify all the trips along a given route, only the route_id should be set. Note that if the trip_id is not known, then stop sequence ids in TripUpdate are not sufficient, and stop_ids must be provided as well. In addition, absolute arrival/departure times must be provided.
| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.TripDescriptor.Builder
Protobuf type
transit_realtime.TripDescriptor |
static class |
GtfsRealtime.TripDescriptor.ScheduleRelationship
Protobuf enum
transit_realtime.TripDescriptor.ScheduleRelationship |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWritercom.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>| Modifier and Type | Field and Description |
|---|---|
static int |
DIRECTION_ID_FIELD_NUMBER |
static com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> |
PARSER |
static int |
ROUTE_ID_FIELD_NUMBER |
static int |
SCHEDULE_RELATIONSHIP_FIELD_NUMBER |
static int |
START_DATE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
TRIP_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static GtfsRealtime.TripDescriptor |
getDefaultInstance() |
GtfsRealtime.TripDescriptor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDirectionId()
optional uint32 direction_id = 6; |
com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> |
getParserForType() |
String |
getRouteId()
optional string route_id = 5; |
com.google.protobuf.ByteString |
getRouteIdBytes()
optional string route_id = 5; |
GtfsRealtime.TripDescriptor.ScheduleRelationship |
getScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; |
int |
getSerializedSize() |
String |
getStartDate()
optional string start_date = 3; |
com.google.protobuf.ByteString |
getStartDateBytes()
optional string start_date = 3; |
String |
getStartTime()
optional string start_time = 2; |
com.google.protobuf.ByteString |
getStartTimeBytes()
optional string start_time = 2; |
String |
getTripId()
optional string trip_id = 1; |
com.google.protobuf.ByteString |
getTripIdBytes()
optional string trip_id = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDirectionId()
optional uint32 direction_id = 6; |
boolean |
hasRouteId()
optional string route_id = 5; |
boolean |
hasScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; |
boolean |
hasStartDate()
optional string start_date = 3; |
boolean |
hasStartTime()
optional string start_time = 2; |
boolean |
hasTripId()
optional string trip_id = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GtfsRealtime.TripDescriptor.Builder |
newBuilder() |
static GtfsRealtime.TripDescriptor.Builder |
newBuilder(GtfsRealtime.TripDescriptor prototype) |
GtfsRealtime.TripDescriptor.Builder |
newBuilderForType() |
protected GtfsRealtime.TripDescriptor.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static GtfsRealtime.TripDescriptor |
parseDelimitedFrom(InputStream input) |
static GtfsRealtime.TripDescriptor |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TripDescriptor |
parseFrom(byte[] data) |
static GtfsRealtime.TripDescriptor |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TripDescriptor |
parseFrom(com.google.protobuf.ByteString data) |
static GtfsRealtime.TripDescriptor |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TripDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GtfsRealtime.TripDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.TripDescriptor |
parseFrom(InputStream input) |
static GtfsRealtime.TripDescriptor |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.TripDescriptor.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic static com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> PARSER
public static final int TRIP_ID_FIELD_NUMBER
public static final int ROUTE_ID_FIELD_NUMBER
public static final int DIRECTION_ID_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int START_DATE_FIELD_NUMBER
public static final int SCHEDULE_RELATIONSHIP_FIELD_NUMBER
public static GtfsRealtime.TripDescriptor getDefaultInstance()
public GtfsRealtime.TripDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripDescriptor>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasTripId()
optional string trip_id = 1;
The trip_id from the GTFS feed that this selector refers to. For non frequency-based trips, this field is enough to uniquely identify the trip. For frequency-based trip, start_time and start_date might also be necessary.
hasTripId in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getTripId()
optional string trip_id = 1;
The trip_id from the GTFS feed that this selector refers to. For non frequency-based trips, this field is enough to uniquely identify the trip. For frequency-based trip, start_time and start_date might also be necessary.
getTripId in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getTripIdBytes()
optional string trip_id = 1;
The trip_id from the GTFS feed that this selector refers to. For non frequency-based trips, this field is enough to uniquely identify the trip. For frequency-based trip, start_time and start_date might also be necessary.
getTripIdBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasRouteId()
optional string route_id = 5;
The route_id from the GTFS that this selector refers to.
hasRouteId in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getRouteId()
optional string route_id = 5;
The route_id from the GTFS that this selector refers to.
getRouteId in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getRouteIdBytes()
optional string route_id = 5;
The route_id from the GTFS that this selector refers to.
getRouteIdBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasDirectionId()
optional uint32 direction_id = 6;
The direction_id from the GTFS feed trips.txt file, indicating the direction of travel for trips this selector refers to. This field is still experimental, and subject to change. It may be formally adopted in the future.
hasDirectionId in interface GtfsRealtime.TripDescriptorOrBuilderpublic int getDirectionId()
optional uint32 direction_id = 6;
The direction_id from the GTFS feed trips.txt file, indicating the direction of travel for trips this selector refers to. This field is still experimental, and subject to change. It may be formally adopted in the future.
getDirectionId in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasStartTime()
optional string start_time = 2;
The initially scheduled start time of this trip instance. When the trip_id corresponds to a non-frequency-based trip, this field should either be omitted or be equal to the value in the GTFS feed. When the trip_id correponds to a frequency-based trip, the start_time must be specified for trip updates and vehicle positions. If the trip corresponds to exact_times=1 GTFS record, then start_time must be some multiple (including zero) of headway_secs later than frequencies.txt start_time for the corresponding time period. If the trip corresponds to exact_times=0, then its start_time may be arbitrary, and is initially expected to be the first departure of the trip. Once established, the start_time of this frequency-based trip should be considered immutable, even if the first departure time changes -- that time change may instead be reflected in a StopTimeUpdate. Format and semantics of the field is same as that of GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
hasStartTime in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getStartTime()
optional string start_time = 2;
The initially scheduled start time of this trip instance. When the trip_id corresponds to a non-frequency-based trip, this field should either be omitted or be equal to the value in the GTFS feed. When the trip_id correponds to a frequency-based trip, the start_time must be specified for trip updates and vehicle positions. If the trip corresponds to exact_times=1 GTFS record, then start_time must be some multiple (including zero) of headway_secs later than frequencies.txt start_time for the corresponding time period. If the trip corresponds to exact_times=0, then its start_time may be arbitrary, and is initially expected to be the first departure of the trip. Once established, the start_time of this frequency-based trip should be considered immutable, even if the first departure time changes -- that time change may instead be reflected in a StopTimeUpdate. Format and semantics of the field is same as that of GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
getStartTime in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getStartTimeBytes()
optional string start_time = 2;
The initially scheduled start time of this trip instance. When the trip_id corresponds to a non-frequency-based trip, this field should either be omitted or be equal to the value in the GTFS feed. When the trip_id correponds to a frequency-based trip, the start_time must be specified for trip updates and vehicle positions. If the trip corresponds to exact_times=1 GTFS record, then start_time must be some multiple (including zero) of headway_secs later than frequencies.txt start_time for the corresponding time period. If the trip corresponds to exact_times=0, then its start_time may be arbitrary, and is initially expected to be the first departure of the trip. Once established, the start_time of this frequency-based trip should be considered immutable, even if the first departure time changes -- that time change may instead be reflected in a StopTimeUpdate. Format and semantics of the field is same as that of GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
getStartTimeBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasStartDate()
optional string start_date = 3;
The scheduled start date of this trip instance. Must be provided to disambiguate trips that are so late as to collide with a scheduled trip on a next day. For example, for a train that departs 8:00 and 20:00 every day, and is 12 hours late, there would be two distinct trips on the same time. This field can be provided but is not mandatory for schedules in which such collisions are impossible - for example, a service running on hourly schedule where a vehicle that is one hour late is not considered to be related to schedule anymore. In YYYYMMDD format.
hasStartDate in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getStartDate()
optional string start_date = 3;
The scheduled start date of this trip instance. Must be provided to disambiguate trips that are so late as to collide with a scheduled trip on a next day. For example, for a train that departs 8:00 and 20:00 every day, and is 12 hours late, there would be two distinct trips on the same time. This field can be provided but is not mandatory for schedules in which such collisions are impossible - for example, a service running on hourly schedule where a vehicle that is one hour late is not considered to be related to schedule anymore. In YYYYMMDD format.
getStartDate in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getStartDateBytes()
optional string start_date = 3;
The scheduled start date of this trip instance. Must be provided to disambiguate trips that are so late as to collide with a scheduled trip on a next day. For example, for a train that departs 8:00 and 20:00 every day, and is 12 hours late, there would be two distinct trips on the same time. This field can be provided but is not mandatory for schedules in which such collisions are impossible - for example, a service running on hourly schedule where a vehicle that is one hour late is not considered to be related to schedule anymore. In YYYYMMDD format.
getStartDateBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4;hasScheduleRelationship in interface GtfsRealtime.TripDescriptorOrBuilderpublic GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4;getScheduleRelationship in interface GtfsRealtime.TripDescriptorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.TripDescriptor>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.TripDescriptor.Builder newBuilder()
public GtfsRealtime.TripDescriptor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.TripDescriptor.Builder newBuilder(GtfsRealtime.TripDescriptor prototype)
public GtfsRealtime.TripDescriptor.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.TripDescriptor.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2018. All rights reserved.