public static final class GtfsRealtime.TripDescriptor extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<GtfsRealtime.TripDescriptor> implements GtfsRealtime.TripDescriptorOrBuilder
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.Protobuf type
transit_realtime.TripDescriptor| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.TripDescriptor.Builder
A descriptor that identifies an instance of a GTFS trip, or all instances of
a trip along a route.
|
static class |
GtfsRealtime.TripDescriptor.ScheduleRelationship
The relation between this trip and the static schedule.
|
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DIRECTION_ID_FIELD_NUMBER |
static com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> |
PARSER
Deprecated.
|
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 |
|---|---|
boolean |
equals(Object obj) |
static GtfsRealtime.TripDescriptor |
getDefaultInstance() |
GtfsRealtime.TripDescriptor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDirectionId()
The direction_id from the GTFS feed trips.txt file, indicating the
direction of travel for trips this selector refers to.
|
com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> |
getParserForType() |
String |
getRouteId()
The route_id from the GTFS that this selector refers to.
|
com.google.protobuf.ByteString |
getRouteIdBytes()
The route_id from the GTFS that this selector refers to.
|
GtfsRealtime.TripDescriptor.ScheduleRelationship |
getScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; |
int |
getSerializedSize() |
String |
getStartDate()
The scheduled start date of this trip instance.
|
com.google.protobuf.ByteString |
getStartDateBytes()
The scheduled start date of this trip instance.
|
String |
getStartTime()
The initially scheduled start time of this trip instance.
|
com.google.protobuf.ByteString |
getStartTimeBytes()
The initially scheduled start time of this trip instance.
|
String |
getTripId()
The trip_id from the GTFS feed that this selector refers to.
|
com.google.protobuf.ByteString |
getTripIdBytes()
The trip_id from the GTFS feed that this selector refers to.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDirectionId()
The direction_id from the GTFS feed trips.txt file, indicating the
direction of travel for trips this selector refers to.
|
int |
hashCode() |
boolean |
hasRouteId()
The route_id from the GTFS that this selector refers to.
|
boolean |
hasScheduleRelationship()
optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; |
boolean |
hasStartDate()
The scheduled start date of this trip instance.
|
boolean |
hasStartTime()
The initially scheduled start time of this trip instance.
|
boolean |
hasTripId()
The trip_id from the GTFS feed that this selector refers to.
|
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(ByteBuffer data) |
static GtfsRealtime.TripDescriptor |
parseFrom(ByteBuffer 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) |
static com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> |
parser() |
GtfsRealtime.TripDescriptor.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3canUseUnsafe, computeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic 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
@Deprecated public static final com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTripId()
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.
optional string trip_id = 1;hasTripId in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getTripId()
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.
optional string trip_id = 1;getTripId in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getTripIdBytes()
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.
optional string trip_id = 1;getTripIdBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasRouteId()
The route_id from the GTFS that this selector refers to.
optional string route_id = 5;hasRouteId in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getRouteId()
The route_id from the GTFS that this selector refers to.
optional string route_id = 5;getRouteId in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getRouteIdBytes()
The route_id from the GTFS that this selector refers to.
optional string route_id = 5;getRouteIdBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasDirectionId()
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.
optional uint32 direction_id = 6;hasDirectionId in interface GtfsRealtime.TripDescriptorOrBuilderpublic int getDirectionId()
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.
optional uint32 direction_id = 6;getDirectionId in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasStartTime()
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.
optional string start_time = 2;hasStartTime in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getStartTime()
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.
optional string start_time = 2;getStartTime in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getStartTimeBytes()
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.
optional string start_time = 2;getStartTimeBytes in interface GtfsRealtime.TripDescriptorOrBuilderpublic boolean hasStartDate()
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.
optional string start_date = 3;hasStartDate in interface GtfsRealtime.TripDescriptorOrBuilderpublic String getStartDate()
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.
optional string start_date = 3;getStartDate in interface GtfsRealtime.TripDescriptorOrBuilderpublic com.google.protobuf.ByteString getStartDateBytes()
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.
optional string start_date = 3;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.GeneratedMessageV3.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.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GtfsRealtime.TripDescriptor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.TripDescriptor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic 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 GtfsRealtime.TripDescriptor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.TripDescriptor.Builder newBuilder()
public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GtfsRealtime.TripDescriptor getDefaultInstance()
public static com.google.protobuf.Parser<GtfsRealtime.TripDescriptor> parser()
public 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.GeneratedMessageV3public GtfsRealtime.TripDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<GtfsRealtime.TripDescriptor>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.