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.ExtensionWriter
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>
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, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public boolean hasRouteId()
optional string route_id = 5;
The route_id from the GTFS that this selector refers to.
hasRouteId
in interface GtfsRealtime.TripDescriptorOrBuilder
public String getRouteId()
optional string route_id = 5;
The route_id from the GTFS that this selector refers to.
getRouteId
in interface GtfsRealtime.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public 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.TripDescriptorOrBuilder
public boolean hasScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4;
hasScheduleRelationship
in interface GtfsRealtime.TripDescriptorOrBuilder
public GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4;
getScheduleRelationship
in interface GtfsRealtime.TripDescriptorOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
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.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TripDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TripDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.TripDescriptor parseFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.TripDescriptor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TripDescriptor parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.TripDescriptor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static GtfsRealtime.TripDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.TripDescriptor.Builder newBuilder()
public GtfsRealtime.TripDescriptor.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static GtfsRealtime.TripDescriptor.Builder newBuilder(GtfsRealtime.TripDescriptor prototype)
public GtfsRealtime.TripDescriptor.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected GtfsRealtime.TripDescriptor.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2019. All rights reserved.